:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe4ef;
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --cta-bg: #eff6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header-inner,
.article-shell,
.site-footer-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  color: var(--primary);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.top-nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}

.top-nav a.active {
  color: var(--primary);
}

.nav-research {
  position: relative;
}

.nav-research summary {
  list-style: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.nav-research summary::-webkit-details-marker {
  display: none;
}

.nav-research summary::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 0.75rem;
}

.nav-research[open] summary::after {
  content: "\25B4";
}

.nav-research.is-active summary,
.nav-research[open] summary {
  color: var(--primary);
}

.nav-research-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  padding: 10px;
  display: grid;
  gap: 4px;
  z-index: 40;
}

.nav-research-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav-research-menu a:hover {
  background: #eff6ff;
}

.nav-research-menu a.active {
  background: #dbeafe;
  color: #1e40af;
}

.article-shell {
  padding: 44px 0 70px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3.6vw, 44px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.87rem;
  color: #64748b;
  margin-bottom: 16px;
}

.article-breadcrumb a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.article-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-breadcrumb .sep {
  color: #94a3b8;
}

.article-breadcrumb [aria-current="page"] {
  color: #0f172a;
  font-weight: 700;
}

.article h1,
.article h2,
.article h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: #0b1734;
}

.article h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 18px;
}

.article h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3.1vw, 2rem);
}

.article h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
}

.article p,
.article li {
  color: #1f2937;
  font-size: 1.02rem;
}

.article p {
  margin: 0 0 14px;
}

.article ul,
.article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

.lead {
  font-size: 1.12rem;
  color: #334155;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 11px;
}

.figure {
  margin: 24px 0;
}

.figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.figure-wide {
  width: 100%;
}

.figure-square {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.figure-float-right {
  float: right;
  width: min(43%, 340px);
  margin: 8px 0 14px 18px;
}

.figure-float-left {
  float: left;
  width: min(43%, 340px);
  margin: 8px 18px 14px 0;
}

.clearfix {
  clear: both;
}

.inline-cta,
.inline-link {
  font-weight: 700;
}

.cite {
  font-size: 0.72em;
  vertical-align: super;
  margin-left: 2px;
}

.cite a {
  text-decoration: none;
  font-weight: 700;
  color: #1e40af;
}

.cite a:hover {
  text-decoration: underline;
}

.sources-list {
  margin-top: 10px;
  padding-left: 20px;
}

.sources-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cta-box {
  margin-top: 34px;
  padding: 20px;
  border-radius: 14px;
  background: var(--cta-bg);
  border: 1px solid #c7dcff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.cta-box h3 {
  margin-top: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  border-left-width: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.related-card::before {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.related-card--auto {
  border-left-color: #ff6b35;
}

.related-card--auto::before {
  content: "AUTO";
  color: #9a3412;
  background: #ffedd5;
}

.related-card--plumbing {
  border-left-color: #004e89;
}

.related-card--plumbing::before {
  content: "PLUMBING";
  color: #0c4a6e;
  background: #e0f2fe;
}

.related-card--medical {
  border-left-color: #00c9a7;
}

.related-card--medical::before {
  content: "MEDICAL";
  color: #115e59;
  background: #ccfbf1;
}

.related-card--law {
  border-left-color: #5a189a;
}

.related-card--law::before {
  content: "LEGAL";
  color: #581c87;
  background: #f3e8ff;
}

.related-card--salon {
  border-left-color: #ff006e;
}

.related-card--salon::before {
  content: "SALON";
  color: #9f1239;
  background: #ffe4e6;
}

.related-card--realestate {
  border-left-color: #8338ec;
}

.related-card--realestate::before {
  content: "REAL ESTATE";
  color: #6b21a8;
  background: #ede9fe;
}

.related-section {
  margin-top: 30px;
}

.related-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .top-nav {
    gap: 10px;
  }

  .nav-research {
    width: 100%;
  }

  .nav-research-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-top: 8px;
  }

  .figure-float-right,
  .figure-float-left {
    float: none;
    width: 100%;
    margin: 22px 0;
  }

  .article-shell {
    padding-top: 26px;
  }
}

@media (max-width: 640px) {
  .article {
    border-radius: 14px;
    padding: 20px;
  }

  .article p,
  .article li {
    font-size: 0.98rem;
  }
}
