/* ============================================================
   Uydu Değişim Analizi (satellite-change-analysis*.html)
   Yerleşim ve ayrılan yükseklikler burada: harita, rozetler, künye, durum satırı ve
   sipariş slotu sonuç gelince yer değiştirmez (CLS). Harita kapsayıcısı LTR kalır.
   Mobil (< 768 px): önce harita (60vh), altında kontroller, sonra sipariş slotu.
   ============================================================ */

/* ---- Başlık ---- */
.sca-hero p.lede { max-width: 40.375em; } /* 64ch (Inter); em: yazı tipi takasında genişlik sabit (CLS) */
/* Mobilde güven rozetleri tek satırda kayar: harita yukarı gelir */
@media (max-width: 767.98px) {
  .sca-hero .trust-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sca-hero .trust-row::-webkit-scrollbar { display: none; }
  .sca-hero .trust-badge { flex: 0 0 auto; white-space: nowrap; }
}
.nw { white-space: nowrap; }

/* ---- Araç ızgarası ---- */
.sca-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 1rem;
  grid-template-areas: "map" "input" "slot" "aside"; }
.sca-layout > [data-area] { min-width: 0; }
.sca-layout > [data-area="map"] { grid-area: map; }
.sca-layout > [data-area="input"] { grid-area: input; }
.sca-layout > [data-area="slot"] { grid-area: slot; }
.sca-layout > [data-area="aside"] { grid-area: aside; }
@media (min-width: 768px) {
  .sca-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); align-items: start;
    grid-template-areas: "map map" "input slot" "input aside"; }
}
@media (min-width: 1024px) {
  .sca-layout { grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: auto auto;
    grid-template-areas: "input map" "aside slot"; }
}
@media (min-width: 1280px) {
  /* Sağ sütunda slot kendi yüksekliğinde kalır, aside hemen altına gelir (fazla yükseklik 2. satıra) */
  .sca-layout { grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "input map slot" "input map aside"; }
}

/* ---- Harita ---- */
.sca-mapcard { padding: .4rem; }
#scaMaps { position: relative; direction: ltr; height: 60vh; min-height: 320px; max-height: 620px;
  overflow: hidden; border-radius: 12px; isolation: isolate; z-index: 0; background: #e5e9ee; }
@media (min-width: 768px) { #scaMaps { height: 520px; max-height: none; } }
@media (min-width: 1024px) { #scaMaps { height: 540px; } }
#scaMap { position: absolute; inset: 0; }
#scaMaps .leaflet-container { height: 100%; font-family: inherit; }
@media (max-width: 639px) {
  /* Sol alttaki yakınlaştırma denetiminin üstüne binmesin */
  #scaMaps .leaflet-control-attribution { font-size: 9.5px; line-height: 1.3; max-width: calc(100% - 56px); white-space: normal; }
}

/* Rozetler: ilk karşılaştırmaya kadar gizli (mutlak konumlu, yerleşimi etkilemez) */
.sca-badge { position: absolute; top: 8px; z-index: 650; display: none; align-items: center; gap: .35rem;
  max-width: calc(50% - 16px); padding: .3rem .5rem; border-radius: 8px; background: rgba(10, 18, 32, .84);
  color: #fff; font: 600 12px/1.3 Inter, system-ui, sans-serif; pointer-events: none; }
#scaMaps.has-run .sca-badge { display: inline-flex; }
/* İkisi de soldan konumlanır: metin değişince yalnız genişlik değişir, konum kaymaz */
#scaBadgeA { left: 8px; }
#scaBadgeB { left: calc(50% + 8px); }
.sca-badge .k { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 5px; background: #0057B8; font-size: 11px; font-weight: 800; }
#scaBadgeB .k { background: #b45309; }
.sca-badge .t { min-width: 0; }
@media (max-width: 479px) { .sca-badge { font-size: 11px; padding: .28rem .4rem; } }
.sca-badge .sp { display: none; flex: 0 0 auto; width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: sca-spin .8s linear infinite; }
.sca-badge.is-loading .sp { display: inline-block; }
.sca-badge.is-none { background: rgba(120, 53, 15, .9); }
.sca-badge.is-err { background: rgba(159, 18, 57, .9); }
@keyframes sca-spin { to { transform: rotate(360deg); } }

/* Kaydırma çizgisi: yalnız bir ön izleme varken. Sürükleme tutamakla (Pointer Events: fare ve dokunma);
   range girişi klavye için durur (görünmez, odaklanınca tutamak halkalanır). */
#scaDivider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); z-index: 640; pointer-events: none; visibility: hidden; }
#scaSwipe { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 40px;
  margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none;
  z-index: 645; outline: none; opacity: 0; visibility: hidden; }
#scaHandle { position: absolute; top: 50%; left: 50%; z-index: 646; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2px solid #0057B8; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: ew-resize;
  touch-action: none; -webkit-user-select: none; user-select: none; visibility: hidden;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230057B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6'/%3E%3Cpath d='m15 6 6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat; }
#scaMaps.has-ab #scaDivider, #scaMaps.has-ab #scaSwipe, #scaMaps.has-ab #scaHandle { visibility: visible; }
#scaMaps.is-drawing #scaHandle { visibility: hidden; }
#scaSwipe:focus-visible + #scaHandle { box-shadow: 0 0 0 4px rgba(31, 166, 255, .7), 0 2px 8px rgba(0, 0, 0, .35); }

/* ---- Haritanın altı: sabit uyarı ve görüntü künyesi ---- */
.sca-note { display: flex; gap: .55rem; align-items: flex-start; margin: .55rem .2rem 0; padding: .6rem .75rem;
  border-radius: 10px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4);
  color: var(--rds-text); font-size: .84rem; line-height: 1.45; }
.sca-note svg, .sca-note i { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .1rem; color: #b45309; }
html.dark .sca-note svg, html.dark .sca-note i { color: #f59e0b; }
.sca-note p { margin: 0; }
.sca-imp { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin: .5rem .2rem .2rem; }
@media (min-width: 480px) { .sca-imp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sca-imp-col { min-width: 0; padding: .5rem .7rem; border: 1px solid var(--rds-border); border-radius: 10px; background: var(--rds-surface-2); }
.sca-imp-h { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: .76rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--rds-muted); white-space: nowrap; overflow: hidden; }
.sca-imp-h .k { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px;
  background: #0057B8; color: #fff; font-size: .72rem; }
.sca-imp-col.b .sca-imp-h .k { background: #b45309; }
.sca-imp-h b { color: var(--rds-text); font-family: var(--rds-font-mono); letter-spacing: 0; text-transform: none; }
/* Üç satır yeri ayrılır: değerler ya da kısa ileti gelince sütun uzamaz */
.sca-imp-body { min-height: 4.85em; font-size: .8rem; line-height: 1.45; }
.sca-imp-body dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .6rem; }
.sca-imp-body dt { color: var(--rds-muted); }
.sca-imp-body dd { margin: 0; text-align: end; font-weight: 600; color: var(--rds-text); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sca-imp-body p { margin: 0; color: var(--rds-text); }
.sca-imp-body.none p { color: #92400e; }
html.dark .sca-imp-body.none p { color: #fbbf24; }
.sca-imp-body.err p { color: var(--rds-danger); }
.sca-imp-src { grid-column: 1 / -1; margin: 0; font-size: .72rem; line-height: 1.4; color: var(--rds-muted); }

/* ---- Sol panel: adımlar ---- */
.sca-panel.ap-drag { outline: 2px dashed var(--rds-primary); outline-offset: -6px; }
.sca-step { display: flex; align-items: center; gap: .5rem; margin: 0 0 .65rem; font-size: .8rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--rds-text); }
.sca-step > span { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--rds-primary); color: #fff; font-size: .74rem; letter-spacing: 0; }
.sca-sec + .sca-sec { margin-top: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--rds-border); }
.sca-row { display: flex; gap: .4rem; }
.sca-row > input { flex: 1 1 0%; min-width: 0; }
.sca-row > .rds-btn { flex: 0 0 auto; }

/* Arama sonuçları açılır liste olarak (altındaki öğeleri itmez) */
.sca-search { position: relative; }
#scaResults.sca-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 700; margin: 0; padding: .35rem;
  max-height: 260px; overflow: auto; background: var(--rds-surface); border: 1px solid var(--rds-border-strong);
  border-radius: 11px; box-shadow: var(--rds-shadow-lg); }
#scaResults.sca-results:empty { display: none; }
#scaResults .ap-msg { padding: .25rem .35rem; }

.sca-draw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .4rem; margin-top: .6rem; }
.sca-draw .rds-btn { min-width: 0; padding-inline: .6rem; }
.sca-draw .rds-btn svg, .sca-file svg, .sca-compare svg { flex-shrink: 0; }
.sca-draw .rds-btn[aria-pressed="true"] { background: var(--rds-primary); border-color: var(--rds-primary); color: #fff; }
.sca-draw .rds-btn:disabled { opacity: .45; cursor: default; }
.sca-file { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .45rem;
  min-height: 46px; padding: .55rem .8rem; border: 1.5px dashed var(--rds-border-strong); border-radius: 12px;
  font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--rds-text); text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.sca-file:hover { border-color: var(--rds-primary); background: var(--rds-soft); }
.sca-file:focus-within { border-color: var(--rds-primary); box-shadow: 0 0 0 3px var(--rds-soft); }
.sca-file svg, .sca-file i { flex: 0 0 auto; width: 17px; height: 17px; color: var(--rds-primary); }
.sca-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sca-tip { margin: .35rem 0 0; font-size: .74rem; line-height: 1.4; color: var(--rds-muted); }
/* Alan özeti ve alan seçici iletileri: iki satır yeri ayrılır */
.sca-area { margin: .6rem 0 0; min-height: 2.9em; font-size: .82rem; line-height: 1.45; color: var(--rds-muted); }
.sca-area__sum { display: block; font-weight: 600; color: var(--rds-text); font-variant-numeric: tabular-nums; }
.sca-area__msg { display: block; }
.sca-area__msg.err { color: var(--rds-danger); }
.sca-area__msg a { color: var(--rds-primary-ink); text-decoration: underline; }

/* Yıllar */
.sca-years { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .65rem; align-items: center; }
.sca-ylab { grid-column: 1; display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--rds-muted); }
.sca-ylab .k { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px;
  background: #0057B8; color: #fff; font-size: .72rem; letter-spacing: 0; }
.sca-ylab.b .k { background: #b45309; }
.sca-years .rds-input { grid-column: 2; }
.sca-years .rds-input.is-target { border-color: var(--rds-primary); }
.sca-yst { grid-column: 1 / -1; margin: .25rem 0 .45rem; min-height: 1.35em; font-size: .74rem; line-height: 1.35; color: var(--rds-muted); }
.sca-yst.is-preview { color: var(--rds-ok); }
.sca-yst.is-archive, .sca-yst.is-aerial { color: #92400e; }
html.dark .sca-yst.is-archive, html.dark .sca-yst.is-aerial { color: #fbbf24; }
.sca-yst.is-err { color: var(--rds-danger); }
.sca-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.sca-chip { min-height: 36px; min-width: 3.4rem; padding: .3rem .55rem; border: 1.5px solid var(--rds-border-strong); border-radius: 999px;
  background: var(--rds-surface); color: var(--rds-text); font: 600 .8rem/1 var(--rds-font-mono); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s; }
.sca-chip:hover, .sca-chip:focus-visible { border-color: var(--rds-primary); outline: none; }
.sca-chip.is-old { border-style: dashed; color: var(--rds-muted); }
.sca-chip.is-a { background: #0057B8; border: 1.5px solid #0057B8; color: #fff; }
.sca-chip.is-b { background: #b45309; border: 1.5px solid #b45309; color: #fff; }
.sca-chip-note { margin: .45rem 0 0; font-size: .74rem; line-height: 1.4; color: var(--rds-muted); }

/* Karşılaştır ve durum satırı: üç satır yeri ayrılır */
.sca-compare { margin-top: .9rem; }
.sca-compare:disabled { opacity: .75; cursor: progress; }
.sca-compare .sp { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  border-radius: 50%; animation: sca-spin .8s linear infinite; }
.sca-compare[aria-busy="true"] .sp { display: inline-block; }
.sca-compare[aria-busy="true"] svg, .sca-compare[aria-busy="true"] i { display: none; }
.sca-status { margin: .55rem 0 0; min-height: 4.2em; font-size: .84rem; font-weight: 500; line-height: 1.4; color: var(--rds-muted); }
/* En uzun ileti (ES/RU sınır kutusu ve hata iletileri) dar sütunda dört satır: 330/300 px panel ve 380 px altı */
@media (min-width: 1024px), (max-width: 379.98px) { .sca-status { min-height: 5.6em; } }
.sca-status.ok { color: var(--rds-text); }
.sca-status.busy { color: var(--rds-primary-ink); font-weight: 600; }
.sca-status.warn { color: #92400e; }
html.dark .sca-status.warn { color: #fbbf24; }
.sca-status.err { color: var(--rds-danger); }
@media (prefers-reduced-motion: reduce) { .sca-badge .sp, .sca-compare .sp { animation-duration: 2.4s; } }

/* ---- Satış içeriği ---- */
.sca-block { margin-top: 3rem; }
.sca-h2 { margin: 0 0 .45rem; font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: var(--rds-text); }
.sca-intro { margin: 0 0 1.2rem; max-width: 68ch; font-size: .95rem; line-height: 1.6; color: var(--rds-muted); }
.sca-prods { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
@media (min-width: 768px) { .sca-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sca-prod { display: flex; flex-direction: column; padding: 1.15rem; }
.sca-prod__ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--rds-soft); color: var(--rds-primary); }
.sca-prod__ic svg, .sca-prod__ic i { width: 22px; height: 22px; }
.sca-prod h3 { margin: .8rem 0 .35rem; font-size: 1.05rem; font-weight: 800; line-height: 1.25; color: var(--rds-text); }
.sca-prod p { margin: 0 0 .7rem; font-size: .88rem; line-height: 1.55; color: var(--rds-muted); }
.sca-ticks { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .85rem; line-height: 1.45; color: var(--rds-text); }
.sca-ticks li { position: relative; padding-inline-start: 1.35rem; }
.sca-ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: .8rem; height: .45rem;
  border-inline-start: 2px solid var(--rds-ok); border-bottom: 2px solid var(--rds-ok); transform: rotate(-45deg); }
.sca-prod .rds-btn { margin-top: auto; width: 100%; }
.sca-who { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
@media (min-width: 640px) { .sca-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sca-who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sca-who > div { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; }
.sca-who h3 { margin: 0 0 .2rem; font-size: .92rem; font-weight: 700; line-height: 1.3; color: var(--rds-text); }
.sca-who p { margin: 0; font-size: .83rem; line-height: 1.5; color: var(--rds-muted); }
.sca-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: sca; }
@media (min-width: 768px) { .sca-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sca-steps li { position: relative; padding: 1.1rem; padding-inline-start: 3.6rem; counter-increment: sca; }
.sca-steps li::before { content: counter(sca); position: absolute; inset-inline-start: 1.1rem; top: 1.05rem; display: flex;
  align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rds-primary);
  color: #fff; font-weight: 800; font-size: .9rem; }
.sca-steps h3 { margin: 0 0 .3rem; font-size: .98rem; font-weight: 800; color: var(--rds-text); }
.sca-steps p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--rds-muted); }
.sca-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sca-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .86rem; line-height: 1.45; }
.sca-table th, .sca-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--rds-border); text-align: start; vertical-align: top; }
.sca-table thead th { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rds-muted); background: var(--rds-surface-2); }
.sca-table tbody th { font-weight: 700; color: var(--rds-text); }
.sca-table td { color: var(--rds-muted); }
.sca-table td.res { font-family: var(--rds-font-mono); font-weight: 600; color: var(--rds-text); white-space: nowrap; }
.sca-tag { display: inline-block; margin-inline-start: .4rem; padding: .1rem .45rem; border-radius: 999px;
  background: rgba(22, 163, 74, .12); color: var(--rds-ok); font-size: .66rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.sca-table-note { margin: .6rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--rds-muted); }
