/* MKweb 115: sitewide sticky header, edge-aligned logo, fluid content. */
:root { --mk-header-height: 72px; }
html { scroll-padding-top: calc(var(--mk-header-height) + 16px); }
/* Move the navigation out of the constrained article wrapper so sticky really persists. */
.site-header-frame {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  width: 100%;
  isolation: isolate;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(63,143,196,.10);
}
.site-header-frame > header {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 13px clamp(16px, 1.8vw, 40px);
}
.site-header-frame .nav-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(125px,1fr) auto minmax(125px,1fr);
  align-items: center;
  gap: clamp(12px,1.7vw,34px);
}
.site-header-frame .logo {
  display: inline-flex;
  justify-self: start;
  white-space: nowrap;
  font-size: 20px;
}
.site-header-frame .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(17px,1.8vw,36px);
  white-space: nowrap;
  min-width: 0;
  margin: 0;
}
.site-header-frame .nav-cta {
  display: inline-flex;
  justify-self: end;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}
.site-header-frame .nav-toggle { display: none; }
/* Let the site stretch naturally on larger laptop and desktop widths. */
body > .wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 2200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 72px);
}
/* The long-form essay retains its intended comfortable line length. */
body.how-charge-page > .wrap { max-width: 1100px; }
/* Fixed header should not cover the target after clicking a nav/CTA anchor. */
:where(section[id],div[id],h2[id],form[id]) { scroll-margin-top: calc(var(--mk-header-height) + 22px); }
/* Homepage hero now follows the same fluid outer gutters as the rest of the page. */
body > .wrap > .hero {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  overflow: clip;
}
body > .wrap > .hero .hero-inner {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
body > .wrap > .hero .hero-inner > h1 {
  max-width: min(68vw, 1050px) !important;
  font-size: clamp(39px, 4vw, 68px);
  text-wrap: balance;
}
body > .wrap > .hero .hero-inner > .lede {
  width: 100%;
  max-width: min(60vw, 760px);
}
body > .wrap > .hero .hero-inner > .hero-ctas {
  width: 100%;
  max-width: min(75vw, 1030px) !important;
}
/* Keep the free-draft corner separated from headline on smaller laptops. */
@media (min-width: 1081px) and (max-width: 1360px) {
  body > .wrap > .hero .hero-inner > h1 { max-width: min(70vw, 930px) !important; }
  body > .wrap > .hero .free-draft-corner { position: relative !important; margin: 26px 0 0 auto !important; right: auto !important; bottom: auto !important; }
}
@media (max-width: 1080px) {
  :root { --mk-header-height: 66px; }
  .site-header-frame > header { padding: 10px clamp(16px,2.6vw,28px); }
  .site-header-frame .nav-row { display: flex; justify-content: space-between; gap: 18px; }
  .site-header-frame .nav-links, .site-header-frame .nav-cta { display: none !important; }
  .site-header-frame .nav-toggle { display: flex !important; width: 42px; height: 42px; justify-content: center; align-items: center; }
  .site-header-frame .nav-toggle span { width: 30px; }
  .site-header-frame .mobile-menu { box-sizing: border-box; width: 100%; }
  body > .wrap > .hero .hero-inner > h1 { max-width: 100% !important; }
  body > .wrap > .hero .hero-inner > .lede { max-width: min(100%, 720px); }
  body > .wrap > .hero .hero-inner > .hero-ctas { max-width: 100% !important; }
  body > .wrap > .hero .free-draft-corner { position: relative !important; margin: 26px 0 0 auto !important; right: auto !important; bottom: auto !important; }
}
@media (max-width: 700px) {
  body > .wrap { padding-inline: 18px; }
  .site-header-frame > header { padding: 10px 16px; }
  body > .wrap > .hero { padding-top: clamp(35px, 9vw, 64px); }
  body > .wrap > .hero .hero-inner > h1 { font-size: clamp(32px,7vw,44px); text-wrap: pretty; }
  body > .wrap > .hero .hero-inner > .lede { max-width: 100%; }
  body > .wrap > .hero .free-draft-corner { margin: 24px 0 0 !important; width: min(100%, 340px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-frame { scroll-behavior: auto; }
}

/* MKweb 116: helpful, crawlable links to every public service/portfolio page. */
.seo-page-links {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  max-width: min(1320px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(63,143,196,.14);
}
.seo-page-links a {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  color: #526b7b;
  text-decoration: none;
  text-underline-offset: 3px;
}
.seo-page-links a:hover,
.seo-page-links a:focus-visible { color: #1a659b; text-decoration: underline; }
@media(max-width:600px) {
  .seo-page-links { justify-content: flex-start; gap: 8px 16px; padding-block: 16px 4px; }
  .seo-page-links a { font-size: 12px; }
}
