/* ADB Denizcilik — Amatör Denizci Belgesi çalışma sitesi
   Layout: deniz haritası dili — açık su tonu zemin, lacivert mürekkep, iskele kırmızı / sancak yeşil
   sadece anlamlı yerlerde; içerik ~720px sütun, şekiller 960px'e taşabilir. */

:root {
  --paper: #F5F8F9;
  --card: #FFFFFF;
  --sea: #E1EEF5;
  --sea-2: #C7DFEC;
  --land: #F0E4C3;
  --ink: #0F2436;
  --ink-2: #33495C;
  --muted: #5F7282;
  --line: #D3DEE5;
  --accent: #0A5C8A;
  --accent-ink: #FFFFFF;
  --accent-soft: #D6E9F4;
  --port: #C8202F;
  --stbd: #11824A;
  --yellow: #E3AE00;
  --buoy-black: #1B1F24;
  --white: #FFFFFF;
  --good: #11824A;
  --bad: #C8202F;
  --warn: #B86E00;
  --good-soft: #DDF2E6;
  --bad-soft: #F9DFE1;
  --warn-soft: #FBEBCF;
  --night: #07121C;
  --glow-white: #FFF6D8;
  --glow-red: #FF3B3B;
  --glow-green: #2BFF88;
  --glow-yellow: #FFD23B;
  --glow-blue: #5AA8FF;
  --mag: #B0287A;
  --shadow: 0 1px 2px rgba(15,36,54,.06), 0 6px 20px rgba(15,36,54,.06);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --col: 58rem;
  --wide: 62rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1520; --card: #0F1F2D; --sea: #10283A; --sea-2: #173650; --land: #3B3321;
    --ink: #E3ECF2; --ink-2: #C0CFDA; --muted: #8FA3B3; --line: #223A4D;
    --accent: #5DB4E8; --accent-ink: #06121C; --accent-soft: #143650;
    --mag: #F06ABF; --port: #FF5C66; --stbd: #3DD68C; --yellow: #F2C230; --buoy-black: #0B0D10; --white: #F4F7F9;
    --good: #3DD68C; --bad: #FF6B74; --warn: #F2A93B;
    --good-soft: #123527; --bad-soft: #3A1A1F; --warn-soft: #3A2A12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1520; --card: #0F1F2D; --sea: #10283A; --sea-2: #173650; --land: #3B3321;
  --ink: #E3ECF2; --ink-2: #C0CFDA; --muted: #8FA3B3; --line: #223A4D;
  --accent: #5DB4E8; --accent-ink: #06121C; --accent-soft: #143650;
  --mag: #F06ABF; --port: #FF5C66; --stbd: #3DD68C; --yellow: #F2C230; --buoy-black: #0B0D10; --white: #F4F7F9;
  --good: #3DD68C; --bad: #FF6B74; --warn: #F2A93B;
  --good-soft: #123527; --bad-soft: #3A1A1F; --warn-soft: #3A2A12;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.62;
}
img, svg, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 600; color: var(--accent); }
.muted { color: var(--muted); }
.mono, code, .code { font-family: var(--f-mono); font-size: .92em; }
.code { background: var(--sea); padding: .05em .4em; border-radius: 4px; white-space: nowrap; }
strong { font-weight: 600; }
.port { color: var(--port); font-weight: 600; }
.stbd { color: var(--stbd); font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar { max-width: 80rem; margin: 0 auto; padding: .55rem 16px; display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: .95rem; }
.head-nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.head-nav a, .head-nav button {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; padding: .4rem .7rem; border-radius: 8px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.head-nav a:hover, .head-nav button:hover { background: var(--sea); color: var(--ink); }
.head-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.modmenu { position: relative; }
.modmenu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); width: min(26rem, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .4rem; max-height: 75vh; overflow: auto;
}
.modmenu-panel a { display: flex; gap: .7rem; align-items: baseline; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.modmenu-panel a:hover { background: var(--sea); }
.modmenu-panel .no { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); width: 1.6rem; flex: none; }
.modmenu-panel .done::after { content: "✓"; color: var(--good); margin-left: auto; font-weight: 700; }
@media (max-width: 420px) {
  .site-head .bar { gap: .3rem; }
  .brand { font-size: 1.1rem; gap: .4rem; }
  .brand svg { width: 24px; height: 24px; }
  .head-nav { gap: 0; }
  .head-nav a, .head-nav button { padding: .4rem .34rem !important; font-size: .9rem; }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .head-nav .hide-sm { display: none; }
  .head-nav a, .head-nav button { padding: .4rem .5rem; }
}

/* ---------- Layout ---------- */
.page { padding-inline: 16px; padding-block: 0 5rem; }
.col { max-width: var(--col); margin-inline: auto; }
.wide { max-width: var(--wide); margin-inline: auto; }

.module-layout { max-width: 80rem; margin: 0 auto; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
.module-layout > main { min-width: 0; }
.toc { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 6rem); overflow: auto; padding-top: 2.5rem; font-size: .92rem; }
.toc .eyebrow { display: block; margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .3rem .8rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.toc li a.read::after { content: " ✓"; color: var(--good); }
.toc .toc-progress { margin-top: 1.1rem; display: grid; gap: .75rem; font-size: .8rem; color: var(--muted); }
.tp-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .15rem .5rem; }
.tp-lbl { font-weight: 600; color: var(--ink-2); }
.tp-val { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
.tp-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tp-bar > span { display: block; height: 100%; background: var(--good); border-radius: 2px; transition: width .3s; }
.tp-sub { grid-column: 1 / -1; font-size: .76rem; }
@media (max-width: 1000px) {
  .module-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}

/* ---------- Module hero ---------- */
.module-hero { max-width: var(--col); margin: 0 auto; padding-block: 3rem 1.5rem; display: grid; gap: .9rem; }
.module-hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 48rem; }
.module-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; padding: .2rem .65rem; border-radius: 99px; background: var(--sea); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--ink); }

/* ---------- Content flow ---------- */
.lesson { max-width: var(--col); margin: 0 auto; padding-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.lesson + .lesson { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.lesson > h2 { padding-top: .2rem; }
.lesson > h2 .sec-no { font-family: var(--f-mono); font-size: .9rem; color: var(--muted); font-weight: 500; display: block; margin-bottom: .35rem; letter-spacing: 0; }
.lesson h3 { margin-top: .8rem; }
.lesson ul, .lesson ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.lesson li::marker { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--ink-2); }

.goals { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; gap: .6rem; }
.goals h3 { font-size: 1.1rem; margin: 0; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.goals ul { list-style: none; padding: 0; }
.goals li { padding-left: 1.6rem; position: relative; }
.goals li::before { content: ""; position: absolute; left: 0; top: .45em; width: .85rem; height: .85rem; border: 2px solid var(--accent); border-radius: 50%; }

/* term lists */
dl.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .6rem; }
dl.terms > div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; min-width: 0; }
dl.terms dt { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
dl.terms dt small { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: .3rem; }
dl.terms dd { margin: .2rem 0 0; font-size: .95rem; color: var(--ink-2); }

/* callouts */
.note { border-radius: var(--radius); padding: .95rem 1.1rem .95rem 1.1rem; display: grid; gap: .4rem; background: var(--sea); border: 1px solid transparent; }
.note::before { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; }
.note.tip::before { content: "İpucu"; color: var(--accent); }
.note.memory { background: var(--accent-soft); }
.note.memory::before { content: "Aklında kalsın"; color: var(--accent); }
.note.exam { background: var(--warn-soft); }
.note.exam::before { content: "Sınavda dikkat"; color: var(--warn); }
.note.warn { background: var(--bad-soft); }
.note.warn::before { content: "Güvenlik"; color: var(--bad); }
.note.sea { background: var(--card); border-color: var(--line); }
.note.sea::before { content: "Denizde uygulama"; color: var(--stbd); }
.note.scenario { background: var(--card); border-color: var(--line); border-left: 4px solid var(--accent); border-radius: 4px var(--radius) var(--radius) 4px; }
.note.scenario::before { content: "Senaryo"; color: var(--accent); }
.note[data-label]::before { content: attr(data-label); }
.note > :is(ul,ol) { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-display); font-size: 1rem; letter-spacing: .03em; background: var(--sea); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* figures */
figure { margin: 0; display: grid; gap: .5rem; }
main { container-type: inline-size; container-name: main; }
/* şekiller, animasyonlar ve etkileşimli bölümler yazı sütunuyla aynı genişlikte */
figure.diagram, figure.video, .widget { --w: 100%; width: 100%; max-width: none; }
figure.diagram.narrow, figure.video.narrow, .widget.narrow, .grid-2 figure, .grid-3 figure, .card figure { --w: 100%; }
figure.diagram > svg, figure.diagram > .svg-wrap > svg { display: block; width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
figure.diagram.bare > svg { background: none; border: 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); display: block; background: var(--white); }
.svg-hint { display: none; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  figure.diagram > .svg-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
  figure.diagram > .svg-wrap > svg { min-width: var(--svg-min, 600px); }
  .svg-hint { display: block; }
}
figcaption { font-size: .88rem; color: var(--muted); max-width: var(--col); justify-self: center; width: 100%; }
figcaption b { color: var(--ink-2); }
.video-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; background: #000; }
.video-tools { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.video-tools .vlabel { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin-right: auto; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: .15rem .65rem; font-size: .82rem; cursor: pointer; color: var(--ink-2); }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* svg helper classes (use on shapes inside inline SVG) */
.f-ink { fill: var(--ink); } .f-ink2 { fill: var(--ink-2); } .f-muted { fill: var(--muted); } .f-paper { fill: var(--paper); } .f-card { fill: var(--card); }
.f-sea { fill: var(--sea); } .f-sea2 { fill: var(--sea-2); } .f-land { fill: var(--land); } .f-accent { fill: var(--accent); } .f-line { fill: var(--line); }
.f-mag { fill: var(--mag); } .s-mag { stroke: var(--mag); }
.f-port { fill: var(--port); } .f-stbd { fill: var(--stbd); } .f-yellow { fill: var(--yellow); } .f-black { fill: var(--buoy-black); } .f-white { fill: #FFFFFF; } .f-none { fill: none; }
.s-ink { stroke: var(--ink); } .s-ink2 { stroke: var(--ink-2); } .s-muted { stroke: var(--muted); } .s-line { stroke: var(--line); } .s-accent { stroke: var(--accent); }
.s-port { stroke: var(--port); } .s-stbd { stroke: var(--stbd); } .s-yellow { stroke: var(--yellow); } .s-black { stroke: var(--buoy-black); } .s-card { stroke: var(--card); } .s-paper { stroke: var(--paper); } .s-sea2 { stroke: var(--sea-2); }
svg text { font-family: var(--f-body); fill: var(--ink); }
svg text.lbl { font-size: 13px; fill: var(--ink-2); }
svg text.lbl-sm { font-size: 11px; fill: var(--muted); }
svg text.lbl-b { font-size: 14px; font-weight: 600; fill: var(--ink); }
svg text.disp { font-family: var(--f-display); font-weight: 700; }
svg .hot { cursor: pointer; }
svg .hot:hover, svg .hot.on { filter: drop-shadow(0 0 4px var(--accent)); }

/* layout helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .45rem; align-content: start; }
.card h4 { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 8px; padding: .6rem 1.05rem; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { padding: .35rem .7rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Quick check (inline retrieval practice) ---------- */
.check { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .7rem; }
.check::before { content: "Hızlı kontrol"; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; color: var(--accent); }
.check .q { font-weight: 600; }
.check ol, .quiz-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.opt { width: 100%; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .8rem; cursor: pointer; display: flex; gap: .7rem; align-items: baseline; line-height: 1.4; }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt .k { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); flex: none; }
.opt.correct { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt:disabled { cursor: default; }
.check .why, .quiz-card .why { font-size: .95rem; border-top: 1px dashed var(--line); padding-top: .6rem; color: var(--ink-2); }
.why .verdict { font-weight: 700; margin-right: .35rem; }
.why .verdict.ok { color: var(--good); } .why .verdict.no { color: var(--bad); }

/* reveal */
.reveal { display: grid; gap: .5rem; }
.reveal > .answer { background: var(--sea); border-radius: 8px; padding: .7rem .9rem; }

/* tabs */
.tabs { display: grid; gap: .8rem; }
.tablist { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.tablist button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: .3rem .85rem; cursor: pointer; font-size: .92rem; }
.tablist button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs > section { display: grid; gap: .8rem; }

/* steps (reveal one by one) */
.steps { display: grid; gap: .6rem; }
.steps > ol { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.steps > ol > li { counter-increment: st; position: relative; padding: .7rem .9rem .7rem 3.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.steps > ol > li::before { content: counter(st); position: absolute; left: .8rem; top: .65rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-size: .85rem; display: grid; place-items: center; font-weight: 600; }
.steps.js-steps > ol > li.pending { display: none; }

/* summary / cheat sheet */
.summary { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: .8rem; }
.summary h2, .summary h3, .summary strong { color: var(--paper); }
.summary ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.summary li::marker { color: var(--yellow); }
.summary .code { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }

/* ---------- Quiz (module quiz + exam) ---------- */
.quiz { display: grid; gap: 1rem; }
.quiz-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; flex: 1 1 10rem; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; display: grid; gap: .9rem; box-shadow: var(--shadow); }
.quiz-card .qnum { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.quiz-card .q { font-size: 1.08rem; font-weight: 600; }
.quiz-card .qfig svg { max-width: 100%; height: auto; display: block; margin: 0 auto; max-height: 260px; }
.score-big { font-family: var(--f-display); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.result-list { display: grid; gap: .5rem; }
.result-item { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; background: var(--card); font-size: .93rem; display: grid; gap: .25rem; }
.result-item.no { border-left: 4px solid var(--bad); }
.result-item.ok { border-left: 4px solid var(--good); }

/* ---------- Flashcards ---------- */
.flash { display: grid; gap: .8rem; justify-items: center; }
.flash-card { width: min(34rem, 100%); aspect-ratio: 3 / 2; perspective: 1200px; cursor: pointer; border: 0; background: none; padding: 0; }
.flash-inner { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.flash-card.flipped .flash-inner { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 1.3rem; text-align: center; box-shadow: var(--shadow); overflow: auto; }
.flash-face.front { font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; }
.flash-face.back { transform: rotateY(180deg); font-size: 1.02rem; background: var(--sea); line-height: 1.5; }
.flash-face svg { display: block; width: min(26rem, 88%); height: auto; max-height: 170px; }
.flash-face .hint { position: absolute; bottom: .6rem; left: 0; right: 0; font-family: var(--f-body); font-size: .75rem; font-weight: 400; color: var(--muted); }
.flash-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.leitner { display: flex; gap: .35rem; }
.leitner span { width: 2.2rem; text-align: center; font-family: var(--f-mono); font-size: .75rem; padding: .2rem 0; border-radius: 4px; background: var(--sea); }

/* ---------- Module end / nav ---------- */
.module-end { max-width: var(--col); margin: 3rem auto 0; display: grid; gap: 1rem; }
.next-prev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.next-prev a strong { overflow-wrap: anywhere; }
.next-prev a { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); display: grid; gap: .15rem; }
.next-prev a:hover { border-color: var(--accent); }
.next-prev a small { color: var(--muted); font-size: .8rem; }
.next-prev a.next { text-align: right; grid-column: 2; }
.next-prev strong { font-family: var(--f-display); font-size: 1.2rem; }
.done-btn[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- Widgets common ---------- */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .8rem; }
.widget-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.widget-title::before { content: "Etkileşimli"; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: .12rem .5rem; border-radius: 4px; font-family: var(--f-body); font-weight: 600; }
.widget .controls { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.widget label { font-size: .9rem; color: var(--ink-2); display: inline-flex; gap: .4rem; align-items: center; }
.widget select, .widget input[type="number"], .widget input[type="text"] { font: inherit; font-size: .95rem; padding: .35rem .5rem; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.widget input[type="range"] { accent-color: var(--accent); }
.widget .stage { border-radius: 8px; overflow: hidden; background: var(--sea); }
.widget .stage.night { background: var(--night); }
.widget .feedback { font-size: .95rem; padding: .6rem .8rem; border-radius: 8px; background: var(--sea); }
.widget .feedback.ok { background: var(--good-soft); } .widget .feedback.no { background: var(--bad-soft); }
.widget .readout { font-family: var(--f-mono); font-size: .95rem; }

/* ---------- Home ---------- */
.home-hero { max-width: var(--wide); margin: 0 auto; padding-block: 3rem 1rem; display: grid; gap: 1rem; }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: none; }
.home-hero .lead { font-size: 1.2rem; max-width: 42rem; }
.route-chart { max-width: var(--wide); margin: 1rem auto 0; }
.route-chart svg { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.route-chart a text { font-family: var(--f-display); font-weight: 600; }
.route-chart a:hover circle.wp, .route-chart a:focus circle.wp { stroke-width: 4; }
.mod-grid { max-width: var(--wide); margin: 2rem auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .8rem; }
.mod-card { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: start; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.mod-card:hover { border-color: var(--accent); }
.mod-card .no { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .85rem; border: 2px solid var(--accent); color: var(--accent); font-weight: 600; }
.mod-card.done .no { background: var(--good); border-color: var(--good); color: #fff; }
.mod-card strong { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; }
.mod-card span.d { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.mod-card .score { grid-column: 2; font-size: .78rem; color: var(--ink-2); }
.method { max-width: var(--wide); margin: 3rem auto 0; display: grid; gap: 1rem; }
.method-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.method-steps > * { grid-column: span 2; }
.method-steps > :nth-child(4), .method-steps > :nth-child(5) { grid-column: span 3; }
@media (max-width: 760px) { .method-steps { grid-template-columns: minmax(0, 1fr); } .method-steps > *, .method-steps > :nth-child(4), .method-steps > :nth-child(5) { grid-column: auto; } }
.method-steps .card b { font-family: var(--f-display); font-size: 1.2rem; }
.stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.4rem; font-size: .95rem; color: var(--ink-2); }
.stats b { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); margin-right: .25rem; }
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.5rem 16px 2.5rem; font-size: .85rem; color: var(--muted); }
.site-foot .col { display: grid; gap: .4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .toc, .module-end, .quiz, .flash, video { display: none !important; }
}

/* hata bildir */
.report-link { font-size: .88rem; color: var(--muted); text-decoration: underline; text-decoration-style: dotted; }
.report-link:hover { color: var(--accent); }
.report-link.small { font-size: .8rem; justify-self: end; }
.quiz-card .report-link.small { order: 99; }

/* ana sayfa: hesap / senkron uyarısı */
.acct-alert { max-width: var(--wide); margin: 1.25rem auto .2rem; display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center; padding: .85rem 1rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent); border-left-width: 5px; color: var(--ink); font-size: .96rem; line-height: 1.45; }
.acct-alert[hidden] { display: none; }
.acct-alert .ico { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct-alert .txt b { font-weight: 600; }
.acct-alert .act { white-space: nowrap; }
.acct-alert.ok { background: var(--good-soft); border-color: var(--good, #1d7a4a); }
.acct-alert.ok .ico { stroke: var(--good, #1d7a4a); }
@media (max-width: 640px) {
  .acct-alert { grid-template-columns: auto 1fr; }
  .acct-alert .act { grid-column: 2; grid-row: 2; }
}

/* bağ adımları: her adım ayrı kart, ekrana göre 2 veya 3 sütun */
.knot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .5rem; }
.knot-grid svg { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .knot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* çerez izni bandı */
.consent-bar { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(44rem, calc(100vw - 24px)); display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; padding: .8rem 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .92rem; line-height: 1.45; }
.consent-bar p { margin: 0; flex: 1 1 22rem; }
.consent-bar p b { margin-right: .35rem; }
.consent-act { display: flex; gap: .5rem; margin-left: auto; }

/* sekme seçimlerinin animasyon üstündeki kopyası */
.tab-mirror { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: .4rem; padding: .55rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tab-mirror-label { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--muted); letter-spacing: .02em; }
.tablist.mirror { border-bottom: 0; padding-bottom: 0; }
.tablist button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* etkileşimli alıştırma kutuları: soru, seçenekler, geri bildirim ve skor arasında boşluk */
.pm-out:not([hidden]), .bf-quiz:not([hidden]), .bf-qin, .pm-qin, .as-qbox:not([hidden]) { display: grid; gap: .6rem; min-width: 0; }
.pm-out:empty, .as-qbox:empty { display: none; }

/* paylaş satırı */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.share-row .share-label { font-size: .88rem; color: var(--muted); margin-right: .2rem; }
.module-end .share-row { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); }

/* alıştırma turu: ilerleme çubuğu + tur sonu özeti */
.round-host { position: relative; }
.round-bar { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--ink-2); font-family: var(--f-mono); }
.round-track { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 4rem; }
.round-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.round-panel { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(2px); border-radius: var(--radius); }
.round-panel[hidden] { display: none; }
.round-card { width: min(28rem, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; display: grid; gap: .7rem; text-align: center; }
.round-big { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.round-verdict { margin: 0; }
.round-wrong { text-align: left; font-size: .92rem; }
.round-wrong ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; max-height: 9rem; overflow: auto; }
.round-card .btn-row { justify-content: center; }
.round-over > :not(.round-panel):not(.round-bar) { pointer-events: none; }
.round-bar[hidden] { display: none; }
.round-host > .round-bar { grid-column: 1 / -1; flex-basis: 100%; width: 100%; }

/* hızlı kontrol: kayıtlı cevap */
.check .check-again { justify-self: start; }
.check .check-again[hidden] { display: none; }

/* okuma çubuğu + dar ekranda "şu an okunan bölüm" */
.read-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 0 2px 2px 0; }
.read-now { display: none; }
@media (max-width: 1000px) {
  html:has(.read-now) { scroll-padding-top: 7rem; }
  .read-now { display: block; border-top: 1px solid var(--line); position: relative; }
  .read-now > button { display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 80rem; margin: 0 auto; padding: .4rem 16px; background: none; border: 0; font: inherit; font-size: .85rem; color: var(--ink-2); text-align: left; cursor: pointer; }
  .read-now .rn-no { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); font-weight: 600; }
  .read-now .rn-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
  .read-now .rn-pct { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
  .read-now .rn-ch { color: var(--muted); font-size: .8rem; }
  .read-list { position: absolute; left: 0; right: 0; top: 100%; max-height: min(70vh, 34rem); overflow: auto; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .read-list[hidden] { display: none; }
  .read-list ol { list-style: none; margin: 0 auto; padding: .4rem 0; max-width: 80rem; }
  .read-list a { display: flex; gap: .6rem; padding: .5rem 16px; color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.35; }
  .read-list a span { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); min-width: 2.2rem; padding-top: .1rem; }
  .read-list a.active { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--accent) 8%, transparent); }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* sözlük/aramadan gelen terim vurgusu */
dl.terms > div:has(dt:target) { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; box-shadow: 0 0 0 .5rem color-mix(in srgb, var(--accent) 8%, transparent); }
dl.terms dt { scroll-margin-top: 7rem; }

/* site içi arama */
.head-nav .search-btn { display: inline-grid; place-items: center; padding: .4rem .55rem; }
.head-nav .search-btn svg { width: 1.05rem; height: 1.05rem; display: block; }
.modmenu-panel a.modmenu-extra { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .55rem; }
html.srch-open { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--ink) 35%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: max(8vh, env(safe-area-inset-top, 0px)) 12px 12px; }
.srch[hidden] { display: none; }
.srch-panel { width: min(44rem, 100%); max-height: min(80vh, 44rem); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.srch-top { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.srch-top svg { width: 1.2rem; height: 1.2rem; color: var(--muted); flex: none; }
.srch-in { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; border: 0; background: none; color: var(--ink); outline: none; padding: .3rem 0; }
.srch-in::-webkit-search-cancel-button { display: none; }
.srch-x { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); background: var(--sea); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .45rem; cursor: pointer; }
.srch-out { overflow: auto; padding: .3rem .5rem .6rem; overscroll-behavior: contain; }
.srch-out h3 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: .8rem .5rem .3rem; font-family: var(--f-mono); }
.srch-out h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: .3rem; }
.srch-it { display: grid; gap: .15rem; padding: .55rem .6rem; border-radius: 9px; text-decoration: none; color: var(--ink-2); }
.srch-it:hover, .srch-it.on { background: var(--sea); }
.srch-it.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.srch-tt { font-weight: 600; color: var(--ink); }
.srch-tt small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.srch-no { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); margin-right: .15rem; }
.srch-sn { font-size: .88rem; line-height: 1.45; }
.srch-where { font-size: .75rem; color: var(--muted); }
.srch mark { background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.srch-hint { padding: 1rem .6rem; color: var(--muted); font-size: .92rem; }
.srch-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.srch-foot kbd { font-family: var(--f-mono); font-size: .7rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; margin-right: .15rem; background: var(--sea); }
@media (max-width: 600px) { .srch { padding: 0; } .srch-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; width: 100%; } .srch-foot span { display: none; } }

@media (max-width: 400px) { .brand .brand-t { display: none; } .head-nav .search-btn { padding: .4rem .4rem !important; } }
@media (max-width: 900px) { .brand small { display: none; } }
@media (max-width: 380px) { .head-nav a, .head-nav button { padding: .35rem .3rem !important; font-size: .84rem; } .site-head .bar { padding-inline: 10px; } }
@media (max-width: 640px) { .head-nav .theme-btn { display: none; } .brand .brand-t { display: none; } }
.acct-link .acct-i { display: none; width: 1.15rem; height: 1.15rem; vertical-align: -.2rem; }
@media (max-width: 480px) { .acct-link .acct-i { display: inline-block; } .acct-link .acct-t { display: none; } }
@media (max-width: 360px) { .head-nav a, .head-nav button { padding: .35rem .2rem !important; font-size: .78rem; } .site-head .bar { padding-inline: 8px; gap: .2rem; } .brand svg { width: 22px; height: 22px; } }

/* ---------- COLREG gezgini ---------- */
.cg-jump { display: grid; gap: .35rem; margin: .5rem 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cg-jump label { font-weight: 600; }
.cg-jump div { display: flex; gap: .5rem; }
.cg-jump input { width: 8rem; font: inherit; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cg-jump-msg { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.cg-group { margin-top: 2rem; }
.cg-group > h2 { font-size: 1.35rem; margin: 0 0 .4rem; padding-bottom: .3rem; border-bottom: 2px solid var(--line); }
.cg-part { margin-top: 1rem; scroll-margin-top: 5rem; }
.cg-part h3 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.cg-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.cg-card { display: grid; gap: .25rem; align-content: start; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.cg-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.cg-card-no { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); font-weight: 600; }
.cg-card-t { font-weight: 700; color: var(--ink); display: flex; gap: .45rem; align-items: baseline; flex-wrap: wrap; }
.cg-card-g { font-size: .88rem; line-height: 1.45; }
.cg-dot { font-family: var(--f-mono); font-size: .65rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 .4rem; }
.cg-part-soon h3 { color: var(--muted); }
.cg-soon-line { font-size: .9rem; margin: 0; }
.cg-src { font-size: .82rem; color: var(--muted); margin-top: 2rem; }
.cg-rule { padding-top: 1.5rem; }
.cg-crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; }
.cg-crumbs a { color: var(--muted); }
.cg-head { margin: 1rem 0 1.2rem; display: grid; gap: .3rem; }
.cg-no { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.cg-head h1 { margin: 0; }
.cg-en { margin: 0; color: var(--muted); font-size: .92rem; }
.cg-badges { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cg-badge { font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.cg-badge:hover { text-decoration: underline; }
.cg-gist { border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: .8rem 1rem; }
.cg-gist b { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cg-gist p { margin: .25rem 0 0; font-size: 1.08rem; color: var(--ink); line-height: 1.5; }
.cg-official { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cg-official summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; }
.cg-official-body { padding: 0 1.1rem .4rem; font-family: var(--f-body); font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.cg-official-body ol { padding-left: 1.4rem; }
.cg-official .cg-src { margin: 0; padding: .5rem 1.1rem .8rem; border-top: 1px dashed var(--line); }
.cg-src-only { margin-top: .8rem; }
.cg-sec { margin-top: 1.8rem; }
.cg-sec > h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.cg-sec > p { margin: 0 0 .85rem; line-height: 1.65; }
.cg-two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.cg-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--card); }
.cg-box h2 { font-size: 1rem; margin: 0 0 .5rem; }
.cg-box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.cg-keys { border-top: 4px solid var(--good); }
.cg-traps { border-top: 4px solid var(--port); }
.cg-rel { display: flex; flex-wrap: wrap; gap: .45rem; }
.cg-rel a, .cg-rel span { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.cg-rel a:hover { border-color: var(--accent); color: var(--ink); }
.cg-rel b { font-family: var(--f-mono); color: var(--accent); margin-right: .2rem; }
.cg-rel .cg-soon { opacity: .6; }
.cg-np { margin-top: 2.2rem; }
.cg-note { font-size: .82rem; color: var(--muted); margin-top: 1.2rem; }
.cg-official summary small { font-weight: 400; color: var(--muted); margin-left: .4rem; }
.cg-official-body p { margin: 0 0 .55rem; }
.cg-official-body .cl { padding-left: 1.9rem; text-indent: -1.9rem; }
.cg-official-body .cl2 { padding-left: 3.7rem; text-indent: -1.8rem; }
.cg-official-body .cl-cont { padding-left: 1.9rem; }
.cg-official-body b { display: inline-block; min-width: 1.9rem; text-indent: 0; font-family: var(--f-mono); font-size: .85em; color: var(--accent); font-weight: 600; }
.cg-official-body .cl2 b { min-width: 1.8rem; }
.cg-official-body .cl-empty { margin-bottom: .2rem; }
.head-nav .search-btn { flex: none; }
.head-nav .search-btn svg { flex: none; min-width: 1.05rem; }
@media (max-width: 340px) { .site-head .bar { gap: .1rem; padding-inline: 6px; } }
.widget > *, figure.diagram > * { min-width: 0; }
.summary > * { min-width: 0; }
.summary .code { white-space: normal; }

/* COLREG gezgini: durum bulucu, işaretler, tablolar */
.cg-finder { margin: 1.2rem 0 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: .65rem; }
.cg-finder h2 { margin: 0; font-size: 1.25rem; }
.cg-finder > p { margin: 0; font-size: .9rem; }
.df-q { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.df-q[hidden] { display: none; }
.df-q > span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); min-width: 6.2rem; }
.df-q button { font: inherit; font-size: .88rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.df-q button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.df-out { margin-top: .3rem; padding: .9rem 1rem; border-radius: var(--radius); border-left: 5px solid var(--line); background: var(--paper); display: grid; gap: .5rem; }
.df-out ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.df-verdict { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.df-give { border-left-color: var(--port); }
.df-stand { border-left-color: var(--good); }
.df-both { border-left-color: var(--accent); }
@media (max-width: 560px) { .df-q > span { min-width: 100%; } }
.cg-sigs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.cg-sig { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: .8rem; display: grid; gap: .5rem; align-content: start; }
.cg-sig-pics { display: flex; gap: .6rem; justify-content: center; align-items: flex-start; }
.cg-sig-pics figure { margin: 0; display: grid; gap: .2rem; justify-items: center; }
.cg-sig-pics svg { width: 64px; height: auto; display: block; }
.cg-sig-pics figcaption { font-size: .72rem; color: var(--muted); font-family: var(--f-mono); }
.cg-sig p { margin: 0; font-size: .9rem; text-align: center; }
.cg-sig-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.cg-fig svg { max-width: 420px; margin: 0 auto; display: block; }
.cg-tbl { margin: .4rem 0 .9rem; }
.cg-tbl table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cg-tbl th, .cg-tbl td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cg-tbl thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cg-list { margin: 0 0 .85rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.cg-official-body .cl-num { margin-top: .9rem; font-weight: 600; color: var(--ink); }
.cg-official-body .cl-li { padding-left: 3.2rem; position: relative; }
.cg-official-body .cl-li::before { content: "–"; position: absolute; left: 2.2rem; color: var(--muted); }
.cg-official-body .cg-formula { font-family: var(--f-mono); font-size: 1rem; padding: .5rem 0 .5rem 1.9rem; color: var(--ink); }
.cg-head { min-width: 0; }
.cg-head h1 { font-size: clamp(1.65rem, 7.2vw, 3.1rem); overflow-wrap: anywhere; hyphens: auto; }
