/* Both navigation rows and the page use one centered column and the same inset. */
html body header.site-header:has(#site-nav),
html body main.site-main,
html body main#content {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:var(--page-width,1440px);
  margin-inline:auto;
  padding-inline:var(--page-gutter,clamp(16px,4vw,48px));
}
html body main.site-main > :is(section,article,.aof-member-page,.aof-favorites,.journey) {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
html body header.site-header:has(#site-nav) {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:16px;
  row-gap:4px;
}
html body header.site-header > .brand {grid-column:1;grid-row:1}
html body header.site-header > #site-nav {grid-column:2;grid-row:1;min-width:0;width:100%}
html body header.site-header > .aof-header-tools {grid-column:3;grid-row:1}
html body header.site-header #site-nav .nav-list > a {
  box-sizing:border-box;display:flex;width:100%;max-width:none;align-items:center;
}
.aof-sticky-menus {
  position:sticky;top:0;z-index:100;
  width:100%;max-width:var(--page-width,1440px);margin-inline:auto;
  background:var(--paper,#fcfaf7);
}
html body .aof-sticky-menus > header.site-header:has(#site-nav) {position:relative;top:auto}
.aof-member-strip {
  --strip-gutter:var(--page-gutter,clamp(16px,4vw,48px));
  box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:6px 16px;
  padding:6px var(--strip-gutter) 6px calc(var(--strip-gutter) + 100px);
}
.aof-member-identity {
  min-width:0;max-width:19rem;text-align:right;color:var(--ink);
  font:13px/1.35 system-ui,sans-serif;overflow-wrap:anywhere;
}
.aof-member-identity strong {display:block;font-weight:650}
.aof-member-identity time {font-size:12px}
.aof-member-identity [data-member-clock] {white-space:nowrap}
.aof-member-nav {
  --nav-selected:#f2e9dc;--nav-accent:#aa853e;
  display:flex;align-items:stretch;flex-wrap:wrap;gap:4px;
  justify-self:start;min-width:0;max-width:100%;box-sizing:border-box;
  padding:2px;border:0;border-radius:0;
  background:#fffaf0 url("/assets/nav-sky-light.png") center / 100% 100% no-repeat;
  color:#352d30;font:600 13px/1.3 system-ui,sans-serif;
}
html[data-theme="gray"] .aof-member-nav {--nav-selected:#d4d7dc;--nav-accent:#777f89;background:#e4e5e7;color:#25292e}
html[data-theme="dark"] .aof-member-nav {--nav-selected:#37415b;--nav-accent:#e2c383;background:#202a40 url("/assets/nav-sky-dark.png") center / 100% 100% no-repeat;color:#f6f1eb}
.aof-member-nav > a {
  display:flex;flex:0 0 auto;align-items:center;justify-content:center;
  position:relative;padding:6px 8px;min-height:34px;border-radius:.32rem;
  color:inherit!important;text-align:center;text-decoration:none;
}
.aof-member-nav > a + a::before {
  content:"";position:absolute;inset-inline-start:-2px;top:25%;height:50%;
  border-inline-start:1px solid var(--nav-accent);pointer-events:none;
}
@media(min-width:901px) and (max-width:1100px){
  .aof-member-identity{max-width:9rem}
}
.aof-member-nav > a:is(:hover,:focus-visible,[aria-current]) {background:var(--nav-selected)}
.aof-member-nav > a[aria-current] {box-shadow:inset 0 -3px var(--nav-accent)}
.aof-member-nav > a:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.aof-back-top:not([hidden]) {
  display:grid;place-items:center;position:fixed;z-index:90;right:max(16px,env(safe-area-inset-right));
  bottom:calc(var(--aof-up-offset,16px) + env(safe-area-inset-bottom,0px));width:44px;height:44px;
  margin:0;padding:0;border:1px solid #b49654;border-radius:50%;background:#71384e;color:white;
  box-shadow:0 2px 8px #0003;
}
.aof-back-top[hidden] {display:none}
body:has(#favorite-selection:not([hidden])) .aof-back-top {right:12rem}
@media(max-width:900px){
  .aof-member-strip {--strip-gutter:16px}
  body:has(.aof-mobile-bar) .aof-back-top {--aof-up-offset:76px}
}
@media(max-width:700px){
  .aof-member-strip {grid-template-columns:minmax(0,1fr);padding-inline:var(--strip-gutter);row-gap:4px}
  .aof-member-identity {max-width:none;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:0 8px;align-items:baseline}
  .aof-member-nav > a {min-height:36px;padding-inline:14px}
}
@media(min-width:1280px) {
  html body header.site-header #site-nav > :is(a,details) {flex:1 1 auto;min-width:0}
  html body header.site-header #site-nav > a,
  html body header.site-header #site-nav > details > summary {display:flex;justify-content:center;align-items:center}
  html body header.site-header #site-nav > details > summary {width:100%;box-sizing:border-box}
}
@media(max-width:1279px){
  html body header.site-header:has(#site-nav){grid-template-columns:minmax(0,1fr) auto auto}
  html body header.site-header > .menu-toggle{grid-column:2;grid-row:1}
  html body header.site-header > #site-nav{grid-column:1/-1;grid-row:2}
  html body header.site-header #site-nav.open{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
  html body header.site-header:has(#site-nav),html body main.site-main,html body main#content {padding-inline:16px}
}
@media(max-width:580px){
  html body header.site-header:has(#site-nav){grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
  html body header.site-header > .brand{max-width:100%}
  html body header.site-header > .aof-header-tools{grid-column:1/-1;grid-row:2}
  html body header.site-header > #site-nav{grid-row:3}
}
.aof-member-page label{display:block;margin-block:1rem}
.aof-member-page :is(input[type=email],select){display:block;max-width:100%;box-sizing:border-box;padding:.55rem;font:inherit}
.aof-member-page article{border-top:1px solid currentColor;padding:1rem 0;overflow-wrap:anywhere}
