/* PathTrove shared theme: tokens + top bar. Loaded by index.html and ask.html.
   Gray base; brand teal/pink (from the logo) used sparingly as accents. */

:root {
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f0f1f3;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bar: #d1d5db;
  --bar-strong: #4b5563;

  --teal: #2597b7;
  --teal-ink: #1b7c98;
  --teal-soft: rgba(37, 151, 183, 0.1);
  --teal-line: rgba(37, 151, 183, 0.3);
  --pink: #efa5bf;
  --pink-ink: #c9588a;
  --pink-soft: rgba(239, 165, 191, 0.2);
  --pink-line: rgba(239, 165, 191, 0.55);

  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 16px rgba(17, 24, 39, 0.04);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pt-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.pt-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans);
}
.pt-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.pt-header-logo { display: block; height: 26px; width: auto; }
.pt-nav { display: flex; gap: 28px; font-size: 14px; }
.pt-nav a { color: var(--muted); text-decoration: none; }
.pt-nav a:hover { color: var(--ink); }
.pt-nav a.is-current { color: var(--teal-ink); font-weight: 500; }
.pt-lang { display: flex; gap: 2px; font-size: 13px; }
.pt-lang button {
  border: 0; background: transparent; color: var(--faint); font: inherit;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.pt-lang button.is-active { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .pt-header-inner { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; }
  .pt-header-inner > a:first-child { display: flex; align-items: center; height: 52px; }
  .pt-nav {
    order: 3; flex: 1 0 100%; gap: 20px; margin: 0 -24px; padding: 0 24px 10px;
    overflow-x: auto; white-space: nowrap; font-size: 13.5px; scrollbar-width: none;
  }
  .pt-nav::-webkit-scrollbar { display: none; }
  .pt-nav a { flex: none; }
}
@media (max-width: 560px) {
  .pt-nav { margin: 0 -16px; padding: 0 16px 10px; }
}
@media (max-width: 560px) {
  .pt-container { padding: 0 16px; }
}

/* Entries kept in markup but switched off (e.g. GitHub / Hugging Face until public). */
[hidden] { display: none !important; }

/* "← Home" link at the top of secondary pages. */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-family: var(--sans); font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
