/* Standartlar ve Yetkinlikler sayfası (/standartlar.html)
   Renkler yalnızca --th-* tema tokenlarından gelir; açık ve koyu temada aynı kurallar çalışır. */

.std-page { max-width: 980px; }
.std-page h2 { scroll-margin-top: 96px; }
.std-page .breadcrumb { max-width: none; margin: 0 0 1rem; padding: 0; }

/* Sayfa içi çapa menüsü */
.std-toc { margin: 1.4rem 0 1.2rem; }
.std-toc__title { font-family: var(--font-heading); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--th-muted); margin: 0 0 .5rem; }
.std-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.std-toc a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px;
  padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--th-border); background: var(--th-surface);
  color: var(--th-heading); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.std-toc a:hover, .std-toc a:focus-visible { border-color: var(--th-amber-line); background: var(--th-tint-amber); }
.std-toc .std-count { font-weight: 700; color: var(--th-accent-text); }

/* Hızlı filtre */
.std-filter { margin: 0 0 1.6rem; padding: 1rem 1.1rem; border: 1px solid var(--th-border); border-radius: 12px; background: var(--th-surface-2); }
.std-filter label { display: block; font-weight: 700; color: var(--th-heading); margin-bottom: .45rem; font-size: .95rem; }
.std-filter__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.std-filter input[type="search"] {
  flex: 1 1 240px; min-width: 0; min-height: 44px; padding: .55rem .8rem;
  border: 1px solid var(--th-input-border); border-radius: 8px;
  background: var(--th-input-bg); color: var(--th-text); font: inherit; font-size: 1rem;
}
.std-filter input[type="search"]::placeholder { color: var(--th-placeholder); }
.std-filter input[type="search"]:focus-visible { outline: 3px solid var(--th-amber-line); outline-offset: 1px; }
.std-filter__clear {
  min-height: 44px; padding: .5rem .9rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--th-border-strong); background: var(--th-surface); color: var(--th-heading); font: inherit; font-weight: 600;
}
.std-filter__status { margin: .55rem 0 0; font-size: .88rem; color: var(--th-text-2); }
.std-empty { padding: 1rem 1.1rem; border: 1px dashed var(--th-border-strong); border-radius: 10px; color: var(--th-text-2); }

/* Gruplar ve standart kartları */
.std-group { margin-top: 2.2rem; }
.std-group > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; border-top: 1px solid var(--th-border); padding-top: 1.3rem; }
.std-group__count { font-size: .85rem; font-weight: 600; color: var(--th-muted); }
.std-group__intro { color: var(--th-text-2); }
.std-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: .8rem; margin: .8rem 0 0; padding: 0; }
@media (min-width: 760px) { .std-list { grid-template-columns: 1fr 1fr; } }
.std-item {
  display: flex; flex-direction: column; gap: .35rem; min-width: 0;
  padding: .95rem 1rem 1rem; border: 1px solid var(--th-border); border-radius: 12px; background: var(--th-surface);
  scroll-margin-top: 96px;
}
.std-item:target { border-color: var(--th-amber-line); box-shadow: 0 0 0 3px var(--th-tint-amber); }
.std-code {
  align-self: flex-start; max-width: 100%; overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 6px;
  color: var(--th-blue-ink); background: var(--th-tint-blue); border: 1px solid var(--th-blue-line);
}
.std-item--reg .std-code { color: var(--th-amber-ink); background: var(--th-tint-amber); border-color: var(--th-amber-line); }
.article .std-item h3 { font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.35; color: var(--th-heading); margin: .15rem 0 0; }
.article .std-item p { margin: 0; line-height: 1.6; font-size: .93rem; color: var(--th-text); }
.article .std-item .std-ref { font-size: .82rem; color: var(--th-muted); }
.std-links { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin: .25rem 0 0; padding: 0; font-size: .86rem; }
.std-links a { display: inline-block; padding-block: .15rem; color: var(--th-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.std-links__type { color: var(--th-muted); }

/* Yetkiler */
.std-auth { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: .8rem; }
@media (min-width: 760px) { .std-auth { grid-template-columns: 1fr 1fr; } }
.std-auth__card { padding: 1.1rem 1.15rem; border-radius: 12px; border: 1px solid var(--th-green-line); background: var(--th-tint-green); }
.article .std-auth__card h3 { display: flex; gap: .5rem; align-items: baseline; font-family: var(--font-heading); font-size: 1.05rem; color: var(--th-heading); margin: 0 0 .35rem; }
.std-auth__card h3 i { color: var(--th-green-ink); }
.article .std-auth__card p { margin: 0; font-size: .93rem; color: var(--th-text); line-height: 1.6; }

[hidden] { display: none !important; }

.std-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
