/* =============================================================================
   FriendsBook — Unified Ecosystem Stylesheet (css/public.css)
   Production theme matching FriendsBook main application obsidian dark design system
   ============================================================================= */

:root {
  --pub-bg: #030712;
  --pub-bg-2: #090e1a;
  --pub-bg-card: rgba(15, 23, 42, 0.75);
  --pub-bg-card-hover: rgba(22, 33, 58, 0.85);
  --pub-bg-glass: rgba(255, 255, 255, 0.03);
  --pub-border: rgba(255, 255, 255, 0.08);
  --pub-border-hover: rgba(11, 156, 208, 0.38);
  --pub-primary: #0B9CD0;
  --pub-primary-hover: #0881ad;
  --pub-primary-light: rgba(11, 156, 208, 0.15);
  --pub-accent: #10b981;
  --pub-accent-light: rgba(16, 185, 129, 0.15);
  --pub-accent-purple: #8b5cf6;
  --pub-accent-blue: #3b82f6;
  --pub-text: #f8fafc;
  --pub-text-muted: #94a3b8;
  --pub-text-dim: #64748b;
  --pub-radius: 18px;
  --pub-radius-sm: 12px;
  --pub-radius-xs: 8px;
  --pub-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pub-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --pub-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --pub-shadow-glow: 0 0 24px rgba(11, 156, 208, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--pub-bg);
  color: var(--pub-text);
  font-family: var(--pub-font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom UI Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pub-primary);
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}
.glow-1 { top: -120px; left: -100px; background: radial-gradient(circle, var(--pub-primary), transparent 70%); }
.glow-2 { bottom: 10%; right: -120px; background: radial-gradient(circle, var(--pub-accent), transparent 70%); }
.glow-3 { top: 45%; left: 30%; background: radial-gradient(circle, var(--pub-accent-purple), transparent 70%); opacity: 0.1; }

/* Subtle Grid Background Pattern */
.pub-grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.pub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pub-border);
  transition: all 0.25s ease;
}

.pub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pub-text);
}

.pub-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0B9CD0, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(11, 156, 208, 0.35);
  transition: transform 0.2s ease;
}

.pub-brand:hover .pub-brand-logo {
  transform: scale(1.05);
}

.pub-brand-logo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub-brand-title {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(11, 156, 208, 0.15);
  color: var(--pub-primary);
  border: 1px solid rgba(11, 156, 208, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.pub-nav-links a {
  color: var(--pub-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 2px;
}

.pub-nav-links a:hover,
.pub-nav-links a.active {
  color: var(--pub-text);
}

.pub-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pub-primary), var(--pub-accent));
  border-radius: 999px;
}

.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger Toggle */
.pub-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--pub-border);
  color: var(--pub-text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.pub-menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mobile Navigation Drawer */
.pub-mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--pub-border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}
.pub-mobile-drawer.open {
  display: flex;
}
.pub-mobile-drawer a {
  color: var(--pub-text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pub-mobile-drawer a.active,
.pub-mobile-drawer a:hover {
  color: var(--pub-text);
}

/* Buttons */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.pub-btn-primary {
  background: linear-gradient(135deg, #0B9CD0, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(11, 156, 208, 0.35);
}
.pub-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 156, 208, 0.45);
}

.pub-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pub-text);
  border: 1px solid var(--pub-border);
}
.pub-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.pub-btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* Hero Section */
.pub-hero {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
}

.pub-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.pub-tagline-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pubPulse 2s infinite;
}

.pub-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.pub-gradient-text {
  background: linear-gradient(135deg, #0B9CD0 0%, #10b981 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pub-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--pub-text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.pub-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Cards & Layouts */
.pub-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.pub-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  margin: 36px 0;
}

.pub-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.pub-card {
  background: var(--pub-bg-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pub-card:hover {
  border-color: var(--pub-border-hover);
  background: var(--pub-bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

.pub-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pub-border);
}

.pub-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pub-card-desc {
  color: var(--pub-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Badges */
.pub-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pub-badge-planned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.pub-section {
  padding: 60px 0;
}

.pub-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.pub-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pub-section-desc {
  color: var(--pub-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Interactive Search Bar */
.pub-search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto 36px;
}

.pub-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--pub-border);
  border-radius: 16px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.pub-search-input:focus {
  border-color: var(--pub-primary);
  box-shadow: 0 0 0 4px rgba(11, 156, 208, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

.pub-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--pub-text-dim);
  pointer-events: none;
}

/* Category Filter Chips */
.pub-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.pub-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pub-border);
  color: var(--pub-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.pub-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pub-text);
  border-color: rgba(255, 255, 255, 0.15);
}
.pub-chip.active {
  background: rgba(11, 156, 208, 0.15);
  border-color: var(--pub-primary);
  color: var(--pub-primary);
}

/* Interactive Accordion (FAQ & Guides) */
.pub-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-faq-item {
  background: var(--pub-bg-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}
.pub-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.pub-faq-item.open {
  border-color: rgba(11, 156, 208, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.pub-faq-question {
  width: 100%;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;
  border: none;
  color: var(--pub-text);
  text-align: left;
  transition: color 0.2s ease;
}
.pub-faq-question:hover {
  color: var(--pub-primary);
}

.pub-faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.pub-faq-chevron svg {
  width: 14px;
  height: 14px;
  stroke: var(--pub-text-muted);
  transition: stroke 0.2s ease;
}
.pub-faq-item.open .pub-faq-chevron {
  transform: rotate(180deg);
  background: rgba(11, 156, 208, 0.2);
}
.pub-faq-item.open .pub-faq-chevron svg {
  stroke: var(--pub-primary);
}

.pub-faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  padding: 0 24px;
  color: var(--pub-text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.pub-faq-item.open .pub-faq-answer {
  max-height: 1200px;
  opacity: 1;
  padding-bottom: 24px;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
}

.pub-faq-feedback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--pub-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.pub-vote-btn {
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pub-border);
  color: var(--pub-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.pub-vote-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Live Cryptographic Ticket Status Auditor */
.pub-auditor {
  background: var(--pub-bg-card);
  border: 1px solid var(--pub-border);
  border-radius: 24px;
  padding: 36px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.pub-sample-tokens {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pub-sample-pill {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pub-border);
  font-family: var(--pub-font-mono);
  font-size: 0.8rem;
  color: var(--pub-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pub-sample-pill:hover {
  background: rgba(11, 156, 208, 0.15);
  border-color: var(--pub-primary);
}

.pub-telemetry-timeline {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pub-telemetry-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  opacity: 0.45;
  transition: all 0.3s ease;
}
.pub-telemetry-step.active {
  opacity: 1;
}
.pub-telemetry-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pub-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pub-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pub-text-muted);
  flex-shrink: 0;
}
.pub-telemetry-step.active .pub-telemetry-dot {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--pub-accent);
  color: var(--pub-accent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* Interactive TLDR Mode (Legal Documents) */
.pub-tldr-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  display: none;
}
.pub-tldr-active .pub-tldr-box {
  display: block;
}
.pub-tldr-active .pub-clause-full {
  display: none;
}
.pub-tldr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10b981;
  margin-bottom: 6px;
}

/* Timeline Tree */
.pub-timeline {
  position: relative;
  margin: 48px 0;
  padding-left: 32px;
}
.pub-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--pub-primary), var(--pub-accent), rgba(255,255,255,0.05));
}
.pub-timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.pub-timeline-item:last-child {
  margin-bottom: 0;
}
.pub-timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #030712;
  border: 3px solid var(--pub-primary);
  box-shadow: 0 0 12px rgba(11, 156, 208, 0.5);
}
.pub-timeline-year {
  font-family: var(--pub-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pub-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.pub-timeline-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pub-timeline-desc {
  color: var(--pub-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Interactive Application Form */
.pub-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pub-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pub-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pub-text-muted);
}
.pub-input, .pub-textarea, .pub-select {
  width: 100%;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.pub-input:focus, .pub-textarea:focus, .pub-select:focus {
  border-color: var(--pub-primary);
  box-shadow: 0 0 0 3px rgba(11, 156, 208, 0.15);
}

.pub-role-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pub-role-btn {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pub-border);
  color: var(--pub-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.pub-role-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.pub-role-btn.active {
  background: rgba(11, 156, 208, 0.15);
  border-color: var(--pub-primary);
  color: var(--pub-primary);
}

/* Legal & Documentation Layout */
.pub-doc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 50px 0;
}

.pub-doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  border-right: 1px solid var(--pub-border);
  padding-right: 24px;
}

.pub-doc-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pub-doc-nav a {
  color: var(--pub-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.4;
}

.pub-doc-nav a:hover,
.pub-doc-nav a.active {
  color: var(--pub-text);
  background: rgba(255, 255, 255, 0.05);
}

.pub-doc-content {
  min-width: 0;
}

.pub-doc-content h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pub-doc-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 44px 0 16px;
  border-bottom: 1px solid var(--pub-border);
  padding-bottom: 10px;
  letter-spacing: -0.01em;
}

.pub-doc-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.pub-doc-content p,
.pub-doc-content li {
  color: var(--pub-text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.pub-doc-content ul,
.pub-doc-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.pub-doc-content code {
  font-family: var(--pub-font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  color: #0B9CD0;
  border: 1px solid var(--pub-border);
}

/* Footer */
.pub-footer {
  border-top: 1px solid var(--pub-border);
  background: rgba(3, 7, 18, 0.95);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.pub-footer-brand p {
  color: var(--pub-text-muted);
  font-size: 0.88rem;
  max-width: 320px;
  margin: 16px 0;
  line-height: 1.6;
}

.pub-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 600;
}

.pub-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pubPulse 2s infinite;
}

.pub-footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pub-text);
  margin-bottom: 18px;
}

.pub-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-footer-col a {
  color: var(--pub-text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.pub-footer-col a:hover {
  color: var(--pub-text);
}

.pub-footer-bottom {
  border-top: 1px solid var(--pub-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--pub-text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Animations */
@keyframes pubPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .pub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pub-doc-layout {
    grid-template-columns: 1fr;
  }
  .pub-doc-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .pub-nav-links {
    display: none;
  }
  .pub-menu-toggle {
    display: block;
  }
  .pub-grid-2, .pub-grid-3 {
    grid-template-columns: 1fr;
  }
  .pub-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pub-form-row {
    grid-template-columns: 1fr;
  }
  .pub-role-picker {
    grid-template-columns: 1fr;
  }
}
