/* Yardım merkezi (site ve program ortak, 22.11): solda gruplanmış konular, sağda tek sütun.
   Renkler iki temanın değişkenlerinden gelir: site (--line, --ink, --brand) ya da program (--border, --text, --primary). */
.hc {
    --hc-line: var(--line, var(--border, #e5e7eb));
    --hc-ink: var(--ink, var(--text, #1b2344));
    --hc-ink2: var(--ink-2, var(--text-2, #4a5058));
    --hc-muted: var(--muted, #6b7080);
    --hc-acc: var(--brand, var(--primary, #d24a2e));
    --hc-acc-soft: var(--brand-soft, var(--primary-soft, #fcede8));
    --hc-bg: var(--surface, #fff);
    --hc-bg2: var(--bg, #f6f7f9);
    display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start;
}
.hc-main { min-width: 0; }

/* Sol menü */
.hc-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding: 2px 4px 16px 0; font-size: 14px; scrollbar-width: thin; }
.hc-side-g { margin: 18px 0 6px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-muted); }
.hc-side-g:first-of-type { margin-top: 0; }
.hc-back + .hc-side-g { margin-top: 14px; }
.hc-side-c, .hc-side-c > summary { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--hc-ink2); text-decoration: none; line-height: 1.3; cursor: pointer; }
details.hc-side-c { display: block; padding: 0; border: 0; background: none; margin: 0; border-radius: 0; }
.hc-side-c > summary { list-style: none; font-size: inherit; font-weight: 400; user-select: none; }
details.hc-side-c > summary::before { display: none; }
details.hc-side-c[open] > summary { border-bottom: 0; border-radius: 9px; }
.hc-side details.hc-side-c > nav { margin: 2px 0 8px 18px; }
.hc-side-c > summary::-webkit-details-marker { display: none; }
.hc-side-c .icon { width: 16px; height: 16px; flex: none; color: var(--hc-muted); }
.hc-side-c span { flex: 1; }
.hc-side-c small { font-size: 12px; color: var(--hc-muted); font-variant-numeric: tabular-nums; }
a.hc-side-c:hover, .hc-side-c > summary:hover { background: var(--hc-bg2); color: var(--hc-ink); }
a.hc-side-c[aria-current], .hc-side-c > summary.is-on { background: var(--hc-acc-soft); color: var(--hc-ink); font-weight: 600; }
a.hc-side-c[aria-current] .icon, .hc-side-c > summary.is-on .icon { color: var(--hc-acc); }
.hc-side-c nav { display: grid; margin: 2px 0 8px 18px; border-left: 2px solid var(--hc-line); }
.hc-side-c nav a { padding: 6px 8px 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--hc-ink2); text-decoration: none; line-height: 1.35; font-size: 13.5px; }
.hc-side-c nav a:hover { color: var(--hc-ink); }
.hc-side-c nav a[aria-current] { border-color: var(--hc-acc); color: var(--hc-ink); font-weight: 600; }
.hc-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px 10px; color: var(--hc-ink2); text-decoration: none; font-size: 13.5px; }
.hc-back:hover { color: var(--hc-ink); }

/* Arama ve başlangıç */
.hc-search { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; background: var(--hc-bg); border: 1px solid var(--hc-line); border-radius: 12px; margin-bottom: 16px; }
.hc-search:focus-within { border-color: var(--hc-acc); box-shadow: 0 0 0 3px var(--hc-acc-soft); }
.hc-search > .icon { width: 18px; height: 18px; color: var(--hc-muted); flex: none; }
.hc-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font: inherit; color: var(--hc-ink); outline: none; }
.hc-res { margin: 0 0 16px; color: var(--hc-ink2); }
.hc-start { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 28px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-acc-soft); color: var(--hc-ink); text-decoration: none; }
.hc-start > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--hc-bg); color: var(--hc-acc); flex: none; }
.hc-start > span { flex: 1; color: var(--hc-ink2); font-size: 14px; line-height: 1.45; }
.hc-start b { display: block; color: var(--hc-ink); font-size: 15.5px; margin-bottom: 2px; }
.hc-start > .icon { color: var(--hc-muted); flex: none; }

/* Konu bölümleri: başlık + iki sütunlu, eşit boylu satırlar */
.hc-sec { scroll-margin-top: 90px; margin: 0 0 34px; }
.hc-sec > header { display: flex; align-items: center; gap: 11px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--hc-line); }
.hc-sec > header i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--hc-acc-soft); color: var(--hc-acc); flex: none; }
.hc-sec > header .icon { width: 17px; height: 17px; }
.hc-sec h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; color: var(--hc-ink); }
.hc-sec > header small { color: var(--hc-muted); font-size: 13px; white-space: nowrap; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-list a { display: block; height: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-bg); color: var(--hc-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hc-list a:hover { border-color: var(--hc-acc); box-shadow: 0 2px 10px rgba(20, 24, 40, .06); }
.hc-list b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.hc-list span { display: block; margin-top: 4px; color: var(--hc-muted); font-size: 13.5px; line-height: 1.45; }
.hc-empty { padding: 26px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-bg); }
.hc-empty h2 { margin: 0 0 6px; font-size: 20px; }
.hc-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-bg); }
.hc-more b { display: block; color: var(--hc-ink); margin-bottom: 2px; }
.hc-more span { color: var(--hc-ink2); font-size: 14px; }

/* Makale */
.hc-toc { margin: 4px 0 22px; padding: 14px 18px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-bg2); }
.hc-toc p { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-muted); }
.hc-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; font-size: 14px; }
.hc-toc li { padding: 3px 0; break-inside: avoid; }
.hc-toc a { color: var(--hc-ink2); text-decoration: none; }
.hc-toc a:hover { color: var(--hc-acc); text-decoration: underline; }
.hc-body h2 { scroll-margin-top: 90px; }
.hc-draft { padding: 10px 14px; border-radius: 10px; background: #fff8e8; border: 1px solid #f1e2bc; color: #5b4a22; }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.hc-pn a { display: block; padding: 13px 16px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-bg); color: var(--hc-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.hc-pn a:hover { border-color: var(--hc-acc); }
.hc-pn a.nx { grid-column: 2; text-align: right; }
.hc-pn small { display: block; color: var(--hc-muted); font-weight: 400; font-size: 12.5px; margin-bottom: 3px; }

/* Sitedeki makale sayfası */
.hc-pub { padding: 40px 0 96px; }
.hc-pub.hc { gap: 56px; grid-template-columns: 260px minmax(0, 1fr); }
.hc-pub .hc-main { max-width: 780px; }

@media (max-width: 1000px) {
    .hc, .hc-pub.hc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hc-side { position: static; max-height: none; overflow: visible; padding: 0; }
    /* Ana sayfada konular yatay kaydırılan şerit; makalede menü metnin altına iner */
    .hc:not(.hc-doc) .hc-side { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
    .hc:not(.hc-doc) .hc-side-g { display: none; }
    .hc:not(.hc-doc) .hc-side-c { flex: none; border: 1px solid var(--hc-line); background: var(--hc-bg); white-space: nowrap; }
    .hc-doc .hc-side { order: 2; border-top: 1px solid var(--hc-line); padding-top: 16px; }
    .hc-list { grid-template-columns: minmax(0, 1fr); }
    .hc-pn { grid-template-columns: minmax(0, 1fr); } .hc-pn a.nx { grid-column: auto; }
}
