/* ============================================================
   47NETWORK — INNER PAGES  v3
   ============================================================ */

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--neon-cyan); }
.breadcrumb span:not(:last-child) { opacity: .4; }

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--neon-cyan);
  flex-shrink: 0;
}

/* ── DOCS LAYOUT ─────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.docs-sidebar-section { }

.docs-sidebar-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .625rem;
  padding-left: .75rem;
}

.docs-sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .125rem;
}

.docs-sidebar-links a {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  border-left: 2px solid transparent;
}
.docs-sidebar-links a:hover { color: var(--white); background: rgba(92,80,214,.08); }
.docs-sidebar-links a.active {
  color: var(--neon-cyan);
  background: rgba(66,183,250,.08);
  border-left-color: var(--neon-cyan);
}
.docs-sidebar-links .link-icon { font-size: .875rem; flex-shrink: 0; }

/* ── CODE BLOCKS ─────────────────────────────────────────── */
.code-block {
  background: rgba(5,7,24,.95);
  border: 1px solid rgba(92,80,214,.3);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5rem 0;
  position: relative;
}

.code-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1.25rem;
  background: rgba(92,80,214,.08);
  border-bottom: 1px solid rgba(92,80,214,.15);
}

.dots { display: flex; gap: .375rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28CA41; }

.code-header .code-file {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  margin-left: auto;
}

.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(92,80,214,.15);
  overflow-x: auto;
}
.code-tab {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .625rem 1.25rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.code-tab:hover { color: var(--white); }
.code-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }

.code-block pre {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  color: #c9d1d9;
}

.code-block pre:not(:first-of-type) { display: none; }
.code-block pre.active { display: block; }

/* Syntax tokens */
.code-keyword  { color: #ff79c6; }
.code-func     { color: #50fa7b; }
.code-string   { color: #f1fa8c; }
.code-comment  { color: #6272a4; }
.code-prop     { color: #8be9fd; }
.code-num      { color: #bd93f9; }

.code-copy-btn {
  position: absolute;
  top: .625rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
  padding: .25rem .625rem;
  border: 1px solid rgba(92,80,214,.2);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  transition: color .15s, border-color .15s;
  z-index: 2;
}
.code-copy-btn:hover { color: var(--neon-cyan); border-color: rgba(66,183,250,.35); }

/* Inline code */
code {
  background: rgba(92,80,214,.15);
  border: 1px solid rgba(92,80,214,.2);
  padding: .15rem .45rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: .85em;
  color: var(--neon-cyan);
}

/* ── DOCS CONTENT ────────────────────────────────────────── */
.docs-content {
  min-width: 0;
}

.docs-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(92,80,214,.07);
  scroll-margin-top: calc(var(--nav-h) + 2rem);
}
.docs-section:last-child { border-bottom: none; }

.docs-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.docs-section h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 .75rem;
}
.docs-section p { font-size: .9375rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.docs-section strong { color: var(--white); font-weight: 600; }

/* ── API TABLE ───────────────────────────────────────────── */
.api-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .875rem; }
.api-table th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--glass-border); }
.api-table td { padding: .875rem 1rem; border-bottom: 1px solid rgba(92,80,214,.07); vertical-align: middle; }
.api-table tr:last-child td { border-bottom: none; }
.api-table tr:hover td { background: rgba(92,80,214,.04); }

.method-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .625rem;
  border-radius: 6px;
  letter-spacing: .06em;
}
.method-get  { background: rgba(66,183,250,.12);  color: var(--neon-cyan);    border: 1px solid rgba(66,183,250,.25); }
.method-post { background: rgba(74,222,128,.1);   color: #4ade80;             border: 1px solid rgba(74,222,128,.25); }
.method-del  { background: rgba(237,131,91,.12);  color: var(--ember);        border: 1px solid rgba(237,131,91,.25); }
.method-put  { background: rgba(225,89,217,.1);   color: var(--neon-magenta); border: 1px solid rgba(225,89,217,.25); }

.endpoint-path { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.endpoint-param { color: var(--neon-violet); }

/* ── SDK CARDS ───────────────────────────────────────────── */
.sdk-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.sdk-card {
  padding: 1.75rem;
  transition: border-color .25s, transform .25s;
}
.sdk-card:hover { border-color: rgba(66,183,250,.35); transform: translateY(-2px); }
.sdk-card-icon { font-size: 1.75rem; margin-bottom: .875rem; }
.sdk-card h4 { font-family: var(--font-display); font-size: .9375rem; font-weight: 700; margin-bottom: .375rem; }
.sdk-card p { font-size: .8rem; color: var(--muted); line-height: 1.6; margin: 0 0 1rem; }
.sdk-card .sdk-version { font-family: var(--font-mono); font-size: .68rem; color: var(--neon-violet); }

/* ── CALLOUT ─────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.callout-info    { background: rgba(66,183,250,.08);  border: 1px solid rgba(66,183,250,.2);  }
.callout-warning { background: rgba(237,131,91,.08);  border: 1px solid rgba(237,131,91,.2);  }
.callout-tip     { background: rgba(92,80,214,.08);   border: 1px solid rgba(92,80,214,.2);   }
.callout-icon    { font-size: 1.125rem; flex-shrink: 0; margin-top: .05rem; }
.callout-body    { flex: 1; }
.callout-body strong { display: block; font-family: var(--font-display); font-size: .9375rem; margin-bottom: .25rem; }
.callout-body p  { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── TRUST / PILLAR PAGES ────────────────────────────────── */
.trust-pillar-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.25rem; }
.trust-pillar-icon { font-size: 2rem; flex-shrink: 0; }
.trust-pillar-number { font-family: var(--font-mono); font-size: .68rem; color: var(--neon-cyan); letter-spacing: .12em; margin-bottom: .25rem; }

/* ── GLASS UTILITY ───────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--glass-blur);
}

/* ── FEATURE LIST ────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.feature-list li {
  font-size: .875rem;
  color: var(--muted);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(92,80,214,.07);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--neon-cyan); font-size: .75rem; flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .docs-layout { grid-template-columns: 1fr; gap: 2rem; }
  .docs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .docs-sidebar-section { min-width: 160px; }
  .sdk-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sdk-grid { grid-template-columns: 1fr; }
  .docs-sidebar { flex-direction: column; }
}

/* ── CASE STUDY PAGES ────────────────────────────────────── */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0 5rem;
}
.cs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.cs-quote {
  border-left: 3px solid var(--neon-cyan);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: rgba(66,183,250,.05);
  border-radius: 0 12px 12px 0;
}
.cs-quote p  { font-size: 1.0625rem; color: var(--white); line-height: 1.75; font-style: italic; margin: 0 0 .75rem; }
.cs-quote cite { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-style: normal; }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-item { border-bottom: 1px solid rgba(92,80,214,.08); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after { content: '+'; color: var(--neon-cyan); font-size: 1.25rem; font-weight: 300; flex-shrink: 0; transition: transform .25s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p  { font-size: .9375rem; color: var(--muted); line-height: 1.8; padding-bottom: 1.25rem; }

/* ── STUDIO SERVICE SIDEBAR ──────────────────────────────── */
.service-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.related-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── RESPONSIVE ADDITIONS ────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .related-cases-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ── BLOG POST LAYOUT ────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0 6rem;
}

.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-body {
  max-width: 68ch;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 2.5rem 0 1rem;
  color: var(--white);
}

.post-body p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
  color: var(--muted);
  line-height: 2.1;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body li { margin-bottom: 0.25rem; }

.post-body strong { color: var(--white); font-weight: 600; }

.post-body code {
  background: rgba(92,80,214,0.12);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--neon-cyan);
}

.post-body a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── BLOG LISTING ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.blog-grid article {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.25s ease;
}

.blog-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(66,183,250,0.28);
  box-shadow: 0 20px 40px rgba(92,80,214,0.12);
}

.blog-cats {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.blog-cat-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.875rem;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.blog-cat-btn.active,
.blog-cat-btn:hover {
  border-color: rgba(66,183,250,0.4);
  color: var(--neon-cyan);
  background: rgba(66,183,250,0.05);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
}
