/* Theme surfaces are independent from fixed dark brand panels and product images. */
:root { color-scheme:light; }
:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#101D24; --paper-2:#14262E; --panel:#193139;
  --ink:#EDF5F7; --ink-2:#CEDDE1; --ink-3:#A8BDC5;
  --line:#344C56; --line-strong:#6D8792;
  --teal-dark:#64D6CE; --teal-hover:#8BE4DE; --teal-wash:#1B4144;
  --navy-wash:#193A52; --attn:#F7C573; --attn-wash:#3D3020;
  --shadow-1:0 1px 2px #0004; --shadow-2:0 12px 32px -12px #0008;
}
[data-theme="dark"] body { --accent-strong:var(--teal-dark); --accent-wash:var(--panel); }
[data-theme="dark"] .site-header { background:#101D24; }
[data-theme="dark"] :is(.btn-secondary,.btn-wa,.chip-line,.card,.aud-card,.tile,.frame,.frame-bar .url,.inset,.route-step .station,.loop-step .station,.tabs button,.price-card,.field input,.field textarea,.field select,.menu-btn,.nav.open,.jump a,.voice,.lanes,.instr span,.phase,.seat.free,.calc,.meet-card,.quick button,.embed-slot.on,.cc-modal,.cc-x,.payment-band,.map-steps button) { background:var(--paper); }
[data-theme="dark"] :is(.section-panel .rise,.section-panel .chip,.vtabs button[aria-selected="true"]) { background:var(--paper); }
[data-theme="dark"] :is(.section-dark,.maarif,.cookie,.closing-item.dark,.on-dark,.phone,.phone-screen::after,.inset-label,.pin,.callouts b,.lane-coach .lane-step,.seat.paid) { background:#0B1F26; }
[data-theme="dark"] :is(.btn-primary,.badge-rec,.plan-badge,.seat.pro,.route-step.is-goal .station,.map-steps button[aria-pressed="true"] > span) { background:var(--teal-dark); color:#0B1F26; }
[data-theme="dark"] .btn-primary:hover { background:var(--teal-hover); }
[data-theme="dark"] .btn-light { color:#0B1F26; }
[data-theme="dark"] :is(.tabs button[aria-selected="true"],.seg button[aria-pressed="true"]) { background:var(--teal-dark); color:#0B1F26; border-color:var(--teal-dark); }
[data-theme="dark"] .map-steps button[aria-pressed="true"] { background:var(--panel); }
[data-theme="dark"] :is(.aud-k,.aud-c) { --w:var(--panel); }
[data-theme="dark"] [data-audience="kurumlar"] .nav a[aria-current="page"] { color:var(--sky); }
[data-theme="dark"] .nav .aud-c::before { background:#8FBCEB; }
[data-theme="dark"] .legal-content a { color:var(--teal-dark); }
[data-theme="dark"] .field-error { color:#FFB4AB; }
[data-theme="dark"] .field input[aria-invalid="true"] { border-color:#FFB4AB; }
/* Preserve original logo colors rather than inverting the artwork. */
[data-theme="dark"] :is(.brand img,.footer-grid > div > img) { background:#fff; border-radius:6px; padding:4px; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; padding:0; color:var(--ink); background:var(--paper); border:1px solid var(--line-strong); border-radius:var(--r-md); cursor:pointer; }
.theme-toggle:focus-visible { outline:3px solid var(--teal-dark); outline-offset:3px; }
.theme-sun { display:none; }
[data-theme="dark"] .theme-sun { display:block; }
[data-theme="dark"] .theme-moon { display:none; }
.menu-btn { color:var(--ink); }
.seg button[aria-pressed="true"] { box-shadow:inset 0 0 0 2px var(--teal-dark); }
/* Room for a login link and theme control without squeezing desktop navigation. */
.header-inner { gap:16px; }
@media(min-width:1280px) {
  body:not([data-audience="home"]) .nav .nav-login { display:inline-flex; }
}
@media(max-width:1279px) {
  .nav { display:none; }
  .header-cta { margin-left:auto; }
  .menu-btn { display:inline-flex; flex:none; margin-left:0; width:44px; height:44px; border-radius:var(--r-md); border:1px solid var(--line-strong); background:var(--paper); align-items:center; justify-content:center; cursor:pointer; }
  .nav.open { display:flex; flex-direction:column; align-items:stretch; position:absolute; left:0; right:0; top:71px; background:var(--paper); border-bottom:1px solid var(--line); padding:var(--s3) var(--page-pad) var(--s5); gap:2px; }
  .nav.open a { padding:14px 12px; font-size:1rem; }
  .nav.open .sep { width:100%; height:1px; margin:var(--s2) 0; }
  .nav.open .nav-login { display:flex; }
}
@media(min-width:601px) and (max-width:1279px) {
  [data-audience="home"] .nav.open .nav-login { display:none; }
}
@media(max-width:600px) {
  .header-inner { gap:8px; }
  .header-cta { display:none; }
  .theme-toggle { margin-left:auto; }
}


[data-theme="dark"] .legal-content, [data-theme="dark"] .legal-content [style*="color"] { color:var(--ink) !important; }
[data-theme="dark"] .legal-content a { color:var(--teal-dark) !important; }
[data-theme="dark"] .metric { border:1px solid var(--line-strong); background:var(--paper-2); padding:16px 16px 18px; }
[data-theme="dark"] .card-panel { background:var(--panel); border-color:var(--line-strong); }
[data-theme="dark"] .callouts b { background:var(--teal-dark); color:#0B1F26; }
[data-theme="dark"] .aud-c::before { background:#8FBCEB; }
[data-theme="dark"] .cookie { border:1px solid var(--line-strong); box-shadow:0 8px 32px #0008; }
[data-theme="dark"] .phone { outline:1px solid var(--line-strong); }
