/* The site shell: one header, one footer, one set of rules for both.
   Linked by every marketing page; the console and the admin console are
   applications and keep their own chrome. */
.sitenav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--line, #eaeaec)}
.navwrap{width:min(1100px,calc(100% - 48px));margin-inline:auto;height:60px;
  display:flex;align-items:center;gap:28px}
.sitenav .logo{font-weight:600;font-size:15px;letter-spacing:-.03em;
  color:var(--fg, #09090b);text-decoration:none;display:flex;align-items:center}
.navlinks{display:flex;gap:22px;margin-left:8px}
.navlinks a{color:var(--fg-2, #52525b);font-size:14px;text-decoration:none}
.navlinks a:hover{color:var(--fg, #09090b)}
.navright{margin-left:auto;display:flex;gap:8px;align-items:center}
.sitenav .btn{height:32px;padding:0 14px;border-radius:8px;font-size:13px;
  font-weight:500;display:inline-flex;align-items:center;cursor:pointer;
  border:1px solid transparent;text-decoration:none;font-family:inherit}
.sitenav .btn-outline{border-color:var(--line-2, #dcdce0);background:#fff;
  color:var(--fg, #09090b)}
.sitenav .btn-outline:hover{border-color:var(--fg-3, #8b8b93)}
.sitenav .btn-primary{background:var(--fg, #09090b);color:#fff}
/* Two icon buttons, same box: a label the eye reads at a glance beats a
   word it has to parse, and they stay the same size on every screen. */
.sitenav .navicon{width:34px;height:34px;flex:none;padding:0;border:none;
  background:none;color:var(--fg-2, #52525b);cursor:pointer;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease,color .15s ease}
@media(hover:hover){
  .sitenav .navicon:hover{background:rgba(9,9,11,.055);color:var(--fg, #09090b)}
}
.sitenav .navicon:active{background:rgba(9,9,11,.08)}
.sitenav .navicon svg{width:21px;height:21px;display:block}
/* The hamburger is two rules that cross into an X, so opening and closing
   are visibly the same control rather than two different words.
   Both rules sit on the button's centre line and are pushed apart from
   there, so closing is one rotation with nothing left to line up: stacking
   them with a flex gap and translating them back together leaves the two
   strokes a few pixels apart and the X comes out as a chevron. */
.sitenav #menuBtn{display:none;margin-left:auto;position:relative}
.sitenav #menuBtn i{position:absolute;top:50%;left:50%;
  width:17px;height:1.6px;margin:-0.8px 0 0 -8.5px;border-radius:2px;
  background:currentColor;display:block;
  transition:transform .24s cubic-bezier(.32,.72,0,1)}
.sitenav #menuBtn i:first-child{transform:translateY(-3.3px)}
.sitenav #menuBtn i:last-child{transform:translateY(3.3px)}
.sitenav.open #menuBtn{color:var(--fg, #09090b)}
.sitenav.open #menuBtn i:first-child{transform:rotate(45deg)}
.sitenav.open #menuBtn i:last-child{transform:rotate(-45deg)}

.sitefoot{border-top:1px solid var(--line, #eaeaec);background:#fff;
  margin-top:64px}
/* A page that ends with its own closing note has already left the gap; the
   footer's standard one on top of it reads as a hole in the page. */
.foot-own + .sitefoot{margin-top:0}
.footwrap{width:min(1100px,calc(100% - 48px));margin-inline:auto;
  padding:48px 0 28px;display:grid;gap:32px;
  grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr))}
.sitefoot .logo{font-weight:600;letter-spacing:-.03em;color:var(--fg, #09090b);
  text-decoration:none;display:inline-block;margin-bottom:10px}
.sitefoot p{color:var(--fg-3, #8b8b93);font-size:13.5px;margin:0;max-width:40ch;
  line-height:1.6}
.sitefoot h4{font-size:12px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--fg-3, #8b8b93);margin:0 0 12px;font-weight:600}
.sitefoot a{display:block;color:var(--fg-2, #52525b);font-size:13.5px;
  text-decoration:none;margin-bottom:8px}
.sitefoot a:hover{color:var(--fg, #09090b)}
.footbase{border-top:1px solid var(--line, #eaeaec);
  width:min(1100px,calc(100% - 48px));margin-inline:auto;padding:18px 0;
  color:var(--fg-3, #8b8b93);font-size:12.5px;display:flex;gap:16px;
  flex-wrap:wrap;justify-content:space-between}

@media(max-width:820px){
  /* The bar keeps three things and nothing else: who we are, the way in,
     and the way to the rest. */
  .navwrap{width:calc(100% - 32px);gap:0}
  .navright{margin-left:auto}
  .sitenav .btn{height:30px;padding:0 12px}
  /* inline-flex, not block: the two rules are centred by the flex column,
     and a block here collapses them into the top-left corner. */
  .sitenav #menuBtn{display:inline-flex;order:3;margin-left:2px}

  /* The links become a sheet over the page, not a dropdown clinging to the
     bar: frosted, full height, one large row per destination, and it fades
     in rather than appearing. */
  /* Shown by display, polished by an animation. Tying visibility itself to
     a transition means the menu is invisible anywhere animations do not
     run, which is a blank screen instead of a menu. */
  /* Absolute against the header, not fixed to the window: the header's own
     backdrop-filter makes it a containing block, so a fixed child measures
     itself against the 60px bar and collapses. */
  .navlinks{display:none;position:absolute;top:100%;left:0;right:0;
    height:calc(100vh - 60px);height:calc(100dvh - 60px);
    flex-direction:column;gap:0;padding:8px 0 24px;margin:0;
    background:rgba(255,255,255,.94);
    -webkit-backdrop-filter:saturate(180%) blur(20px);
    backdrop-filter:saturate(180%) blur(20px);
    overflow-y:auto}
  .sitenav.open .navlinks{display:flex;animation:menuin .18s ease}
  @keyframes menuin{from{transform:translateY(-8px)}to{transform:none}}
  .navlinks a{padding:18px 24px;font-size:19px;font-weight:500;
    letter-spacing:-.02em;color:var(--fg, #09090b);
    border-bottom:1px solid rgba(9,9,11,.06);
    display:flex;align-items:center;justify-content:space-between}
  .navlinks a::after{content:"";width:7px;height:7px;flex:none;
    border-right:1.5px solid var(--fg-3, #8b8b93);
    border-bottom:1.5px solid var(--fg-3, #8b8b93);transform:rotate(-45deg)}
  body.menu-open{overflow:hidden}

  /* One column, in the order somebody actually needs it. */
  .footwrap{grid-template-columns:1fr;gap:26px;padding:36px 0 22px;
    width:calc(100% - 32px)}
  .sitefoot h4{margin-bottom:8px}
  .sitefoot a{margin-bottom:6px}
  .sitefoot p{max-width:none}
  .footbase{width:calc(100% - 32px);flex-direction:column;gap:4px;
    align-items:flex-start;padding:14px 0}
}
@media(max-width:520px){
  .footwrap{grid-template-columns:1fr}
}

/* A document page: the site's ground colour, with the content on a card. */
body.doc{background:var(--bg-1, #fafafa)}
.page{width:min(900px,calc(100% - 48px));margin:0 auto;padding:40px 0 8px}
.sheet{background:#fff;border:1px solid var(--line, #eaeaec);border-radius:16px;
  padding:44px 48px;box-shadow:0 1px 2px rgba(9,9,11,.04)}
@media(max-width:820px){
  .sheet{padding:28px 22px}
  .page{width:calc(100% - 32px)}
}
