/* outro.css — header, footer, mobile drawer */

.pagehead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.pagehead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
}
.wordmark-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: inline-block;
}
.wordmark span.tag { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 4px; }

.pagehead-nav {
  display: none;
  gap: 26px;
  align-items: center;
}
.pagehead-nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.pagehead-nav a:hover { color: var(--teal-deep); }
.pagehead-nav a.active { color: var(--ink); border-bottom: 2px solid var(--teal); padding-bottom: 4px; }

.pagehead-cta { display: none; }

@media (min-width: 920px) {
  .pagehead-nav { display: flex; }
  .pagehead-cta { display: inline-flex; }
  .nav-trigger { display: none; }
}

.nav-trigger {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-trigger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}
.nav-trigger span::before,
.nav-trigger span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-trigger span::before { top: -7px; }
.nav-trigger span::after { top: 7px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--paper);
  padding: 24px 24px 40px;
  overflow-y: auto;
  display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.drawer-close {
  width: 48px; height: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.drawer-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
  font-family: var(--display);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.drawer-nav a:last-child { border-bottom: 0; }
.drawer-nav a:hover { background: var(--surface); color: var(--teal-deep); }
.drawer .btn { width: 100%; justify-content: center; }
.drawer-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.drawer-foot a { color: var(--teal-deep); display: block; margin-top: 6px; font-weight: 600; }

body.is-locked { overflow: hidden; }

/* Footer */
.site-foot {
  background: var(--ink);
  color: #c9d6d9;
  padding: 56px 0 28px;
  margin-top: 80px;
}
.site-foot a { color: #c9d6d9; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.foot-grid h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-grid p { font-size: 14px; line-height: 1.6; }
.foot-grid ul { padding: 0; list-style: none; }
.foot-grid ul li { margin: 6px 0; font-size: 14px; }
.foot-brand .wordmark { color: #fff; }
.foot-brand .wordmark span.tag { color: #88a3a8; }
.foot-brand p { color: #8da6ab; margin: 14px 0 0; max-width: 30ch; font-size: 14px; }

.foot-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #2c4046;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px; color: #88a3a8;
}
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
