/* rawstatus. rs.01.0 — focused UI consistency corrections.
   Keep this stylesheet after the existing page styles. */
:root {
  --rs-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* The route header uses the same brand lettering as the home page. */
body:has(.hero)>header .brand,
body>main>nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rs-ui-font);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--text-main, #f4f4f5);
  padding: 9px 12px;
  border: 1px solid var(--border, #2b2b32);
  background: linear-gradient(120deg, color-mix(in srgb, var(--card, #121215) 84%, transparent), color-mix(in srgb, var(--accent, #8b5cf6) 7%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .24s ease, background .24s ease;
}
body:has(.hero)>header .brand:hover,
body>main>nav .brand:hover {border-color: var(--accent, #8b5cf6)}
.rs-brand-wordmark {font: inherit; letter-spacing: inherit; white-space: nowrap}
.rs-nav-back {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 2px;
  flex: 0 0 auto;
}
body:has(.hero)>header .brand img,
body>main>nav .brand img {display: block; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 7px}

/* 'Sorun bende mi?' is now theme-aware, matching the site's glass dialogs. */
.rs-check-overlay {
  background: rgba(6, 7, 15, .68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
:root[data-theme="light"] .rs-check-overlay {background: rgba(20,30,50,.34)}
.rs-check-dialog {
  width: min(560px, 100%);
  max-height: min(85dvh, 840px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent, #8b5cf6) 8%, var(--card, #121215)), var(--card, #121215) 62%);
  color: var(--text-main, #f4f4f5);
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 26%, var(--border, #2b2b32));
  border-radius: 22px;
  padding: clamp(18px, 4vw, 28px);
  font-family: var(--rs-ui-font);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 28px 80px rgba(0,0,0,.35);
}
.rs-check-dialog h2 {color: var(--text-main, #f4f4f5); font-size: clamp(20px, 4vw, 24px); font-weight: 600; letter-spacing: -.035em}
.rs-check-dialog p {color: var(--text-muted, #a1a1aa); font-size: 13px; line-height: 1.7}
.rs-check-dialog .rs-row {border-bottom: 1px solid var(--border, #2b2b32); color: var(--text-muted, #a1a1aa); font-size: 13px}
.rs-check-dialog .rs-row strong {color: var(--text-main, #f4f4f5); font-weight: 600; max-width: 60%; overflow-wrap: anywhere}
.rs-check-dialog .rs-check-close {background: var(--card-hover, #1b1b21); color: var(--text-main, #f4f4f5); border: 1px solid var(--border, #2b2b32); min-height: 34px; border-radius: 10px}
.rs-check-dialog .rs-button {background: color-mix(in srgb, var(--accent, #8b5cf6) 13%, var(--card-hover, #1b1b21)); color: var(--text-main, #f4f4f5); border-color: color-mix(in srgb, var(--accent, #8b5cf6) 42%, var(--border, #2b2b32)); border-radius: 13px}
.rs-check-dialog .rs-button:hover {border-color: var(--accent, #8b5cf6)}

/* Replace the low-resolution '⌄' glyph with a CSS-drawn chevron. */
.guide-toggle {gap: 13px; min-height: 40px}
.guide-toggle .guide-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  color: var(--accent, #8b5cf6);
}
.guide-toggle[aria-expanded="true"] .guide-arrow {transform: translateY(2px) rotate(225deg)}
.ambience35>summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 2px 9px;
  border-right: 1.6px solid var(--accent, #8b5cf6);
  border-bottom: 1.6px solid var(--accent, #8b5cf6);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.ambience35[open]>summary::after {transform: rotate(225deg); margin-bottom: -2px}

/* Dedicated legal pages, rather than silently returning visitors to home. */
.rs-legal-view {max-width: 820px; margin: 28px auto; padding: clamp(20px, 5vw, 36px)}
.rs-legal-view h1 {font-size: clamp(27px, 5vw, 38px); margin: 7px 0 24px; letter-spacing: -.04em}
.rs-legal-kicker {font-size: 12px; letter-spacing: .1em; color: var(--accent, #8b5cf6); text-transform: uppercase}
.rs-legal-content {color: var(--text-main, #f4f4f5); overflow-wrap: anywhere}
.rs-legal-content h3 {margin: 27px 0 9px; font-size: 16px}
.rs-legal-content p {line-height: 1.75; color: var(--text-muted, #a1a1aa)}
.rs-legal-view .rs-legal-back {display: inline-flex; margin-top: 22px; padding: 10px 14px; border: 1px solid var(--border, #2b2b32); border-radius: 12px; text-decoration: none}
.rs-legal-view .rs-legal-back:hover {border-color: var(--accent, #8b5cf6)}

@media (max-width: 580px) {
  .rs-check-dialog .rs-row {gap: 9px; align-items: start}
  .rs-check-dialog .rs-row strong {max-width: 58%}
  body:has(.hero)>header .brand {padding: 8px 10px; gap: 7px}
}
@media (prefers-reduced-motion: reduce) {
  .guide-toggle .guide-arrow, .ambience35>summary::after,
  body:has(.hero)>header .brand, body>main>nav .brand {transition: none}
}
