/* Hukuk CMS — hukuki araçlar (A grubu) ek stilleri.
 * Yalnızca tema değişkenleri kullanılır; sabit renk yoktur. Sınıflar "ta-" önekiyle ayrışır.
 */

/* Sonuç kutusu: kısa hesap adımları ve anahtar-değer satırları */
.ta-kv { display: grid; gap: 0; margin: 14px 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); overflow: hidden; }
.ta-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--c-border); font-size: 15.5px; }
.ta-kv > div:last-child { border-bottom: 0; }
.ta-kv dt { color: var(--c-muted); min-width: 0; }
.ta-kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ta-kv .ta-total { background: var(--c-primary-soft); }
.ta-kv .ta-total dd { color: var(--c-primary-dark); }
.ta-calc { margin: 10px 0 0; padding-left: 1.3em; font-size: 15px; color: var(--c-muted); }
.ta-calc li { margin-bottom: 4px; overflow-wrap: anywhere; }
.ta-calc strong { color: var(--c-text); }
.ta-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-border); font-size: 14.5px; }
.ta-note > .ic { flex: none; margin-top: 3px; color: var(--c-primary); }
.ta-note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.ta-note.warn > .ic { color: var(--warn); }
.ta-note p { margin: 0; }
.tool-err { margin: 0; color: var(--err); }
.ta-date { font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; color: var(--c-primary-dark); margin: 6px 0 10px; }
.tool-result .big-num { overflow-wrap: anywhere; }
.ta-sub { display: block; font-size: 14px; color: var(--c-muted); font-weight: 600; margin-top: 4px; }

/* Onay kutusu satırı ve seçenek grupları */
.ta-check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.ta-check-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--c-primary); }
.ta-fieldset legend { font-family: var(--f-body); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ta-hint { display: block; font-size: 13px; font-weight: 400; color: var(--c-muted); }
.tool select { appearance: auto; }

/* Sekmeler */
.ta-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--c-surface2); border-radius: calc(var(--r-sm) + 4px); }
.ta-tab { flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ta-tab[aria-selected="true"] { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }
.ta-tab:focus-visible { outline: 3px solid var(--c-accent); }
.ta-panel > * + * { margin-top: 14px; }
.ta-panel h3 { font-size: 18px; margin: 0; }

/* Adım adım akış */
.ta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: tastep; }
.ta-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; counter-increment: tastep; }
.ta-step::before { content: counter(tastep); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 800; font-size: 15px; position: relative; z-index: 1; }
.ta-step::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--c-border); }
.ta-step:last-child { padding-bottom: 0; }
.ta-step:last-child::after { display: none; }
.ta-step h3 { font-size: 17.5px; margin: 8px 0 4px; }
.ta-step p { margin: 0 0 6px; font-size: 15.5px; color: var(--c-muted); }
.ta-step ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 15px; color: var(--c-muted); }
.ta-step .tag { margin-left: 6px; vertical-align: 2px; }
.ta-step.is-active::before { background: var(--c-primary); color: var(--c-primary-ink); }
.ta-step [data-mode-only] { display: block; }

/* Açılır bölümler */
.ta-acc { display: grid; gap: 10px; }
.ta-acc details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.ta-acc details[open] { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); }
.ta-acc summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.ta-acc summary::-webkit-details-marker { display: none; }
.ta-acc summary > .ic:first-child { color: var(--c-primary); }
.ta-acc summary .ta-chev { margin-left: auto; transition: transform .2s; color: var(--c-muted); }
.ta-acc details[open] summary .ta-chev { transform: rotate(180deg); }
.ta-acc .ta-acc-body { padding: 0 16px 16px; font-size: 15.5px; color: var(--c-muted); }
.ta-acc .ta-acc-body p { margin: 0 0 8px; }
.ta-acc .ta-acc-body ul { margin: 0 0 8px; padding-left: 1.2em; }
.ta-acc .ta-acc-body > :last-child { margin-bottom: 0; }

/* Bilgi kartları */
.ta-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ta-card { padding: 18px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); min-width: 0; }
.ta-card h3 { display: flex; gap: 8px; align-items: center; font-size: 17px; margin: 0 0 6px; }
.ta-card h3 .ic { color: var(--c-primary); }
.ta-card p { margin: 0 0 6px; font-size: 15px; color: var(--c-muted); }
.ta-card p:last-child { margin-bottom: 0; }
.ta-card .tag { margin-bottom: 8px; }

/* İşaretlenebilir kontrol listesi */
.ta-progress { display: grid; gap: 6px; }
.ta-progress-bar { height: 10px; border-radius: 99px; background: var(--c-surface2); overflow: hidden; }
.ta-progress-bar i { display: block; height: 100%; width: 0; background: var(--c-primary); border-radius: 99px; transition: width .25s; }
.ta-progress-txt { font-size: 14px; color: var(--c-muted); font-weight: 600; }
.ta-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ta-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); font-weight: 500; font-size: 15.5px; cursor: pointer; }
.ta-checklist input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--c-primary); }
.ta-checklist small { display: block; font-weight: 400; color: var(--c-muted); font-size: 14px; }
.ta-checklist label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.ta-checklist input:checked + span > strong, .ta-checklist input:checked + span { text-decoration-color: var(--c-muted); }
.ta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Karşılaştırma tablosu */
.ta-compare { min-width: 760px; }
.ta-compare th:first-child { position: sticky; left: 0; background: var(--c-surface2); z-index: 1; min-width: 130px; }
.ta-compare td { min-width: 150px; }
.ta-compare .is-match { background: var(--c-primary-soft); }
.ta-compare thead .is-match { background: var(--c-primary); color: var(--c-primary-ink); }

/* Seçici sonuç rozetleri */
.ta-yes { background: var(--ok-soft); color: var(--ok); }
.ta-no { background: var(--c-surface2); color: var(--c-muted); }

@media (max-width: 640px) {
  .ta-kv > div { flex-direction: column; gap: 2px; }
  .ta-kv dd { text-align: left; }
  .ta-tab { flex-basis: 100%; }
  .ta-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .ta-step::before { width: 34px; height: 34px; }
  .ta-step::after { left: 16px; top: 34px; }
}

@media print {
  .tool [data-calc], .tool [data-print], .ta-tabs, .ta-actions { display: none !important; }
  .ta-panel[hidden] { display: block !important; }
  .ta-acc details > :not(summary) { display: block; }
  .ta-checklist label { break-inside: avoid; }
  .tool-result { background: none; }
}
