:root {
  --blue: #0078d4;
  --blue-dark: #005a9e;
  --ink: #1b1b1b;
  --muted: #505050;
  --line: #e1e1e1;
  --soft: #f3f9fd;
  --soft-2: #f8fbfe;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  padding-top: 76px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.site-header-inner,
.hero-inner,
.wrap,
.footer-grid,
.footer-bar p {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #0b1220;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

.brand-logo-header {
  width: 176px;
  height: 44px;
  max-width: 176px;
  padding: 4px 8px;
}

.brand-logo-footer {
  width: 210px;
  height: 52px;
  max-width: 210px;
  padding: 6px 10px;
}

.brand-logo-wrap img {
  display: block;
  width: 160px;
  height: 32px;
  max-width: 160px;
  max-height: 32px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-footer img {
  width: 190px;
  height: 40px;
  max-width: 190px;
  max-height: 40px;
}

.nav { display: none; align-items: center; gap: 16px; }

.nav a,
.products summary,
.mobile-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.nav a:hover,
.products summary:hover,
.mobile-nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }

.nav-phone { color: var(--muted) !important; font-weight: 600; }

.nav-phone:hover { color: var(--blue) !important; }

.nav .btn,
.mobile-nav .btn {
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 2px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.products { position: relative; }

.products summary {
  cursor: pointer;
  list-style: none;
}

.products summary::-webkit-details-marker { display: none; }

.products-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 28rem;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.products-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-panel a { display: block; padding: 4px 0; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 20px 20px;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav .products-label { margin-top: 12px; }

.mobile-nav a { display: block; padding: 6px 0; }

.mobile-nav .btn { display: inline-flex; margin-top: 12px; }

@media (min-width: 1280px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

.hero { background: #fff; }

.hero-inner { padding: 28px 0 18px; }

.hero h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 8px; }

.hero .lede { font-size: 1rem; margin-bottom: 0; }

.kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

.lede,
.byline { color: var(--muted); line-height: 1.6; }

.lede { font-size: 1.12rem; max-width: 46rem; }

.byline { margin-top: 0; font-size: 0.95rem; }

.wrap { padding: 28px 0 64px; }

.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

main.blog-index { width: min(1120px, calc(100% - 32px)); }

@media (min-width: 700px) {
  .article-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .article-list { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.card[hidden] { display: none !important; }

.card:hover {
  border-color: rgba(0, 120, 212, 0.45);
  box-shadow: 0 12px 32px rgba(0, 120, 212, 0.1);
}

.card-image {
  width: 100%;
  height: 112px;
  max-width: none;
  margin: 0 0 10px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 7px 7px 0 0;
  display: block;
}

.hero-figure { margin: 18px 0 8px; }

.hero-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.card h2 {
  margin: 6px 0;
  padding: 0 14px;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}

.card .kicker,
.card p { padding: 0 14px; }

.card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 0.92rem; }

.card p:not(.kicker):not(.meta) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.pager button[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.meta {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

article.post { max-width: 46rem; }

article.post h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2.1rem 0 0.6rem;
}

article.post h3 {
  font-size: 1.12rem;
  margin: 1.4rem 0 0.4rem;
}

article.post p,
article.post li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

article.post ul,
article.post ol { padding-left: 1.2rem; }

article.post li { margin: 0.35rem 0; }

article.post strong { color: var(--ink); }

.toc {
  margin: 22px 0 8px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); }

.toc ol { margin: 0; }

.faq {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.related,
.cta {
  max-width: 46rem;
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-2);
}

.related h2,
.cta h2 { margin-top: 0; font-size: 1.2rem; }

.related ul { margin-bottom: 0; }

.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 4px;
}

.btn:hover { background: var(--blue-dark); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #0b1220;
  color: #cbd5e1;
}

.site-footer a { color: #cbd5e1; text-decoration: none; }

.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: 36px;
  padding: 56px 0;
}

.footer-blurb { margin: 20px 0 0; color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; }

.site-footer h2 {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer h2.footer-sub { margin-top: 24px; }

.footer-links { display: grid; gap: 8px; margin-top: 16px; font-size: 0.875rem; }

.footer-links p { margin: 0; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.footer-bar p { padding: 20px 0; color: #94a3b8; font-size: 0.75rem; }

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; }
}

.crumbs {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.crumbs a { text-decoration: none; font-weight: 600; }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
}

.compare caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.compare th,
.compare td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.compare th { background: var(--soft); color: var(--ink); }
