/* Shared outer layout. Loaded last; editor workspaces keep their own geometry. */
:root {
  --site-page: #f7f9fd;
  --site-panel: #ffffff;
  --site-heading: #10234b;
  --site-muted: #65748e;
  --site-line: #e0e7f2;
  --site-header-width: 1564px;
  --site-content-width: 1472px;
  --site-workspace-width: 1462.8px;
  --site-gutter: 32px;
  --site-top-space: 28px;
  --site-title-size: clamp(32px, 3.5vw, 50px);
  background: var(--site-page);
}
html[data-theme="dark"] {
  --site-page: #101b2c;
  --site-panel: #19283c;
  --site-heading: #eaf1ff;
  --site-muted: #b0bed3;
  --site-line: #31425c;
  background: var(--site-page);
}
body.home-start:is(.service-home, .service-tool, .article-modern),
html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) {
  /* Padding keeps the top gap inside the page instead of collapsing onto html. */
  padding-top: var(--site-top-space);
  background: var(--site-page);
  font-size: 16px;
  line-height: 1.6;
  --page-bg: var(--site-page);
  --card-bg: var(--site-panel);
  --text-main: var(--site-heading);
  --text-soft: var(--site-muted);
  --border-soft: var(--site-line);
  --article-bg: var(--site-page);
  --article-panel: var(--site-panel);
  --article-heading: var(--site-heading);
  --article-muted: var(--site-muted);
  --article-line: var(--site-line);
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header {
  position: relative;
  z-index: 20;
  width: calc(100% - var(--site-gutter) * 2);
  max-width: var(--site-header-width);
  height: auto;
  min-height: 72px;
  margin: 0 auto;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: var(--site-panel);
  box-shadow: 0 12px 36px #2e66bd0b;
}
html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header {
  background: var(--site-panel);
  border-color: var(--site-line);
  box-shadow: 0 12px 36px #0002;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 70px;
  margin: 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  gap: 16px;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand,
html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand {
  gap: 14px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.5px;
  color: var(--site-heading);
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 11px;
  gap: 3px;
  color: #fff;
  background: linear-gradient(145deg, #0c2452, #07132e);
  box-shadow: 0 6px 14px #0a204322;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i { height: 33px; width: 3px; transform: scaleY(.75); }
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i:nth-child(2) { height: 40px; width: 4px; }
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i:nth-child(3) { height: 35px; }
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i:nth-child(4) { height: 42px; }
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i:nth-child(5) { height: 31px; }
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 0;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  /* Override the legacy header-reference dark-theme !important rule. */
  background: transparent !important;
  color: var(--site-heading) !important;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--site-heading);
}
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu > a,
body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu summary {
  padding: 15px 22px;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .landing-wrap,
body.home-start:is(.service-home, .service-tool, .article-modern) .start-cards,
body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .content-shell,
body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .footer-grid,
body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .footer-bottom {
  width: calc(100% - var(--site-gutter) * 2);
  max-width: var(--site-content-width);
  margin-inline: auto;
}
body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .content-shell { padding-top: 28px; }
body.home-start.service-tool .constructor-surface {
  max-width: var(--site-workspace-width);
}
body.home-start.service-tool .label-editor .editor-main {
  /* Include the existing 24px side paddings around the working area. */
  max-width: calc(var(--site-workspace-width) + 48px);
}
body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .article-hero h1,
body.home-start:is(.service-home, .service-tool, .article-modern).service-home .landing-hero h1 {
  font-size: var(--site-title-size);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.035em;
}
body.home-start:is(.service-home, .service-tool, .article-modern) .article-hero .hero-copy,
body.home-start:is(.service-home, .service-tool, .article-modern).service-home .start-subtitle { font-size: 17px; line-height: 1.6; }
@media (max-width: 1100px) {
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 20px;
    gap: 8px;
  }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__actions { grid-column: 2; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 800px) {
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu { font-size: 14px; gap: 4px; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu > a,
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu summary { padding: 12px; }
}
@media (max-width: 700px) {
  :root { --site-gutter: 18px; --site-top-space: 14px; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .article-hero .hero-copy,
  body.home-start:is(.service-home, .service-tool, .article-modern).service-home .start-subtitle { font-size: 15px; }
}
@media (max-width: 600px) {
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header { min-height: 0; border-radius: 18px; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav { min-height: 0; padding: 10px 12px; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand,
  html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand {
    font-size: 17px;
    gap: 9px;
    letter-spacing: -.4px;
  }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo { width: 36px; height: 36px; flex-basis: 36px; }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .barcode-logo i { width: 2px !important; transform: scaleY(.6); }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 0;
    font-size: 11px;
  }
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu > a,
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .seo-header-menu summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 4px;
  }
  body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .content-shell { padding-top: 24px; }
}
@media (max-width: 359px) {
  body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand,
  html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) .reference-header .site-nav__brand { font-size: 15px; gap: 7px; }
}
@media print {
  html, html[data-theme="dark"] { background: #fff; }
  body.home-start:is(.service-home, .service-tool, .article-modern),
  html[data-theme="dark"] body.home-start:is(.service-home, .service-tool, .article-modern) {
    padding-top: 0;
    color: #101713;
    background: #fff;
  }
  body.home-start:is(.service-home, .service-tool, .article-modern).article-modern .content-shell { width: 100%; max-width: none; padding-top: 0; }
}
