/* The two service entries share the page navigation's original type, frame and palette. */
.site-header .header-inner {
  flex-wrap: wrap;
  row-gap: .15rem;
  column-gap: clamp(12px, 2.2vw, 32px);
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 1.35vw, 22px);
}
.site-header .main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .32rem;
  padding-inline: 0;
}
.site-header .theme-toggle, .site-header .theme-toggle:hover {
  padding: 10px;
  background: transparent;
}
@media (min-width: 1181px) {
  .site-header .header-inner { flex-wrap: nowrap; min-height: 100px; }
  .site-header .main-nav { flex: 1; justify-content: flex-end; }
}
@media (max-width: 1180px) {
  .site-header { position: static; }
  html { scroll-padding-top: 12px; }
  .site-header .header-inner { padding-block: 12px 2px; min-height: 0; }
  .site-header .main-nav { width: 100%; }
}
@media (max-width: 700px) {
  .site-header .header-inner { padding-block: 10px 2px; }
  .site-header .main-nav { column-gap: 14px; }
  .site-header .main-nav a { font-size: .94rem; }
}

/* One outer axis for the portfolio and the service shell. */
:root {
  --editorial-page-max: 1184px;
  --editorial-page-gutter: clamp(20px, calc(3.1460674vw + 7.730337px), 48px);
}
@media screen {
  body .page-width,
  body .site-header .header-inner,
  body .site-footer,
  body .page-stats,
  body.candidate-home .page-width,
  body.candidate-home .header-inner,
  body.candidate-path .inner-main,
  body.editorial-workshop :is(.workshop-surface, .workshop-section-nav) {
    box-sizing: border-box;
    width: min(var(--editorial-page-max), calc(100% - 2 * var(--editorial-page-gutter)));
    max-width: var(--editorial-page-max);
    margin-inline: auto;
  }
}

/* A readable article starts on the shared axis, without a second mobile inset. */
.candidate-column-page .publication-feature {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: none;
  padding-inline: 0;
  border-left: 0;
  background: transparent;
}
.candidate-column-page .publication-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  border: 0;
}
.candidate-column-page .publication-feature-body,
.candidate-column-page .column-reading {
  width: 100%;
  max-width: 70ch;
}
.candidate-path .path-stage-content { max-width: 70ch; }
.candidate-media-page .media-video { max-width: none; }

/* Contact rows use the same left edge as the page heading. */
.editorial-contact .editorial-contact-card {
  max-width: none;
  gap: clamp(24px, 4.6875vw, 60px);
  padding-inline: 0;
  border-inline: 0;
  border-radius: 0;
  background: transparent;
}
.editorial-contact .editorial-contact-card section + section {
  padding-inline-start: 0;
  margin-inline-start: 0;
  border-inline-start: 0;
}
.editorial-contact .editorial-contact-row { padding-inline: 0; }

/* Keep the service modules within the same shell; their forms have separate owners. */
.editorial-workshop .editorial-service-list { gap: clamp(48px, 4.6875vw, 64px); }
@media (max-width: 720px) {
  .editorial-contact .editorial-contact-card section + section { margin-block-start: 0; }
}
@media (max-width: 680px) {
  .editorial-workshop .editorial-service-list { gap: 24px; }
}
