/* PLC Atölyesi / SPS-Werkstatt — site stili */
:root {
  --bg: #f3f5f8;
  --bg-2: #e9edf3;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --ink: #0e1726;
  --ink-2: #4b5768;
  --ink-3: #5f6b7d;
  --line: #dfe4ec;
  --line-2: #cbd3df;
  --blue: #1660e8;
  --blue-2: #0f4fc4;
  --blue-soft: #e5eefe;
  --green: #17924a;
  --green-soft: #e1f5e8;
  --amber: #b45f06;
  --amber-soft: #fdf0dc;
  --on: #16a34a;
  --on-soft: #dcf5e3;
  --bad: #c0261a;
  --bad-soft: #fde6e3;
  --wire: #6b7586;
  --dark: #0b1220;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 6px 22px rgb(16 24 40 / .06);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / .06), 0 24px 60px rgb(16 24 40 / .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111c; --bg-2: #111a29; --surface: #141d2c; --surface-2: #1b2638; --ink: #e8edf5; --ink-2: #a9b4c4; --ink-3: #7d899b;
    --line: #253148; --line-2: #33415a; --blue: #5b9bff; --blue-2: #3d82f5; --blue-soft: #16294a; --green: #3ccf7a; --green-soft: #12301f;
    --amber: #f2a64a; --amber-soft: #36270f; --on: #4ade80; --on-soft: #143322; --bad: #f97066; --bad-soft: #3a1b19; --wire: #8d99ab;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 22px rgb(0 0 0 / .25); --shadow-lg: 0 24px 60px rgb(0 0 0 / .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111c; --bg-2: #111a29; --surface: #141d2c; --surface-2: #1b2638; --ink: #e8edf5; --ink-2: #a9b4c4; --ink-3: #7d899b;
  --line: #253148; --line-2: #33415a; --blue: #5b9bff; --blue-2: #3d82f5; --blue-soft: #16294a; --green: #3ccf7a; --green-soft: #12301f;
  --amber: #f2a64a; --amber-soft: #36270f; --on: #4ade80; --on-soft: #143322; --bad: #f97066; --bad-soft: #3a1b19; --wire: #8d99ab;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 22px rgb(0 0 0 / .25); --shadow-lg: 0 24px 60px rgb(0 0 0 / .45); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--blue); text-underline-offset: 2px; }
img, svg { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.blue { color: var(--blue); } .green { color: var(--green); }
.muted { color: var(--ink-2); } .small { font-size: .88rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.eyebrow { font: 700 .76rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.center { text-align: center; }

/* duyuru şeridi */
.announce { background: var(--blue-soft); color: var(--ink); font-size: .9rem; text-align: center; padding: 8px 16px; }
.announce .pill-new { background: var(--dark); color: #fff; font: 700 .7rem var(--mono); padding: 2px 8px; border-radius: 6px; margin-right: 8px; letter-spacing: .05em; }
.announce a { font-weight: 700; margin-left: 8px; }

/* üst menü */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-logo { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--blue); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .dd-btn { color: var(--ink); text-decoration: none; font: 600 .94rem var(--font); padding: 8px 11px; border-radius: 9px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .dd-btn:hover, .dd:focus-within .dd-btn { background: var(--surface-2); }
.nav > a[aria-current="page"] { color: var(--blue); }
.dd { position: relative; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; opacity: .6; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: -12px; min-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dd-item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dd-item:hover { background: var(--surface-2); }
.dd-item .dd-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.dd-item .dd-ic svg { width: 22px; height: 22px; fill: currentColor; }
.dd-item b { display: block; font-size: .94rem; }
.dd-item span { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.dd-item .soon { display: inline; font: 700 .66rem var(--mono); color: var(--amber); margin-left: 6px; }
.dd-head { grid-column: 1 / -1; font: 700 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 0; }

.search { position: relative; flex: 1; max-width: 300px; margin-left: auto; }
.search input { width: 100%; font: .92rem var(--font); padding: 9px 12px 9px 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: var(--surface); }
.search > svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--ink-3); pointer-events: none; }
.search-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; max-height: 60vh; overflow: auto; text-align: left; }
.search-res.is-open { display: block; }
.search-res a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.search-res a:hover, .search-res a.is-act { background: var(--surface-2); }
.search-res a small { display: block; color: var(--ink-2); font-size: .78rem; }
.search-res p { margin: 8px 10px; color: var(--ink-2); font-size: .88rem; }
.lang { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang a { text-decoration: none; padding: 3px 9px; border-radius: 7px; color: var(--ink-2); font: 700 .78rem var(--mono); }
.lang [aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 700 .94rem var(--font); cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(180deg, #2a72f2, var(--blue-2)); border-color: var(--blue-2); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 6px 16px rgb(22 96 232 / .28); }
.btn-green { background: linear-gradient(180deg, #23a85a, #13843f); border-color: #13843f; color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .84rem; }
.btn-danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ana sayfa kahraman */
.hero-home { position: relative; text-align: center; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero-home::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(closest-side, rgb(22 96 232 / .14), transparent 70%), radial-gradient(closest-side at 70% 60%, rgb(23 146 74 / .10), transparent 70%); z-index: -1; }
.hero-home h1 { max-width: 15ch; margin: 18px auto 18px; }
.hero-home .lead { max-width: 640px; margin: 0 auto 26px; font-size: 1.12rem; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); }
.pill i { background: var(--green-soft); color: var(--green); font: 700 .7rem var(--mono); font-style: normal; padding: 2px 8px; border-radius: 999px; }
.ask { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; gap: 8px; align-items: center; position: relative; }
.ask .ask-ic { width: 34px; height: 34px; flex: none; margin-left: 4px; }
.ask input { flex: 1; border: 0; background: none; font: 1.05rem var(--font); color: var(--ink); padding: 12px 6px; min-width: 0; }
.ask input:focus { outline: none; }
.ask .search-res { top: calc(100% + 8px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px auto 0; max-width: 820px; }
.chips span { color: var(--ink-3); font-size: .88rem; padding: 6px 2px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.float-card { position: absolute; width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; text-align: left; z-index: 1; animation: floaty 7s ease-in-out infinite; text-decoration: none; color: var(--ink); }
.float-card img { display: block; width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); }
.float-card b { display: block; font-size: .86rem; margin: 8px 4px 0; }
.float-card small { display: block; color: var(--ink-2); font-size: .76rem; margin: 0 4px 4px; }
.float-card .tagx { position: absolute; top: 14px; left: 14px; background: var(--dark); color: #fff; font: 700 .64rem var(--mono); padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; }
.fc-1 { left: 1.5%; top: 60px; rotate: -4deg; }
.fc-2 { left: 3%; top: 330px; rotate: 3deg; animation-delay: -2s; }
.fc-3 { right: 1.5%; top: 70px; rotate: 4deg; animation-delay: -4s; }
.fc-4 { right: 3%; top: 340px; rotate: -3deg; animation-delay: -1s; }
@keyframes floaty { 50% { translate: 0 -10px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 34px auto 0; max-width: 980px; }
.stats div { padding: 18px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--ink-2); font-size: .86rem; }

/* bölümler */
.section { padding: 72px 0; }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head.center { display: block; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: radial-gradient(1200px 500px at 80% 0%, #17305e 0%, var(--dark) 60%); color: #e8edf5; }
.section-dark p, .section-dark .muted { color: #a9b4c4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #7fb0ff; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.seg button { border: 0; background: none; font: 700 .9rem var(--font); color: var(--ink-2); padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-selected="true"] { background: var(--dark); color: #fff; }
.seg button i { font: 700 .64rem var(--mono); font-style: normal; background: var(--green-soft); color: var(--green); padding: 2px 6px; border-radius: 6px; }
.tabpanel[hidden] { display: none; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 a { color: inherit; text-decoration: none; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; fill: currentColor; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
a.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ccard .ph { position: relative; aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.ccard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.ccard:hover .ph img { transform: scale(1.04); }
.ccard .ph .tagx { position: absolute; top: 12px; left: 12px; background: rgb(11 18 32 / .85); color: #fff; font: 700 .64rem var(--mono); padding: 4px 8px; border-radius: 6px; letter-spacing: .06em; }
.ccard .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard h3 { margin: 0; }
.ccard p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.ccard .ft { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.ccard.is-soon { opacity: .75; }
.badge-free, .badge-soon, .badge-new { font: 700 .66rem var(--mono); padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; }
.badge-free { background: var(--green-soft); color: var(--green); }
.badge-soon { background: var(--amber-soft); color: var(--amber); }
.badge-new { background: var(--blue-soft); color: var(--blue); }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.cta-band { background: linear-gradient(135deg, #1660e8, #0b3fa8); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d6e4ff; margin: 0; }
.cta-band .btn { background: #fff; color: #0b3fa8; border-color: #fff; }

/* kurs sayfası */
.crumbs { font-size: .86rem; color: var(--ink-2); margin: 0 0 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.course-hero { padding: 40px 0 34px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.course-hero .lead, .hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 760px; }
.hero { padding: 40px 0 26px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.chiprow li { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 600; }
.chiprow li svg { width: 14px; height: 14px; fill: var(--blue); }
.hero-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--bg-2); }
.hero-media img { display: block; width: 100%; }
.hero-media .ov { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-media .ov span { background: rgb(11 18 32 / .82); color: #fff; font: 700 .72rem var(--mono); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.hero-media .ov span.g { background: var(--green); }
.factlist { display: grid; grid-template-columns: 140px 1fr; margin: 20px 0 0; border-top: 1px solid var(--line); }
.factlist dt, .factlist dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.factlist dt { font-weight: 700; }
.factlist dd { color: var(--ink-2); }

.subnav { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }
.subnav a:hover { background: var(--surface); }
.subnav a.is-act { background: var(--dark); color: #fff; }

.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; padding: 0; margin: 0; }
.checkgrid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 52px; position: relative; font-weight: 600; box-shadow: var(--shadow); }
.checkgrid li::before, .checks li::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2317924a' d='M6.2 11.2 2.8 7.8 1.6 9l4.6 4.6 8.2-8.2-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.checkgrid li::before { left: 18px; top: 16px; }
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 32px; position: relative; margin: 8px 0; }
.checks li::before { left: 0; top: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.infocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.infocard .big { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }

.stepper { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0; }
.stepper li { position: relative; padding: 0 16px 0 0; }
.stepper .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; z-index: 1; margin-bottom: 14px; font: 700 .9rem var(--mono); color: var(--blue); }
.stepper li::before { content: ""; position: absolute; top: 23px; left: 46px; right: 0; border-top: 2px dashed var(--line-2); }
.stepper li:last-child::before { display: none; }
.stepper b { display: block; margin-bottom: 4px; }
.stepper span { color: var(--ink-2); font-size: .88rem; display: block; }
.section-dark .stepper .dot { background: #17233a; border-color: #2a3a58; color: #7fb0ff; }
.section-dark .stepper li::before { border-color: #2a3a58; }
.section-dark .stepper span { color: #a9b4c4; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .82rem var(--mono); margin-right: 8px; }

.modlist { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; counter-reset: m; }
.modlist li { counter-increment: m; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modlist li:last-child { border-bottom: 0; }
.modlist li::before { content: counter(m, decimal-leading-zero); font: 700 .8rem var(--mono); color: var(--ink-3); width: 24px; flex: none; }
.modlist .t { flex: 1; font-weight: 600; color: var(--ink); text-decoration: none; }
.modlist a.t { color: var(--blue); }
.modlist .d { font: .82rem var(--mono); color: var(--ink-3); white-space: nowrap; }
.modlist .lab { background: var(--blue-soft); color: var(--blue); font: 700 .66rem var(--mono); padding: 2px 7px; border-radius: 6px; }
.modlist li.is-hidden { display: none; }
.modlist.is-open li.is-hidden { display: flex; }
.mod-more { margin-top: 12px; }

.lablist { display: grid; gap: 12px; }
.labrow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 12px; box-shadow: var(--shadow); }
.labrow .lt { flex: 1; min-width: 0; }
.labrow b { display: block; }
.labrow small { color: var(--ink-2); }
.labrow img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--bg-2); flex: none; }

.proj { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kv div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.kv b { display: block; font-size: 1.2rem; }
.kv span { font-size: .8rem; color: var(--ink-2); }
.deliv { list-style: none; padding: 0; margin: 16px 0 0; font-size: .9rem; }
.deliv li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.deliv b { font-family: var(--mono); color: var(--blue); margin-right: 6px; }

.cert { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
.cert .ce-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; gap: 10px; }
.cert .ce-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.cert p { color: var(--ink-2); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 var(--font); color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details > p { color: var(--ink-2); margin-top: 0; padding-bottom: 6px; }

.note { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; }
.note-ok { border-color: var(--green); background: var(--green-soft); }

/* ders düzeni */
.lesson { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.toc ol { padding-left: 18px; margin: 8px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.lesson-body section { margin-bottom: 42px; }
.lesson-body h2 { font-size: 1.6rem; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; }
.figure svg { display: block; margin: 0 auto; color: var(--ink); }
.figure figcaption { font-size: .86rem; color: var(--ink-2); margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.quiz { display: grid; gap: 14px; }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.q p { font-weight: 600; margin-bottom: 8px; }
.q label { display: block; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.q label:hover { background: var(--surface-2); }
.q .why { display: none; font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.q.is-ok { border-color: var(--on); background: var(--on-soft); }
.q.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.q.is-ok .why, .q.is-bad .why { display: block; }
.quiz-score { font-weight: 700; }

/* ================= TIA benzeri editör penceresi ================= */
.sim { margin: 20px 0; }
.ide { --ide-bg: #f7f9fc; --ide-pane: #ffffff; --ide-head: #eef2f8; --ide-line: #d7dee9; --ide-bar: #1c2a44;
  background: var(--ide-bg); border: 1px solid var(--ide-line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ide { --ide-bg: #0f1726; --ide-pane: #131d2f; --ide-head: #18243a; --ide-line: #26344d; --ide-bar: #0a101c; } }
:root[data-theme="dark"] .ide { --ide-bg: #0f1726; --ide-pane: #131d2f; --ide-head: #18243a; --ide-line: #26344d; --ide-bar: #0a101c; }
.ide-title { display: flex; align-items: center; gap: 12px; background: var(--ide-bar); color: #dbe5f5; padding: 8px 14px; font-size: .82rem; }
.ide-dots { display: flex; gap: 6px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ide-dots i:nth-child(2) { background: #febc2e; } .ide-dots i:nth-child(3) { background: #28c840; }
.ide-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.ide-path b { color: #fff; }
.ide-run { font: 700 .72rem var(--mono); padding: 3px 10px; border-radius: 6px; background: #3b2424; color: #ffb3ab; letter-spacing: .06em; white-space: nowrap; }
.ide-run::before { content: "● "; }
.ide-run.is-run { background: #123b25; color: #7ef0a8; }
.ide-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 10px; background: var(--ide-head); border-bottom: 1px solid var(--ide-line); }
.tb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; color: var(--ink); font: 600 .82rem var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tb:hover { background: var(--ide-pane); border-color: var(--ide-line); }
.tb svg { width: 14px; height: 14px; fill: currentColor; }
.tb-run { background: #13793d; color: #fff; }
.tb-run:hover { background: #0f6332; color: #fff; }
.tb-run.is-on { background: var(--bad); }
.tb-check { color: var(--blue); }
.tb-sep { width: 1px; height: 22px; background: var(--ide-line); margin: 0 6px; }
.ide-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; min-height: 360px; }
.ide-compact .ide-body { grid-template-columns: minmax(0, 1fr) 260px; }
.ide-compact .ide-tree { display: none; }
.pane-h { font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 9px 12px; background: var(--ide-head); border-bottom: 1px solid var(--ide-line); }
.ide-tree { background: var(--ide-pane); border-right: 1px solid var(--ide-line); font-size: .8rem; overflow: auto; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 12px; }
.tree { padding: 6px; }
.ti { display: flex; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 5px; color: var(--ink); background: none; border: 0; font: inherit; text-align: left; width: 100%; }
button.ti { cursor: pointer; color: var(--ink-2); }
button.ti:hover { background: var(--ide-head); }
.ti svg { width: 13px; height: 13px; fill: var(--blue); flex: none; }
.ti.is-act { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.tree-nets { padding-left: 18px !important; }
.tree-tags li { padding: 2px 6px; color: var(--ink-2); font-size: .74rem; }
.tree-tags code { font-size: .7rem; padding: 0 3px; }
.ide-editor { background: var(--ide-pane); min-width: 0; display: flex; flex-direction: column; }
.ide-editor .ladder { padding: 14px 16px; flex: 1; }
.ide-panel { background: var(--ide-bg); border-left: 1px solid var(--ide-line); overflow: auto; }
.ide-statusbar { display: flex; justify-content: space-between; gap: 12px; font: .72rem var(--mono); color: var(--ink-3); background: var(--ide-head); border-top: 1px solid var(--ide-line); padding: 5px 12px; }

/* operatör paneli */
.op-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 6px; padding: 16px 10px; background: linear-gradient(180deg, #d8dde4, #c5ccd6); border-bottom: 1px solid var(--ide-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .op-panel { background: linear-gradient(180deg, #2a3446, #222b3a); } }
:root[data-theme="dark"] .op-panel { background: linear-gradient(180deg, #2a3446, #222b3a); }
.op-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: inherit; user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.op-out { cursor: default; }
.op-plate { background: #1b1f26; color: #e9edf3; border-radius: 4px; padding: 3px 5px; text-align: center; width: 100%; line-height: 1.15; }
.op-plate b { display: block; font: 700 .62rem var(--mono); color: #9fb3cf; }
.op-plate span { display: block; font-size: .66rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-btn, .op-sel, .op-lamp { width: 42px; height: 42px; border-radius: 50%; position: relative; margin-top: 7px; box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 4px 6px 5px rgb(0 0 0 / .25); transition: transform .06s, box-shadow .1s; }
.op-btn::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .55), transparent 55%); }
.op-green { background: radial-gradient(circle at 50% 40%, #39c46a, #0f7a35); }
.op-red { background: radial-gradient(circle at 50% 40%, #f0533f, #9b1a0e); }
.op-black { background: radial-gradient(circle at 50% 40%, #555, #111); }
.op-yellow, .op-amber { background: radial-gradient(circle at 50% 40%, #ffcc3d, #b98400); }
.op-blue { background: radial-gradient(circle at 50% 40%, #4d8dff, #1446a8); }
.op-unit[aria-pressed="true"] .op-btn { transform: scale(.9); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 1px 2px 5px rgb(0 0 0 / .25); }
.op-sel { background: radial-gradient(circle at 50% 40%, #3b3f46, #121418); }
.op-sel i { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 9px; margin-left: -4.5px; background: linear-gradient(90deg, #555, #c9ced6, #555); border-radius: 4px; transform: rotate(-45deg); transition: transform .15s; }
.op-unit[aria-pressed="true"] .op-sel i { transform: rotate(45deg); }
.op-sel-nc i { transform: rotate(45deg); }
.op-unit[aria-pressed="true"] .op-sel-nc i { transform: rotate(-45deg); }
.op-eye { width: 44px; height: 30px; border-radius: 6px; background: #2b3038; position: relative; margin: 13px 0 6px; box-shadow: 0 2px 4px rgb(0 0 0 / .3); }
.op-eye::after { content: ""; position: absolute; right: 7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #5a2a2a; }
.op-sensor.on .op-eye::after { background: #ff5b4a; box-shadow: 0 0 10px #ff5b4a; }
.op-lamp { background: radial-gradient(circle at 40% 35%, #8b939e, #4a525d); }
.op-out.on .op-l-green { background: radial-gradient(circle at 40% 35%, #c9ffd9, #2fe06d 45%, #109a43); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 0 22px 6px rgb(47 224 109 / .6); }
.op-out.on .op-l-red { background: radial-gradient(circle at 40% 35%, #ffd1cb, #ff4733 45%, #b21b0d); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 0 22px 6px rgb(255 71 51 / .6); }
.op-out.on .op-l-amber, .op-out.on .op-l-yellow { background: radial-gradient(circle at 40% 35%, #fff1c2, #ffbb1c 45%, #b47c00); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 0 22px 6px rgb(255 187 28 / .6); }
.op-out.on .op-l-white { background: radial-gradient(circle at 40% 35%, #fff, #e8eef7 45%, #9fb0c6); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 0 22px 6px rgb(255 255 255 / .6); }
.op-out.on .op-l-blue { background: radial-gradient(circle at 40% 35%, #d6e6ff, #3d86ff 45%, #1446a8); box-shadow: 0 0 0 5px #9aa3ae, 0 0 0 7px #6c7682, 0 0 22px 6px rgb(61 134 255 / .6); }
.op-unit.on .op-plate b { color: #7ef0a8; }

.io-list { display: grid; gap: 6px; padding: 10px; }
.io-out { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--ide-line); font-size: .84rem; background: var(--ide-pane); }
.io-out.on { background: var(--on-soft); border-color: var(--on); }
.io-name b { font-family: var(--mono); font-size: .85em; }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); flex: none; }
.on > .lamp { background: var(--on); border-color: var(--on); box-shadow: 0 0 10px var(--on); }
.tim-val { margin-left: auto; font: .76rem var(--mono); }
.io-t { flex-wrap: wrap; }
.tim-bar { flex-basis: 100%; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.tim-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.motor-fan { width: 28px; height: 28px; flex: none; }
.motor-fan circle { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 2; }
.motor-fan path { fill: var(--ink-2); }
.io-motor.on .motor-fan { animation: spin .6s linear infinite; }
.io-motor.on .motor-fan path { fill: var(--on); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .io-motor.on .motor-fan { animation-duration: 3s; } .float-card { animation: none; } }

/* merdiven */
.ladder { overflow-x: auto; padding-bottom: 6px; }
.rung { margin-bottom: 10px; border: 1px solid var(--ide-line, var(--line)); border-radius: 10px; padding: 8px 10px 10px; background: var(--ide-pane, var(--surface)); }
.rung-head { font: 600 .76rem var(--mono); color: var(--ink-2); margin-bottom: 4px; display: flex; gap: 10px; }
.rung-no { color: var(--blue); }
.rung-cmt { font-family: var(--font); font-weight: 400; }
.rung-line { display: flex; align-items: flex-start; min-width: max-content; position: relative; }
.rail { width: 4px; align-self: stretch; background: var(--ink); border-radius: 2px; min-height: 64px; }
.rung.on .rail-l { background: var(--on); }
.blk { position: relative; display: flex; flex-direction: column; padding: 0 10px; }
.blk::before, .blk::after { content: ""; position: absolute; top: 32px; bottom: 32px; width: 2px; background: var(--wire); }
.blk::before { left: 0; } .blk::after { right: 0; }
.blk:has(> .add-k)::before, .blk:has(> .add-k)::after { bottom: 62px; }
.br { display: flex; align-items: center; height: 64px; position: relative; }
.br::before { content: ""; position: absolute; left: -10px; right: -10px; top: 31px; height: 2px; background: var(--wire); z-index: 0; }
.br .wire { flex: 1; }
.wire-out { flex: 1 0 20px; height: 2px; background: var(--wire); margin-top: 31px; }
.rung.on .wire-out { background: var(--on); }
.el { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 84px; height: 64px; padding: 0; border: 1px dashed transparent; border-radius: 8px; background: var(--ide-pane, var(--surface)); color: var(--ink); cursor: pointer; font: inherit; }
.el:disabled { cursor: default; }
.el:not(:disabled):hover { border-color: var(--line-2); }
.el.is-sel { border: 1px solid var(--blue); background: var(--blue-soft); }
.el-addr { font: 700 .7rem var(--mono); line-height: 1.2; margin-top: 1px; }
.el-name { font-size: .66rem; color: var(--ink-2); line-height: 1.1; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sym { width: 56px; height: 32px; flex: none; }
.sym line, .sym path { stroke: currentColor; stroke-width: 2.5; fill: none; }
.sym text { fill: currentColor; font: 700 15px var(--mono); stroke: none; }
.el.on { color: var(--on); }
.el.on .sym line, .el.on .sym path { stroke-width: 3.5; }
.el-box .box { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 4px; width: 66px; height: 34px; line-height: 1.05; background: var(--ide-head, var(--surface-2)); }
.el-box .box b { font: 700 .74rem var(--mono); }
.el-box .box small { font-size: .62rem; color: var(--ink-2); }
.add { position: relative; z-index: 1; border: 1px dashed var(--line-2); background: var(--ide-pane, var(--surface)); color: var(--ink-2); border-radius: 6px; cursor: pointer; font: 600 .75rem var(--font); }
.add:hover { color: var(--blue); border-color: var(--blue); }
.add-c, .add-b { width: 26px; height: 26px; margin: 0 4px; }
.add-b { margin-top: 19px; }
.add-k { margin: 4px 0 0; padding: 3px 8px; height: 26px; align-self: flex-start; }
.sim-props { margin: 0 16px 14px; padding: 12px; background: var(--ide-head); border: 1px solid var(--ide-line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.sim-props h4, .sim-props .props-h { width: 100%; margin: 0; font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sim-props p { margin: 0; font-size: .86rem; }
.sim-props label { display: flex; flex-direction: column; font-size: .78rem; font-weight: 600; gap: 3px; }
.sim-props select, .sim-props input { font: .88rem var(--font); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--ide-line); background: var(--ide-pane); color: var(--ink); min-width: 150px; }
.sim-props .row { display: flex; gap: 8px; }
.sim-result:empty { display: none; }
.sim-result { margin: 0 16px 14px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.sim-result.is-ok { background: var(--on-soft); border: 1px solid var(--on); }
.sim-result.is-bad { background: var(--bad-soft); border: 1px solid var(--bad); }
.sim-result p { margin: 0 0 4px; }
.sim-result ul { margin: 0; padding-left: 20px; }

/* ================= 3B laboratuvar ================= */
.lab-app { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0 40px; }
.lab-brief { position: sticky; top: 88px; display: grid; gap: 14px; }
.lab-brief .card { padding: 18px; }
.lab-brief h1 { font-size: 1.55rem; margin-bottom: 6px; }
.lab-brief ol { padding-left: 20px; margin: 0; font-size: .92rem; }
.lab-brief ol li { margin: 6px 0; }
.lab-main { display: grid; gap: 18px; min-width: 0; }
.lab3d { position: relative; height: min(62vh, 560px); min-height: 360px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #dfe7f1, #f4f6f9); box-shadow: var(--shadow-lg); }
.lab3d canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.l3-hud { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; max-width: calc(100% - 240px); }
.l3-hud span { background: rgb(11 18 32 / .78); color: #fff; font: 700 .72rem var(--mono); padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.l3-hud .is-run { background: #128040; }
.l3-hud .is-ok { background: #1660e8; }
.l3-help { position: absolute; right: 12px; bottom: 12px; background: rgb(11 18 32 / .7); color: #dbe5f5; font-size: .76rem; padding: 6px 10px; border-radius: 8px; pointer-events: none; max-width: 60%; }
.l3-views { position: absolute; right: 12px; top: 12px; display: flex; gap: 4px; }
.l3-views button { border: 0; background: rgb(255 255 255 / .92); color: #0e1726; font: 700 .74rem var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.l3-views button:hover { background: #fff; }
.l3-tools { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 55%; }
.l3-tools button { border: 0; background: rgb(14 23 38 / .78); color: #fff; font: 600 .72rem var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.l3-tools button[aria-pressed="true"] { background: #1a5fd0; }
.l3-tools button:hover { background: rgb(14 23 38 / .92); }
.l3-tools button[aria-pressed="true"]:hover { background: #164fae; }
@media (max-width: 640px) { .l3-help { display: none; } .l3-tools { max-width: calc(100% - 24px); } }
.l3-label { position: absolute; transform: translate(-50%, -100%); background: rgb(11 18 32 / .82); color: #fff; font: 600 .7rem var(--font); padding: 3px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.l3-label b { font-family: var(--mono); color: #9fc3ff; margin-right: 4px; }
.l3-label.on b { color: #7ef0a8; }
.l3-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #4b5768; font-size: .92rem; background: inherit; }
.l3-msg[hidden] { display: none; }

/* alt bilgi */
.foot { background: var(--dark); color: #a9b4c4; margin-top: 80px; padding: 56px 0 30px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.foot h4, .foot .foot-h { color: #fff; font-size: .74rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: #c9d3e1; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot-legal { border-top: 1px solid #22304a; padding-top: 20px; font-size: .82rem; color: #7d899b; display: grid; gap: 6px; }
.foot-legal p { margin: 0; }

/* duyarlı */
@media (max-width: 1180px) {
  .float-card { display: none; }
  .ide-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .ide-tree { display: none; }
}
@media (max-width: 1020px) {
  .search { display: none; }
  .lab-app { grid-template-columns: 1fr; }
  .lab-brief { position: static; }
  .course-hero, .split, .proj, .section-head, .cta-band { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stepper li::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: var(--shadow-lg); }
  .top.is-open .nav { display: flex; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; }
  .dd.is-open .dd-menu { display: grid; }
  .top-cta { display: none; }
  .lesson { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .ide-body, .ide-compact .ide-body { grid-template-columns: 1fr; }
  .ide-panel { border-left: 0; border-bottom: 1px solid var(--ide-line); order: -1; }
  .checkgrid, .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kv { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .stepper { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .factlist { grid-template-columns: 1fr; }
  .factlist dt { border-bottom: 0; padding-bottom: 0; }
  .ask { flex-wrap: wrap; }
  .ask .btn { width: 100%; }
  .lab3d { min-height: 300px; }
}

/* Lab sayfaları ek */
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.section-head .lead { color: var(--ink-2); font-size: 1.06rem; max-width: 70ch; }
.lab-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--ink-2); margin: 0 0 10px; }
.lab-brief h2 { font-size: 1.02rem; margin: 0 0 8px; }
.lab-brief p { font-size: .92rem; margin: 0 0 8px; }
.lab-brief details summary { cursor: pointer; font-weight: 700; }
.lab-brief details[open] summary { margin-bottom: 8px; }
.lab-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.lab-nav a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lab-nav a:hover { background: var(--surface-2); }
.lab-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
table.io { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.io th, table.io td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
table.io code { font-family: var(--mono); font-weight: 700; color: var(--blue); }

.nav-off{color:var(--muted,#8a94a6);padding:.5rem .7rem;cursor:default;opacity:.6}

/* Lighthouse düzeltmeleri (2026-11-19) */
.foot .foot-h { font-weight: 700; line-height: 1.3; }
.toc a, .lesson-toc a { display: inline-block; padding: 6px 0; min-height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- lab akışı: adım çubuğu, adım paneli, belge sekmeleri, durum çubuğu, rapor */
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.flow-wrap { display: grid; gap: 10px; margin-top: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.flow button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font: 600 .86rem var(--font); cursor: pointer; text-align: left; }
.flow button:hover { border-color: var(--line-2); color: var(--ink); }
.flow .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .78rem; font-weight: 800; }
.flow .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow .is-done .n { background: var(--green); border-color: var(--green); color: #fff; }
.flow .is-done .n::before { content: "✓"; }
.flow .is-done .n { font-size: 0; }
.flow .is-done .n::before { font-size: .8rem; }
.flow .is-cur { border-color: var(--blue-2); color: var(--ink); box-shadow: 0 0 0 3px var(--blue-soft); }
.flow .is-cur .n { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.flow-panel { padding: 14px 18px; }
.flow-panel p { margin: 0 0 8px; }
.flow-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow-msg:empty { display: none; }
.flow-msg { color: var(--bad); font-weight: 600; }
.why { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.why summary { cursor: pointer; font-weight: 700; color: var(--blue-2); }
.docs { padding: 0 !important; overflow: hidden; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 6px 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.doc-tabs [role="tab"] { border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--ink-2); font: 600 .8rem var(--font); padding: 7px 9px; border-radius: 8px 8px 0 0; cursor: pointer; }
.doc-tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--line); margin-bottom: -1px; }
.docs [role="tabpanel"] { padding: 14px 16px; font-size: .92rem; }
.docs [role="tabpanel"] ol { padding-left: 20px; margin: 0; }
.proto td:last-child { text-align: center; font-weight: 800; }
.proto .is-ok { color: var(--green); }
.proto .is-bad { color: var(--bad); }
.hints li { margin: 6px 0; }
.lab-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; font: 600 .78rem var(--mono); }
.lab-status span { padding: 5px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.lab-status .is-run, .lab-status .is-ok { background: var(--green-soft); color: var(--green); border-color: currentColor; }
.lab-status .is-bad { background: var(--bad-soft); color: var(--bad); border-color: currentColor; }
.rep-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: .92rem; }
.rep-meta dt { color: var(--ink-3); }
.rep-meta dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow .t { display: none; }
  .flow button { justify-content: center; padding: 8px 4px; }
}
/* Analog ölçekleme hesaplayıcısı (olcek.js) */
.olcek { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.olcek-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.olcek-grid .olcek-ma, .olcek-grid input[type=range] { grid-column: 1 / -1; }
.olcek-grid input[type=range] { width: 100%; accent-color: var(--blue); }
.olcek-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--ink-2); }
.olcek-grid label.olcek-ma { display: block; font-size: 1rem; color: var(--ink); }
.olcek-grid input[type=number], .olcek-grid input[type=text] { font: inherit; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); }
.olcek-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.olcek-out div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.olcek-out span { display: block; font-size: .8rem; color: var(--ink-3); }
.olcek-out b { font-family: var(--mono); font-size: 1.15rem; }
.olcek-state { margin: 12px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--on-soft); color: var(--ink); }
.olcek-state[data-state=warn] { background: var(--amber-soft); }
.olcek-state[data-state=bad] { background: var(--bad-soft); }
@media (max-width: 560px) { .olcek-grid, .olcek-out { grid-template-columns: 1fr; } }

@media print {
  .top, .foot, .flow, .lab-brief, .lab3d, .lab-status, .sim, .note, .crumbs, .why, .flow-acts { display: none !important; }
  .flow-panel { border: 0; box-shadow: none; }
}
.lab-video video { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 0 16px; background: #0b1220; }

/* Ders videosu (tools/video_ekle.py): giriş paragrafının altında, sayfa genişliğinde. */
.ders-video { margin: 22px 0 4px; max-width: 880px; }
.ders-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0b1220; box-shadow: var(--shadow); }
.ders-video figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media print { .ders-video { display: none; } }

/* Operatör paneli (hmi.js): yüksek performans HMI düzeni, gri zemin; renk yalnız anormal durumda. Tema değişse de panel aynı kalır. */
.hmi { --h-bg: #d4d7dc; --h-panel: #e6e8eb; --h-ink: #1d232b; --h-ink-2: #555e6b; --h-line: #a9b0ba; --h-alarm: #c62828; --h-warn: #e0a100;
  position: relative; margin: 18px 0; border: 10px solid #2a3039; border-radius: 14px; background: var(--h-bg); color: var(--h-ink); font: 14px/1.4 var(--font); box-shadow: var(--shadow-lg); overflow: hidden; }
.hmi-bar { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #b9bec6; border-bottom: 1px solid var(--h-line); font-size: .86rem; }
.hmi-bar b { font-size: .95rem; }
.hmi-screen { color: var(--h-ink-2); }
.hmi-link { margin-left: auto; font: 700 .75rem var(--mono); color: var(--h-ink-2); }
.hmi-clock { font: 600 .8rem var(--mono); }
.hmi-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; }
.hmi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; align-content: start; }
.hmi-field { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 4px; padding: 6px 9px; min-height: 52px; }
.hmi-lab { display: block; font-size: .74rem; color: var(--h-ink-2); }
.hmi-val { display: block; font: 700 1rem var(--mono); }
.hmi-field.is-on .hmi-val::before { content: "● "; color: var(--h-ink); }
.hmi-field.is-alarm { background: var(--h-alarm); border-color: var(--h-alarm); color: #fff; }
.hmi-field.is-alarm .hmi-lab { color: #ffe1e1; }
.hmi-btn { min-height: 52px; border: 1px solid #7d8590; border-bottom-width: 3px; border-radius: 4px; background: linear-gradient(#f2f3f5, #d9dce1); color: var(--h-ink); font: 700 .95rem var(--font); cursor: pointer; touch-action: none; user-select: none; }
.hmi-btn.is-down { border-bottom-width: 1px; transform: translateY(2px); background: #c8ccd2; }
.hmi-btn:focus-visible, .hmi-ack:focus-visible { outline: 3px solid #1660e8; outline-offset: 2px; }
.hmi-green { border-left: 6px solid #2e7d32; } .hmi-red { border-left: 6px solid #8e1c1c; }
.hmi-alarms { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 4px; padding: 8px; min-width: 0; }
.hmi-ahead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hmi-count { font: 700 .75rem var(--mono); padding: 1px 8px; border-radius: 999px; background: #b9bec6; }
.hmi-count.is-hot { background: var(--h-alarm); color: #fff; }
.hmi-ack { margin-left: auto; font: 700 .78rem var(--font); padding: 4px 10px; border: 1px solid #7d8590; border-radius: 4px; background: #f2f3f5; color: var(--h-ink); cursor: pointer; }
.hmi-ack:disabled { opacity: .45; cursor: default; }
.hmi-alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hmi-none { color: var(--h-ink-2); font-size: .85rem; padding: 4px 2px; }
.hmi-a { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 5px 7px; border-radius: 3px; border-left: 6px solid var(--h-alarm); background: #fff; font-size: .84rem; }
.hmi-a.warn { border-left-color: var(--h-warn); }
.hmi-a .hmi-ack { grid-row: 1 / span 2; grid-column: 3; }
.hmi-at { font: 600 .74rem var(--mono); color: var(--h-ink-2); }
.hmi-atx { font-weight: 700; }
.hmi-ast { grid-column: 1 / span 2; font-size: .72rem; color: var(--h-ink-2); }
.hmi-a.is-new:not(.is-gone) { animation: hmi-blink 1s steps(2, start) infinite; }
.hmi-a.is-gone { background: #eceef1; border-left-style: dashed; }
@keyframes hmi-blink { 50% { background: #ffd9d9; } }
@media (prefers-reduced-motion: reduce) { .hmi-a.is-new:not(.is-gone) { animation: none; background: #ffd9d9; } }
.hmi-loghead { margin: 10px 0 2px; font: 700 .74rem var(--font); color: var(--h-ink-2); }
.hmi-log { margin: 0; padding: 0 0 0 18px; font: .72rem/1.5 var(--mono); color: var(--h-ink-2); max-height: 120px; overflow: auto; }
.hmi-off { display: none; position: absolute; inset: 36px 0 0; place-items: center; text-align: center; padding: 20px; background: rgb(60 66 76 / .82); color: #fff; font-weight: 700; }
.hmi.is-offline .hmi-off { display: grid; }
@media (max-width: 640px) { .hmi-body { grid-template-columns: 1fr; } .hmi { border-width: 6px; } }

/* Pano kablolama labı (kablolama.js) */
.l3-hud .is-warn { background: #b3261e; }
.l3-label.w-term { font: 700 .62rem var(--mono); padding: 1px 4px; background: rgb(11 18 32 / .7); }
.wmsg { margin: -6px 0 0; font-weight: 600; color: var(--ink-2); min-height: 1.4em; }
.wmsg.is-bad { color: var(--bad); }
.wcheck { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; font-size: .9rem; }
.wcheck li::before { content: "○"; display: inline-block; width: 1.3em; color: var(--ink-3, #7a8596); font-weight: 800; }
.wcheck li.is-done::before { content: "✓"; color: var(--green); }
.wform { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 6px 0 10px; }
.wform label { display: grid; gap: 2px; font-size: .8rem; font-weight: 600; }
.wform select { font: 600 .88rem var(--mono); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.wlist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .88rem; }
.wlist li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wiring-fig { margin: 0; }
.wiring-svg { width: 100%; height: auto; max-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
[data-whold][aria-pressed="true"] { background: var(--bad-soft); color: var(--bad); border-color: currentColor; }

/* ================= Uygulama görevi (pratik.js) ================= */
.pratik { display: grid; gap: 14px; }
.pq label { display: block; padding: 0; cursor: default; font-weight: 600; margin-bottom: 8px; }
.pq label:hover { background: none; }
.pq input { width: 100%; max-width: 320px; font: inherit; font-family: var(--mono, ui-monospace, monospace); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; }
.pq.is-ok input { border-color: var(--on); }
.pq.is-bad input { border-color: var(--bad); }

/* PID denemesi (pid.js) */
.pid .olcek-grid label { font-size: .95rem; }
.pid .olcek-grid input[type=range] { width: 100%; accent-color: var(--blue); }
.pid-btn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; font-size: .9rem; color: var(--ink-2); }
.pid-btn .btn { padding: 6px 12px; font-size: .9rem; }
.pid-svg { width: 100%; height: auto; display: block; margin-top: 8px; font: 11px var(--mono); fill: var(--ink-2); }
.pid-svg .g { stroke: var(--line); stroke-width: 1; }
.pid-svg path { fill: none; stroke-width: 2; }
.pid-svg .pv { stroke: var(--blue); stroke-width: 2.5; }
.pid-svg .sp { stroke: var(--ink-2); stroke-dasharray: 6 4; }
.pid-svg .u { stroke: var(--amber); stroke-width: 1.5; opacity: .8; }
.pid-leg { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--ink-2); margin: 4px 0 0; }
.pid-leg span::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.pid-leg .l-sp::before { border-top: 2px dashed var(--ink-2); }
.pid-leg .l-pv::before { border-color: var(--blue); }
.pid-leg .l-u::before { border-color: var(--amber); }
@media (max-width: 640px) { .pid .olcek-grid, .pid .olcek-out { grid-template-columns: 1fr; } }
/* Kod blokları (ileri kurs: SCL örnekleri) */
pre.code { max-width: 100%; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .88rem; line-height: 1.5; margin: 14px 0; }
pre.code code { white-space: pre; background: none; padding: 0; border: 0; }

/* ---- kurs sayfası: künye, rozetler, ders listesi ---- */
.badges { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font: 600 .78rem var(--font); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.badges li.hl { background: var(--green-soft); border-color: transparent; color: var(--green); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.modules { list-style: none; padding: 0; margin: 14px 0; counter-reset: ders; display: grid; gap: 8px; }
.modules li { counter-increment: ders; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.modules li::before { content: counter(ders, decimal-leading-zero); font: 700 .8rem var(--mono); color: var(--ink-3); min-width: 2ch; }
.modules .m-title { flex: 1 1 260px; font-weight: 600; color: var(--ink); text-decoration: none; }
.modules .m-title:hover { color: var(--blue); }
.tag { font: 700 .66rem var(--mono); letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.ready { background: var(--surface-2); }
.tag-free { background: var(--green-soft); color: var(--green); }
.tag-premium { background: var(--blue-soft); color: var(--blue); }
.section-sm { margin: 28px 0; }

/* ---- premium ---- */
.premium-rozet { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: var(--radius-sm); font-size: .9rem; background: var(--blue-soft); color: var(--ink); }
.premium-rozet.is-free { background: var(--green-soft); }
.premium-rozet a { font-weight: 700; }
.premium-hata { border-left-color: var(--bad); background: var(--bad-soft); }
.anahtar-kutu code.anahtar { font-family: var(--mono); word-break: break-all; padding: 4px 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.satin-al { display: inline; margin: 0; }
.kilit-kutu { margin: 28px 0; border: 2px solid var(--blue); background: linear-gradient(180deg, var(--blue-soft), var(--surface) 70%); }
.kilit-kutu h2 { margin-top: 0; }
.kilit-kutu ul { margin: 10px 0 16px; padding-left: 0; list-style: none; }
.kilit-kutu li { padding: 4px 0; color: var(--ink-2); }
.kilit-kutu li::before { content: "🔒 "; }
.kilit-dugme { display: flex; flex-wrap: wrap; gap: 10px; }
.kilit-video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); filter: grayscale(.6) brightness(.6); background: var(--dark); }
.toc-kilit { opacity: .6; }
.toc-kilit::after { content: " 🔒"; }
.fiyat-kart { text-align: center; border: 2px solid var(--blue); }
.fiyat { margin: 6px 0; }
.fiyat b { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fiyat span { font-size: .95rem; }
.tikli { list-style: none; padding: 0; text-align: left; display: inline-block; }
.tikli li { padding: 4px 0 4px 26px; position: relative; }
.tikli li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.btn.is-disabled { opacity: .55; pointer-events: none; cursor: default; }
.acma-form, .belge-form { display: grid; gap: 10px; }
.acma-form input, .belge-form input, .belge-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.acma-form input#lisans { font-family: var(--mono); }
.panel-durum { margin: 18px 0; }
.panel-durum p { margin: 0 0 8px; }
.panel-kurslar { display: grid; gap: 12px; margin: 18px 0; }
.panel-kurs h3 { margin: 0 0 10px; font-size: 1.05rem; }
.panel-kurs.is-done { border-color: var(--green); }
.ilerleme { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ilerleme span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.belge-kart { margin: 24px 0; padding: 48px 36px; text-align: center; background: var(--surface); border: 6px double var(--blue); border-radius: var(--radius); }
.belge-kart h1 { margin: 8px 0 24px; }
.belge-marka { font: 700 .8rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.belge-kurs { font-size: 1.4rem; font-weight: 700; }
@media print {
  .belge-yazdir { display: none !important; }
  .belge-kart { border-color: #1660e8; box-shadow: none; }
}

/* Sanal avometre (assets/js/avometre.js) */
.avo-lab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; box-shadow: var(--shadow); }
.avo-devre svg { width: 100%; height: auto; display: block; color: var(--ink); }
.avo-nokta { cursor: pointer; outline: none; }
.avo-nokta:hover circle:nth-child(2), .avo-nokta:focus-visible circle:nth-child(2) { r: 10; }
.avo-cihaz { background: #f2c230; border-radius: 18px; padding: 14px; color: #1b1e23; display: grid; gap: 10px; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .15); }
.avo-lcd { background: #b9c9a6; border: 3px solid #2b2f36; border-radius: 8px; padding: 8px 12px; text-align: right; font: 700 2.2rem/1 var(--mono); color: #1b231a; min-height: 3rem; }
.avo-lcd.is-kapali { background: #8c977f; }
.avo-birim { font-size: 1.2rem; margin-left: 6px; }
.avo-kademe, .avo-soket, .avo-el { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.avo-cihaz button { font: 700 .86rem var(--font); padding: 7px 11px; border-radius: 8px; border: 2px solid #2b2f36; background: #2b2f36; color: #fff; cursor: pointer; }
.avo-cihaz button[aria-checked="true"], .avo-cihaz button[aria-pressed="true"] { background: #fff; color: #1b1e23; }
.avo-cihaz button.avo-kirmizi { border-color: #d42a1e; }
.avo-cihaz button.avo-kirmizi[aria-pressed="true"] { background: #d42a1e; color: #fff; }
.avo-cihaz button.btn-danger { background: #c0261a; border-color: #c0261a; }
.avo-etiket { font-size: .84rem; font-weight: 700; width: 100%; }
.avo-not { font-size: .8rem; }
.avo-uyari { margin: 0; min-height: 1.2em; font-size: .9rem; font-weight: 600; }
.avo-uyari.is-tehlike { background: #fff; color: #c0261a; padding: 6px 8px; border-radius: 6px; }
.avo-gorevler { grid-column: 1 / -1; font-size: .92rem; }
.avo-gorev { margin: 6px 0 0; padding-left: 22px; }
.avo-gorev li.is-tamam { color: var(--green); }
.avo-gorev li.is-tamam::after { content: " ✓"; font-weight: 700; }
.kisaca { background: var(--blue-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; }
.kisaca b:first-child { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 760px) { .avo-lab { grid-template-columns: 1fr; } }

/* Konu deneyleri (assets/js/deney.js): temel kurslarda kaydırıcı ve düğmeli simülasyon */
.dn-lab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; box-shadow: var(--shadow); }
@media (max-width: 760px) { .dn-lab { grid-template-columns: 1fr; } }
.dn-cizim { position: sticky; top: 76px; }
.dn-cizim svg { width: 100%; height: auto; display: block; color: var(--ink); background: var(--bg); border-radius: var(--radius-sm); }
.dn-kontrol { display: grid; gap: 12px; min-width: 0; }
.dn-kaydir { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.dn-kaydir label { font-size: .92rem; }
.dn-kaydir output { font-family: var(--mono); font-size: .9rem; color: var(--blue); }
.dn-kaydir input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.dn-secim { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dn-secim > span { font-size: .92rem; margin-right: 4px; }
.dn-secim button, .dn-dugme { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.dn-secim button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.dn-dugme:hover, .dn-secim button:hover { border-color: var(--blue); }
.dn-dugme:disabled { opacity: .45; cursor: default; }
.dn-dugme.dn-kirmizi { border-color: var(--bad); color: var(--bad); }
.dn-satir { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dn-satir select { font: inherit; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.dn-okuma { display: grid; gap: 4px; margin: 0; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.dn-okuma div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.dn-okuma dd { margin: 0; font-family: var(--mono); font-weight: 600; text-align: right; }
.dn-uyari { margin: 0; font-size: .9rem; min-height: 1.2em; }
.dn-uyari.is-tehlike { color: var(--bad); font-weight: 600; }
.dn-not { margin: 0; font-size: .85rem; opacity: .8; }
.dn-gorev-bas { margin: 0 0 4px; font-weight: 700; font-size: .92rem; }
.dn-gorev { margin: 0; padding-left: 1.3em; font-size: .9rem; display: grid; gap: 4px; }
.dn-gorev li.is-tamam { color: var(--green); }
.dn-gorev li.is-tamam::after { content: " ✓"; font-weight: 700; }
.dn-sira { margin: 0; padding-left: 1.3em; font-size: .9rem; color: var(--green); }
.dn-havuz { display: grid; gap: 6px; }
.dn-kayit { margin: 0; padding-left: 1.1em; font-size: .88rem; display: grid; gap: 3px; }
/* çizim parçaları */
.dn-yazi { font: 600 13px var(--font); fill: currentColor; }
.dn-kucuk { font: 11px var(--font); fill: currentColor; }
.dn-yazi-acik { font: 700 15px var(--font); fill: #fff; }
.dn-kucuk-acik { font: 11px var(--font); fill: #fff; }
.dn-buyuk { font: 700 34px var(--font); fill: var(--amber); }
.dn-tel { stroke: var(--wire); stroke-width: 3; fill: none; stroke-linecap: round; }
.dn-tel.dn-akim, .dn-tel.is-akim, .dn-tel-bk.is-akim { stroke: var(--amber); }
.dn-tel-bn { stroke: #8a5a2b; stroke-width: 3; }
.dn-tel-bu { stroke: #2f6fd6; stroke-width: 3; }
.dn-tel-bk { stroke: var(--ink); stroke-width: 3; fill: none; }
.dn-tel-ic { stroke: #fff; stroke-width: 2.5; }
.dn-kopuk { stroke: var(--bad); stroke-width: 3; fill: none; }
.dn-govde { fill: #3a4558; stroke: #273142; }
.dn-govde-acik { fill: var(--surface); stroke: var(--wire); stroke-width: 1.5; }
.dn-direnc { fill: #d9b98a; stroke: #7a5a2e; }
.dn-led { fill: #556070; stroke: #273142; }
.dn-led.is-yanik { fill: #ffb020; }
.dn-led.is-yesil { fill: var(--on); }
.dn-cisim { fill: var(--amber); }
.dn-ray-arti { stroke: var(--bad); stroke-width: 3; }
.dn-ray-eksi { stroke: #2f6fd6; stroke-width: 3; }
.dn-kol { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.dn-kilit { fill: var(--bad); }
.dn-kilit-halka { fill: none; stroke: var(--bad); stroke-width: 3; }
.dn-bara { stroke: var(--wire); stroke-width: 5; stroke-linecap: round; }
.dn-bara.is-canli { stroke: var(--bad); }
.dn-olcer { fill: #f2c230; stroke: #8a6a00; }
.dn-toprak { stroke: #17924a; stroke-width: 3; fill: none; }
.dn-ortu { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 2; }
.dn-komsu { fill: var(--bad-soft); stroke: var(--bad); stroke-dasharray: 4 3; }
.dn-bobin { fill: var(--surface); stroke: var(--wire); stroke-width: 2; }
.dn-bobin.is-enerjili { fill: var(--blue-soft); stroke: var(--blue); }
.dn-diyot { fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.dn-nokta { fill: var(--ink); }
.dn-lamba { fill: var(--surface); stroke: var(--wire); stroke-width: 2; }
.dn-lamba.is-yanik { fill: #ffd34d; stroke: #b48700; }
.dn-grafik { fill: var(--surface); stroke: var(--line); }
.dn-eksen { stroke: var(--wire); stroke-width: 1.5; }
.dn-izgara { stroke: var(--line); stroke-width: 1; }
.dn-egri { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.dn-egri.is-ikinci { stroke: var(--amber); }
.dn-isaret { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dn-isaret-kalin { stroke: var(--bad); stroke-width: 3; fill: none; stroke-linecap: round; }
.dn-disli { fill: #9aa6b8; stroke: #4b5567; stroke-width: 1.5; }
.dn-mil { fill: #4b5567; }
.dn-dis-bilezik, .dn-ic-bilezik { fill: none; stroke: #8792a5; stroke-width: 12; }
.dn-bilya { fill: #c9d1dd; stroke: #4b5567; }
.dn-yuk { stroke: var(--bad); }
.dn-yuk-uc { fill: var(--bad); }
.dn-dolu { fill: var(--amber); }
.dn-dolu.is-iyi { fill: var(--on); }
.dn-dolu.is-kotu { fill: var(--bad); }
.dn-piston { fill: #4b5567; }
.dn-mil-cubuk { fill: #9aa6b8; stroke: #4b5567; }
.dn-yay { fill: none; stroke: var(--ink); stroke-width: 2; }
.dn-hortum { stroke: var(--blue); stroke-width: 3; fill: none; }
.dn-tank { fill: var(--amber-soft); stroke: var(--amber); }
.dn-yag { stroke: var(--amber); fill: none; stroke-linecap: round; }
.dn-bant { fill: var(--on-soft); }
.dn-nokta-vurgu { fill: var(--bad); stroke: #fff; stroke-width: 2; }
.dn-kod { width: 100%; min-height: 190px; font: .86rem/1.45 var(--mono); padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.dn-hizli { fill: none; stroke: var(--wire); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dn-kesim { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dn-kesim.is-hata { stroke: var(--bad); }
.dn-takim { fill: var(--amber); stroke: #fff; stroke-width: 1.5; }
.dn-parca { fill: #d9dee6; stroke: #8792a5; }
.dn-pano { fill: #c9d1dd; stroke: #4b5567; stroke-width: 2; }
.dn-sicak { stroke: var(--bad); stroke-width: 2; fill: none; stroke-linecap: round; }
.dn-soguk { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; }
