/* KAP Sinyal — base styles (Tailwind CDN handles utilities; tokens live in base.html's tailwind.config) */
:root {
  --ink: #1c1f24;
  --muted: #5b616b;
  --faint: #8a9099;
  --rule: #e3e5e8;
  --paper: #ffffff;
  --wash: #f6f7f8;
  --accent: #2b4c7e;
  --pos: #1d7a55;
  --neu: #7c828b;
  --neg: #c0392b;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Numbers line up in columns */
table, .num { font-variant-numeric: tabular-nums; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Section heading used on every page: a hairline above, small bold title */
.section { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 2rem; }
.section:first-child { margin-top: 0; }

/* Label mark: a small square in the label colour, followed by the word */
.mark { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.mark::before { content: ""; width: .5rem; height: .5rem; border-radius: 1px; background: currentColor; flex: none; }
.mark-pos { color: var(--pos); }
.mark-neu { color: var(--neu); }
.mark-neg { color: var(--neg); }
.mark > span { color: var(--ink); }

/* Plain-language notes shown in "Basit anlat" mode */
.note-simple { border-left: 2px solid var(--accent); padding-left: .875rem; color: var(--ink); }

/* Data tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th { text-align: left; font-weight: 600; font-size: .75rem; color: var(--muted); padding: .5rem .75rem .5rem 0; border-bottom: 1px solid #c9cdd2; white-space: nowrap; }
.tbl td { padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

tr.clickable-row { cursor: pointer; }
tr.clickable-row:hover td { background-color: var(--wash); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
