/* ═══════════════════════════════════════════════════════
   WebsiteGuide.net — Premium Design System v2
   Light theme, Inter font, Bootstrap 5 base
═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --wg-primary:       #2563eb;
  --wg-primary-hover: #1d4ed8;
  --wg-primary-light: #eff6ff;
  --wg-accent:        #0ea5e9;
  --wg-text:          #0f172a;
  --wg-text-sec:      #475569;
  --wg-muted:         #94a3b8;
  --wg-border:        #e2e8f0;
  --wg-bg:            #ffffff;
  --wg-bg-subtle:     #f8fafc;
  --wg-success:       #10b981;
  --wg-warning:       #f59e0b;
  --wg-danger:        #ef4444;
  --wg-radius:        10px;
  --wg-radius-lg:     16px;
  --wg-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --wg-shadow:        0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --wg-shadow-md:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --wg-shadow-lg:     0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
}

/* ── Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--wg-text);
  background: var(--wg-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

a { color: var(--wg-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--wg-primary-hover); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ══════════════════════════════════════════════════════
   Premium Navbar
══════════════════════════════════════════════════════ */
.wg-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.wg-navbar.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(15,23,42,.07);
  border-color: var(--wg-border);
}

/* Inner row */
.wg-navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

/* ── Brand ─────────────────────────────────────────── */
.wg-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}
.wg-brand:hover { text-decoration: none; }
.wg-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.wg-brand:hover .wg-brand-icon { transform: rotate(-8deg) scale(1.08); }
.wg-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wg-text);
  letter-spacing: -0.025em;
  line-height: 1;
}
.wg-brand-tld {
  color: var(--wg-muted);
  font-weight: 400;
}

/* ── Desktop nav list ──────────────────────────────── */
.wg-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .15rem;
  flex: 1;
}

.wg-nav-sep {
  width: 1px;
  height: 20px;
  background: var(--wg-border);
  margin: 0 .5rem;
}

/* ── Nav link ─────────────────────────────────────── */
.wg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--wg-text-sec);
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
  position: relative;
}
.wg-nav-link:hover,
.wg-nav-link:focus-visible {
  color: var(--wg-text);
  background: var(--wg-bg-subtle);
  text-decoration: none;
  outline: none;
}
.wg-nav-link.active {
  color: var(--wg-primary);
  background: var(--wg-primary-light);
}

/* Chevron animation */
.wg-chevron {
  font-size: .7rem;
  transition: transform .2s;
  opacity: .6;
}
.wg-dropdown-trigger[aria-expanded="true"] .wg-chevron {
  transform: rotate(-180deg);
  opacity: 1;
}

/* ── CTA button ────────────────────────────────────── */
.wg-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  font-size: .855rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--wg-primary) 0%, #1d4ed8 100%);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.15);
  transition: background .2s, box-shadow .2s, transform .15s;
  letter-spacing: .005em;
}
.wg-nav-cta:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}
.wg-nav-cta:active { transform: translateY(0); }

/* ── Dropdown ──────────────────────────────────────── */
.wg-has-dropdown { position: relative; }

.wg-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 480px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 14px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 20px 40px -8px rgba(15,23,42,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  overflow: hidden;
  z-index: 200;
}
.wg-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  border-top: 1px solid rgba(226,232,240,.9);
  border-left: 1px solid rgba(226,232,240,.9);
  border-radius: 2px 0 0 0;
}
.wg-has-dropdown:hover .wg-dropdown,
.wg-has-dropdown:focus-within .wg-dropdown,
.wg-dropdown-trigger[aria-expanded="true"] ~ .wg-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown grid */
.wg-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: .6rem;
}
.wg-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .875rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--wg-text);
  transition: background .13s;
}
.wg-dropdown-item:hover {
  background: var(--wg-bg-subtle);
  text-decoration: none;
  color: var(--wg-text);
}
.wg-dd-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.wg-dd-icon--blue   { background: #dbeafe; color: #2563eb; }
.wg-dd-icon--green  { background: #dcfce7; color: #16a34a; }
.wg-dd-icon--orange { background: #ffedd5; color: #ea580c; }
.wg-dd-icon--purple { background: #f3e8ff; color: #9333ea; }

.wg-dd-body { display: flex; flex-direction: column; gap: 2px; }
.wg-dd-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--wg-text);
  line-height: 1.3;
}
.wg-dd-desc {
  font-size: .775rem;
  color: var(--wg-muted);
  line-height: 1.4;
}
.wg-dropdown-item:hover .wg-dd-title { color: var(--wg-primary); }

/* Dropdown footer */
.wg-dropdown-footer {
  display: flex;
  gap: .25rem;
  padding: .5rem .6rem;
  background: var(--wg-bg-subtle);
  border-top: 1px solid var(--wg-border);
}
.wg-dd-footer-link {
  flex: 1;
  text-align: center;
  padding: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--wg-text-sec);
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.wg-dd-footer-link:hover {
  background: #fff;
  color: var(--wg-primary);
  text-decoration: none;
}

/* ── Hamburger / Toggler ───────────────────────────── */
.wg-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--wg-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.wg-toggler:hover { background: var(--wg-bg-subtle); border-color: #cbd5e1; }
.wg-toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--wg-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
/* Open state bars → X */
.wg-toggler.is-open .wg-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wg-toggler.is-open .wg-toggler-bar:nth-child(2) { opacity: 0; width: 0; }
.wg-toggler.is-open .wg-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ─────────────────────────────────── */
.wg-mobile-nav {
  display: none;
  border-top: 1px solid var(--wg-border);
  background: #fff;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s cubic-bezier(.4,0,.2,1), padding .25s;
}
.wg-mobile-nav.is-open {
  max-height: 480px;
  padding: .75rem 0 1.25rem;
}
.wg-mobile-section {
  padding: .25rem 1.25rem;
  margin-bottom: .25rem;
}
.wg-mobile-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wg-muted);
  margin-bottom: .35rem;
  margin-top: .35rem;
}
.wg-mobile-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--wg-text-sec);
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.wg-mobile-link:hover, .wg-mobile-link.active {
  background: var(--wg-bg-subtle);
  color: var(--wg-primary);
  text-decoration: none;
}
.wg-mobile-link i { font-size: 1rem; width: 20px; text-align: center; color: var(--wg-muted); }
.wg-mobile-link:hover i, .wg-mobile-link.active i { color: var(--wg-primary); }
.wg-mobile-cta-wrap {
  padding: .5rem 1.25rem 0;
}
.wg-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .7rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--wg-primary) 0%, #1d4ed8 100%);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37,99,235,.3);
  transition: box-shadow .2s, transform .15s;
}
.wg-mobile-cta:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}

/* ── Responsive breakpoint ─────────────────────────── */
@media (max-width: 991px) {
  .wg-nav-links { display: none !important; }
  .wg-toggler   { display: flex; }
  .wg-mobile-nav { display: block; }
}

/* ── Hero ──────────────────────────────────────────── */
.wg-hero {
  background: linear-gradient(160deg, #f0f7ff 0%, #fafbff 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--wg-border);
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  position: relative;
}
.wg-hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--wg-primary-light);
  color: var(--wg-primary);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: .25rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--wg-primary);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--wg-text);
  margin-bottom: 1.25rem;
}
.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--wg-primary) 0%, var(--wg-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--wg-text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.btn-hero {
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  transition: transform .15s, box-shadow .15s;
}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-hero-outline {
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--wg-border);
  color: var(--wg-text);
  background: white;
  transition: border-color .15s, background .15s;
}
.btn-hero-outline:hover { border-color: var(--wg-primary); color: var(--wg-primary); background: var(--wg-primary-light); text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat { text-align: left; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--wg-text); letter-spacing: -0.02em; }
.hero-stat span { font-size: .78rem; color: var(--wg-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }

/* Hero visual (right side) */
.hero-visual { position: relative; }
.hero-demo-card {
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius-lg);
  box-shadow: var(--wg-shadow-lg);
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}
.hero-demo-card--2 {
  margin-top: .75rem;
  margin-left: 2rem;
  margin-right: -1rem;
  animation-delay: -3s;
  animation-duration: 7s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.demo-header {
  background: var(--wg-bg-subtle);
  border-bottom: 1px solid var(--wg-border);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}
.demo-dot:nth-child(1) { background: #fca5a5; }
.demo-dot:nth-child(2) { background: #fcd34d; }
.demo-dot:nth-child(3) { background: #86efac; }
.demo-url {
  margin-left: .5rem;
  font-size: .75rem;
  color: var(--wg-muted);
  font-family: monospace;
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: 6px;
  padding: .1rem .5rem;
}
.demo-body { padding: .5rem 0; }
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem 1rem;
  font-size: .82rem;
  gap: 1rem;
}
.demo-row:hover { background: var(--wg-bg-subtle); }
.demo-label { color: var(--wg-text-sec); font-weight: 500; white-space: nowrap; }
.demo-val { color: var(--wg-text-sec); font-family: monospace; font-size: .78rem; }
.demo-badge-green { background: #dcfce7; color: #166534; font-size: .7rem; font-weight: 700; padding: .2em .6em; border-radius: 20px; white-space: nowrap; }
.demo-badge-blue  { background: #dbeafe; color: #1e40af; font-size: .7rem; font-weight: 700; padding: .2em .6em; border-radius: 20px; white-space: nowrap; }
.demo-badge-orange { background: #fef3c7; color: #92400e; font-size: .7rem; font-weight: 700; padding: .2em .6em; border-radius: 20px; white-space: nowrap; }

/* ── Section heading ───────────────────────────────── */
.wg-section-header {
  margin-bottom: 1.5rem;
}
.wg-section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wg-primary);
  margin-bottom: .4rem;
}
.wg-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wg-text);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Legacy section title (inline underline style) */
.wg-section-title-underline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wg-text);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--wg-primary);
  display: inline-block;
}

/* ── Cards ─────────────────────────────────────────── */
.wg-card {
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 1.35rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.wg-card:hover {
  box-shadow: var(--wg-shadow-md);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}
.wg-card-icon {
  width: 44px; height: 44px;
  background: var(--wg-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.wg-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wg-text);
  margin-bottom: .35rem;
  line-height: 1.35;
}
.wg-card-title a { color: inherit; }
.wg-card-title a:hover { color: var(--wg-primary); text-decoration: none; }
.wg-card-meta { font-size: .78rem; color: var(--wg-muted); }
.wg-card-desc { font-size: .875rem; color: var(--wg-text-sec); margin-top: .4rem; line-height: 1.55; }

/* ── Article cards (list style) ────────────────────── */
.wg-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 1.25rem 1.35rem;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.wg-article-card:hover {
  box-shadow: var(--wg-shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Tool card ─────────────────────────────────────── */
.wg-tool-card {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 1.1rem 1.25rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.wg-tool-card:hover {
  box-shadow: var(--wg-shadow-md);
  border-color: var(--wg-primary);
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}
.wg-tool-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--wg-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ── Sidebar ───────────────────────────────────────── */
.wg-sidebar { position: sticky; top: 5rem; }
.wg-sidebar .wg-card {
  margin-bottom: 1.25rem;
  transition: none;
}
.wg-sidebar .wg-card:hover { transform: none; box-shadow: var(--wg-shadow-sm); }
.wg-sidebar .wg-card h5 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wg-muted);
  margin-bottom: .85rem;
}
.wg-sidebar ul li { margin-bottom: .45rem; font-size: .875rem; }
.wg-sidebar ul li a {
  color: var(--wg-text-sec);
  transition: color .12s, padding-left .12s;
}
.wg-sidebar ul li a:hover {
  color: var(--wg-primary);
  padding-left: 3px;
}

/* ── Breadcrumb ────────────────────────────────────── */
.wg-breadcrumb {
  background: var(--wg-bg-subtle);
  border-bottom: 1px solid var(--wg-border);
  padding: .65rem 0;
  font-size: .8rem;
}
.wg-breadcrumb .breadcrumb { margin: 0; }
.wg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--wg-muted); }
.wg-breadcrumb .breadcrumb-item a { color: var(--wg-primary); }
.wg-breadcrumb .breadcrumb-item.active { color: var(--wg-muted); }

/* ── Article content ───────────────────────────────── */
.article-content { font-size: 1rem; line-height: 1.85; color: var(--wg-text); }
.article-content h2 { margin-top: 2.25rem; margin-bottom: .75rem; font-size: 1.4rem; }
.article-content h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.15rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content code {
  background: #f1f5f9;
  padding: .15em .45em;
  border-radius: 5px;
  font-size: .875em;
  color: #c026d3;
  font-family: "Consolas", "Monaco", monospace;
}
.article-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--wg-radius);
  overflow-x: auto;
  font-size: .875rem;
  margin-bottom: 1.5rem;
  border: 1px solid #1e293b;
}
.article-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Quick answer ──────────────────────────────────── */
.quick-answer {
  background: linear-gradient(to right, var(--wg-primary-light), #fff);
  border-left: 4px solid var(--wg-primary);
  border-radius: 0 var(--wg-radius) var(--wg-radius) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  line-height: 1.7;
  box-shadow: var(--wg-shadow-sm);
}

/* ── FAQ ───────────────────────────────────────────── */
.wg-faq .accordion-button {
  font-weight: 600;
  font-size: .93rem;
  background: #fff;
  color: var(--wg-text);
  border: none;
}
.wg-faq .accordion-button:not(.collapsed) {
  background: var(--wg-primary-light);
  color: var(--wg-primary);
  box-shadow: none;
}
.wg-faq .accordion-item {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius) !important;
  margin-bottom: .5rem;
  overflow: hidden;
}
.wg-faq .accordion-body { font-size: .9rem; color: var(--wg-text-sec); line-height: 1.7; }

/* ── Tool form ─────────────────────────────────────── */
.wg-tool-form {
  background: var(--wg-bg-subtle);
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--wg-shadow-sm);
}
.wg-tool-result {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  overflow: hidden;
  box-shadow: var(--wg-shadow-sm);
}
.wg-result-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .65rem 1.1rem;
  border-bottom: 1px solid var(--wg-border);
  font-size: .88rem;
  line-height: 1.5;
}
.wg-result-row:last-child { border-bottom: none; }
.wg-result-row:nth-child(odd)  { background: #fff; }
.wg-result-row:nth-child(even) { background: #fafbfc; }
.wg-result-label {
  min-width: 160px;
  color: var(--wg-muted);
  font-weight: 500;
  flex-shrink: 0;
  font-size: .82rem;
  padding-top: .1rem;
}
.wg-result-value {
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  min-width: 0;
}
/* Section label above each wg-tool-result block */
.wg-result-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--wg-muted);
  margin: 1.5rem 0 .4rem;
}
.wg-result-section-label:first-child { margin-top: 0; }

/* ── Badges ────────────────────────────────────────── */
.wg-badge {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  padding: .22em .7em;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 20px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.wg-badge-blue   { background: #dbeafe; color: #1e40af; }
.wg-badge-green  { background: #dcfce7; color: #166534; }
.wg-badge-orange { background: #fef3c7; color: #92400e; }
.wg-badge-red    { background: #fee2e2; color: #991b1b; }
.wg-badge-gray   { background: #f1f5f9; color: #475569; }
.wg-badge-purple { background: #f3e8ff; color: #6b21a8; }

/* ── Category chip ─────────────────────────────────── */
.wg-category-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .2em .75em;
  border-radius: 20px;
  background: var(--wg-primary-light);
  color: var(--wg-primary);
  margin-bottom: .6rem;
}

/* ── Ad slots ──────────────────────────────────────── */
.ad-slot {
  display: block;
  width: 100%;
  min-height: 90px;
  margin: 1.5rem 0;
  background: var(--wg-bg-subtle);
  border: 1px dashed var(--wg-border);
  border-radius: var(--wg-radius);
  text-align: center;
  line-height: 90px;
  font-size: .72rem;
  color: #cbd5e1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Footer ────────────────────────────────────────── */
.wg-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 0;
  font-size: .875rem;
  margin-top: auto;
}
.wg-footer-inner {
  padding-bottom: 2.5rem;
}
.wg-footer h5 {
  color: #f1f5f9;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.wg-footer a { color: #94a3b8; transition: color .12s; }
.wg-footer a:hover { color: #f1f5f9; text-decoration: none; }
.wg-footer ul { list-style: none; padding: 0; margin: 0; }
.wg-footer ul li { margin-bottom: .5rem; font-size: .85rem; }
.wg-footer .footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: .6rem;
}
.wg-footer .footer-brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--wg-primary);
  border-radius: 50%;
  margin-right: .1rem;
}
.wg-footer .footer-tagline {
  font-size: .83rem;
  line-height: 1.65;
  color: #64748b;
}
.wg-footer .footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.1rem 0;
  font-size: .78rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}

/* ── Static pages ──────────────────────────────────── */
.wg-page-content { font-size: 1rem; line-height: 1.85; }
.wg-page-content h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.35rem; }
.wg-page-content h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.1rem; }
.wg-page-content p, .wg-page-content ul, .wg-page-content ol { margin-bottom: 1rem; }
.wg-page-content ul, .wg-page-content ol { padding-left: 1.5rem; }

/* ── Utilities ─────────────────────────────────────── */
.text-muted-wg { color: var(--wg-text-sec) !important; }
.border-wg { border-color: var(--wg-border) !important; }
.bg-light-wg { background: var(--wg-bg-subtle) !important; }
.shadow-wg { box-shadow: var(--wg-shadow) !important; }

/* ── Tools index hero banner ───────────────────────── */
.tools-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.tools-hero h1 { color: #fff; }
.tools-hero p { color: rgba(255,255,255,.8); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 991px) {
  .wg-sidebar { position: static; }
}
@media (max-width: 767px) {
  .wg-hero { padding: 2.5rem 0 2rem; }
  .wg-result-label { min-width: 110px; }
  .hero-stats { gap: 1.25rem; }
  .hero-visual { display: none; }
  .wg-footer { padding-top: 2.5rem; }
}
@media (max-width: 479px) {
  .wg-result-row { flex-direction: column; gap: .2rem; }
  .wg-result-label { min-width: unset; }
}
