/* Vikipedi (Vector 2022) görünümüne benzer tema. Renkleri Wiki:Ortak.css ile değiştirebilirsiniz. */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-muted: #eaecf0;
  --text: #202122;
  --text-muted: #54595d;
  --border: #a2a9b1;
  --border-light: #c8ccd1;
  --border-faint: #eaecf0;
  --link: #3366cc;
  --link-visited: #795cb2;
  --link-new: #d73333;
  --link-ext: #3366cc;
  --primary: #3366cc;
  --primary-hover: #447ff5;
  --danger: #d73333;
  --warn-bg: #fef6e7; --warn-border: #edab00;
  --err-bg: #fee7e6; --err-border: #d73333;
  --ok-bg: #d5fdf4; --ok-border: #14866d;
  --note-bg: #eaecf0; --note-border: #a2a9b1;
  --diff-add: #a3d3ff; --diff-del: #ffe49c;
  --diff-ins-bg: #d8ecff; --diff-del-bg: #feeec8;
  --serif: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
  --mono: Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101418; --bg-subtle: #1b1f23; --bg-muted: #27292d; --text: #eaecf0; --text-muted: #a2a9b1;
  --border: #72777d; --border-light: #54595d; --border-faint: #27292d;
  --link: #88a3e8; --link-visited: #a799cd; --link-new: #fd7865; --link-ext: #88a3e8;
  --primary: #6d8af0; --primary-hover: #88a3e8;
  --warn-bg: #3a2c0a; --warn-border: #a66200; --err-bg: #3c1618; --err-border: #d73333;
  --ok-bg: #0e2e26; --ok-border: #14866d; --note-bg: #27292d; --note-border: #54595d;
  --diff-add: #2c5b8a; --diff-del: #7a5d11; --diff-ins-bg: #1e3a5c; --diff-del-bg: #4d3a0b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #101418; --bg-subtle: #1b1f23; --bg-muted: #27292d; --text: #eaecf0; --text-muted: #a2a9b1;
    --border: #72777d; --border-light: #54595d; --border-faint: #27292d;
    --link: #88a3e8; --link-visited: #a799cd; --link-new: #fd7865; --link-ext: #88a3e8;
    --primary: #6d8af0; --primary-hover: #88a3e8;
    --warn-bg: #3a2c0a; --warn-border: #a66200; --err-bg: #3c1618; --err-border: #d73333;
    --ok-bg: #0e2e26; --ok-border: #14866d; --note-bg: #27292d; --note-border: #54595d;
    --diff-add: #2c5b8a; --diff-del: #7a5d11; --diff-ins-bg: #1e3a5c; --diff-del-bg: #4d3a0b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 0.875rem; line-height: 1.6; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--link-visited); }
a.new, a.new:visited, span.new { color: var(--link-new); }
a.external { color: var(--link-ext); }
a.external.text::after, a.external.free::after {
  content: ''; display: inline-block; width: 0.75em; height: 0.75em; margin-left: 2px; vertical-align: baseline;
  background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1'/%3E%3C/svg%3E") center/contain no-repeat;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- Üst çubuk ---------- */
.vector-header {
  display: flex; align-items: center; gap: 12px; max-width: 1596px; margin: 0 auto; padding: 8px 24px; min-height: 56px;
}
.menu-btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: pointer; color: var(--text);
}
.menu-btn:hover, .icon-btn:hover { background: var(--bg-muted); }
.menu-btn svg, .icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mw-logo { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; margin-right: 8px; }
.mw-logo-icon { width: 50px; height: 50px; object-fit: contain; flex: none; }
.mw-logo-container { display: flex; flex-direction: column; line-height: 1.1; }
.mw-logo-wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.08em; font-variant: small-caps; white-space: nowrap; }
.mw-logo-tagline { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
.vector-search { flex: 1; max-width: 540px; position: relative; display: flex; }
.vector-search input {
  flex: 1; min-width: 0; height: 32px; padding: 5px 8px 5px 34px; border: 1px solid var(--border); border-right: 0;
  border-radius: 2px 0 0 2px; background: var(--bg);
}
.vector-search input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.vector-search .search-icon { position: absolute; left: 9px; top: 8px; width: 16px; height: 16px; fill: var(--text-muted); pointer-events: none; }
.vector-search button { height: 32px; border-radius: 0 2px 2px 0; }
.suggestions {
  position: absolute; top: 32px; left: 0; right: 0; z-index: 50; margin: 0; padding: 0; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-top: 0; box-shadow: 0 2px 2px rgba(0,0,0,.2);
}
.suggestions a { display: block; padding: 6px 12px; color: var(--text); }
.suggestions a:hover, .suggestions a.active { background: var(--bg-muted); text-decoration: none; }
.suggestions .suggest-search { border-top: 1px solid var(--border-faint); color: var(--link); }
.user-links { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.user-links form { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.admin-badge { font-size: 0.75rem; background: var(--bg-muted); border-radius: 10px; padding: 1px 8px; color: var(--text-muted); }

/* ---------- Yerleşim ---------- */
.mw-page-container { max-width: 1596px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 12.25rem minmax(0, 1fr); column-gap: 24px; }
body.sidebar-hidden .mw-page-container { grid-template-columns: minmax(0, 1fr); }
body.sidebar-hidden .vector-sidebar { display: none; }
.vector-sidebar { padding-top: 8px; font-size: 0.875rem; }
.vector-sidebar-inner { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding-bottom: 24px; }
.vector-menu-heading { font-size: 0.75rem; color: var(--text-muted); font-weight: bold; margin: 12px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border-faint); }
.vector-menu ul { list-style: none; margin: 0; padding: 0; }
.vector-menu li { padding: 3px 0; line-height: 1.3; }
.vector-toc ul { list-style: none; margin: 0; padding: 0; }
.vector-toc li { padding: 2px 0; line-height: 1.35; }
.vector-toc li.toc-level-2 { padding-left: 12px; }
.vector-toc li.toc-level-3 { padding-left: 24px; }
.vector-toc li.toc-level-4, .vector-toc li.toc-level-5, .vector-toc li.toc-level-6 { padding-left: 36px; }
.vector-toc a { color: var(--link); }
.vector-toc a.active { color: var(--text); font-weight: bold; }
.vector-toc .tocnumber { color: var(--text-muted); margin-right: 4px; }
.vector-toc .toc-top { font-weight: normal; }

.mw-body { min-width: 0; padding-bottom: 24px; }
.mw-body-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-top: 8px; }
.firstHeading { font-family: var(--serif); font-weight: normal; font-size: 1.8em; line-height: 1.375; margin: 0 0 2px; overflow-wrap: anywhere; }
.firstHeading .ns-prefix { color: var(--text-muted); }
.vector-page-toolbar { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; flex-wrap: wrap; }
.vector-tabs { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.vector-tabs li { margin: 0; }
.vector-tabs a, .vector-tabs summary {
  display: block; padding: 10px 8px 6px; font-size: 0.875rem; color: var(--link); border-bottom: 2px solid transparent; cursor: pointer; list-style: none; user-select: none;
}
.vector-tabs summary::-webkit-details-marker { display: none; }
.vector-tabs li.selected > a { color: var(--text); border-bottom-color: var(--text); }
.vector-tabs a:hover { text-decoration: none; border-bottom-color: var(--link); }
.vector-tabs li.new > a { color: var(--link-new); }
.vector-dropdown { position: relative; }
.vector-dropdown summary::after { content: ' ▾'; font-size: 0.7em; }
.vector-dropdown-content {
  position: absolute; right: 0; z-index: 40; min-width: 180px; background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.15); padding: 6px 0; border-radius: 2px;
}
.vector-dropdown-content a, .vector-dropdown-content button { display: block; width: 100%; text-align: left; padding: 6px 14px; border: 0; background: none; color: var(--link); cursor: pointer; }
.vector-dropdown-content a:hover, .vector-dropdown-content button:hover { background: var(--bg-muted); text-decoration: none; }
.vector-dropdown-content .dropdown-heading { padding: 4px 14px; font-size: 0.75rem; color: var(--text-muted); font-weight: bold; }

.notitle .mw-body-header, .notitle #siteSub { display: none; }
.notitle .vector-page-toolbar { margin-top: 8px; }
#siteSub { color: var(--text-muted); font-size: 0.8125rem; margin: 8px 0 0; }
#contentSub { color: var(--text-muted); font-size: 0.8125rem; margin: 2px 0 8px; min-height: 0.5em; }
.mw-body-content { font-size: 0.875rem; line-height: 1.6; overflow-wrap: break-word; }
.mw-body-content::after { content: ''; display: block; clear: both; }

/* ---------- İçerik ---------- */
.mw-parser-output p { margin: 0.5em 0 1em; }
.mw-parser-output h1, .mw-parser-output h2 { font-family: var(--serif); font-weight: normal; }
.mw-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.mw-heading h1, .mw-heading h2, .mw-heading h3, .mw-heading h4, .mw-heading h5, .mw-heading h6 { margin: 0; }
.mw-heading2 { border-bottom: 1px solid var(--border); margin: 1em 0 0.25em; padding-bottom: 1px; }
.mw-heading2 h2 { font-size: 1.5em; line-height: 1.375; }
.mw-heading1 { border-bottom: 1px solid var(--border); margin: 1em 0 0.25em; }
.mw-heading1 h1 { font-size: 1.8em; }
.mw-heading3 { margin: 0.3em 0 0; padding-top: 0.5em; }
.mw-heading3 h3 { font-size: 1.2em; font-weight: bold; }
.mw-heading4 h4, .mw-heading5 h5, .mw-heading6 h6 { font-size: 100%; font-weight: bold; }
.mw-heading4, .mw-heading5, .mw-heading6 { margin: 0.3em 0 0; padding-top: 0.5em; }
.mw-editsection { font-size: 0.8125rem; font-family: var(--sans); white-space: nowrap; user-select: none; }
.mw-editsection-bracket { color: var(--text-muted); margin: 0 0.25em; }
.mw-editsection-bracket:first-child { margin-left: 0; }
.mw-parser-output ul { list-style-type: disc; margin: 0.3em 0 0 1.6em; padding: 0; }
.mw-parser-output ol { margin: 0.3em 0 0 3.2em; padding: 0; }
.mw-parser-output li { margin-bottom: 0.1em; }
.mw-parser-output dl { margin: 0.2em 0 0.5em; }
.mw-parser-output dt { font-weight: bold; }
.mw-parser-output dd { margin-left: 1.6em; margin-bottom: 0.1em; }
.mw-parser-output hr { border: 0; height: 1px; background: var(--border); margin: 0.2em 0; }
pre, .mw-code {
  font-family: var(--mono); font-size: 0.8125rem; background: var(--bg-subtle); border: 1px solid var(--border-faint);
  padding: 1em; white-space: pre-wrap; overflow-x: auto; line-height: 1.4; border-radius: 2px;
}
code { font-family: var(--mono); background: var(--bg-subtle); border: 1px solid var(--border-faint); border-radius: 2px; padding: 1px 4px; font-size: 0.8125rem; }
blockquote { border-left: 4px solid var(--border-light); margin: 1em 0; padding: 0 1.4em; }
.error { color: var(--danger); font-weight: bold; }
.selflink { font-weight: bold; color: var(--text) !important; }

.wikitable { background: var(--bg-subtle); color: var(--text); margin: 1em 0; border: 1px solid var(--border); border-collapse: collapse; }
.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td { border: 1px solid var(--border); padding: 0.2em 0.4em; }
.wikitable > tr > th, .wikitable > * > tr > th { background: var(--bg-muted); text-align: center; }
.wikitable > caption { font-weight: bold; padding: 0.2em; }
.table-scroll { overflow-x: auto; }

.infobox {
  float: right; clear: right; width: 22em; margin: 0.5em 0 0.5em 1em; padding: 0.2em; border: 1px solid var(--border);
  background: var(--bg-subtle); color: var(--text); font-size: 88%; line-height: 1.5em; border-spacing: 3px;
}
.infobox-above { font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em; }
.infobox-image { text-align: center; padding: 0.2em; }
.infobox-caption { font-size: 94%; padding-top: 0.2em; }
.infobox-label { text-align: left; vertical-align: top; padding: 0.2em 0.4em 0.2em 0.2em; }
.infobox-data { vertical-align: top; padding: 0.2em; }

.thumb { margin-bottom: 0.5em; width: auto; background: transparent; display: block; }
.thumb.tright { float: right; clear: right; margin: 0.5em 0 1.3em 1.4em; }
.thumb.tleft { float: left; clear: left; margin: 0.5em 1.4em 1.3em 0; }
.thumb.tcenter { margin: 0.5em auto 1.3em; display: table; }
.thumb.tnone { margin: 0.5em 0 1.3em; }
.thumbinner { display: block; border: 1px solid var(--border-light); padding: 3px; background: var(--bg-subtle); font-size: 94%; text-align: center; overflow: hidden; max-width: 100%; }
.thumbinner img { border: 1px solid var(--border-light); background: #fff; display: block; margin: 0 auto; }
.thumbcaption { display: block; border: 0; line-height: 1.4em; padding: 3px; font-size: 94%; text-align: left; }
.floatright { float: right; clear: right; margin: 0 0 0.5em 0.5em; }
.floatleft { float: left; clear: left; margin: 0 0.5em 0.5em 0; }
.floatcenter { display: block; text-align: center; }
.thumbborder { border: 1px solid var(--border-faint); }
.hatnote { font-style: italic; padding-left: 1.6em; margin-bottom: 0.5em; }
.references { font-size: 90%; margin-left: 2em !important; }
.reference { line-height: 1; unicode-bidi: isolate; white-space: nowrap; font-size: 80%; }
.mw-cite-backlink { margin-right: 0.3em; }
:target { background: rgba(51, 102, 204, .12); }
.redirectMsg { font-size: 1.1em; }
.redirectText { list-style: none !important; margin: 0 !important; }
.redirectText li::before { content: '↳ '; color: var(--text-muted); }

.catlinks { clear: both; border: 1px solid var(--border); background: var(--bg-subtle); padding: 5px 8px; margin-top: 1.5em; }
.catlinks ul { display: inline; margin: 0; padding: 0; list-style: none; }
.catlinks li { display: inline-block; padding: 0 0.5em; border-left: 1px solid var(--border-light); line-height: 1.25; margin: 0.125em 0; }
.catlinks li:first-child { border-left: 0; padding-left: 0.25em; }

/* ---------- Mesaj kutuları ---------- */
.mbox { border: 1px solid; border-radius: 2px; padding: 8px 12px; margin: 8px 0 16px; clear: both; }
.mbox-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.mbox-error { background: var(--err-bg); border-color: var(--err-border); }
.mbox-success { background: var(--ok-bg); border-color: var(--ok-border); }
.mbox-notice { background: var(--note-bg); border-color: var(--note-border); }
.mbox p { margin: 0.3em 0; }
.previewnote { margin-bottom: 1em; }
.previewnote h2 { font-family: var(--serif); font-weight: normal; margin: 0 0 4px; font-size: 1.5em; }

/* ---------- Butonlar ve formlar ---------- */
.btn {
  display: inline-block; min-height: 32px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 2px;
  background: var(--bg-subtle); color: var(--text); font-weight: bold; cursor: pointer; line-height: 1.4; text-decoration: none !important;
}
.btn:hover { background: var(--bg); border-color: var(--text-muted); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--link); font-weight: normal; }
.field { margin: 0 0 14px; }
.field > label { display: block; font-weight: bold; margin-bottom: 4px; }
.field .hint { color: var(--text-muted); font-size: 0.8125rem; margin-top: 3px; }
.input, .field input[type=text], .field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; max-width: 520px; min-height: 32px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg);
}
.field textarea { max-width: 100%; font-family: var(--mono); font-size: 0.8125rem; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, #wpSummary:focus, #wpTextbox1:focus {
  outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
}
fieldset { border: 1px solid var(--border-light); border-radius: 2px; padding: 12px 16px; margin: 0 0 20px; }
legend { font-weight: bold; padding: 0 6px; }
.checkbox { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.form-narrow { max-width: 560px; }

/* ---------- Düzenleme ekranı (WikiEditor) ---------- */
.wikiEditor-ui { border: 1px solid var(--border-light); border-radius: 2px; margin-bottom: 10px; background: var(--bg); }
.wikiEditor-ui-toolbar { background: var(--bg-subtle); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 5; }
.wikiEditor-toolbar-row { display: flex; align-items: stretch; flex-wrap: wrap; min-height: 34px; }
.wikiEditor-group { display: flex; align-items: center; padding: 0 4px; border-right: 1px solid var(--border-faint); }
.wikiEditor-tabs { margin-left: auto; display: flex; align-items: stretch; }
.wikiEditor-tabs button {
  border: 0; border-left: 1px solid var(--border-faint); background: transparent; padding: 0 12px; cursor: pointer; color: var(--link);
}
.wikiEditor-tabs button::before { content: '▸ '; color: var(--text-muted); }
.wikiEditor-tabs button.current { background: var(--bg); color: var(--text); }
.wikiEditor-tabs button.current::before { content: '▾ '; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; margin: 3px 1px; padding: 0 4px;
  border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: pointer; color: var(--text);
}
.tool:hover { border-color: var(--border-light); background: var(--bg); }
.tool svg { width: 18px; height: 18px; fill: currentColor; }
.tool-bold { font-weight: bold; font-family: var(--serif); font-size: 1.1em; }
.tool-italic { font-style: italic; font-family: var(--serif); font-size: 1.1em; }
.tool-text { font-size: 0.8125rem; }
.tool select { height: 24px; }
.wikiEditor-section { border-top: 1px solid var(--border-faint); background: var(--bg); padding: 4px 6px; }
.special-chars { display: flex; flex-wrap: wrap; gap: 2px; max-height: 120px; overflow-y: auto; }
.special-chars button { min-width: 26px; height: 26px; border: 1px solid transparent; background: none; cursor: pointer; border-radius: 2px; }
.special-chars button:hover { border-color: var(--border-light); background: var(--bg-subtle); }
.help-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.help-table th, .help-table td { border-bottom: 1px solid var(--border-faint); padding: 4px 8px; text-align: left; vertical-align: top; }
.help-table td:first-child { font-family: var(--mono); white-space: pre-wrap; }
#wpTextbox1 {
  display: block; width: 100%; min-height: 25em; border: 0; margin: 0; padding: 6px 8px; resize: vertical;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; background: var(--bg); color: var(--text); tab-size: 4;
}
#wpTextbox1[readonly] { background: var(--bg-subtle); }
.editOptions { background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: 2px; padding: 12px 14px; margin-bottom: 12px; }
.editOptions label[for=wpSummary] { display: block; font-weight: bold; margin-bottom: 4px; }
#wpSummary { width: 100%; height: 32px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg); margin-bottom: 8px; }
.editCheckboxes { margin-bottom: 10px; }
.editButtons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editButtons .cancel { margin-left: 6px; }
.editHelp { color: var(--text-muted); font-size: 0.8125rem; margin-top: 10px; }
.templatesUsed { font-size: 0.8125rem; color: var(--text-muted); }
.templatesUsed ul { margin: 4px 0 0 1.6em; }

.wiki-dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wiki-dialog { background: var(--bg); border: 1px solid var(--border); border-radius: 2px; width: 100%; max-width: 480px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.wiki-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border-faint); font-weight: bold; }
.wiki-dialog-body { padding: 16px; }
.wiki-dialog-body .field input, .wiki-dialog-body .field select, .wiki-dialog-body .field textarea { max-width: 100%; }
.wiki-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border-faint); }

/* ---------- Fark (diff) ---------- */
table.diff { width: 100%; border-spacing: 4px; table-layout: fixed; background: var(--bg); margin-bottom: 1em; }
table.diff col.diff-marker { width: 2%; }
table.diff col.diff-content { width: 48%; }
table.diff td { padding: 0.33em 0.5em; vertical-align: top; font-family: var(--mono); font-size: 0.8125rem; }
table.diff td div { white-space: pre-wrap; overflow-wrap: break-word; }
.diff-lineno { font-weight: bold; font-family: var(--sans) !important; }
.diff-marker { text-align: right; font-weight: bold; }
.diff-marker[data-marker]::before { content: attr(data-marker); }
.diff-context { background: var(--bg-subtle); border: 1px solid var(--border-faint); border-left-width: 4px; border-radius: 0.33em; color: var(--text); }
.diff-addedline { border: 1px solid var(--diff-add); border-left-width: 4px; border-radius: 0.33em; }
.diff-deletedline { border: 1px solid var(--diff-del); border-left-width: 4px; border-radius: 0.33em; }
.diff-addedline .diffchange { background: var(--diff-ins-bg); }
.diff-deletedline .diffchange { background: var(--diff-del-bg); }
.diffchange { font-weight: bold; text-decoration: none; border-radius: 0.33em; padding: 0.25em 0; }
.diff-header { width: 100%; margin-bottom: 10px; table-layout: fixed; }
.diff-header td { vertical-align: top; text-align: center; width: 50%; padding: 4px; }
.diff-title { font-weight: bold; }
.diff-currentversion-title { font-family: var(--serif); font-weight: normal; font-size: 1.5em; border-bottom: 1px solid var(--border); margin-top: 1em; }

/* ---------- Geçmiş ve listeler ---------- */
#pagehistory, .special-list { list-style: none; margin: 0.5em 0; padding: 0; }
#pagehistory li { padding: 3px 4px; border: 1px solid transparent; }
#pagehistory li.selected { background: var(--bg-subtle); border-color: var(--border-faint); }
#pagehistory input[type=radio] { margin: 0 3px; vertical-align: middle; }
.special-list li { padding: 2px 0; }
.mw-plusminus-pos { color: #006400; }
.mw-plusminus-neg { color: #8b0000; }
.mw-plusminus-null { color: var(--text-muted); }
:root[data-theme="dark"] .mw-plusminus-pos { color: #6fc97a; }
:root[data-theme="dark"] .mw-plusminus-neg { color: #ff8b8b; }
.mw-plusminus-pos.big, .mw-plusminus-neg.big { font-weight: bold; }
.minoredit, .newpage { font-weight: bold; text-decoration: none; border: 0; }
.comment { font-style: italic; color: var(--text-muted); }
.comment .autocomment, .comment .autocomment a { color: var(--text-muted); }
.history-size { color: var(--text-muted); }
.mw-changeslist-separator { color: var(--text-muted); margin: 0 4px; }
.day-heading { font-size: 1em; font-weight: bold; margin: 1em 0 0.3em; }
.columns { column-width: 18em; column-gap: 2em; }
.columns li, .columns .col-group { break-inside: avoid; }
.col-group h3 { margin: 0.5em 0 0.2em; font-size: 1em; }
.col-group ul { list-style: none; margin: 0; padding: 0; }
.allpagesredirect { font-style: italic; }
.searchresult { margin-bottom: 1em; }
.searchresult .result-title { font-size: 1.05em; }
.searchresult .result-snippet { color: var(--text); }
.searchresult .result-meta { color: #14866d; font-size: 0.8125rem; }
.searchmatch { font-weight: bold; }
.search-big { display: flex; gap: 0; max-width: 640px; margin-bottom: 1em; }
.search-big input { flex: 1; height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 2px 0 0 2px; background: var(--bg); }
.search-big button { border-radius: 0 2px 2px 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 1em 0; padding: 0; list-style: none; }
.gallery li { border: 1px solid var(--border-faint); background: var(--bg-subtle); padding: 6px; text-align: center; font-size: 0.8125rem; overflow: hidden; }
.gallery .gallery-img { height: 140px; display: flex; align-items: center; justify-content: center; }
.gallery img { max-height: 140px; max-width: 100%; }
.fullImageLink { margin: 1em 0; }
.fullImageLink img { max-height: 600px; border: 1px solid var(--border-faint); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.fileInfo { color: var(--text-muted); font-size: 0.8125rem; }
.mw-revision { background: var(--bg-subtle); border: 1px solid var(--border-light); padding: 6px 10px; margin-bottom: 10px; font-size: 0.8125rem; }

.upload-drop { border: 2px dashed var(--border); border-radius: 4px; padding: 24px; text-align: center; color: var(--text-muted); margin-bottom: 12px; cursor: pointer; }
.upload-drop.drag { border-color: var(--primary); background: var(--bg-subtle); }
.upload-preview img { max-height: 200px; margin-top: 8px; }
progress { width: 100%; max-width: 520px; }

/* ---------- Ana sayfa ---------- */
.mainpage-welcome { text-align: center; background: var(--bg-subtle); border: 1px solid var(--border-light); padding: 18px 12px; margin-bottom: 14px; }
.mainpage-welcome-title { font-family: var(--serif); font-size: 1.9em; line-height: 1.3; }
.mainpage-welcome-sub { margin-top: 4px; }
.mainpage-welcome-count { color: var(--text-muted); font-size: 0.875em; margin-top: 2px; }
.mainpage-columns { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 14px; }
.mainpage-box { border: 1px solid var(--border-light); padding: 0 12px 10px; background: var(--bg); overflow: hidden; }
.mainpage-box-title { font-family: var(--serif); font-size: 1.25em; margin: 0 -12px 8px; padding: 6px 12px; background: var(--bg-muted); border-bottom: 1px solid var(--border-light); }

/* ---------- Alt bilgi ---------- */
.mw-footer { max-width: 1596px; margin: 0 auto; padding: 16px 24px 32px; font-size: 0.75rem; }
.mw-footer-inner { border-top: 1px solid var(--border-light); padding-top: 12px; margin-left: calc(12.25rem + 24px); }
body.sidebar-hidden .mw-footer-inner { margin-left: 0; }
.mw-footer p { margin: 0.4em 0; }

/* ---------- Duyarlı tasarım ---------- */
@media (max-width: 999px) {
  .mw-page-container { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .vector-sidebar { display: none; position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: 260px; background: var(--bg); padding: 16px; box-shadow: 2px 0 12px rgba(0,0,0,.25); overflow-y: auto; }
  body.menu-open .vector-sidebar { display: block; }
  body.sidebar-hidden .vector-sidebar { display: none; }
  body.menu-open.sidebar-hidden .vector-sidebar { display: block; }
  .mw-footer-inner { margin-left: 0; }
  .vector-header { padding: 8px 16px; }
}
@media (max-width: 720px) {
  .mw-logo-tagline { display: none; }
  .mw-logo-wordmark { font-size: 1.1rem; }
  .mw-logo-icon { width: 36px; height: 36px; }
  .vector-header { flex-wrap: wrap; }
  .vector-search { order: 5; flex-basis: 100%; max-width: none; }
  .infobox, .thumb.tright, .thumb.tleft, .floatright, .floatleft { float: none; margin: 0.5em auto; width: auto; max-width: 100%; }
  .mainpage-columns { grid-template-columns: 1fr; }
  table.diff td { font-size: 0.75rem; }
}
@media print {
  .vector-header, .vector-sidebar, .vector-page-toolbar, .mw-editsection, .mw-footer { display: none !important; }
  .mw-page-container { display: block; }
}
