/* Taximeter — shared styles for documentation pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --yellow: #F5B301; --yellow-dark: #C98E00; --yellow-pale: #FEF6DC; --ink: #1A1403;
  --gray-50: #F9FAFB; --gray-100: #F3F4F6; --gray-200: #E5E7EB; --gray-300: #D1D5DB;
  --gray-400: #9CA3AF; --gray-600: #4B5563; --gray-700: #374151; --gray-800: #1F2937;
  --gray-900: #111827; --white: #FFFFFF; --radius: 12px; --blue: #2563EB; --blue-pale: #EFF6FF;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; }

nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200); }
.nav-inner { padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-brand .brand-icon { font-size: 1.5rem; }
.nav-brand span { font-size: 1.15rem; font-weight: 800; color: var(--gray-900); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); transition: color 0.15s; }
.nav-links a:hover { color: var(--gray-900); }
.nav-links a.active { font-weight: 700; color: var(--yellow-dark); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--gray-800); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--gray-200); padding: 1rem 1.5rem 1.25rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--gray-700); padding: 0.7rem 0; border-bottom: 1px solid var(--gray-100); }
.nav-mobile a.active { color: var(--yellow-dark); font-weight: 700; }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { margin-top: 0.75rem; justify-content: center; width: 100%; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: all 0.15s; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); }

.page-header { background: linear-gradient(160deg, var(--yellow-pale) 0%, var(--white) 60%); padding: 4rem 2rem 3rem; text-align: center; }
.page-header .badge { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow-pale); border: 1px solid #F5B30160; color: var(--yellow-dark); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 1.25rem; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 1rem; }
.page-header p { font-size: 1.05rem; color: var(--gray-600); max-width: 560px; margin: 0 auto; }

.toc-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 0 2rem; overflow-x: auto; white-space: nowrap; position: sticky; top: 60px; z-index: 90; }
.toc-bar ul { display: inline-flex; list-style: none; max-width: 1100px; margin: 0 auto; }
.toc-bar ul li a { display: inline-block; padding: 1rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.toc-bar ul li a:hover { color: var(--gray-900); border-bottom-color: var(--gray-300); }

.page-body { max-width: 860px; margin: 0 auto; padding: 3.5rem 2rem 6rem; }
.doc-section { margin-bottom: 3.5rem; scroll-margin-top: 130px; }
.doc-section h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 0.75rem; }
.doc-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin: 1.5rem 0 0.5rem; }
.doc-section p { font-size: 0.975rem; color: var(--gray-700); max-width: 720px; line-height: 1.75; margin-bottom: 1rem; }
.doc-section ul, .doc-section ol { margin: 0 0 1rem 1.25rem; }
.doc-section li { font-size: 0.95rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 0.3rem; }
.doc-section a { color: var(--yellow-dark); font-weight: 600; }
.doc-section code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--gray-100); padding: 1px 6px; border-radius: 5px; }

table.doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
table.doc-table th, table.doc-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
table.doc-table th { background: var(--gray-50); font-weight: 700; color: var(--gray-800); }
table.doc-table code { background: var(--gray-100); }

.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step-card { display: flex; gap: 1.25rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.step-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.step-body h3 { font-size: 0.975rem; font-weight: 700; margin: 0 0 0.4rem; }
.step-body p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 0.5rem; }

.code-wrap { background: #0D1117; border: 1px solid #30363D; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0.75rem 0 1rem; overflow-x: auto; }
.code-wrap pre { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.75; color: #E6EDF3; white-space: pre; }
.cm { color: #8B949E; } .kw { color: var(--yellow); } .st { color: #A5D6FF; }

.callout { display: flex; gap: 0.75rem; background: var(--yellow-pale); border: 1px solid #F5B30140; border-left: 3px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout-info { background: var(--blue-pale); border-color: #BFDBFE; border-left-color: var(--blue); }
.callout-warn { background: #FFFBEB; border-color: #FDE68A; border-left-color: #D97706; }

.quick-ref { background: var(--gray-900); border-radius: var(--radius); padding: 2rem; margin: 1.5rem 0; }
.quick-ref h3 { font-size: 1rem; font-weight: 700; color: var(--yellow); margin: 0 0 1.25rem; }
.cmd-row { display: flex; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid #30363D; }
.cmd-row:last-child { border-bottom: none; }
.cmd-label { font-size: 0.8rem; font-weight: 600; color: #8B949E; min-width: 150px; flex-shrink: 0; }
.cmd-code { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: #A5D6FF; }

footer { background: var(--gray-900); padding: 3rem 2rem; text-align: center; }
footer .footer-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 0.75rem; }
footer .footer-brand .brand-icon { font-size: 1.5rem; }
footer .footer-brand span { font-size: 1rem; font-weight: 800; color: #fff; }
footer p { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.4rem; }
footer .footer-nav { margin-top: 1.5rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
footer .footer-nav a { font-size: 0.8rem; color: var(--gray-400); text-decoration: none; }
footer .footer-nav a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 1.25rem; } .nav-links { display: none; } .nav-hamburger { display: flex; }
  .page-header { padding: 3rem 1.25rem 2rem; } .page-body { padding: 2.5rem 1.25rem 4rem; }
  .step-card { flex-direction: column; gap: 0.75rem; } .toc-bar { top: 60px; }
}
