/* ===== Ortak bileşenler ===== */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ico--fill { fill: currentColor; }

/* --- Üst bant --- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 color-mix(in srgb, var(--brand-accent) 35%, transparent); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--header-ink); text-decoration: none; font-weight: 600; letter-spacing: .01em; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand .logo-img { height: 34px; width: auto; }
.logo-img { display: block; }
.logo-img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img--light { display: none; }
  :root:not([data-theme="light"]) .logo-img--dark { display: block; }
}
:root[data-theme="dark"] .logo-img--light { display: none; }
:root[data-theme="dark"] .logo-img--dark { display: block; }
@media (max-width: 400px) { .brand .logo-img { height: 28px; } }
.brand__name { font-family: var(--font-read); font-size: 1.12rem; }
.hdr__menu { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.hdr__nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.hdr__nav a, .nav-soon { display: inline-flex; align-items: center; gap: 6px; color: var(--header-ink); text-decoration: none; padding: 8px 12px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 500; opacity: .86; }
.hdr__nav a:hover { opacity: 1; background: color-mix(in srgb, var(--header-ink) 8%, transparent); }
.hdr__nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--header-ink) 9%, transparent); box-shadow: inset 0 -2px 0 var(--brand-accent); }
.nav-soon { opacity: .5; cursor: not-allowed; }
.nav-soon small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 99px; padding: 0 6px; }
.hdr__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { font-size: var(--fs-sm); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr .hdr__toggle { display: none; margin-left: auto; color: var(--header-ink); }
@media (max-width: 900px) {
  .hdr { flex-wrap: wrap; }
  .hdr .hdr__toggle { display: inline-flex; }
  .hdr__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-block: 8px 16px; }
  .site-header.is-open .hdr__menu { display: flex; }
  .hdr__nav { flex-direction: column; align-items: stretch; }
  .hdr__right { justify-content: flex-start; }
}

/* --- Alt bant --- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.ftr { display: grid; gap: 20px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.ftr__brand { display: flex; gap: 12px; color: var(--brand-primary); max-width: 60ch; }
.ftr__brand svg { width: 32px; height: 32px; flex: none; }
.ftr__brand .logo-img { height: 40px; width: auto; flex: none; }
.ftr__brand p { color: var(--muted); font-size: var(--fs-sm); }
.ftr__brand strong { color: var(--ink); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr__fine { font-size: var(--fs-xs); color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-accent); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-size: inherit; }
.linkish small { color: var(--muted); text-decoration: none; display: inline-block; margin-left: 2px; }

/* --- Düğmeler --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 16px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand-primary); color: var(--brand-primary-ink); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn--accent { background: var(--brand-accent); color: var(--brand-accent-ink); }
.btn--accent:hover:not(:disabled) { filter: brightness(1.08); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover:not(:disabled) { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn--ghost[aria-pressed="true"] { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-soft); }
.btn--on-dark { background: transparent; color: var(--header-ink); border-color: color-mix(in srgb, var(--header-ink) 40%, transparent); }
.btn--on-dark:hover { border-color: var(--header-ink); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-sm); }
.btn--lg { min-height: 50px; padding: 12px 22px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover:not(:disabled) { border-color: var(--line-strong); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn .ico { width: 1.3em; height: 1.3em; }

/* --- Form --- */
.form { display: grid; gap: 16px; }
.form__row { display: flex; justify-content: flex-end; font-size: var(--fs-sm); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .sform__label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field--sm label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.input--sm, .select--sm { min-height: 38px; padding: 7px 10px; font-size: var(--fs-sm); }
.textarea { min-height: 0; resize: vertical; line-height: 1.6; }
.textarea--read { font-family: var(--font-read); font-size: 1.05rem; }
.textarea--mono { font-family: var(--font-mono); font-size: var(--fs-sm); white-space: pre-wrap; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 0; border-color: var(--brand-accent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.select:disabled { opacity: .6; }
.hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.err { font-size: var(--fs-sm); color: var(--danger); font-weight: 500; }
.req { color: var(--danger); font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 14px; display: grid; gap: 10px; margin: 0; min-width: 0; }
.fieldset legend { font-weight: 600; font-size: var(--fs-sm); padding: 0 6px; }
.check-row, .radio-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check-row input, .radio-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-accent); flex: none; }
.radio-row span { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.file { font-size: var(--fs-sm); }
.file-list { list-style: none; display: grid; gap: 6px; }
.file-list li { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); flex-wrap: wrap; }

/* --- Etiketler --- */
.stance {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px;
  font-size: var(--fs-sm); font-weight: 600; border: 1.5px solid; white-space: nowrap; line-height: 1.3;
}
.stance .ico { stroke-width: 2.6; }
.stance--lehe { color: var(--lehe); background: var(--lehe-bg); border-color: var(--lehe-line); }
.stance--aleyhe { color: var(--aleyhe); background: var(--aleyhe-bg); border-color: var(--aleyhe-line); border-style: dashed; }
.stance--karma { color: var(--karma); background: var(--karma-bg); border-color: var(--karma-line); }
.stance--belirsiz { color: var(--belirsiz); background: var(--belirsiz-bg); border-color: var(--belirsiz-line); border-style: dotted; }
.stance--lg { font-size: var(--fs-md); padding: 6px 14px 6px 10px; }

.demo-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--demo-bg); color: var(--demo); border: 1px solid var(--demo-line);
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; width: fit-content;
}
.demo-tag .ico { width: 1em; height: 1em; }
.verif { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; }
.verif--ok { color: var(--lehe); } .verif--wait { color: var(--muted); } .verif--warn { color: var(--karma); }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.ai-tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-accent); background: var(--brand-accent-soft); padding: 2px 8px; border-radius: var(--r-sm); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; background: var(--brand-accent-soft); color: var(--header-ink); white-space: nowrap; }
.chip--warn { background: var(--demo-bg); color: var(--demo); }
.chip--soft { background: var(--surface-2); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chips__label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.chip--rm { background: var(--brand-accent-soft); color: var(--ink); border: 1px solid transparent; cursor: pointer; font-weight: 400; white-space: normal; text-align: left; }
.chip--rm:hover { border-color: var(--brand-accent); }
.chip--rm .ico { width: .95em; height: .95em; }
.chips-static { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-static li { font-size: var(--fs-sm); background: var(--brand-accent-soft); padding: 3px 10px; border-radius: 99px; }

.ids { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.ids div { display: flex; gap: 6px; align-items: baseline; }
.ids dt { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ids dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); }

/* --- Bilgi kutuları --- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); border: 1px solid; }
.notice .ico { margin-top: 2px; }
.notice--warn { background: var(--demo-bg); color: var(--ink); border-color: var(--demo-line); }
.notice--warn .ico { color: var(--demo); }
.notice--ok { background: var(--lehe-bg); border-color: var(--lehe-line); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); margin-block: 10px; }
.note .ico { color: var(--brand-accent); margin-top: 1px; }

/* --- Durum kutuları --- */
.state { display: flex; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-block: 12px; }
.state__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.state__ico .ico { width: 22px; height: 22px; }
.state--error { border-color: var(--aleyhe-line); } .state--error .state__ico { background: var(--aleyhe-bg); color: var(--aleyhe); }
.state--denied .state__ico { background: var(--belirsiz-bg); color: var(--belirsiz); }
.state--expired { border-color: var(--demo-line); } .state--expired .state__ico { background: var(--demo-bg); color: var(--demo); }
.state__body { display: grid; gap: 8px; min-width: 0; }
.state__body p { color: var(--ink-2); max-width: 64ch; }
.state__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 520px) { .state { flex-direction: column; padding: 18px; } }

.loading { display: grid; gap: 12px; }
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.skel__l { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Sekmeler --- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 16px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand-accent); }
.tab__n { font-size: var(--fs-xs); background: var(--surface-2); padding: 1px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.tab--lehe .ico { color: var(--lehe); } .tab--aleyhe .ico { color: var(--aleyhe); } .tab--karma .ico { color: var(--karma); } .tab--belirsiz .ico { color: var(--belirsiz); }

/* --- Sonuç kartı --- */
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; margin-bottom: 16px; min-width: 0; }
.rcard__head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.rcard__meta { display: grid; gap: 6px; min-width: 0; }
.rcard__topic { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rcard__topic .rel { color: var(--ink-2); }
.rcard__title { font-family: var(--font-read); font-size: var(--fs-lg); font-weight: 600; }
.rcard__title a { color: var(--ink); text-decoration: none; }
.rcard__title a:hover { color: var(--brand-accent); text-decoration: underline; }
.rcard__summary { color: var(--ink-2); max-width: 75ch; }
.rcard__snip { margin: 0; padding: 12px 16px; border-left: 3px solid var(--brand-accent); background: var(--surface-3); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-read); font-size: 1.02rem; line-height: 1.65; }
.rcard__snip footer { margin-top: 6px; }
.rcard__snip cite { font-family: var(--font-mono); font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.rcard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcard__block { display: grid; gap: 6px; align-content: start; font-size: var(--fs-sm); color: var(--ink-2); min-width: 0; }
.rcard__block h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mini { font-size: var(--fs-sm); color: var(--ink-2); }
.rcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.rcard__src { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rcard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .rcard { padding: 16px; }
  .rcard__head { flex-direction: column-reverse; gap: 10px; }
  .rcard__cols { grid-template-columns: 1fr; }
  .rcard__actions { width: 100%; }
  .rcard__actions .btn { flex: 1 1 auto; }
}

/* --- Sayfalama --- */
.pager ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pg { min-width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pg.is-on { background: var(--brand-primary); color: var(--brand-primary-ink); border-color: var(--brand-primary); }
.pg:disabled { opacity: .4; cursor: default; }

/* --- Bildirim --- */
.toast-region { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--brand-primary); color: var(--brand-primary-ink); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: var(--fs-sm); transition: opacity .3s, transform .3s; }
.toast--error { background: var(--aleyhe); color: var(--surface); }
.toast.is-out { opacity: 0; transform: translateY(8px); }

/* --- İletişim kutusu --- */
.dlg { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 48px); }
.dlg--wide { width: min(760px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(10, 18, 34, .55); }
.dlg__in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-family: var(--font-read); font-size: var(--fs-xl); }
.dlg__body { padding: 18px 20px; display: grid; gap: 14px; overflow: auto; }
.dlg__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* --- Demo durum paneli --- */
.demo-bar { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.demo-bar__btn { display: inline-flex; align-items: center; gap: 6px; background: var(--demo-bg); color: var(--demo); border: 1px solid var(--demo-line); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: var(--fs-xs); cursor: pointer; box-shadow: var(--shadow-1); text-transform: uppercase; letter-spacing: .05em; }
.demo-bar__panel { width: 260px; background: var(--surface); border: 1px solid var(--demo-line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 8px; box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.demo-bar__panel label { font-weight: 600; }

/* --- Listeler --- */
.list { list-style: none; display: grid; }
.list__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list__row:last-child { border-bottom: 0; }
.list__t { flex: 1 1 180px; min-width: 0; font-size: var(--fs-sm); }
.list__m { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.badge-kind { display: inline-flex; gap: 5px; align-items: center; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-accent); }
.mini-decs { list-style: none; display: grid; gap: 8px; }
.mini-dec a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.mini-dec a:hover { border-color: var(--brand-accent); }
.mini-dec__t { font-weight: 600; font-size: var(--fs-sm); }
.mini-dec__m, .mini-dec__s { font-size: var(--fs-xs); color: var(--muted); }
.empty-mini { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); padding-block: 6px; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; }
.kv--stack div { flex-direction: column; gap: 2px; }
.kv--stack dd { text-align: left; word-break: break-word; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; font-size: var(--fs-sm); }
.ticks .ico { color: var(--brand-accent); margin-top: 3px; stroke-width: 2.6; }
