/* ===== SHARED PAGE STYLES ===== */

/* HERO */
.page-hero {
  position: relative; padding: 108px 0 56px; overflow: hidden;
}
.page-hero--sm { padding: 100px 0 40px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-sub { margin-bottom: 0; }

/* SECTION */
.page-section { padding: 48px 0 80px; }

/* ===== CHANGELOG ===== */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.tl-entry { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-bottom: 36px; position: relative; }
.tl-entry::before { content: ''; position: absolute; left: 140px; top: 6px; bottom: 0; width: 1px; background: var(--border); }
.tl-entry::after { content: ''; position: absolute; left: 136px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.tl-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; text-align: right; }
.tl-version { font-size: 12px; color: var(--text); }
.tl-date { font-size: 11px; color: var(--text-dim); }
.tl-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tl-card h3 { font-size: 14px; font-weight: 700; }
.tl-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.tl-list li { font-size: 12px; color: var(--text-muted); padding-left: 14px; position: relative; }
.tl-list li::before { content: '–'; position: absolute; left: 0; color: var(--text-dim); }
.tl-tag { display: inline-flex; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; width: fit-content; }
.tl-tag.new      { background: rgba(99,102,241,0.1); color: var(--accent); border: 1px solid rgba(99,102,241,0.2); }
.tl-tag.improved { background: rgba(6,182,212,0.1);  color: var(--accent-3); border: 1px solid rgba(6,182,212,0.2); }
.tl-tag.fix      { background: rgba(245,158,11,0.1); color: var(--yellow); border: 1px solid rgba(245,158,11,0.2); }

@media (max-width: 600px) {
  .tl-entry { grid-template-columns: 1fr; gap: 8px; }
  .tl-entry::before, .tl-entry::after { display: none; }
  .tl-meta { text-align: left; flex-direction: row; gap: 10px; }
}

/* ===== ROADMAP ===== */
.roadmap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rm-col { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rm-col-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.rm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rm-dot.shipped    { background: var(--green); box-shadow: 0 0 6px var(--green); }
.rm-dot.inprogress { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.rm-dot.planned    { background: var(--text-dim); }
.rm-item { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rm-item h4 { font-size: 13px; font-weight: 600; }
.rm-item p  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.rm-tag { display: inline-flex; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; width: fit-content; }
.rm-tag.new      { background: rgba(99,102,241,0.1); color: var(--accent); border: 1px solid rgba(99,102,241,0.2); }
.rm-tag.improved { background: rgba(6,182,212,0.1);  color: var(--accent-3); border: 1px solid rgba(6,182,212,0.2); }

@media (max-width: 768px) { .roadmap-cols { grid-template-columns: 1fr; } }

/* ===== DOCS ===== */
.docs-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 52px); margin-top: 52px; }
.docs-sidebar {
  position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto;
  padding: 28px 16px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.docs-nav-group { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 6px; padding: 0 10px; }
.docs-navitem { font-size: 13px; font-weight: 500; color: var(--text-dim); text-decoration: none; padding: 5px 10px; border-radius: var(--r); transition: color 0.15s, background 0.15s; }
.docs-navitem:hover { color: var(--text-muted); background: rgba(255,255,255,0.03); }
.docs-navitem.active { color: var(--text); background: rgba(255,255,255,0.05); }
.docs-main { padding: 40px 48px 80px; max-width: 760px; }
.docs-content { display: flex; flex-direction: column; gap: 0; }
.docs-lead { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 40px; margin-top: 8px; }
.docs-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.docs-section:last-child { border-bottom: none; }
.docs-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.docs-section p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.docs-section a { color: var(--accent); text-decoration: none; }
.docs-section a:hover { text-decoration: underline; }
.docs-code { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; overflow-x: auto; }
.docs-code pre code { font-family: 'Geist Mono', monospace; font-size: 12px; line-height: 1.7; }
.docs-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.docs-step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(99,102,241,0.15); color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.docs-step strong { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.docs-step p { font-size: 12px; color: var(--text-muted); margin: 0; }
.docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.docs-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.docs-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.docs-card p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* API page extras */
.api-endpoint-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.api-endpoint-header .method { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; font-family: 'Geist Mono', monospace; }
.api-endpoint-header code { font-size: 13px; font-family: 'Geist Mono', monospace; color: var(--text-muted); }
.api-url-inline { font-size: 13px; color: var(--accent-3); background: rgba(6,182,212,0.08); padding: 3px 8px; border-radius: 4px; }
.api-response-block { background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; margin-top: 12px; }
.api-response-block pre code { font-family: 'Geist Mono', monospace; font-size: 12px; line-height: 1.7; }
.resp-label { font-size: 10px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.resp-code { color: var(--green); margin-left: 6px; }
.error-table { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.error-row { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.error-row:last-child { border-bottom: none; }
.error-row code { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--accent-3); min-width: 36px; }
.error-row span { color: var(--text-muted); }
.method.get    { background: rgba(16,185,129,0.1);  color: var(--green); }
.method.post   { background: rgba(99,102,241,0.12); color: var(--accent); }
.method.delete { background: rgba(239,68,68,0.1);   color: var(--red); }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-main { padding: 24px 20px 60px; }
  .docs-cards { grid-template-columns: 1fr; }
}

/* ===== STATUS ===== */
.status-container { max-width: 720px; display: flex; flex-direction: column; gap: 36px; }
.status-overall { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.status-dot-lg { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
.status-updated { font-size: 12px; color: var(--text-dim); margin-top: 6px; display: block; }
.status-group { display: flex; flex-direction: column; gap: 0; }
.status-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.status-item { display: flex; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.status-item:last-child { border-bottom: none; }
.status-name { font-size: 13px; font-weight: 500; min-width: 200px; }
.status-bars { display: flex; gap: 3px; flex: 1; }
.sbar { flex: 1; height: 20px; border-radius: 3px; }
.sbar.up   { background: rgba(16,185,129,0.35); }
.sbar.down { background: rgba(239,68,68,0.5); }
.status-pill { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 100px; white-space: nowrap; }
.status-pill.operational { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.incident-empty { font-size: 13px; color: var(--text-dim); padding: 16px 0; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.about-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.about-block h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.about-block p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.about-block a { color: var(--accent); text-decoration: none; }
.about-stats { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.about-stat { flex: 1; padding: 24px; text-align: center; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.about-stat:last-child { border-right: none; }
.about-stat-num { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.about-stat-label { font-size: 12px; color: var(--text-dim); }

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }
  .about-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .about-stat:last-child { border-bottom: none; }
}

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.blog-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, transform 0.15s; }
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.blog-card--featured { grid-column: span 2; }
.blog-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.blog-card h2 { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; }
.blog-card h3 { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.blog-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }
}

/* ===== CAREERS ===== */
.careers-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 48px; }
.perk { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.perk-icon { font-size: 20px; }
.perk strong { font-size: 13px; font-weight: 700; }
.perk p { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.jobs-section { display: flex; flex-direction: column; gap: 0; }
.jobs-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.job-card:last-child { border-bottom: none; }
.job-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.job-info p  { font-size: 12px; color: var(--text-muted); }
.job-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.job-tag { font-size: 11px; font-weight: 500; color: var(--text-dim); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; }

@media (max-width: 768px) {
  .careers-perks { grid-template-columns: repeat(2, 1fr); }
  .job-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .careers-perks { grid-template-columns: 1fr; }
}

/* ===== LEGAL ===== */
.legal-content { max-width: 680px; display: flex; flex-direction: column; gap: 0; }
.legal-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.legal-section p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* syntax colors shared */
.c-kw  { color: #c792ea; }
.c-str { color: #c3e88d; }
.c-cm  { color: var(--text-dim); font-style: italic; }
.mono  { font-family: 'Geist Mono', monospace; }
