/* ============================================================
   TERAVENT — Resources Sub-pages Shared CSS
   Used by: governance.html, standards.html, articles.html,
            tools.html, developer.html, faqs.html
   ============================================================ */

/* ─── Sub-page Hero ─── */
.sub-hero {
  background: var(--ink);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,222,206,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,222,206,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.sub-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}
.sub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sub-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.sub-breadcrumb a:hover { color: var(--gold-mid); }
.sub-breadcrumb .current { color: var(--gold-mid); }
.sub-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1rem;
}
.sub-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.sub-hero-title em { font-style: italic; color: var(--gold-mid); }
.sub-hero-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 640px;
  margin-bottom: 2rem;
}
.sub-hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.sub-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.sub-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.sub-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ─── Sub-page Layout (2-col with sidebar) ─── */
.sub-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  gap: 3rem;
  align-items: start;
}
.sub-sidebar {
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sub-sidebar::-webkit-scrollbar { width: 3px; }
.sub-sidebar::-webkit-scrollbar-track { background: transparent; }
.sub-sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.sub-nav-group { margin-bottom: 1.8rem; }
.sub-nav-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.6rem;
}
.sub-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.83rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 0.1rem;
  cursor: pointer;
}
.sub-nav-link:hover { background: var(--foam); color: var(--forest); }
.sub-nav-link.active { background: var(--foam); color: var(--forest); font-weight: 500; }
.sub-nav-link .nav-icon { font-size: 0.9rem; flex-shrink: 0; }
.sub-nav-count {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  background: var(--border-light);
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}
.sub-nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}
.sub-nav-back:hover { color: var(--forest); }

.sub-main { min-width: 0; }

/* ─── Section Header ─── */
.sub-section-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.sub-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.6rem;
}
.sub-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.sub-section-title em { font-style: italic; color: var(--forest); }
.sub-section-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ─── Section Divider ─── */
.sub-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 68px;
}
.sub-section-group-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
}

/* ─── Policy Cards (Governance page) ─── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.policy-thumb {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.policy-thumb::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.policy-thumb:hover { border-color: var(--forest); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.policy-thumb:hover::before { transform: scaleX(1); }
.policy-thumb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.policy-thumb-id {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.policy-thumb-icon { font-size: 1.4rem; }
.policy-thumb-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  flex-grow: 1;
}
.policy-thumb-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.policy-thumb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
}
.policy-thumb-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.policy-thumb-arrow {
  font-size: 0.8rem;
  color: var(--forest);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.policy-thumb:hover .policy-thumb-arrow { opacity: 1; transform: translateX(3px); }

/* Featured policy card */
.policy-featured {
  background: var(--ink);
  border: none;
  color: var(--white);
  grid-column: span 2;
}
.policy-featured::before { background: var(--gold-mid); }
.policy-featured:hover { border-color: transparent; }
.policy-featured .policy-thumb-id { color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.policy-featured .policy-thumb-title { color: var(--white); font-size: 1rem; }
.policy-featured .policy-thumb-desc { color: rgba(255,255,255,0.55); -webkit-line-clamp: 3; }
.policy-featured .policy-thumb-meta { color: rgba(255,255,255,0.35); }
.policy-featured .policy-thumb-footer { border-top-color: rgba(255,255,255,0.1); }
.policy-featured .policy-thumb-arrow { color: var(--gold-mid); opacity: 0.7; }

/* ─── Standards List (Standards page) ─── */
.std-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.std-filter-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.std-filter-btn:hover, .std-filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ─── Article Cards (Articles page) ─── */
.articles-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.af-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.af-btn:hover, .af-btn.active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.articles-list { display: flex; flex-direction: column; gap: 1px; }
.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 4px;
}
.article-row:hover { background: var(--foam); padding-left: 0.8rem; padding-right: 0.8rem; margin: 0 -0.8rem; }
.article-row-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.article-row-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.article-row:hover .article-row-title { color: var(--forest); }
.article-row-excerpt {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-row-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.article-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.3rem;
}
.article-row-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.article-row-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.article-featured-banner {
  background: var(--ink);
  border-radius: 10px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.article-featured-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,222,206,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,222,206,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.afb-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  position: relative;
}
.afb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  position: relative;
}
.afb-excerpt {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  position: relative;
}
.afb-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1rem;
  position: relative;
}
.afb-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.afb-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
  border-left: 2px solid var(--gold-mid);
  padding-left: 1rem;
  position: relative;
}
.afb-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--gold-mid);
  text-decoration: none;
  margin-top: 1rem;
  position: relative;
  transition: gap 0.15s;
}
.afb-read:hover { gap: 0.7rem; }

/* ─── Tool Cards (Tools page) ─── */
.tools-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.tool-card-v2 {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.2s;
  position: relative;
}
.tool-card-v2:hover { border-color: var(--forest); box-shadow: 0 8px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-icon-wrap {
  width: 44px; height: 44px;
  background: var(--foam);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.tool-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid;
}
.tool-badge.free { color: var(--forest); border-color: var(--forest); background: var(--foam); }
.tool-badge.api { color: #1e6fbf; border-color: #b3d4f0; background: #f0f7ff; }
.tool-badge.beta { color: #b07c00; border-color: #f0dc90; background: #fffbee; }
.tool-card-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.tool-card-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  transition: gap 0.15s;
}
.tool-card-cta:hover { gap: 0.7rem; }

/* ─── Developer / API page ─── */
.api-intro-banner {
  background: var(--ink);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.api-base-url {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold-mid);
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.7rem;
  display: inline-block;
}
.api-auth-note {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
}
.api-key-btn {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--gold-mid);
  color: var(--ink);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.api-key-btn:hover { opacity: 0.88; }

.api-endpoint {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s;
}
.api-endpoint-header:hover { background: var(--bg-light); }
.api-method {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.method-get { background: #e6f4ea; color: #1a7f37; }
.method-post { background: #fff3cd; color: #856404; }
.method-delete { background: #fde8e8; color: #b91c1c; }
.api-path {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink);
  flex-grow: 1;
}
.api-path-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-left: auto;
}
.api-auth-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #f0d060;
  flex-shrink: 0;
}
.api-public-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e6f4ea;
  color: #1a7f37;
  border: 1px solid #9ad1a8;
  flex-shrink: 0;
}
.api-endpoint-body {
  display: none;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}
.api-endpoint.open .api-endpoint-body { display: block; }
.api-endpoint-body p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.api-params-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.api-params-table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-mid);
  background: rgba(0,0,0,0.02);
}
.api-params-table td {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}
.api-params-table td:first-child {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink);
}
.api-code-block {
  background: var(--ink);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-top: 0.8rem;
  overflow-x: auto;
}
.api-code-block pre {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.7;
  white-space: pre;
}
.api-code-block .c-key { color: #9cdcfe; }
.api-code-block .c-str { color: #ce9178; }
.api-code-block .c-num { color: #b5cea8; }
.api-code-block .c-kw  { color: #c586c0; }
.api-code-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.api-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  margin-left: auto;
}
.api-endpoint.open .api-chevron { transform: rotate(180deg); }

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.sdk-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sdk-lang {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 400;
}
.sdk-status {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--forest);
}
.sdk-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--forest);
  text-decoration: none;
}
.sdk-link:hover { text-decoration: underline; }

/* ─── FAQ (FAQ page) ─── */
.faq-section-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
}
.faq-item-v2 {
  border-bottom: 1px solid var(--border-light);
}
.faq-q-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
}
.faq-q-v2 h5 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  transition: color 0.15s;
}
.faq-q-v2:hover h5 { color: var(--forest); }
.faq-toggle-v2 {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.2s;
  margin-top: 0.1rem;
}
.faq-item-v2.open .faq-toggle-v2 {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a-v2 {
  display: none;
  padding: 0 0 1.2rem 0;
}
.faq-item-v2.open .faq-a-v2 { display: block; }
.faq-a-v2 p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}
.faq-a-v2 p + p { margin-top: 0.8rem; }
.faq-a-v2 a { color: var(--forest); }

/* ─── Resources Hub — section cards ─── */
.res-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.res-hub-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.res-hub-card::after {
  content: '→';
  position: absolute;
  bottom: 1.4rem; right: 1.4rem;
  font-size: 1rem;
  color: var(--forest);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.res-hub-card:hover { border-color: var(--forest); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.res-hub-card:hover::after { opacity: 1; transform: translateX(0); }
.res-hub-icon {
  width: 48px; height: 48px;
  background: var(--foam);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.res-hub-card-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.res-hub-card-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}
.res-hub-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .sub-layout { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 0; }
  .sub-sidebar { position: static; max-height: none; margin-bottom: 1.5rem; }
  .policy-featured { grid-column: span 1; }
  .article-featured-banner { grid-template-columns: 1fr; }
  .afb-visual { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
  .api-intro-banner { grid-template-columns: 1fr; }
  .sdk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .policy-grid { grid-template-columns: 1fr; }
  .tools-section-grid { grid-template-columns: 1fr; }
  .sdk-grid { grid-template-columns: 1fr; }
  .sub-hero { padding: 3.5rem 0 2.5rem; }
}
