/* Shared TR/EN theme. A priority layer prevents legacy scene and modal styles
   (including their !important declarations) from restoring old button colours.
   Shared colour rules plus reference-cue removal and final-contact fitting. */
@layer tmt-brand {
  /* Reference cards already support wheel, touch and keyboard navigation. */
  body #ref-next,
  body #referanslar .reference-controls:has(#ref-next) { display: none !important; }
  :root {
    --tmt-lime: #b6da78;
    --tmt-lime-hover: #c4e68d;
    --tmt-lime-ink: #12372b;
    --tmt-lime-soft: #cfe6b5;
  }
  body button:not(.tmt-feature-dot),
  body :is(a.btn,a.action,a.rg-start,a[role=button],input[type=submit],input[type=button]),
  body summary,
  body .site-language a {
    background: var(--tmt-lime) !important;
    color: var(--tmt-lime-ink) !important;
    border-color: #98b85d !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  body button:not(.tmt-feature-dot):hover:not(:disabled),
  body :is(a.btn,a.action,a.rg-start,a[role=button],input[type=submit],input[type=button],summary):hover,
  body .site-language a:hover {
    background: var(--tmt-lime-hover) !important;
    color: var(--tmt-lime-ink) !important;
    filter: none !important;
  }
  body :is(button,summary,.site-language a,a.btn,a.action,a.rg-start,a[role=button]) :is(span,small,b,strong,em,h2,h3,h4,h5) {
    color: inherit !important;
    text-shadow: none !important;
  }
  body :is(button,summary,.site-language a,a.btn,a.action,a.rg-start,a[role=button])::after,
  body :is(button,summary)::before {
    color: inherit !important;
    border-color: currentColor !important;
  }
  body :is(button,summary,.site-language a) svg { color: inherit !important; }
  body .site-language a[aria-current=page],
  body button[aria-pressed=true]:not(.tmt-feature-dot),
  body details[open]>summary {
    box-shadow: inset 0 -3px 0 var(--tmt-lime-ink) !important;
  }
  body button:disabled,body input[type=submit]:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
  }
  body :is(button,summary,select,input,textarea,a.btn,a.action,a.rg-start,a[role=button],.site-language a):focus-visible {
    outline: 2px solid #eafed6 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px var(--tmt-lime-ink) !important;
  }
  body :is(#quick-market,#bottom-market) {
    background-color: var(--tmt-lime) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312372b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
    background-position: right 9px center !important;
    color: var(--tmt-lime-ink) !important;
    border-color: #98b85d !important;
    box-shadow: none !important;
  }
  body :is(#quick-market,#bottom-market) option { background:#f7faef !important;color:var(--tmt-lime-ink) !important; }
  body .tmt-feature-dot { background:transparent !important;box-shadow:none !important; }
  body .tmt-feature-dot span { background:#b6da7866 !important;box-shadow:none !important; }
  body .tmt-feature-dot[aria-current=true] span { background:var(--tmt-lime) !important; }
  body .brand-copy b,
  body .tmt-feature-slide strong,
  body .radar-quick-entry h2 strong,
  body main :is(h1,h2,p) :is(em,.tmt-accent-word),
  body .press-mini-label {
    color: var(--tmt-lime) !important;
  }
  body main :is(h1,h2) { color:#f6faee !important; }
  body main :is(h1,h2,p) em { text-shadow:0 2px 8px #001d17b3 !important; }
  body main .eyebrow { color:var(--tmt-lime-soft) !important; }
  body #proposal.proposal-premium { border-top-color:var(--tmt-lime) !important; }
  body #tmt-company-menu { --tcm-copper:#466b18; }
  /* Long-form content uses a dark green on its light paper surface. */
  body #radar-guide .rg-accent { color:#3f6315 !important; }
  body #radar-guide summary .rg-accent { color:var(--tmt-lime-ink) !important; }
  body #radar-guide :is(.rg-number,.rg-sub-number,.rg-question-number) { color:var(--tmt-lime-ink) !important;background:#eaf5d7 !important; }
  body #tmt-company-menu :is(button,summary) { color:var(--tmt-lime-ink) !important; }
}

/* Final contact frame: fit the available stage instead of centring an oversized
   flex column above its top edge. Small viewports can scroll this frame safely. */
html body main #iletisim.slide { padding-block:12px; }
html body main #iletisim .content:has(.contact-details:not([inert])) {
  min-height:0; grid-template-rows:minmax(0,1fr);
}
html body main #iletisim .contact-details {
  min-height:0; max-height:100%; overflow-y:auto; overflow-x:hidden;
  justify-content:safe center; box-sizing:border-box; padding:6px 8px;
  gap:8px; scrollbar-width:thin;
}
html body main #iletisim .contact-details>* { flex-shrink:0; }
html body main #iletisim .contact-details h2 {
  font-size:clamp(28px,3vw,42px); line-height:1.15; margin:0;
}
html body main #iletisim .contact-details .signature {
  font-size:12px; line-height:1.4; margin:0;
}
html body main #iletisim .contact-details .radar-company-info {
  font-size:13px; line-height:1.5; max-width:720px; margin:0;
}
html body main #iletisim .contact-details .radar-company-info small {
  font-size:11px; line-height:1.5;
}
@media(max-width:760px) {
  html body main #iletisim.slide { padding-block:8px; }
  html body main #iletisim .contact-details { padding:6px 2px;gap:9px; }
  html body main #iletisim .contact-details h2 { font-size:clamp(26px,7.5vw,32px); }
  html body main #iletisim .contact-details .radar-company-info { font-size:12px; }
}
