/* Simple Capture family-nav — tab strip across all 5 sites.
   Canonical source: simple-capture/scripts/theme-shared/family-nav.css
   Synced byte-identical to each theme dir; smoke-all.mjs enforces.
   Don't edit per-theme copies. */

/* Tab strip: 5 equal-width columns, icon-above-label per tab. flex:1 makes the
   row fill any viewport (320px → 1200px) without overflow, scroll, or breakpoint
   forks. Same render everywhere — phone gets 75px tabs, desktop gets 240px. */
.family-nav {
  background: var(--surface, #f1f1f3);
  width: 100%;
  position: relative;
  z-index: 5;
}
/* Top variant (default): horizontal line under tabs; active tab merges DOWN into content. */
.family-nav-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--border, #d4d4d8);
  pointer-events: none;
}
/* Bottom variant (mirrored, inverted): horizontal line ABOVE tabs; active tab merges UP into content. */
.family-nav-bottom::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--border, #d4d4d8);
  pointer-events: none;
}

.family-nav-top .family-nav-tabs {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 6px 8px 0;
  list-style: none;
  max-width: 1200px;
  align-items: stretch;
  position: relative;
  z-index: 1; /* above the ::after line so the active tab can sit on top of it */
}
/* Inverted variant: tabs hang from the top edge instead of rising from the bottom. */
.family-nav-bottom .family-nav-tabs {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 0 8px 6px;
  list-style: none;
  max-width: 1200px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.family-tab {
  flex: 1 1 0; /* equal-width columns; never overflow regardless of viewport */
  min-width: 0; /* allow label to truncate cleanly if any future label is too long */
}

.family-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 10px;
  background: transparent;
  color: var(--text-muted, var(--muted, #6b7080));
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease;
  line-height: 1.2;
  text-align: center;
}
.family-tab-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Top variant: rounded top corners; active tab "punches through" line below. */
.family-nav-top .family-tab a {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  margin-bottom: -2px;
}
/* Bottom variant: rounded bottom corners; active tab "punches through" line above. */
.family-nav-bottom .family-tab a {
  border-radius: 0 0 10px 10px;
  border-top: none;
  margin-top: -2px;
}

.family-tab a:hover,
.family-tab a:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text, #111);
}

.family-tab-active a {
  background: var(--bg, #ffffff);
  color: var(--accent, #0d9488);
  font-weight: 600;
  border-color: var(--border, #e0e0e3);
}

.family-tab-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* === Site internal nav (level 2: Home / About / FAQ / Pro / Privacy Policy) === */
/* Sits directly under family-nav. Slimmer text-link row, active page underlined in accent. */
.site-internal-nav {
  background: var(--bg, #ffffff);
  border-bottom: 1px solid var(--border, #e0e0e3);
  font-size: 13px;
  position: relative;
  z-index: 4;
}
.site-internal-nav .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-internal-nav .container::-webkit-scrollbar { display: none; }
.site-internal-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  white-space: nowrap;
  align-items: center;
}
.site-internal-link {
  color: var(--text-muted, var(--muted, #6b7080));
  text-decoration: none;
  padding: 3px 0;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.site-internal-link:hover,
.site-internal-link:focus-visible {
  color: var(--text, #111);
}
.site-internal-link-active {
  color: var(--accent, #0d9488) !important;
  border-bottom-color: var(--accent, #0d9488);
  font-weight: 600;
}
/* Pro nav link intentionally inherits the default site-internal-link styles — no special color
   or weight. Was previously tinted gold (var(--pro)); removed for visual uniformity across the
   nav strip. */
@media (max-width: 600px) {
  .site-internal-nav { font-size: 12px; }
  .site-internal-nav ul { gap: 16px; padding: 8px 0; }
}
@media (prefers-color-scheme: dark) {
  .site-internal-nav {
    background: oklch(20% 0 0);
    border-bottom-color: oklch(27% 0 0);
  }
  .site-internal-link { color: oklch(58% 0 0); }
  .site-internal-link:hover,
  .site-internal-link:focus-visible { color: oklch(86% 0 0); }
  .site-internal-link-active { color: oklch(65% 0.16 185) !important; border-bottom-color: oklch(65% 0.16 185); }
}

/* === Site footer (canonical, shared) === */
.site-footer {
  background: var(--surface, #f1f1f3);
  border-top: 1px solid var(--border, #e0e0e3);
  padding: 48px 0 32px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-muted, var(--muted, #6b7080));
}
.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
  text-align: left;
}
.footer-col-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text, #111);
  margin: 0 0 16px;
  opacity: 0.85;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #111);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 420px;
  opacity: 0.85;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-muted, var(--muted, #6b7080));
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent, #0d9488);
  text-decoration: underline;
}
/* Pro footer link intentionally uses the default footer-col link color — no gold tint. */
.footer-related-active a {
  color: var(--text, #111) !important;
  font-weight: 700;
  cursor: default;
}
.footer-related-active a:hover,
.footer-related-active a:focus-visible {
  text-decoration: none;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e0e0e3);
  text-align: left;
}
.footer-copy {
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}
@media (max-width: 720px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-tagline { max-width: none; }
}

/* Dark mode (matches the family palette) */
@media (prefers-color-scheme: dark) {
  .family-nav { background: oklch(24% 0 0); border-bottom-color: oklch(27% 0 0); }
  .family-tab a { color: oklch(58% 0 0); }
  .family-tab a:hover, .family-tab a:focus-visible { background: rgba(255,255,255,0.04); color: oklch(86% 0 0); }
  .family-tab-active a { background: oklch(20% 0 0); color: oklch(65% 0.16 185); border-color: oklch(27% 0 0); }
}
