/* Shared desktop canvas: every route keeps the same header-to-footer rails.
   Use the body so navigation selectors and sticky positioning stay intact. */
:root {
  --site-frame-max: 1440px;
  --site-frame-gutter: min(4vw, 64px);
  --site-frame-width: min(var(--site-frame-max), calc(100% - var(--site-frame-gutter) * 2));
  --site-frame-inset: max(var(--site-frame-gutter), calc((100% - var(--site-frame-max)) / 2));
}

html {
  background: var(--site-frame-surround, var(--paper-2, #e6e2d8));
}

body.site-frame {
  box-sizing: border-box;
  width: var(--site-frame-width);
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--site-frame-canvas, var(--paper, #f2efe9));
  border-inline: 1px solid var(--site-frame-rail, var(--ink, #0b0b0e));
  border-radius: 0;
}

/* Pricing previously supplied its own narrower page shell. */
.site-frame > .shell {
  max-width: none;
  border-inline: 0;
}

/* Fixed controls use viewport coordinates: keep them inside the same rails. */
.site-frame .venkat-consent {
  left: calc(var(--site-frame-inset) + 12px);
  right: calc(var(--site-frame-inset) + 12px);
}

.site-frame .venkat-consent-settings {
  right: calc(var(--site-frame-inset) + 12px);
}

.site-frame > .skip {
  left: calc(var(--site-frame-inset) + 12px);
}

/* Controls and content surfaces follow the square-corner design rule.
   Decorative illustration geometry keeps its intended shape. */
.site-frame :is(button, input, select, textarea, .button, .btn, .card, .box, .plan, .tool) {
  border-radius: 0;
}

/* The GitHub merge control is a product mock, so its corners stay slightly curved. */
.site-frame button.gh-flow-merge-node {
  border-radius: 6px;
}

/* Footer link columns must fit the canvas, not the uncapped viewport. */
.site-frame footer .cols {
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
}

@media (min-width: 901px) {
  .site-frame footer.foot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-frame footer .mark {
    font-size: min(18vw, 240px);
  }
}

@media (max-width: 760px) {
  :root {
    --site-frame-gutter: 0px;
    --site-frame-inset: 0px;
  }

  body.site-frame {
    width: 100%;
    border-inline: 0;
  }
}

@media print {
  body.site-frame {
    width: 100%;
    border: 0;
  }
}
