/* Parent Guide styles — Language Bridge */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 20px;
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1422;
    --card: #162133;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #27374b;
    --accent-light: #16233d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3 { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; line-height: 1.25; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.guide-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
}
.brand-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex: none;
}
.header-links { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.header-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.header-links a:hover { background: var(--accent-light); }

main { max-width: 920px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  margin-bottom: 2rem;
}
.hero h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }
.hero p { font-size: 1.1rem; margin: 0 auto 1.5rem; max-width: 640px; opacity: 0.95; }
.quicknav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.quicknav a {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.quicknav a:hover { background: rgba(255,255,255,0.3); }

.browser-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
  color: #7c2d12;
}
.browser-banner-icon { font-size: 1.5rem; flex: none; }
.browser-banner strong { color: #9a3412; }
.browser-banner p { margin: 0; }

@media (prefers-color-scheme: dark) {
  .browser-banner {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 100%);
    border-color: #9a3412;
    color: #fed7aa;
  }
  .browser-banner strong { color: #fdba74; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}
.card h2 { font-size: 1.5rem; margin-top: 0; display: flex; align-items: center; gap: 0.55rem; }
.card p { color: var(--text-muted); font-size: 1.02rem; }
.card > p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.steps li span { padding-top: 0.15rem; }

.screenshot-wrap { margin-top: 1.25rem; }
.screenshot {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.caption { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6rem; }

.tip-box {
  display: flex;
  gap: 0.75rem;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}
.tip-box strong { color: var(--text); }

ul.feature-list { padding-left: 1.2rem; color: var(--text-muted); }
ul.feature-list li { margin-bottom: 0.5rem; }
ul.feature-list strong { color: var(--text); }

.kbd {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

table.shortcuts { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.shortcuts td, table.shortcuts th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.shortcuts th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
}
details.faq-item p { margin: 0.6rem 0 0; color: var(--text-muted); }

.crosslink-card { text-align: center; background: var(--accent-light); }
a.button {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
}
a.button:hover { background: var(--primary-dark); }

footer.guide-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem;
}
footer.guide-footer a { color: var(--primary); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .card { padding: 1.35rem; }
}
