/* Toolfolio-inspired dark theme for the local Ads Hub library. */
:root {
  color-scheme: dark;
  --tf-background: #000;
  --tf-panel: #080808;
  --tf-panel-hover: #101010;
  --tf-line: #252525;
  --tf-line-soft: #1b1b1b;
  --tf-foreground: #f4f4f5;
  --tf-muted: #a1a1aa;
  --tf-subtle: #71717a;
  --tf-blue: #3b82f6;
  --tf-blue-bright: #60a5fa;
  --radius-ui: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--tf-background); color-scheme: dark; }
body {
  color: var(--tf-foreground);
  background: var(--tf-background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tf-blue-bright); outline-offset: 3px; }

/* Root landing page */
.site-header, .resource-bar, .site-footer { color: var(--tf-foreground); background: #000; }
.site-header { border-bottom: 1px solid var(--tf-line); }
.nav-shell, .resource-bar { border-color: var(--tf-line); }
.menu-toggle { border: 1px solid #333; border-radius: 2px; color: #f4f4f5; background: #080808; }
.menu-toggle span { background: #f4f4f5; }
.primary-nav.open { border: 1px solid var(--tf-line); background: #050505; }
.brand { color: #fff; }
.primary-nav a, .resource-links a { color: #b4b4bc; }
.primary-nav a:hover, .resource-links a:hover, .resource-links a.active { color: #fff; }
.resource-links a { border-radius: 2px; }
.resource-links a.active { border-color: var(--tf-blue); background: #111; }
.button, .search-box, .search-box kbd, .brand-card, .guide-card,
.industry-card, .platform-card, .emotion-card, .tool-card, .stat-card,
.feature, .method-card, .angle-panel, .analysis-chip, .creative-card,
.faq-list details, .footer-cta {
  border-radius: 2px;
}
.button-dark, .button-light { color: #fff; border: 1px solid #3b82f6; background: #035fff; }
.button-dark:hover, .button-light:hover { background: #2c79ff; }
.button-outline, .button-ghost { color: #e4e4e7; border: 1px solid #333; background: #080808; }
.button-outline:hover, .button-ghost:hover { border-color: #5a5a62; background: #111; }
.section-wrap { --ink: #f4f4f5; }
.breadcrumb, .hero-lede, .section-heading p, .search-hint,
.guide-card p, .industry-card p, .brand-industry, .brand-meta,
.tool-card p, .faq-title p, .about-copy, .footer-bottom,
.footer-column a, .footer-brand p { color: var(--tf-muted); }
.hero, .content-section, .feature, .tracker-row, .about-section,
.tools-section, .faq-section { border-color: var(--tf-line); }
.hero h1, .section-heading h2, .feature h2, .faq-title h2,
.cta-copy h2, .about-intro h2 { color: #f8f8f9; }
.hero h1 span, .hero .eyebrow, .feature-label, .view-all,
.inline-link, .brand-name, .guide-card h3, .industry-card h3,
.tool-card h3, .emotion-name, .faq-list summary { color: #f4f4f5; }
.eyebrow, .feature-label, .tool-kicker { color: #8ab4ff; }
.search-box { border: 1px solid #333; background: #080808; box-shadow: none; }
.search-box input { color: #f4f4f5; }
.search-box input::placeholder, .search-hint { color: #71717a; }
.search-box:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 2px rgb(59 130 246 / 18%); }
.text-button { color: #8ab4ff; }
.hero-art { border: 1px solid var(--tf-line); border-radius: 2px; background: radial-gradient(ellipse at 50% 42%, #17191d 0, #0b0c0f 52%, #050506 100%); }
.hero-art::after { opacity: .1; }
.art-orbit { border-color: rgb(129 140 248 / 20%); }
.creative-card { border-color: #35353a; background: #0c0c0e; box-shadow: 0 24px 60px rgb(0 0 0 / 50%); }
.creative-photo { filter: saturate(.55); }
.creative-bottom { color: #b4b4bc; }
.tiny-link { border-radius: 2px; background: #035fff; }
.analysis-chip { border-color: #333; color: #f4f4f5; background: #101012; box-shadow: 0 12px 32px rgb(0 0 0 / 35%); }
.analysis-chip b { color: #f4f4f5; }
.analysis-chip small, .art-note { color: #a1a1aa; }
.analysis-chip i { color: #9cc2ff; background: #152644; }
.stat-card, .brand-card, .guide-card, .industry-card, .platform-card,
.emotion-card, .tool-card, .feature, .method-card, .angle-panel {
  border: 1px solid var(--tf-line);
  color: #f4f4f5;
  background: var(--tf-panel);
  box-shadow: none;
}
.stat-card:hover, .brand-card:hover, .guide-card:hover, .industry-card:hover,
.platform-card:hover, .emotion-card:hover, .tool-card:hover {
  border-color: #44444b;
  background: var(--tf-panel-hover);
  transform: translateY(-2px);
}
.stat-icon, .brand-avatar, .platform-icon, .guide-icon, .tool-symbol,
.emotion-score, .round-arrow { color: #a8c7ff; background: #111a2a; }
.brand-avatar, .platform-icon, .guide-icon, .tool-symbol, .round-arrow { border-radius: 2px; }
.brand-stats, .brand-meta, .brand-industry, .industry-count,
.platform-info small, .emotion-meta, .tool-kicker { color: #92929b; }
.brand-name-row, .brand-stats b { color: #f4f4f5; }
.mini-bar { background: #222; }
.mini-bar span:first-child { background: #3b82f6; }
.mini-bar span:last-child { background: #28282d; }
.content-section.tinted { background: #050505; }
.feature { overflow: hidden; }
.feature-art { background: radial-gradient(circle at 50% 45%, #1c2028, #08090b 66%); }
.feature-art::before, .sun-disc { background: #1d2a40; }
.feature-tag { border-color: #4b5563; border-radius: 2px; color: #dbeafe; background: #0e1420; }
.feature-tags span { border: 1px solid #303038; border-radius: 2px; color: #a1a1aa; background: #0d0d0f; }
.tracker-row { border: 1px solid var(--tf-line); background: #080808; }
.tracker-row a, .view-all, .inline-link { color: #8ab4ff; }
.angle-panel { border-color: var(--tf-line); }
.hook-tag { border-color: #303038; border-radius: 2px; color: #e4e4e7; background: #0c0c0e; }
.hook-tag:hover { border-color: #3b82f6; background: #101827; }
.deep-cta { border: 1px solid var(--tf-line); border-radius: 2px; background: linear-gradient(110deg, #090a0c, #10141c); }
.cta-orb { color: #a8c7ff; background: #132039; }
.cta-metrics, .method-icon { color: #9cc2ff; }
.method-card { border-color: #303038; }
.faq-list { border-color: var(--tf-line); }
.faq-list details { border-color: var(--tf-line); }
.faq-list summary { color: #e4e4e7; }
.site-footer { border-top: 1px solid var(--tf-line); }
.footer-column h3, .footer-cta { color: #f4f4f5; }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-color: var(--tf-line); }

/* Captured library pages */
body.gm-root, .gm-root, .gm-root .gm-lib-page, .gm-root .gm-lib-page .lib-dark,
.gm-root .gm-lib-page .lib-light, .gm-root .gm-lib-page [data-cro="sticky"] {
  --gm-bg-main: 0 0 0 !important;
  --gm-bg-card: 8 8 8 !important;
  --gm-bg-alt: 16 16 16 !important;
  --gm-accent: 59 130 246 !important;
  --gm-heading: 244 244 245 !important;
  --gm-body: 210 210 214 !important;
  --gm-body-secondary: 161 161 170 !important;
  --gm-body-tertiary: 140 140 148 !important;
  --gm-label: 244 244 245 !important;
  --gm-subtext: 113 113 122 !important;
  --gm-marble-cyan: #3b82f6 !important;
  --gm-teal: #3b82f6 !important;
  --gm-teal-deep: #035fff !important;
  --gm-teal-1100: #8ab4ff !important;
  --gm-teal-1200: #dbeafe !important;
  --gm-ink: #f4f4f5 !important;
  --gm-ink-1200: #e4e4e7 !important;
  --gm-gray-1100: #a1a1aa !important;
  --gm-gray-1000: #92929b !important;
  --gm-gray-900: #71717a !important;
  --gm-gray-500: #303038 !important;
  --gm-gray-400: #29292f !important;
  --gm-gray-300: #202024 !important;
  --gm-gray-200: #111114 !important;
  --gm-gray-100: #0b0b0d !important;
  --gm-white: #000 !important;
  --gm-dark-bg: #000 !important;
  --gm-dark-200: #080808 !important;
  --gm-dark-300: #111114 !important;
  --gm-dark-400: #19191d !important;
  --gm-dark-500: #24242a !important;
  --gm-dark-600: #303038 !important;
  color: #f4f4f5 !important;
}
body.gm-root, .gm-root { margin: 0; background: #000 !important; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }
.gm-root .gm-site-nav-root { --gm-nav-ink: #f4f4f5 !important; }
.gm-root .gm-site-nav-root, .gm-root .gm-site-nav, .gm-root .gm-site-nav-menu,
.gm-root .gm-mobile-nav, .gm-root [class*="sticky"] {
  border-color: #252525 !important;
  background: #000 !important;
  color: #f4f4f5 !important;
  box-shadow: none !important;
}
.gm-root .gm-site-nav::before { background: none !important; }
.gm-root .gm-site-nav-button.primary { border-color: #035fff !important; background: #035fff !important; color: #fff !important; box-shadow: none !important; }
.gm-root .gm-site-nav-button.secondary { border-color: #303038 !important; background: #101012 !important; color: #f4f4f5 !important; }
.gm-root .gm-site-nav-menu-item strong { color: #f4f4f5 !important; }
.gm-root .gm-site-nav-menu-copy > span, .gm-root .gm-site-nav-menu-foot { color: #a1a1aa !important; }
body.gm-root main#main, body.gm-root .ed-page.gm-lib-page,
body.gm-root .ed-page.gm-lib-page .lib-light {
  background: #000 !important;
  background-image: none !important;
  color: #e4e4e7 !important;
}
.gm-root .gm-lib-page h1, .gm-root .gm-lib-page h2, .gm-root .gm-lib-page h3,
.gm-root .gm-lib-page .text-brand-heading { color: #f4f4f5 !important; }
.gm-root .gm-lib-page .lib-summary,
.gm-root .gm-lib-page .gm-lib-stat,
.gm-root .gm-lib-page .js-ad-card,
.gm-root .gm-lib-page .lib-light .lib-dark,
.gm-root .gm-lib-page [data-cro="sticky"],
.gm-root .gm-lib-page .lib-toc a,
.gm-root .gm-lib-page details.bg-brand-bg-card,
.gm-root .gm-lib-cta {
  border-color: #29292f !important;
  border-radius: 2px !important;
  color: #e4e4e7 !important;
  background: #080808 !important;
  box-shadow: none !important;
}
.gm-root .gm-lib-page .lib-toc a { color: #c9dcff !important; }
.gm-root .gm-lib-page .lib-summary li { color: #d4d4d8 !important; }
.gm-root .gm-lib-page table thead th { border-color: #29292f !important; color: #e4e4e7 !important; background: #111114 !important; }
.gm-root .gm-lib-page table th, .gm-root .gm-lib-page table td { border-color: #29292f !important; }
.gm-root .gm-lib-page .js-ad-card .bg-brand-bg-alt { background: #111114 !important; }
.gm-root .gm-lib-page .gm-lib-live { border-color: #14532d !important; color: #86efac !important; background: #052e16 !important; }
.gm-root .gm-lib-page .js-filter-chip[aria-pressed="true"] { border-color: #035fff !important; color: #fff !important; background: #035fff !important; }
.gm-root .gm-lib-page [class*="bg-brand-button-primary"],
.gm-root .gm-lib-page [class*="bg-brand-accent"] { color: #fff !important; background: #035fff !important; }
.gm-root .gm-lib-page a, .gm-root .gm-lib-page button { border-radius: 2px; }
.gm-root .gm-lib-page .gm-lib-rest blockquote,
.gm-root .gm-lib-page .gm-lib-rest [data-summary].border-l-4,
.gm-root .gm-lib-page .gm-lib-rest p.border-l-4 { border-color: #303038 !important; border-left-color: #3b82f6 !important; color: #d4d4d8 !important; background: #0b0b0d !important; }
.gm-root [class*="rounded-"] { border-radius: 2px !important; }
.gm-root [class*="border-brand"] { border-color: #29292f !important; }
.gm-root [class*="shadow"] { box-shadow: none !important; }
.gm-root a:hover { color: #8ab4ff; }
.gm-root button:focus-visible, .gm-root a:focus-visible { outline-color: #60a5fa; }

@media (max-width: 760px) {
  .hero-art { min-height: 300px; }
}
