/* SiberGüvenlik101 tasarım sistemi — kurumsal, kompakt, erişilebilir. Harici yazı tipi yok (performans + CSP). */
:root {
  --navy: #10283F; --slate: #1A344B; --teal: #168B87; --teal-600: #11706d; --teal-50: #E7F4F3;
  --bg: #F6F8FA; --surface: #FFFFFF; --border: #E1E7EC; --border-strong: #CBD5DD; --text: #182B3A; --text-2: #5A6A7C; --text-3: #65717E;
  --crit: #B42318; --crit-bg: #FEF3F2; --high: #C4320A; --high-bg: #FFF4ED; --med: #A15C07; --med-bg: #FFFAEB; --low: #2E6F9E; --low-bg: #EFF6FB;
  --ok: #067647; --ok-bg: #ECFDF3; --unk: #475467; --unk-bg: #F2F4F7; --info: #3E5C76; --info-bg: #EEF3F7;
  --radius: 8px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(16,40,63,.06), 0 1px 3px rgba(16,40,63,.08); --shadow-lg: 0 8px 24px rgba(16,40,63,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1200px; --gutter: 16px; --sidebar: 224px; --topbar: 52px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Metin içindeki bağlantılar yalnız renkle ayırt edilmez (WCAG 1.4.1) */
p a:not(.btn), li a:not(.btn), label a, .help a, .lead a, .small a:not(.btn), td a:not(.btn), dd a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.site-nav a, .side-link, .tabs a, .chip, .pg, .breadcrumb a, .tool-card, .list-card, .logo, .site-footer li a:not(.btn), .toc li a:not(.btn), .menu-pop a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3, h2.h3 { font-size: 1.02rem; } h4 { font-size: .92rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .82rem; }
.muted { color: var(--text-2); } .mono { font-family: var(--mono); font-size: .85em; word-break: break-all; }
code { font-family: var(--mono); font-size: .86em; background: var(--unk-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: #0f2233; color: #e6edf3; padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; font: 12.5px/1.5 var(--mono); }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Düğmeler --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 .88rem/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s; }
/* Beyaz metin + teal-600 ≈ 5.6:1 (WCAG AA); açık teal yalnız dekoratif kullanılır */
.btn-primary { background: var(--teal-600); color: #fff; } .btn-primary:hover { background: #0c5956; }
.btn-dark { background: var(--navy); color: #fff; } .btn-dark:hover { background: var(--slate); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); } .btn-secondary:hover { border-color: var(--text-3); background: #fbfcfd; }
.btn-ghost { background: transparent; color: var(--text-2); } .btn-ghost:hover { background: var(--unk-bg); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--crit); border-color: #f1c4bf; } .btn-danger:hover { background: var(--crit-bg); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: .8rem; } .btn-lg { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; } .btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--teal-600); padding: 0; font: inherit; cursor: pointer; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --- Kartlar ve düzen --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.grid > .card + .card, .split > .card + .card, .row > .card + .card { margin-top: 0; } /* ızgara aralığı gap ile verilir */
.card > :first-child, .prose > :first-child { margin-top: 0; }
.link-list li a { display: inline-block; padding: 4px 0; min-height: 24px; } /* WCAG 2.5.8 hedef boyutu */
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 12px; }
.card-h h2, .card-h h3 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; } .card-flush .card-h { padding: 12px 16px 0; margin: 0 0 8px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row-between { justify-content: space-between; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .w100 { width: 100%; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.kpi .k { font-size: .75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi .v { font-size: 1.45rem; font-weight: 700; color: var(--navy); margin-top: 2px; line-height: 1.2; }
.kpi .d { font-size: .78rem; color: var(--text-2); }
.kpi.tone-crit .v { color: var(--crit); } .kpi.tone-ok .v { color: var(--ok); }

/* --- Rozetler --- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.sev-critical { background: var(--crit-bg); color: var(--crit); border-color: #fecdca; } .sev-high { background: var(--high-bg); color: var(--high); border-color: #fddcab; }
.sev-medium { background: var(--med-bg); color: var(--med); border-color: #fedf89; } .sev-low { background: var(--low-bg); color: var(--low); border-color: #c7dff0; }
.sev-info, .sev-none { background: var(--info-bg); color: var(--info); } .sev-unknown { background: var(--unk-bg); color: var(--unk); }
.st-pass { background: var(--ok-bg); color: var(--ok); } .st-fail { background: var(--crit-bg); color: var(--crit); } .st-warn { background: var(--med-bg); color: var(--med); }
.st-unknown, .st-error { background: var(--unk-bg); color: var(--unk); border: 1px dashed #c4cbd4; } .st-info, .st-not_applicable { background: var(--info-bg); color: var(--info); }
.badge-soft { background: var(--unk-bg); color: var(--text); }
.s-verified, .s-active, .s-completed, .s-resolved, .s-done, .s-paid, .s-published, .s-implemented, .s-approved { background: var(--ok-bg); color: var(--ok); }
.s-pending, .s-queued, .s-running, .s-trial, .s-in_progress, .s-in_review, .s-tech_review, .s-acknowledged, .s-partial, .s-investigating { background: var(--low-bg); color: var(--low); }
.s-failed, .s-expired, .s-revoked, .s-suspended, .s-past_due, .s-reopened, .s-new, .s-open, .s-dead { background: var(--high-bg); color: var(--high); }
.s-grace_period, .s-mitigated, .s-blocked, .s-contained { background: var(--med-bg); color: var(--med); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--teal-50); color: var(--teal-600); font-size: .75rem; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; color: var(--text); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --- Formlar --- */
.field { margin-bottom: 12px; } .field > label, .label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 4px; color: var(--text); }
.input, .select, .textarea { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); outline: 2px solid rgba(22,139,135,.18); outline-offset: 0; }
.textarea { min-height: 96px; resize: vertical; } .input-lg { min-height: 46px; font-size: 1rem; }
.help { font-size: .78rem; color: var(--text-2); margin-top: 3px; } .err { font-size: .8rem; color: var(--crit); margin-top: 3px; }
.field.has-err .input, .field.has-err .select, .field.has-err .textarea { border-color: var(--crit); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; margin-bottom: 8px; } .check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--teal); }
.inline-form { display: flex; gap: 8px; align-items: stretch; } .inline-form .input { flex: 1; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 0 0 12px; } legend { font-weight: 600; padding: 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; } .filters .input, .filters .select { width: auto; min-width: 140px; min-height: 34px; }

/* --- Uyarılar --- */
.alert { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid; font-size: .88rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.alert-success { background: var(--ok-bg); border-color: #abefc6; color: #05603a; } .alert-error { background: var(--crit-bg); border-color: #fecdca; color: #912018; }
.alert-warning { background: var(--med-bg); border-color: #fedf89; color: #93370d; } .alert-info { background: var(--info-bg); border-color: #cfdbe6; color: #2a4a63; }
.callout { padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--teal-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0; }
.callout-uyari { border-color: var(--med); background: var(--med-bg); } .callout-tehlike { border-color: var(--crit); background: var(--crit-bg); } .callout-ipucu { border-color: var(--low); background: var(--low-bg); }

/* --- Tablolar --- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr:hover td { background: #fafcfd; }
.table .sort { color: inherit; } .table .sort.active { color: var(--navy); }
.table-compact td, .table-compact th { padding: 6px 8px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: .88rem; margin: 0; } .dl dt { color: var(--text-2); } .dl dd { margin: 0; word-break: break-word; }
.empty { text-align: center; padding: 28px 16px; color: var(--text-2); } .empty .ico { color: var(--text-3); margin-bottom: 6px; }
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.pg { display: inline-flex; min-width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .82rem; }
.pg.active { background: var(--navy); color: #fff; border-color: var(--navy); } .pagination .muted { margin-left: 8px; }
.breadcrumb { font-size: .8rem; color: var(--text-2); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; } .breadcrumb a { color: var(--text-2); } .breadcrumb .sep { color: var(--text-3); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 8px 12px; color: var(--text-2); font-weight: 600; font-size: .86rem; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--navy); border-color: var(--teal); }
.progress { height: 8px; background: var(--unk-bg); border-radius: 99px; overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.meter { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--unk-bg); }
.meter .m-crit { background: var(--crit); } .meter .m-high { background: var(--high); } .meter .m-med { background: #dc9b14; } .meter .m-low { background: var(--low); } .meter .m-ok { background: var(--ok); } .meter .m-unk { background: #b8c1cc; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--text-2); margin-top: 6px; } .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--border); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal); }
.timeline .meta { font-size: .76rem; color: var(--text-2); }
.score-ring .track { fill: none; stroke: var(--unk-bg); stroke-width: 9; } .score-ring .bar { fill: none; stroke-width: 9; stroke-linecap: round; }
.score-ring .val { font: 700 26px var(--font); fill: var(--navy); } .score-ring .max { font: 600 10px var(--font); fill: var(--text-2); }
.tone-good .bar { stroke: var(--ok); } .tone-fair .bar { stroke: #dc9b14; } .tone-poor .bar { stroke: var(--high); } .tone-critical .bar { stroke: var(--crit); } .tone-unknown .bar { stroke: #b8c1cc; }
.spark { color: var(--teal); height: 56px; display: block; }
dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(16,40,63,.45); }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .86rem; }
details.disclosure > summary { cursor: pointer; list-style: none; } details.disclosure > summary::-webkit-details-marker { display: none; }
.prose { font-size: 1rem; line-height: 1.75; } .prose h2 { font-size: 1.3rem; margin-top: 1.6em; } .prose h3 { font-size: 1.08rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .3em; } .prose blockquote { margin: 1em 0; padding: 8px 14px; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.prose img { border-radius: var(--radius); } .prose table { font-size: .9rem; }

/* --- Kamu sitesi --- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none !important; }
.logo .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.logo b { color: var(--teal-600); }
.site-nav { display: flex; gap: 2px; margin-left: 8px; } .site-nav a { color: var(--text); font-weight: 600; font-size: .88rem; padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; }
.site-nav a:hover, .site-nav a.active { background: var(--unk-bg); color: var(--navy); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; } .site-nav .nav-mobile-only { display: none; }
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 36px 0 28px; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; } .hero .lead { font-size: 1.08rem; color: var(--text-2); margin-bottom: 18px; }
.hero-search { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px; box-shadow: var(--shadow); }
.hero-search .select { width: auto; border: 0; background: var(--unk-bg); min-width: 0; max-width: 46%; }
.hero-search .input { border: 0; font-size: 1rem; min-width: 0; } .hero-search .input:focus { outline: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .82rem; color: var(--text-2); } .trust-row span { display: inline-flex; gap: 6px; align-items: center; }
.section { padding: 28px 0; } .section-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .section-h h2 { margin: 0; }
.tool-card { display: flex; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none !important; height: 100%; }
.tool-card:hover { border-color: var(--teal); box-shadow: var(--shadow); } .tool-card .ti { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.tool-card h3 { font-size: .92rem; margin: 0 0 2px; } .tool-card p { font-size: .8rem; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .meta { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.list-card { display: block; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none !important; }
.list-card:hover { border-color: var(--teal); } .list-card h3 { font-size: .95rem; margin: 4px 0; } .list-card p { font-size: .84rem; color: var(--text-2); margin: 0; }
.page-head { padding: 22px 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-head h1 { margin-bottom: 4px; } .page-head .lead { color: var(--text-2); font-size: 1rem; margin: 0; }
.site-footer { background: var(--navy); color: #c9d6e2; padding: 28px 0 18px; margin-top: 36px; font-size: .85rem; }
.site-footer a { color: #e6eef5; } .site-footer h4, .site-footer .footer-h { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: #9fb3c6; }
.price-card { display: flex; flex-direction: column; } .price-card.hl { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.price-card .price { font-size: 1.6rem; font-weight: 800; color: var(--navy); } .price-card ul { padding-left: 1.1em; margin: 8px 0 14px; font-size: .86rem; } .price-card .btn { margin-top: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.article-body { max-width: 760px; } /* istisna: makale okuma sütunu */
/* Form alanı istisnası: başlık ve giriş metni tam genişlikte kalır, yalnız form kartı daraltılır. */
.auth-head { margin-bottom: 16px; } .auth-head h1 { margin: 0 0 6px; }
.form-narrow { max-width: 520px; } .form-narrow.sm { max-width: 440px; }
.toc { position: sticky; top: 76px; font-size: .84rem; } .toc a { display: block; padding: 3px 0; color: var(--text-2); } .toc .l3 { padding-left: 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--text-2); margin: 8px 0 14px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.module-list { list-style: none; margin: 0; padding: 0; } .module-list li a, .module-list li span { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--text); font-size: .86rem; }
.module-list li a:hover { background: var(--unk-bg); text-decoration: none; } .module-list li.done a { color: var(--ok); } .module-list li.current a { background: var(--teal-50); font-weight: 600; }

/* --- Sonuç ekranı --- */
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.coverage { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--text-2); } .coverage b { color: var(--text); }
.check-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; }
.check-item > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.check-item > summary::-webkit-details-marker { display: none; } .check-item > summary h3 { font-size: .9rem; margin: 0; } .check-item > summary p { margin: 2px 0 0; font-size: .82rem; color: var(--text-2); }
.check-item .body { padding: 0 12px 12px; border-top: 1px solid var(--border); font-size: .86rem; } .check-item .body h4 { margin: 10px 0 4px; font-size: .8rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.check-item.st-FAIL { border-left: 3px solid var(--crit); } .check-item.st-WARN { border-left: 3px solid #dc9b14; } .check-item.st-PASS { border-left: 3px solid var(--ok); } .check-item.st-UNKNOWN, .check-item.st-ERROR { border-left: 3px dashed #98a2b3; }
.evidence { white-space: pre-wrap; background: var(--unk-bg); border-radius: var(--radius-sm); padding: 8px 10px; font: 12px/1.5 var(--mono); max-height: 240px; overflow: auto; word-break: break-all; }
.scan-wait { display: flex; gap: 12px; align-items: center; } .spinner { width: 22px; height: 22px; border: 3px solid var(--teal-50); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { scroll-behavior: auto !important; transition: none !important; } }

/* --- Uygulama kabuğu (/app ve /admin) --- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 10px 8px 16px; }
.sidebar .logo { padding: 6px 8px 12px; font-size: .98rem; }
.side-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 12px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: .86rem; font-weight: 500; text-decoration: none !important; }
.side-link:hover { background: var(--unk-bg); } .side-link.active { background: var(--teal-50); color: var(--teal-600); font-weight: 600; } .side-link .ico { color: var(--text-2); } .side-link.active .ico { color: var(--teal-600); }
.side-link .lock { margin-left: auto; color: var(--text-3); font-size: .7rem; } .side-link .count { margin-left: auto; background: var(--crit); color: #fff; border-radius: 99px; font-size: .68rem; padding: 0 6px; }
.admin .sidebar { background: var(--navy); border-right-color: var(--navy); } .admin .sidebar .logo { color: #fff; } .admin .side-sec { color: #7f98b0; }
.admin .side-link { color: #d5e1ec; } .admin .side-link .ico { color: #8fa8bf; } .admin .side-link:hover { background: rgba(255,255,255,.07); } .admin .side-link.active { background: rgba(22,139,135,.25); color: #fff; } .admin .side-link.active .ico { color: #7fd6d2; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 16px; position: sticky; top: 0; z-index: 30; }
.topbar .search { flex: 1; max-width: 420px; } .topbar .search .input { min-height: 34px; background: var(--bg); }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--text-2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--unk-bg); color: var(--text); } .icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--crit); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 3px; font-weight: 700; }
.org-switch { max-width: 240px; } .org-switch .select { min-height: 34px; font-size: .84rem; font-weight: 600; }
.menu { position: relative; } .menu > summary { list-style: none; cursor: pointer; } .menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: .86rem; background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--unk-bg); } .menu-pop .sep { border-top: 1px solid var(--border); margin: 4px 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.content { padding: 16px; width: 100%; max-width: 1360px; } .content-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .content-head h1 { font-size: 1.3rem; margin: 0; }
.content-head .sub { color: var(--text-2); font-size: .86rem; margin: 2px 0 0; }
.bottom-nav { display: none; }
.preview-ribbon { background: var(--med-bg); color: #93370d; text-align: center; font-size: .78rem; padding: 4px 8px; border-bottom: 1px solid #fedf89; }
.site-notice { background: var(--navy); color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* --- Duyarlı --- */
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px var(--gutter) 12px; margin: 0; box-shadow: var(--shadow-lg); }
  .site-nav.open { display: flex; } .site-nav a { padding: 10px; font-size: .95rem; } .nav-toggle { display: inline-grid; } .site-nav .nav-mobile-only { display: block; }
  .shell { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); z-index: 60; box-shadow: var(--shadow-lg); }
  .sidebar.open { display: block; } .topbar .search { display: none; } .org-switch { max-width: 160px; }
  .content { padding: 12px 12px 84px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; min-height: 54px; font-size: .68rem; color: var(--text-2); background: none; border: 0; font-family: inherit; text-decoration: none; }
  .bottom-nav .active { color: var(--teal-600); } .bottom-nav .primary .ico { background: var(--teal-600); color: #fff; border-radius: 10px; padding: 6px; width: 32px; height: 32px; margin-top: -10px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; } h1 { font-size: 1.35rem; } .hero { padding: 24px 0 20px; } .hero h1 { font-size: 1.5rem; } .hero .lead { font-size: .98rem; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hero-search { flex-direction: column; } .hero-search .select { max-width: none; width: 100%; } .hero-search .btn { width: 100%; }
  .header-actions .btn-secondary { display: none; } .result-head { grid-template-columns: 1fr; justify-items: start; }
  .dl { grid-template-columns: 1fr; } .dl dt { font-weight: 600; margin-top: 6px; }
  .table-cards thead { display: none; } .table-cards tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; } .table-cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; }
  .table-cards td::before { content: attr(data-label); color: var(--text-2); font-size: .76rem; font-weight: 600; flex: none; }
  .inline-form { flex-direction: column; } .btn { min-height: 40px; } .filters .input, .filters .select { flex: 1 1 140px; }
  .content-head .btn-group { width: 100%; }
  .site-header .bar { gap: 10px; } .header-actions { gap: 4px; } .header-actions .btn { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 420px) {
  /* Dar telefonlarda başlık çubuğu taşmasın: logo yazısı küçülür, arama simgesi menüde kalır */
  .logo { font-size: .95rem; gap: 6px; } .header-actions .search-link { display: none; }
}
@media print { .site-header, .site-footer, .sidebar, .topbar, .bottom-nav, .no-print, .btn { display: none !important; } body { background: #fff; } .card { border: 0; padding: 0; } .check-item .body { display: block !important; } }
