/* ── EDGARTools CSS ─────────────────────────────────────────────────────── */
/* Finance/data theme: navy, sky-blue accent, clean typography              */

:root {
  --primary:   #0a2540;
  --accent:    #0066cc;
  --accent-lt: #4fc3f7;
  --success:   #00875a;
  --warn:      #f59e0b;
  --danger:    #dc2626;
  --bg:        #f8fafc;
  --bg-card:   #ffffff;
  --border:    #e2e8f0;
  --text:      #1e293b;
  --text-muted:#64748b;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max-w:     1200px;
}

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

/* Accessibility — skip-to-content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Visible focus indicators (better keyboard nav) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── NAVIGATION ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.brand-text { display: inline-flex; align-items: baseline; }
.brand-edgar { color: #ffffff; font-weight: 800; }
.brand-scout { color: var(--accent-lt); font-weight: 600; }
.brand:hover .brand-edgar { color: var(--accent-lt); }
.brand:hover .brand-scout { color: #fff; }
.brand:hover { color: var(--accent-lt); }
.logo-icon { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  color: rgba(255,255,255,.85);
  background: none;
  border: none;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--accent); }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 60%, #1a237e 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }
.hero-search {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin: 0 auto;
}
.hero-search input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-search button:hover { background: #0052a3; }
.hero-note { font-size: 0.8rem; opacity: 0.65; margin-top: 0.75rem; }
.hero-note a { color: var(--accent-lt); }

/* ── SECTIONS ──────────────────────────────────────────────────────────── */
/* Only top-level homepage sections (direct children of <main>) get the
   2rem vertical padding. Sections nested inside articles/tools (content-section,
   faq-section, etc.) use their own tight spacing rules below.               */
main > section { padding: 2rem 0; }
.section-intro { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--primary); }

/* ── TOOL CARD GRID ────────────────────────────────────────────────────── */
.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tool-card-icon { font-size: 2rem; }
.tool-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.tool-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.tool-card-cta { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: auto; }

/* ── GUIDE CARD GRID ───────────────────────────────────────────────────── */
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.guide-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.guide-card p { font-size: 0.85rem; color: var(--text-muted); }
.view-all { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.view-all:hover { text-decoration: underline; }

/* ── WHY SECTION ───────────────────────────────────────────────────────── */
.why-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.why-item h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ── AD SLOTS ──────────────────────────────────────────────────────────── */
.ad-slot {
  background: #f1f5f9;
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0;
}
.ad-leaderboard { width: 100%; min-height: 90px; }
.ad-rectangle { width: 100%; min-height: 250px; }
.ad-mobile { width: 100%; min-height: 50px; }

/* ── BREADCRUMB ────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── ARTICLE LAYOUT ────────────────────────────────────────────────────── */
.article-page { padding: 2.5rem 0; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--primary); line-height: 1.3; margin-bottom: 0.75rem; }
.meta-row { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.meta-row a { color: var(--accent); text-decoration: none; }
.article-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

/* ── TOOL CTA BOX (on guide pages) ─────────────────────────────────────── */
.tool-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tool-cta:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tool-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}
.tool-cta-content { flex: 1; }
.tool-cta-label { font-size: 0.72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.tool-cta-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.tool-cta-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.tool-cta-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.tool-cta-btn:hover { background: #0052a3; }
@media (max-width: 640px) {
  .tool-cta { flex-wrap: wrap; }
  .tool-cta-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .tool-cta-btn { width: 100%; text-align: center; }
}

/* ── 3-STEP HOW-TO SECTION ─────────────────────────────────────────────── */
.tool-howto { margin: 1.5rem 0 0; }
.tool-howto h2 { font-size: 1.4rem; color: var(--primary); margin: 0 0 1rem; }
.howto-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.howto-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.howto-step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4fc3f7 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,102,204,0.25);
}
.howto-step-body { flex: 1; }
.howto-step-body h3 { font-size: 1rem; color: var(--primary); margin: 0.4rem 0 0.4rem; font-weight: 700; }
.howto-step-body p { font-size: 0.92rem; color: var(--text); margin: 0 0 0.4rem; line-height: 1.55; }

/* ── USE-CASES TWO-COLUMN SECTION ──────────────────────────────────────── */
.tool-usefor { margin: 1.75rem 0 0; }
.tool-usefor h2 { font-size: 1.4rem; color: var(--primary); margin: 0 0 0.65rem; }
.tool-usefor > p { font-size: 0.95rem; color: var(--text); line-height: 1.6; margin: 0 0 1rem; }
.usefor-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}
.usefor-col h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.usefor-col ul { list-style: none; padding: 0; margin: 0; }
.usefor-col li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}
.usefor-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.usefor-col li strong { color: var(--primary); font-weight: 700; }
@media (max-width: 640px) {
  .usefor-cols { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── RELATED GUIDES CARDS ──────────────────────────────────────────────── */
.tool-related-guides { margin: 1.75rem 0 0; }
.tool-related-guides h2 { font-size: 1.4rem; color: var(--primary); margin: 0 0 0.55rem; }
.tool-related-guides > p { font-size: 0.95rem; color: var(--text-muted); margin: 0 0 1rem; line-height: 1.55; }
.related-guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.related-guide-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.related-guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.related-guide-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.related-guide-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.related-guide-text strong { font-size: 0.92rem; color: var(--accent); font-weight: 700; }
.related-guide-text span { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── FAQ ACCORDION (collapsible <details>/<summary>) ───────────────────── */
.faq-accordion { margin-top: 1.75rem; }
.faq-accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-accordion details[open] { border-color: var(--accent); box-shadow: 0 1px 3px rgba(0,102,204,0.08); }
.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  transition: background 0.15s;
}
.faq-accordion summary:hover { background: var(--bg); }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion .faq-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s, transform 0.2s;
}
.faq-accordion .faq-toggle::before,
.faq-accordion .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.faq-accordion .faq-toggle::before { width: 10px; height: 2px; }
.faq-accordion .faq-toggle::after  { width: 2px; height: 10px; transition: transform 0.2s; }
.faq-accordion details[open] .faq-toggle { background: var(--accent); }
.faq-accordion details[open] .faq-toggle::before,
.faq-accordion details[open] .faq-toggle::after { background: #fff; }
.faq-accordion details[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-accordion .faq-answer {
  padding: 0 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.faq-accordion .faq-answer a { color: var(--accent); }

/* ── ANSWER BOX ────────────────────────────────────────────────────────── */
.answer-box {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin: 0.9rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── TABLE OF CONTENTS ─────────────────────────────────────────────────── */
.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h2 { font-size: 1rem; color: var(--primary); margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; }
.toc li { font-size: 0.9rem; margin-bottom: 0.3rem; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── CONTENT SECTIONS ──────────────────────────────────────────────────── */
/* Override the global `section { padding: 2rem 0 }` rule — content sections
   live INSIDE articles and need tight, consistent spacing.                  */
section.content-section { padding: 0; }
.content-section { margin: 0 0 0.9rem 0; }
.content-section h2 { font-size: 1.25rem; color: var(--primary); margin: 1rem 0 0.4rem; line-height: 1.3; }
.content-section h2:first-child { margin-top: 0.25rem; }
.content-section h3 { font-size: 1.02rem; color: var(--primary); margin: 0.65rem 0 0.3rem; line-height: 1.35; }
.content-section p { margin: 0 0 0.5rem; line-height: 1.6; }
.content-section ul, .content-section ol { padding-left: 1.5rem; margin: 0 0 0.5rem; }
.content-section li { margin-bottom: 0.15rem; line-height: 1.5; }
.content-section > *:last-child { margin-bottom: 0; }
.content-section a { color: var(--accent); }
.content-section strong { font-weight: 600; }
.content-section pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.content-section code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: var(--font-mono);
}
.content-section pre code { background: none; padding: 0; font-size: inherit; }
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.content-section th {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
}
.content-section td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
.content-section tr:last-child td { border-bottom: none; }
.content-section tr:nth-child(even) td { background: var(--bg); }

/* ── FAQ SECTION ───────────────────────────────────────────────────────── */
.faq-section { margin-top: 1rem; padding: 0.85rem 0 0 0 !important; border-top: 1px solid var(--border); }
.faq-section h2 { font-size: 1.3rem; color: var(--primary); margin: 0 0 0.65rem; line-height: 1.3; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  background: var(--bg);
  color: var(--primary);
  cursor: default;
}
.faq-item p {
  padding: 0.6rem 1rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.faq-item a { color: var(--accent); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.faq-home .faq-item { break-inside: avoid; }

/* ── SIDEBAR ───────────────────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 72px; }
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-box h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--accent); text-decoration: none; font-size: 0.88rem; }
.sidebar-box a:hover { text-decoration: underline; }

/* ── RELATED CONTENT ───────────────────────────────────────────────────── */
.related-content { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-content h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: 1rem; }
.related-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-link {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s;
}
.related-link:hover { background: #eff6ff; border-color: var(--accent); }

/* ── TOOL PAGES ────────────────────────────────────────────────────────── */
.tool-page { padding: 2rem 0; }
.tool-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.tool-header { margin-bottom: 1.5rem; }
.tool-header h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--primary); margin-bottom: 0.75rem; }
.tool-lead { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.edgar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--success);
  margin-bottom: 1.25rem;
}
.edgar-badge a { color: var(--success); font-weight: 600; }
.tool-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.tool-about { margin-top: 0.75rem; }
.tool-about h2 { font-size: 1.25rem; color: var(--primary); margin: 0.8rem 0 0.4rem; line-height: 1.3; }
.tool-about h2:first-child { margin-top: 0; }
.tool-about h3 { font-size: 1rem; color: var(--primary); margin: 0.6rem 0 0.3rem; line-height: 1.35; }
.tool-about p { margin: 0 0 0.55rem; line-height: 1.6; }
.tool-about ul, .tool-about ol { padding-left: 1.5rem; margin: 0 0 0.55rem; }
.tool-about li { margin-bottom: 0.2rem; line-height: 1.55; }
.tool-about a { color: var(--accent); }
.tool-about pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.tool-about code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: var(--font-mono);
}
.tool-sidebar { position: sticky; top: 72px; }

/* ── TOOL FORM ─────────────────────────────────────────────────────────── */
.tool-form { display: flex; flex-direction: column; gap: 1rem; }
.tool-label { font-size: 0.875rem; font-weight: 600; color: var(--primary); display: block; margin-bottom: 0.35rem; }
.tool-label-sm { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.tool-input-row { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tool-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-right: none;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.tool-input:focus { border-color: var(--accent); }
.tool-input-sm {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  background: #fff;
}
.tool-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tool-btn:hover { background: #0052a3; }
.tool-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.tool-btn-secondary {
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.tool-btn-secondary:hover { background: #eff6ff; }
.tool-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
}
.tool-options { display: flex; flex-direction: column; gap: 0.5rem; }
.tool-options-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.tool-option { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.tool-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.7rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent-lt);
  border-radius: 4px;
  line-height: 1.5;
}
.tool-hint code { background: rgba(0,102,204,.08); color: var(--accent); padding: 0.1em 0.4em; border-radius: 3px; font-size: 0.9em; }
.tool-hint a { color: var(--accent); font-weight: 600; }
.tool-note {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Quick-pick chips above tool forms — instant-explore UX */
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}
.quick-picks-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.quick-picks button {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.quick-picks button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quick-picks button:active { transform: scale(0.96); }
.quick-picks button code { background: transparent; padding: 0; font-size: inherit; color: inherit; }

/* ── TOOL RESULTS ──────────────────────────────────────────────────────── */
.tool-results { margin-top: 1.25rem; }
.tool-status { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-muted); min-height: 1.5rem; }
.tool-attribution { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }
.tool-attribution a { color: var(--accent); }

/* Loader container — spinner + progress bar + skeleton */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: 1rem;
  animation: loaderFadeIn 0.3s ease;
}
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated spinner */
.loader-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.loader-spinner svg { animation: spinnerRotate 1.4s linear infinite; }
.loader-arc {
  stroke-dasharray: 80 200;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: spinnerDash 1.4s ease-in-out infinite;
}
@keyframes spinnerRotate { to { transform: rotate(360deg); } }
@keyframes spinnerDash {
  0%   { stroke-dasharray: 1 200;  stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90 200; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90 200; stroke-dashoffset: -125; }
}

/* Progress bar */
.loader-progress {
  width: 100%;
  max-width: 320px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0066cc 0%, #4fc3f7 50%, #0066cc 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: loaderProgress 4s ease-out forwards, loaderShimmer 1.2s linear infinite;
}
@keyframes loaderProgress {
  0%   { width: 0%; }
  10%  { width: 22%; }
  30%  { width: 48%; }
  60%  { width: 72%; }
  85%  { width: 91%; }
  100% { width: 96%; }
}
@keyframes loaderShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton rows below the progress bar */
.loader-skeleton {
  width: 100%;
  margin-top: 0.5rem;
  opacity: 0.7;
}
.skeleton-row {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 4px;
  height: 14px;
  margin-bottom: 0.5rem;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animated status messages with step counter */
.tool-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  min-height: 1.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tool-status.status-in { opacity: 1; transform: translateY(0); }
.tool-status:empty { padding: 0; min-height: 0; }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
.status-step {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* Results table — clickable rows with strong affordance */
.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.results-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.results-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background 0.12s;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.results-table tbody tr:hover td {
  background: #eff6ff;
}
.results-table tbody tr:hover {
  box-shadow: inset 4px 0 0 var(--accent);
}

/* Plain table links — convert to clear, underlined accent links */
.results-table a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,102,204,0.35);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.results-table a:hover {
  color: #0052a3;
  text-decoration-color: var(--accent);
}

/* Pill-shaped action button for primary clickable links inside results */
.result-action-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.32rem 0.7rem !important;
  border-radius: 6px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,102,204,0.2);
}
.result-action-btn:hover {
  background: #0052a3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,102,204,0.3);
}
.result-action-btn::after { content: "→"; font-weight: 700; }

/* Secondary "outline" link button */
.result-link-secondary {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg) !important;
  color: var(--accent) !important;
  padding: 0.3rem 0.65rem !important;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.result-link-secondary:hover {
  background: #eff6ff !important;
  border-color: var(--accent);
}

/* Click-here hint above results */
.results-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.results-hint::before { content: "👆"; }

/* Result cards — clear card-style affordance */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
  position: relative;
}
.result-card:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(0,102,204,0.12);
  transform: translateY(-1px);
}
.result-card:hover .result-card-cta { background: #0052a3; box-shadow: 0 2px 6px rgba(0,102,204,0.3); }
.result-card-title { font-weight: 700; font-size: 0.95rem; color: var(--primary); margin-bottom: 0.25rem; }
.result-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.result-card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.result-card-excerpt { font-size: 0.875rem; color: var(--text); line-height: 1.55; }
.result-card-excerpt em { background: #fef9c3; font-style: normal; border-radius: 2px; padding: 0 2px; font-weight: 600; }
.result-card-links { margin-top: 0.7rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.result-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.result-card-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.result-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  margin-left: auto;
}
.result-card-cta:hover { background: #0052a3 !important; color: #fff !important; }
.badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 12px;
  padding: 0.15em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fef3c7; color: #d97706; }

/* Tool no-results / error */
.tool-empty { text-align: center; padding: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.tool-empty .fund-pick,
.tool-empty .sic-suggest {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tool-empty .sic-suggest:hover,
.tool-empty .fund-pick:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--danger); font-size: 0.875rem; }
.tool-error a { color: var(--danger); font-weight: 600; }
.company-select-result {
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.12s, padding-left 0.15s;
  position: relative;
}
.company-select-result:hover {
  background: #eff6ff;
  padding-left: 1.25rem;
}
.company-select-result:hover::after {
  content: "Click to view →";
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  white-space: nowrap;
}
.company-select-result:last-child { border-bottom: none; }
.company-select-result .company-name { font-weight: 700; color: var(--primary); margin-bottom: 0.1rem; }
.company-select-result .company-meta { font-size: 0.78rem; color: var(--text-muted); }
.company-select-result > div:first-child { flex: 1; min-width: 0; }

/* SIC list page */
.sic-division-heading { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 1.5rem 0 0.5rem; padding: 0.4rem 0; border-bottom: 2px solid var(--accent); }
.sic-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 1rem; }
.sic-table th { background: var(--primary); color: #fff; padding: 0.5rem 0.75rem; text-align: left; }
.sic-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border); }
.sic-table tr:hover td { background: var(--bg); }
.sic-table a { color: var(--accent); text-decoration: none; }
.filter-row { margin-bottom: 1rem; }
.filter-row input {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
}
.filter-row input:focus { border-color: var(--accent); }

/* Deadline table */
.deadline-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1rem 0; }
.deadline-table th { background: var(--primary); color: #fff; padding: 0.55rem 0.75rem; text-align: left; }
.deadline-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.deadline-table tr:last-child td { border-bottom: none; }
.deadline-table tr:nth-child(even) td { background: var(--bg); }

/* ── DISCLAIMER ────────────────────────────────────────────────────────── */
.disclaimer-bar {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  line-height: 1.5;
}
.disclaimer-bar a { color: var(--accent); }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0a2540 0%, #061a30 100%);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--accent);
}
.footer-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand { padding-right: 1rem; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.footer-logo .brand-edgar { color: #ffffff; font-weight: 800; }
.footer-logo .brand-scout { color: var(--accent-lt); font-weight: 600; }
.footer-logo:hover .brand-edgar { color: var(--accent-lt); }
.footer-logo:hover .brand-scout { color: #fff; }
.footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 360px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(79,195,247,.1);
  border: 1px solid rgba(79,195,247,.25);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-lt);
}
.footer-col strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-col a:hover .fl-icon { transform: scale(1.15); }
.fl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.2);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.footer-col a:hover .fl-icon {
  background: rgba(79,195,247,0.25);
  border-color: rgba(79,195,247,0.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin-bottom: 0.35rem; line-height: 1.5; }
.footer-bottom strong { color: #fff; font-weight: 600; }
.footer-bottom a { color: var(--accent-lt); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { font-size: 0.72rem; opacity: 0.5; max-width: 720px; }
.footer-bottom-left { flex: 1; min-width: 280px; }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.footer-bottom-right span { color: rgba(255,255,255,.3); }

/* ── UTILITY PAGES ─────────────────────────────────────────────────────── */
.article-page h2 { font-size: 1.25rem; color: var(--primary); margin: 1.5rem 0 0.6rem; }
.article-page h3 { font-size: 1.05rem; color: var(--primary); margin: 1rem 0 0.4rem; }
.article-page p { margin-bottom: 0.85rem; line-height: 1.7; }
.article-page ul, .article-page ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.article-page li { margin-bottom: 0.35rem; line-height: 1.6; }
.article-page a { color: var(--accent); }
.contact-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.contact-info p { margin-bottom: 0.4rem; font-size: 0.9rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout, .tool-layout { grid-template-columns: 1fr; }
  .article-sidebar, .tool-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 1rem; border-radius: 4px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu { position: static; display: none; box-shadow: none; border: none; background: rgba(255,255,255,.05); border-radius: 0; }
  .nav-dropdown-menu a { color: rgba(255,255,255,.8); }
  .nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,.1); }
  .nav-dropdown-toggle { color: rgba(255,255,255,.85); width: 100%; text-align: left; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-search { flex-direction: column; max-width: 100%; }
  .hero-search input, .hero-search button { border-radius: 0; border-right: 1px solid var(--border); }
  .hero-search button { text-align: center; }
  .tool-options-row { flex-direction: column; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  h2 { font-size: 1.25rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ── PRINT ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .ad-slot, .toc, .related-content, .article-sidebar, .tool-sidebar { display: none; }
  .article-layout, .tool-layout { grid-template-columns: 1fr; }
  body { color: #000; background: #fff; }
}
