/* Tutorial pages and their index. Uses tokens.css. */
body.site { background: var(--white); }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ---------- Home hub */
.hub-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.hub-hero h1 { font-size: 2.6rem; max-width: 22ch; }
.hub-hero p { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hub-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; background: var(--white); box-shadow: var(--lift); transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,33,61,.08), 0 14px 28px rgba(20,33,61,.12); }
.hub-card .num { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; }
.hub-card h2 { margin: 0; }
.hub-card p { color: var(--muted); margin: 0; }
.hub-card ul { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--ink); font-size: .95rem; }
.hub-card .go { margin-top: auto; font-weight: 700; color: var(--lale); }
.hub-order { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--amber-soft); border-radius: var(--r-md); color: var(--amber-ink); }
.engine-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.engine-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1.5px solid var(--ec); color: var(--ink);
  text-decoration: none; font-size: .9rem; font-weight: 600; }
.engine-chip::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ec); }

/* ---------- E2E index */
.e2e-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: e2e; }
.e2e-list a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line);
  border-left: 6px solid var(--ec); border-radius: var(--r-md); text-decoration: none; background: var(--white); }
.e2e-list a:hover { box-shadow: var(--lift); }
.e2e-list .n { font: 700 1.4rem var(--mono); color: var(--ec); }
.e2e-list h3 { margin: 0 0 .15rem; }
.e2e-list p { margin: 0; color: var(--muted); }
.e2e-list .meta { font-size: .85rem; color: var(--muted); text-align: right; }
.e2e-list .done-mark { color: var(--ok); font-weight: 700; }

/* ---------- E2E lesson: one reading column, a table of contents at the left */
.lesson-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.toc { position: sticky; top: 1rem; align-self: start; font-size: .9rem; max-height: calc(100vh - 2rem); overflow: auto; }
.toc p { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem .75rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a.on { color: var(--ink); border-left-color: var(--ec); font-weight: 600; }
.toc .score { margin-top: 1rem; padding: .6rem .75rem; background: var(--paper); border-radius: var(--r-sm); }
.lesson { max-width: 76ch; font-size: 1.05rem; line-height: 1.65; }
.lesson-head { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.lesson-head .kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white);
  background: var(--ec); padding: .15rem .55rem; border-radius: 3px; }
.lesson-head h1 { font-size: 2.4rem; margin: .6rem 0 .5rem; }
.lesson-head .question { font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.lesson-head .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .9rem; }
.lesson h2 { font-size: 1.6rem; margin: 3rem 0 .75rem; padding-top: .5rem; scroll-margin-top: 1rem; }
.lesson h2 .sec { font: 600 .85rem var(--mono); color: var(--ec); display: block; margin-bottom: .2rem; }
.lesson h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.lesson p, .lesson li { max-width: 72ch; }
.lesson ul, .lesson ol { padding-left: 1.3rem; }
.lesson li { margin-bottom: .3rem; }
.lesson code { font: .9em var(--mono); background: var(--paper); padding: .05rem .3rem; border-radius: 3px; }
.lesson pre { font: .86rem/1.5 var(--mono); background: #0F172A; color: #E2E8F0; padding: 1rem 1.1rem; border-radius: var(--r-md); overflow: auto; }
.lesson pre code { background: none; padding: 0; color: inherit; }
.lesson pre .c { color: #94A3B8; }
.lesson dfn { font-style: normal; font-weight: 700; border-bottom: 2px solid var(--ec); }
.lesson a { color: var(--iznik); }

/* Default prose tables (owner, 2026-11-08: tables without outline were hard to read).
   Every prose table in the lesson gets an outline, a shaded header, zebra rows and a caption that reads as a title.
   The whole selector sits in :where() (zero specificity) and leaves simulation tables (.simt) alone,
   so .data, .simt, .anat, .clause and page styles always win (2026-11-09: zebra rows hid simulation row colours). */
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class])) { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; border: 1px solid #B9C2CE; border-radius: 8px; overflow: hidden; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) caption) { caption-side: top; text-align: left; font-weight: 600; font-size: .9rem; color: var(--navy); padding: 0 0 .45rem; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) caption)::first-letter { text-transform: uppercase; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) th) { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: .55rem .7rem; border: 1px solid var(--navy); vertical-align: bottom; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) td) { padding: .55rem .7rem; border: 1px solid #D3DAE3; vertical-align: top; line-height: 1.5; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) tbody tr:nth-child(even) td) { background: #F4F7FA; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) td:first-child) { font-weight: 600; color: var(--ink); }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) td b) { color: #8A1C1C; }
:where(:is(.lesson, .lesson :not(.simt)) > table:not([class]) code) { font-size: .85em; background: #EEF2F6; padding: .05rem .3rem; border-radius: 4px; }
/* Callouts and ask boxes: one clear frame, a title line, space around */
:where(.lesson) .ask, :where(.lesson) .callout { margin: 1.25rem 0; }

/* Concrete data tables */
.data { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .75rem 0 1.25rem; }
.data caption { text-align: left; font: 600 .8rem var(--mono); color: var(--muted); padding-bottom: .35rem; }
.data th, .data td { border: 1px solid var(--line); padding: .35rem .55rem; text-align: left; vertical-align: top; }
.data th { background: var(--paper); font-weight: 600; }
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data .key { background: #FFF7E0; font-weight: 600; }
.data .hl { background: #E6F4EC; }
.data .mono, .data td code { font-family: var(--mono); font-size: .85rem; }

/* Callouts: analogy, why, warning */
.callout { border-left: 4px solid var(--ec); background: var(--paper); padding: .9rem 1.1rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.25rem 0; }
.callout > b:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ec); margin-bottom: .2rem; }
.callout.analogy { border-left-color: var(--amber); background: var(--amber-soft); }
.callout.analogy > b:first-child { color: #8A6400; }
.callout.warn { border-left-color: var(--lale); background: #FCEEF0; }
.callout.warn > b:first-child { color: var(--lale); }
.callout p:last-child { margin-bottom: 0; }

/* Steps of a query: what the Engine does */
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 2.4rem; margin-bottom: .6rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ec);
  color: var(--white); display: grid; place-items: center; font: 700 .8rem var(--font); }

/* Query card: purpose, the query, run on the live Engine */
.qcard { border: 1px solid var(--line); border-radius: var(--r-lg); margin: 1.5rem 0; overflow: hidden; }
.qcard > header { display: flex; gap: .75rem; align-items: baseline; padding: .7rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.qcard > header b { font: 700 .8rem var(--mono); color: var(--ec); }
.qcard > header span { font-weight: 600; }
.qcard > .body { padding: .25rem 1rem 1rem; }
.qcard pre { margin: .75rem 0; }
.run button { background: var(--navy); color: var(--white); border: 0; border-radius: var(--r-sm); padding: .5rem .9rem; font-weight: 600; cursor: pointer; }
.run button:hover { background: var(--navy-2); }
.run-out { margin-top: .6rem; }
.run-out .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); margin: .4rem 0; }
.run-out .meta b { color: var(--ink); }
.run-out .tr { font-size: .85rem; border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .5rem; }
.run-out .tr pre { font-size: .78rem; max-height: 220px; }
.run-out .note { font-size: .9rem; color: var(--ok); }
.run-out .err { color: var(--lale); font-weight: 600; }
.run-out .scroll { overflow: auto; max-height: 420px; }

/* Figures */
.fig { margin: 1.5rem 0; }
.fig img { max-width: 100%; max-height: 460px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: .5rem; }
.fig figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; max-width: 72ch; }
.fig figcaption strong { color: var(--ink); }
.fig .credit { display: block; font-size: .8rem; margin-top: .2rem; }
.fig.drawn svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }

/* Checkpoint questions and Predict boxes */
.quiz { border: 2px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; margin: 1.75rem 0; background: var(--white); }
.quiz > .qhead { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ec); }
.quiz > p.q { font-weight: 600; margin: .25rem 0 .6rem; }
.quiz .opts { display: grid; gap: .4rem; }
.quiz .opts button { text-align: left; padding: .55rem .75rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font-size: .97rem; }
.quiz .opts button:hover:not(:disabled) { border-color: var(--navy); }
.quiz .opts button.right { border-color: var(--ok); background: #E6F4EC; }
.quiz .opts button.wrong { border-color: var(--lale); background: #FCEEF0; }
.quiz .why { margin: .6rem 0 0; }
.quiz.ok { border-color: var(--ok); }
.predict { border: 2px dashed var(--amber); border-radius: var(--r-lg); padding: 1rem 1.1rem; margin: 1.5rem 0; background: #FFFDF5; }
.predict > b:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #8A6400; }
.predict textarea { width: 100%; min-height: 3.2rem; font: inherit; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem .6rem; margin: .4rem 0; }
.predict button { background: var(--amber-ink); color: var(--amber); border: 0; border-radius: var(--r-sm); padding: .45rem .9rem; font-weight: 700; cursor: pointer; }
.predict .answer { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid #F0DFA8; }
.lesson-foot { margin-top: 3rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--navy); color: #DCE3F0; }
.lesson-foot a { color: var(--amber); }
.lesson-foot h2 { color: var(--white); margin-top: 0 !important; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.pager a { flex: 1; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.pager a small { display: block; color: var(--muted); }
.pager a.next { text-align: right; }
.glossary dt { font-weight: 700; margin-top: 1rem; scroll-margin-top: 1rem; }
.glossary dd { margin: .2rem 0 0; }
.glossary dd small { color: var(--muted); }

@media (max-width: 960px) {
  .hub-grid { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr); padding: 1.2rem .9rem 4rem; gap: 1.5rem; }
  .toc { position: static; max-height: none; }
  .lesson { min-width: 0; overflow-wrap: break-word; }
  .lesson table { display: block; max-width: 100%; overflow-x: auto; }
}
@media print {
  .sitebar, .toc, .run button, .pager { display: none !important; }
  .lesson-layout { display: block; }
  .lesson pre { background: #F4F4F4; color: #000; }
}
.lang-switch { display: flex; gap: .3rem; }
.lang-switch a { padding: .15rem .55rem; border: 1.5px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .8rem; }
.lang-switch a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
html[lang="tr"] .toc p { text-transform: none; letter-spacing: 0; font-size: .85rem; }   /* Turkish uppercase turns "tutorial" into "TUTORİAL" */
.quiz .opts button:disabled { opacity: 1; cursor: default; color: var(--muted); }
.quiz .opts button.right:disabled { color: var(--ink); font-weight: 600; }

/* Step lists of the tutorials (".steps" belongs to the shop checkout) */
.walk { counter-reset: w; list-style: none; padding: 0 !important; }
.walk > li { counter-increment: w; position: relative; padding-left: 2.4rem; margin-bottom: .6rem; }
.walk > li::before { content: counter(w); position: absolute; left: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ec);
  color: var(--white); display: grid; place-items: center; font: 700 .8rem var(--font); }

/* Simulation */
.sim { border: 1px solid var(--line); border-radius: var(--r-lg); margin: 1.5rem 0; overflow: hidden; background: #FBFCFD; }
.sim > header { display: flex; gap: .75rem; align-items: baseline; padding: .7rem 1rem; background: var(--navy); color: var(--white); }
.sim > header b { font: 700 .75rem var(--mono); color: var(--amber); text-transform: uppercase; }
.sim-ctrl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.sim-ctrl button { border: 1.5px solid var(--line); background: var(--white); border-radius: var(--r-sm); padding: .35rem .75rem; font-weight: 600; cursor: pointer; }
.sim-ctrl button[data-sim=play] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sim-ctrl .sim-pos { margin-left: auto; color: var(--muted); font-size: .85rem; }
.sim-say { margin: 0; padding: .8rem 1rem; min-height: 4.2rem; font-size: 1rem; background: var(--amber-soft); border-bottom: 1px solid #F0DFA8; max-width: none !important; }
.sim-stage { padding: .8rem 1rem 1rem; }
.sim-in { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; }
.sim-out { margin-top: .9rem; padding-top: .8rem; border-top: 2px dashed var(--line); }
.simt { margin: 0; }
.simt figcaption { font: 600 .78rem var(--mono); color: var(--muted); margin-bottom: .2rem; }
.simt table { border-collapse: collapse; font-size: .78rem; background: var(--white); }
.simt th, .simt td { border: 1px solid var(--line); padding: .2rem .45rem; text-align: left; white-space: nowrap; transition: background-color .25s; }
.simt th { background: var(--paper); font-weight: 600; }
.simt th.k { background: #FFF1C2; } .simt th.r { background: #E3F2F2; }
.simt td.empty { color: var(--muted); font-style: italic; }
.simt tr.m-read td { background: #E3EEFF; box-shadow: inset 0 0 0 1px #6B9BEA; }
.simt tr.m-match td { background: #DDF3E4; }
.simt tr.m-skip td { color: #A0A7B2; text-decoration: line-through; }
.simt tr.m-done td { color: #7C8594; }
.simt tr.m-lock td { background: #FFE9B0; }
.simt tr.m-new td { background: #C9EFD6; font-weight: 600; }
.simt tr.m-bad td { background: #FBD9DF; }
.sim-count { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.sim-count b { color: var(--ink); font-size: 1.05rem; }
.sim-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .4rem 1rem .7rem; font-size: .78rem; color: var(--muted); }
.sim-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .25rem; }
.lg-read { background: #E3EEFF; box-shadow: inset 0 0 0 1px #6B9BEA; } .lg-match { background: #DDF3E4; } .lg-skip { background: #EEF0F3; }
.lg-lock { background: #FFE9B0; } .lg-new { background: #C9EFD6; } .lg-bad { background: #FBD9DF; }
.data .refc { background: #E3F2F2; }
.clause { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
.clause td { border-top: 1px solid var(--line); padding: .45rem .5rem; vertical-align: top; }
.clause td:first-child { width: 38%; font: .85rem/1.5 var(--mono); background: #F3F5F8; white-space: pre-wrap; }
.part { margin: 3.5rem 0 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r-lg); background: var(--navy); color: var(--white); }
.part b { display: block; font: 700 .78rem var(--mono); letter-spacing: .08em; color: var(--amber); text-transform: uppercase; }
.part h2 { margin: .2rem 0 0 !important; padding: 0 !important; color: var(--white); font-size: 1.7rem; }
.part p { color: #C9D2E3; margin: .4rem 0 0; }
.sim-out .simt { width: 100%; } .sim-out .simt table { width: 100%; }
.sim-out .simt td { white-space: normal; }
.lesson code, .lesson pre, .clause td:first-child, .simt { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.simt td { white-space: normal; max-width: 300px; } .sim-in .simt { max-width: 100%; overflow-x: auto; }

/* Grouped table of contents: Part A, Architect's view, Part B, Part C */
.toc li.toc-g { margin: .35rem 0 .2rem; }
.toc a.toc-gh { color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding-top: .45rem; }
.toc li.toc-g > ol { border-left: 0; margin-left: .55rem; }
.toc .toc-n { display: inline-block; min-width: 1.9rem; font-family: "JetBrains Mono", monospace; font-size: .75rem; color: var(--muted); }
.sim-say { white-space: pre-line; }
/* ---------- Key color language: partition key yellow, sort key blue, attributes grey (also in samples and simulations) */
:root { --kv-pk: #FFD966; --kv-pk-ink: #5C4400; --kv-sk: #1F6FB2; --kv-at: #E6E8EC; }
.anat { margin: 1.4rem 0; overflow-x: auto; }
.anat table { border-collapse: separate; border-spacing: 6px; font-size: .95rem; }
.anat td { padding: .45rem .7rem; border-radius: 6px; vertical-align: middle; }
.anat .a-brace td span { display: block; text-align: center; border-top: 2px solid #666; border-left: 2px solid #666; border-right: 2px solid #666; border-radius: 8px 8px 0 0; padding-top: .15rem; font-weight: 600; }
.anat .a-brace td span.g { color: #777; border-color: #AAA; }
.anat .a-lab td { font-weight: 700; text-align: center; padding: .1rem; }
.anat .l-pk { color: #9A7400; } .anat .l-sk { color: var(--kv-sk); } .anat .l-at { color: #888; font-weight: 500 !important; font-style: italic; }
.anat .h-pk { background: var(--kv-pk); text-align: center; } .anat .h-sk { background: #0B4F86; text-align: center; } .anat .h-sk code { color: #fff; }
.anat .c-pk { background: #FFF1C2; color: var(--kv-pk-ink); font-family: "JetBrains Mono", monospace; font-size: .85rem; }
.anat .c-sk { background: var(--kv-sk); color: #fff; font-family: "JetBrains Mono", monospace; font-size: .85rem; }
.anat .c-at { background: transparent; padding: 0; }
.anat .chip { display: inline-block; background: var(--kv-at); border-radius: 6px; padding: .35rem .6rem; margin: 0 .3rem .2rem 0; font-size: .85rem; }
.anat .chip b { color: #555; font-weight: 600; margin-right: .25rem; }
.anat .a-side { border-left: 2px solid #666; border-top: 2px solid #666; border-bottom: 2px solid #666; border-radius: 8px 0 0 8px; width: 1.6rem; padding: 0; }
.anat .a-side span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; text-align: center; }
.anat figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
th.c-pk, td.c-pk { background: #FFF1C2 !important; } th.c-sk, td.c-sk { background: #DCEBF7 !important; }
.simt th.c-pk { background: var(--kv-pk) !important; } .simt th.c-sk { background: var(--kv-sk) !important; color: #fff; }
.live { margin: 1.2rem 0; border: 1px solid #CFE3D4; border-radius: var(--r-sm, 8px); overflow: hidden; }
.live figcaption { background: #EAF6EE; padding: .45rem .8rem; font-size: .9rem; }
.live .badge { background: #1E7A3C; color: #fff; border-radius: 4px; padding: .1rem .45rem; font-size: .75rem; font-weight: 700; margin-right: .3rem; }
.live pre { margin: 0; border-radius: 0; }
.ask { margin: 1rem 0; border-left: 4px solid #8B5CF6; background: #F5F1FF; padding: .6rem 1rem; border-radius: 0 8px 8px 0; }
.ask .q { margin: 0 0 .3rem; } .ask .q b { color: #6D28D9; } .ask .a p { margin: .3rem 0; }
.concept { margin: 1.2rem 0; border: 2px solid #0B4F86; border-radius: 10px; overflow: hidden; }
.concept .c-head { margin: 0; background: #0B4F86; color: #fff; padding: .5rem .9rem; font-weight: 700; font-size: 1.05rem; }
.concept .c-head span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-right: .4rem; }
html[lang="tr"] .concept .c-head span { text-transform: none; letter-spacing: 0; }
.concept dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; padding: .8rem 1rem; }
.concept dt { font-weight: 700; color: #0B4F86; } .concept dd { margin: 0; }
/* A simple left-to-right flow diagram: boxes and arrows */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.2rem 0; }
.flow .box { border: 2px solid #0B4F86; border-radius: 8px; padding: .5rem .8rem; background: #fff; text-align: center; min-width: 7rem; }
.flow .box small { display: block; color: var(--muted); font-size: .78rem; }
.flow .box.pk { background: #FFF1C2; border-color: #C9A227; } .flow .box.sk { background: #DCEBF7; border-color: var(--kv-sk); }
.flow .box.hit { background: #DFF3E4; border-color: #1E7A3C; }
.flow .arrow { font-size: 1.4rem; color: #0B4F86; }
.flow-cap { font-size: .85rem; color: var(--muted); margin-top: -.6rem; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.parts > div { border: 2px solid #BBB; border-radius: 8px; padding: .5rem; min-height: 5rem; }
.parts > div.on { border-color: #1E7A3C; background: #F1FAF3; }
.parts h4 { margin: 0 0 .3rem; font-size: .85rem; }
.parts .chip { display: block; font-family: "JetBrains Mono", monospace; font-size: .78rem; background: #FFF1C2; border-radius: 4px; padding: .15rem .35rem; margin: .2rem 0; }
@media (max-width: 700px) { .parts { grid-template-columns: 1fr; } }
.anat td.c-pk { background: #FFF1C2 !important; color: var(--kv-pk-ink); }
.anat td.c-sk { background: var(--kv-sk) !important; color: #fff; }
.anat .h-pk code, .anat .h-sk code { background: transparent; border: 0; padding: 0; font-weight: 700; }
.anat .h-pk code { color: var(--kv-pk-ink); } .anat .h-sk code { color: #fff; }
.concept .c-head { max-width: none !important; }

/* Use case cards (M2) and the feature matrix (A10) */
.uc { margin: .9rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.uc > summary { cursor: pointer; padding: .7rem 1rem; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.uc > summary::-webkit-details-marker { display: none; }
.uc > summary::before { content: "▸"; color: var(--ec); margin-right: .4rem; }
.uc[open] > summary::before { content: "▾"; }
.uc[open] > summary { border-bottom: 1px solid var(--line); background: var(--paper); border-radius: 10px 10px 0 0; }
.uc > summary > span { color: var(--muted); font-size: .9rem; }
.uc > p, .uc > table { margin-left: 1rem; margin-right: 1rem; }
.uc > p:first-of-type { margin-top: .8rem; }
.uc > p:last-child { margin-bottom: .9rem; }
.uc-legend { font-size: .9rem; color: var(--muted); }
.data td.y, .uc-legend .y { background: #DFF3E4; color: #1E7A3C; font-weight: 700; text-align: center; }
.data td.p, .uc-legend .p { background: #FFF1C2; color: #8A6400; font-weight: 700; text-align: center; }
.data td.n, .uc-legend .n { background: #FCEEF0; color: var(--lale); font-weight: 700; text-align: center; }
.fmatrix td.y, .fmatrix td.p, .fmatrix td.n { text-align: left; font-weight: 500; }
.uc-legend .y, .uc-legend .p, .uc-legend .n { background: none; }
.flow .box.miss { background: #FCEEF0; border-color: var(--lale); }
.uc > table { width: calc(100% - 2rem); }
.data span.c-pk { background: #FFF1C2; color: var(--kv-pk-ink); padding: 0 .3rem; border-radius: 4px; }
.data span.c-sk { background: var(--kv-sk); color: #fff; padding: 0 .3rem; border-radius: 4px; }
.uc-board td.chosen, .uc tr.chosen td:first-child { font-weight: 700; }
.uc tr.disq td:first-child { color: var(--lale); }
.uc .uc-why td:first-child { width: 2.5rem; }
.uc .uc-why td.num { width: 2.5rem; text-align: center; }
.uc .h2h { border-left: 4px solid #0B4F86; padding: .5rem .9rem; background: #F3F7FB; border-radius: 0 8px 8px 0; }
.uc .verdict { border-left: 4px solid #1E7A3C; padding: .5rem .9rem; background: #EAF6EE; border-radius: 0 8px 8px 0; }
.feat { border-left: 5px solid #0B4F86; }  .feat caption { color: #0B4F86; font-size: .95rem; }  .feat td:first-child { width: 11rem; }

/* weighted use case cards (model 2) */
.uc-w .uc-bestline { margin: .8rem 1rem 0; border-left: 4px solid #1E7A3C; padding: .4rem .8rem; background: #EAF6EE; border-radius: 0 8px 8px 0; }
.uc-w .uc-wnote { color: var(--muted); }
.uc-pagebadge { display: inline-block; font-size: .75rem; padding: 0 .45rem; border-radius: 999px; background: #E3EDF7; color: #0B4F86; font-weight: 700; white-space: nowrap; }
.uc-w .uc-reqs tr.r1 td:first-child, .uc-w .uc-board th.r1 { background: #F3F7FB; }
.uc-w .uc-reqs td.num { width: 4.5rem; }
.uc-w .uc-reqs td.uc-wwhy { color: var(--muted); font-size: .9rem; width: 22%; }
.uc > div.uc-wnote { margin: .6rem 1rem; }
.uc-w .uc-board td small, .uc-w .uc-why td small { font-weight: 400; opacity: .8; }
.uc-w .uc-why td:first-child { width: 3.2rem; }
.uc-w .uc-why td.num { width: 3.2rem; }
.uc-w .uc-board { font-size: .9rem; }
.uc-w td.uc-grp { background: #E3EDF7; color: #0B4F86; font-weight: 700; text-align: center; vertical-align: middle; width: 2.2rem; padding: .4rem .2rem; }
.uc-w td.uc-grp span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; letter-spacing: .03em; }
.uc-w th.uc-grph { background: #E3EDF7; color: #0B4F86; text-align: center; border-bottom: 2px solid #0B4F86; }
.uc-w .uc-board td small, .uc-w .uc-why td small { white-space: nowrap; }
