/* ==========================================================================
   biMARJ — Araç detay sayfaları (ortak tasarım sistemi)

   TÜM hesaplama aracı detay sayfaları tek şablonu (views/tools/show.php) ve
   bu tek stil dosyasını kullanır. Sayfa başına yama yoktur; pazaryeri ve
   araç grubu farkları yalnızca aksan renkleriyle verilir.

   Yalnızca araç sayfalarında yüklenir (controller: pageStyles => ['tool-detail']).
   ========================================================================== */

/* ---- Üst giriş bandı ---------------------------------------------------- */
.tp-hero{
  background:
    radial-gradient(760px 320px at 84% 18%, rgba(255,255,255,.72), transparent 62%),
    linear-gradient(112deg, #ffffff 0%, #f8fbf9 46%, #eef5f0 100%);
  border-bottom: 1px solid #e9efec;
  padding: 22px 0 24px;
  position: relative;
}
/* Araç/pazaryeri aksanı: ince üst şerit */
.tp-hero:before{
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--tp-accent, #0f8a5f);
}

.tp-hero .breadcrumb{
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 14px; padding: 0;
  font-size: 12.5px; color: #77848c;
}
.tp-hero .breadcrumb li + li:before{ content: "›"; margin-right: 8px; color: #b3bec4; }
.tp-hero .breadcrumb a{ color: #77848c; }
.tp-hero .breadcrumb a:hover{ color: var(--green); }

.tp-head{ display: flex; align-items: center; gap: 16px; }

/* Logo / ikon kutusu */
.tp-badge{
  width: 76px; height: 56px; flex: 0 0 76px;
  border-radius: 14px; display: grid; place-items: center;
  background: var(--tp-soft, #e7f7ef); color: var(--tp-accent, #0f8a5f);
  padding: 6px; box-sizing: border-box;
}
.tp-badge img{
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;              /* logo oranı korunur */
}
.tp-badge svg{
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Pazaryeri logoları — oranları çok farklı, optik denge için ayrı ayarlanır */
.tp-trendyol  .tp-badge img{ max-height: 20px; }
.tp-hepsi     .tp-badge img{ max-height: 16px; }
.tp-n11       .tp-badge img{ max-height: 26px; }
.tp-amazon    .tp-badge img{ max-height: 23px; }
.tp-pazarama  .tp-badge img{ max-height: 13px; }
.tp-idefix    .tp-badge img{ max-height: 25px; }
.tp-ptt       .tp-badge img{ max-height: 18px; }

.tp-head-text{ min-width: 0; }
.tp-head h1{
  font-size: 30px; font-weight: 700; letter-spacing: -.9px;
  line-height: 1.15; color: var(--ink); margin: 0;
}
.tp-head p{ font-size: 15px; line-height: 1.5; color: #5b6a76; margin: 6px 0 0; max-width: 70ch; }

/* Aksan paleti — ana tema biMARJ yeşili kalır, marka rengi yalnızca vurgu */
.tp-trendyol { --tp-accent: #f27a1a; --tp-soft: #fff3e9; }
.tp-hepsi    { --tp-accent: #ff6000; --tp-soft: #fff1e8; }
.tp-n11      { --tp-accent: #5f22d9; --tp-soft: #f2ecfd; }
.tp-amazon   { --tp-accent: #d98b06; --tp-soft: #fff6e6; }
.tp-pazarama { --tp-accent: #1a56db; --tp-soft: #ebf1fe; }
.tp-idefix   { --tp-accent: #1457d7; --tp-soft: #ebf1fe; }
.tp-ptt      { --tp-accent: #00a0e3; --tp-soft: #e8f6fd; }
.tp-mint     { --tp-accent: #0f8a5f; --tp-soft: #e7f7ef; }
.tp-blue     { --tp-accent: #1673cd; --tp-soft: #ebf5ff; }
.tp-lilac    { --tp-accent: #6a22dc; --tp-soft: #f1eaff; }
.tp-amber    { --tp-accent: #b8820a; --tp-soft: #fff7dd; }

/* ---- Sayfa gövdesi ------------------------------------------------------ */
/* Araç sayfası container'ı diğer iç sayfalarla AYNI genişlikte (1180px).
   min() yerine max-width + %100: her motorda aynı sonucu verir. */
.tp-hero-inner, .tp-page{
  width: 100%; max-width: 1180px; box-sizing: border-box;
  margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px;
}
.tp-page{ padding-top: 22px; padding-bottom: 14px; }

/* ---- Bilgi / uyarı kutuları (tek stil) ---------------------------------- */
.tp-note{
  display: flex; align-items: flex-start; gap: 11px;
  border-radius: 12px; padding: 13px 15px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.tp-note svg{
  width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.tp-note p{ margin: 0; font-size: 13.5px; line-height: 1.6; }
.tp-note a{ font-weight: 500; text-decoration: underline; }
.tp-note.is-info { background: #f2f9f5; border-color: #dcece3; color: #33574a; }
.tp-note.is-ok   { background: #e6f4ec; border-color: #cbe6d8; color: #0f7355; }
.tp-note.is-warn { background: #fff8e8; border-color: #f3e2b8; color: #7a5c10; }
.tp-note.is-error{ background: #fdecea; border-color: #f5cfca; color: #a33526; }

/* ---- Ana yerleşim: form · sonuç · yardımcı ------------------------------ */
.tp-grid{
  /* FLEXBOX kullanılır, grid değil.
     grid-template-columns içindeki calc(%) bazı motorlarda yok sayılıp
     sütunları içerik genişliğine düşürüyordu; flex:1 1 0 ise her motorda
     iki kolonu tam olarak eşit böler. */
  display: flex; flex-wrap: wrap;
  gap: 20px; align-items: flex-start;
  margin-bottom: 20px;
}
.tp-grid > .tp-form-col{
  flex: 0 0 calc(60% - 10px); max-width: calc(60% - 10px);
  min-width: 0; box-sizing: border-box;
}
.tp-grid > .tp-result-col{
  flex: 0 0 calc(40% - 10px); max-width: calc(40% - 10px);
  min-width: 0; box-sizing: border-box;
}

.tp-card{
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  padding: 24px 24px 22px;
}
.tp-card-title{
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 0 0 15px; padding-bottom: 12px; border-bottom: 1px solid #f0f3f1;
}
.tp-card-title svg{
  width: 18px; height: 18px; flex: 0 0 18px;
  fill: none; stroke: var(--tp-accent, #0f8a5f); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Form alanları (ortak) ---------------------------------------------- */
.calc-form .field{ display: block; margin-bottom: 17px; min-width: 0; }
.calc-form .field-label{
  display: block; font-size: 13px; font-weight: 500;
  color: #44535f; margin-bottom: 7px;
}
.calc-form input[type="text"],
.calc-form input[type="number"],
.calc-form select{
  width: 100%; box-sizing: border-box; height: 46px;
  border: 1px solid #dbe2e7; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 0 12px; outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.calc-form select{
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #7b8a94 50%),
                    linear-gradient(135deg, #7b8a94 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 11px) 19px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.calc-form input:focus, .calc-form select:focus{
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,135,96,.12);
}
.calc-form input::placeholder{ color: #a3aeb6; }

/* Birim ekli alan (₺ / %)
   components.css bu grubu flex olarak kuruyor; mutlak konumlandırma yerine
   o yapı korunup yalnızca ölçüler büyütüldü — böylece suffix kutusu
   input'un dışına taşmaz. */
.calc-form .input-group{ display: flex; align-items: stretch; min-width: 0; width: 100%; }
.calc-form .input-group input{
  flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box;
  border-right: 0; border-radius: 10px 0 0 10px;
  text-align: right; padding-right: 12px;
  font-variant-numeric: tabular-nums;
}
.calc-form .input-group .input-suffix{
  flex: 0 0 42px; width: 42px; padding: 0; box-sizing: border-box;
  display: grid; place-items: center;
  background: #f4f7f5; border: 1px solid #dbe2e7; border-left: 0;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px; color: #6d7b83;
}
.calc-form .input-group input:focus + .input-suffix{ border-color: var(--green); }
/* Grup içinde select varsa tek parça görünür */
.calc-form .input-group select{ flex: 1 1 auto; border-radius: 10px; }

.calc-form .field-hint{
  display: block; margin-top: 5px;
  font-size: 11.5px; line-height: 1.45; color: #8a959d;
}

/* İki ve daha fazla kolonlu satırlar */
/* Form satırları FLEXBOX ile kurulur.
   grid-template-columns bazı motorlarda yok sayılıp alanları alt alta
   düşürüyordu (Desi'de En/Boy/Yükseklik/Ağırlık). flex: 1 1 0 + min-width: 0
   her motorda eşit sütun verir ve son alan asla kesilmez. */
.calc-form .field-row{
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 0;
}
.calc-form .field-row > *{
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
}
/* 3 ve 4 alanlı satırlar */
.calc-form .field-row-3{ gap: 12px; }
.calc-form .field-row-4{ gap: 12px; }
.calc-form .field-row-3 > *,
.calc-form .field-row-4 > *{ flex: 1 1 0; min-width: 0; }

/* flex gap desteklemeyen motorlarda kolonlar birbirine yapışmasın */
@supports not (gap: 1px){
  .calc-form .field-row > * + *{ margin-left: 12px; }
}

/* Seçenek kartları (KDV dahil/hariç, KDV yöntemi) */
/* Seçenek kartları da flexbox: grid desteklenmeyen motorlarda
   "KDV dahil / hariç" ikilisi yan yana kalır. */
.calc-form .choice-group{ display: flex; flex-direction: column; gap: 11px; margin-bottom: 17px; }
.calc-form .choice-group > *{ min-width: 0; }
.calc-form .choice-inline{ flex-direction: row; flex-wrap: wrap; }
.calc-form .choice-inline > .choice{ flex: 1 1 0; min-width: 0; }
.calc-form .choice{
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #dfe6e2; border-radius: 11px;
  padding: 13px 15px; cursor: pointer; background: #fff;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.calc-form .choice:hover{ border-color: #c9ddd3; background: #fbfdfc; }
.calc-form .choice input{
  margin: 1px 0 0; width: 16px; height: 16px; flex: 0 0 16px;
  accent-color: var(--green);
}
.calc-form .choice > span{ display: flex; flex-direction: column; min-width: 0; }
.calc-form .choice strong{ font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.calc-form .choice span span{ font-size: 11.5px; color: #77848c; line-height: 1.45; margin-top: 2px; }
/* Seçili seçenek */
.calc-form .choice:has(input:checked){
  border-color: var(--green); background: #f2f9f5;
  box-shadow: 0 0 0 3px rgba(0,135,96,.10);
}

/* Açılır bloklar (Kargo, Diğer giderler) */
.calc-form .calc-more{
  border: 1px solid #e9edeb; border-radius: 11px;
  margin-bottom: 11px; background: #fbfcfb; overflow: visible;
}
.calc-form .calc-more > summary{ border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: #33424e;
}
.calc-form .calc-more > summary::-webkit-details-marker{ display: none; }
.calc-form .calc-more > summary:after{
  content: "+"; font-size: 17px; font-weight: 400; color: #7b8a94; line-height: 1;
}
.calc-form .calc-more[open] > summary:after{ content: "–"; }
.calc-form .calc-more[open] > summary{ border-bottom: 1px solid #eef2f0; }
.calc-form .calc-more > *:not(summary){ padding: 0 16px; }
.calc-form .calc-more > *:not(summary):first-of-type{ padding-top: 16px; }
.calc-form .calc-more > *:last-child{ padding-bottom: 4px; }

/* Hesapla düğmesi */
.calc-form .btn-block, .calc-form button[type="submit"]{
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 50px; margin-top: 4px;
  background: var(--green); color: #fff; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,135,96,.20);
  transition: background-color .2s ease, transform .2s ease;
}
.calc-form button[type="submit"]:hover{ background: var(--green-dark); transform: translateY(-1px); }
.calc-form button[type="submit"] svg{
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Sonuç paneli -------------------------------------------------------- */
.tp-grid > *{ min-width: 0; }          /* grid item taşmasını engeller */
.tp-result-col{ min-width: 0; }

/* ---- Sonuç paneli (.rp-*) ------------------------------------------------
   Tablo hissi yerine: 2 ana metrik → özet çipleri → kalem dökümü →
   kompakt gider dağılımı → küçük not → ayrı paylaşım kartı. */
.rp{
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  padding: 18px 18px 16px;
}

/* 1) Ana metrikler */
.rp-main{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rp-metric{
  flex: 1 1 0; min-width: 0;
  background: linear-gradient(135deg, #e4f6ed, #d5f0e2);
  border-radius: 13px; padding: 14px 15px;
}
.rp-metric.is-loss{ background: linear-gradient(135deg, #fdeceb, #fadad6); }
.rp-metric-label{ display: block; font-size: 12px; color: #3d6d5c; }
.rp-metric.is-loss .rp-metric-label{ color: #8d4034; }
.rp-metric-value{
  display: block; margin-top: 3px;
  font-size: 23px; font-weight: 700; letter-spacing: -.7px; line-height: 1.15;
  color: #00714f; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.rp-metric.is-loss .rp-metric-value{ color: #b3392a; }

/* 2) Özet çipleri */
.rp-summary{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rp-chip{
  flex: 1 1 calc(50% - 4px); min-width: 0;
  background: #f7faf8; border: 1px solid #eef2f0; border-radius: 11px;
  padding: 9px 11px;
}
.rp-chip-label{ display: block; font-size: 11.5px; color: #77848c; line-height: 1.3; }
.rp-chip-value{
  display: block; margin-top: 2px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* 3) Kalem dökümü — tablo değil, key-value satırları */
.rp-detail-title{
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #8a959d;
  margin: 0 0 8px;
}
.rp-detail{ margin-bottom: 14px; }
.rp-row{
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 8px 0; border-bottom: 1px solid #f2f5f3;
}
.rp-row:last-child{ border-bottom: 0; }
.rp-row-label{
  min-width: 0; font-size: 13px; line-height: 1.4; color: #44535f;
}
.rp-row-label small{
  display: block; font-size: 11px; color: #97a4ad; margin-top: 1px;
}
.rp-row-value{
  flex: 0 0 auto; text-align: right; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rp-row.is-strong{ background: #f6faf8; margin: 0 -18px; padding: 9px 18px;
  border-bottom: 0; }

/* 4) Gider dağılımı — kompakt */
.rp-chart{ margin-bottom: 12px; }
.rp-bar{ display: flex; height: 9px; border-radius: 6px; overflow: hidden; background: #eef2f0; }
.rp-bar span{ display: block; height: 100%; }
.rp-legend{
  list-style: none; margin: 9px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.rp-legend li{
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #5b6a76;
}
.rp-legend i{ width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.rp-legend b{ margin-left: auto; font-weight: 600; color: #44535f;
  font-variant-numeric: tabular-nums; }

/* 5) Not */
.rp-notes{ padding-top: 11px; border-top: 1px solid #f0f3f1; }
.rp-notes p{ margin: 0 0 4px; font-size: 11.5px; line-height: 1.5; color: #97a4ad; }
.rp-notes p:last-child{ margin-bottom: 0; }

/* 6) Paylaşım — ayrı küçük alt kart */
.rp-share{
  margin-top: 12px; padding: 13px 15px;
  background: #f2f9f5; border: 1px solid #dcece3; border-radius: 14px;
}
.rp-share-label{
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 600; color: #0f7355;
}
.rp-share-label svg{
  width: 14px; height: 14px; flex: 0 0 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.rp-share input{
  width: 100%; box-sizing: border-box; height: 40px;
  border: 1px solid #cfe3d8; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 12.5px; color: #44535f; padding: 0 11px;
}
.rp-share input:focus{ outline: 0; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,135,96,.12); }

/* Boş durum (hesaplama yapılmadan önce) */
.tp-empty{
  background: #fff; border: 1px dashed #dde5e1; border-radius: 16px;
  padding: 30px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px;
}
.tp-empty-ic{
  width: 50px; height: 50px; border-radius: 15px; margin: 0 auto 13px;
  display: grid; place-items: center;
  background: var(--tp-soft, #e7f7ef); color: var(--tp-accent, #0f8a5f);
}
.tp-empty-ic svg{
  width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.tp-empty h3{ font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 7px; }
.tp-empty > p{
  font-size: 13.5px; line-height: 1.55; color: #5b6a76;
  margin: 0 auto 15px; max-width: 34ch;
}
.tp-empty-list{
  list-style: none; margin: 0; padding: 0;
  display: inline-flex; flex-direction: column; gap: 8px; text-align: left;
}
.tp-empty-list li{
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #5b6a76;
}
.tp-empty-list svg{
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: #16a274; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Kısa bilgi bandı (eski sağ kolonun yerine, tam genişlik) --------- */
.tp-info-band{
  display: flex; align-items: center; gap: 14px;
  background: #f2f9f5; border: 1px solid #dcece3; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 22px;
}
.tp-info-ic{
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
  display: grid; place-items: center; background: #e0f0e7; color: #0f8a5f;
}
.tp-info-ic svg{
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tp-info-band p{
  flex: 1; min-width: 0; margin: 0;
  font-size: 13.5px; line-height: 1.55; color: #44535f;
}
.tp-info-link{
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--green);
}
.tp-info-link:hover{ color: var(--green-dark); text-decoration: none; }
.tp-info-link svg{
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- İçerik ve SSS ------------------------------------------------------- */
.tp-section-title{
  position: relative;
  font-size: 21px; font-weight: 700; letter-spacing: -.5px;
  color: var(--ink); margin: 0 0 16px; padding-bottom: 10px;
}
.tp-section-title:after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 3px; background: #e85d4a;
}

.tp-article{
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  padding: 22px 24px; margin-bottom: 20px;
}
.tp-article .tool-content{ font-size: 15px; line-height: 1.75; color: #44535f; }
.tp-article .tool-content h2{ font-size: 19px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; }
.tp-article .tool-content h3{ font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.tp-article .tool-content p{ margin: 0 0 12px; }
.tp-article .tool-content ul,
.tp-article .tool-content ol{ margin: 0 0 12px; padding-left: 20px; }
.tp-article .tool-content li{ margin-bottom: 6px; }
.tp-article .tool-content blockquote{
  margin: 0 0 12px; padding: 12px 15px;
  background: #f7faf8; border-left: 3px solid var(--green); border-radius: 0 10px 10px 0;
  font-size: 14.5px; color: #33424e;
}

.tp-faq{ margin-bottom: 18px; }
.tp-faq-list{
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04); overflow: hidden;
}
.tp-faq-item{ border-bottom: 1px solid #f0f3f1; }
.tp-faq-item:last-child{ border-bottom: 0; }
.tp-faq-item > summary{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
  transition: background-color .2s ease;
}
.tp-faq-item > summary::-webkit-details-marker{ display: none; }
.tp-faq-item > summary:hover{ background: #fbfcfb; }
/* Artı / eksi göstergesi */
.tp-faq-item > summary i{
  position: relative; width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 6px; background: #f1f5f3;
}
.tp-faq-item > summary i:before,
.tp-faq-item > summary i:after{
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--tp-accent, #0f8a5f); border-radius: 1px;
  transform: translate(-50%, -50%);
}
.tp-faq-item > summary i:before{ width: 10px; height: 2px; }
.tp-faq-item > summary i:after{ width: 2px; height: 10px; transition: opacity .2s ease; }
.tp-faq-item[open] > summary i:after{ opacity: 0; }
.tp-faq-answer{
  padding: 0 20px 17px; font-size: 14px; line-height: 1.7; color: #5b6a76;
  max-width: 88ch;
}

.tp-updated{
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 6px; font-size: 12.5px; color: #8a959d;
}
.tp-updated svg{
  width: 14px; height: 14px; flex: 0 0 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Duyarlı ------------------------------------------------------------- */
@media (max-width: 1200px){
  .tp-grid{ gap: 16px; }
  .tp-grid > .tp-form-col{ flex: 0 0 calc(58% - 8px); max-width: calc(58% - 8px); }
  .tp-grid > .tp-result-col{ flex: 0 0 calc(42% - 8px); max-width: calc(42% - 8px); }
  .tp-card{ padding: 20px 19px 18px; }
  .rp{ padding: 17px 16px 15px; }
  /* Orta ekranda 4 alanlı satır 2x2 olur; input yarım görünmez */
  .calc-form .field-row-4 > *{ flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 900px){
  /* Tek kolon sırası: form → sonuç → kısa bilgi → SSS */
  .tp-grid{ display: block; }
  .tp-grid > .tp-form-col{ margin-bottom: 18px; }
  .tp-head h1{ font-size: 26px; }
  .tp-empty{ min-height: 0; padding: 32px 22px; }
}
@media (max-width: 640px){
  .tp-hero{ padding: 18px 0 20px; }
  .tp-head{ gap: 13px; }
  .tp-badge{ width: 64px; height: 48px; flex: 0 0 64px; }
  .tp-head h1{ font-size: 23px; letter-spacing: -.6px; }
  .tp-head p{ font-size: 14px; }
  .tp-page{ padding: 18px 0 12px; }
  .tp-card{ padding: 16px 15px; }
  .calc-form .field-row > *{ flex: 1 1 calc(50% - 7px); }
  .calc-form .field-row-3 > *{ flex: 1 1 100%; }
  .calc-form .choice-inline > .choice{ flex: 1 1 100%; }
  .calc-form input[type="text"], .calc-form select{ height: 46px; font-size: 15px; }
  .rp{ padding: 16px 15px 14px; }
  .rp-metric{ flex: 1 1 100%; }
  .rp-metric-value{ font-size: 22px; }
  .rp-chip{ flex: 1 1 100%; }
  .tp-empty{ padding: 26px 18px; }
  .tp-article{ padding: 18px 16px; }
  .tp-article .tool-content{ font-size: 14.5px; }
  .tp-faq-item > summary{ padding: 14px 16px; font-size: 14.5px; }
  .tp-faq-answer{ padding: 0 16px 15px; font-size: 13.5px; }
  .tp-section-title{ font-size: 19px; }
}

/* ---- Grid desteklemeyen motorlar için yedek ----------------------------- */
@supports not (display: grid){
  .calc-form .field-row{ font-size: 0; }
  .calc-form .field-row > *{
    display: inline-block; vertical-align: top; font-size: 16px;
    box-sizing: border-box;
  }
  .tp-grid > *:nth-child(1){ width: 43%; margin-right: 1.4%; }
  .tp-grid > *:nth-child(2){ width: 55%; }
  .calc-form .field-row > *{ width: 49%; margin-right: .8%; }
  .tp-badge, .tp-empty-ic, .tp-info-ic{ display: inline-block; text-align: center; }
  .tp-badge{ line-height: 56px; }
  .tp-empty-ic{ line-height: 58px; }
  .tp-info-ic{ line-height: 36px; }
}
@media (max-width: 900px){
  @supports not (display: grid){
    .tp-grid > *:nth-child(1), .tp-grid > *:nth-child(2){
      width: 100%; margin-right: 0; margin-bottom: 18px;
    }
  }
}
@media (max-width: 640px){
  @supports not (display: grid){

  }
}

/* Kısa bilgi bandı — dar ekranda alt alta */
@media (max-width: 640px){
  .tp-info-band{ flex-wrap: wrap; gap: 11px; padding: 13px 15px; }
  .tp-info-band p{ flex: 1 1 100%; order: 3; font-size: 13px; }
  .tp-info-link{ margin-left: auto; font-size: 13px; }
}


/* flex gap yedeği: gap desteklenmiyorsa kolonlar yine de ayrılır */
.tp-grid > .tp-form-col{ margin-right: 20px; }
@supports (gap: 1px) and (display: flex){
  .tp-grid > .tp-form-col{ margin-right: 0; }
}
@media (max-width: 900px){
  .tp-grid > .tp-form-col, .tp-grid > .tp-result-col{
    flex: 1 1 100%; max-width: 100%; margin-right: 0;
  }
}

/* ---- Taşma güvencesi ----------------------------------------------------
   Grid item'ların varsayılan min-width:auto değeri, uzun içerikte sütunu
   genişletip yatay kaydırma yaratabiliyor. Araç sayfasındaki tüm grid
   çocuklarına min-width:0 verilir. */
.tp-grid > *, .rp-main > *, .rp-summary > *, .calc-form .choice-group > *{ min-width: 0; }
.calc-form input, .calc-form select, .calc-form textarea{
  max-width: 100%; box-sizing: border-box;
}
.tp-page, .tp-grid, .tp-card, .rp{ overflow-x: visible; }
.calc-form .choice > span{ min-width: 0; }
.calc-form .choice strong, .calc-form .choice span span{ overflow-wrap: anywhere; }

/* 560px altı: dar ekranda 4 ve 2 alanlı satırlar tek kolona iner */
@media (max-width: 560px){
  .calc-form .field-row > *,
  .calc-form .field-row-3 > *,
  .calc-form .field-row-4 > *{ flex: 1 1 100%; }
  .calc-form .choice-inline > .choice{ flex: 1 1 100%; }
}
