.circle-header{position:relative;z-index:5;background:white;border-top:3px solid #782d91;box-shadow:0 2px 14px #41205109}
.circle-header .brand{font-size:1.08rem;gap:12px}
#primary{gap:4px}
#primary>a,#primary summary{padding:8px 13px;border-radius:8px;font-weight:600;font-size:.95rem;color:#4a3454}
#primary .give{background:#692981;color:white;border-color:#692981}
#primary details{position:relative}
#primary summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px}
#primary summary::-webkit-details-marker{display:none}
#primary summary::after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-bottom:3px}
#primary details[open] summary::after{transform:rotate(225deg);margin-bottom:-3px}
#primary details[open] summary,#primary a[aria-current=page]:not(.give),#primary summary:hover,#primary>a:not(.give):hover{background:#f3edf7;color:#622581}
.nav-panel{position:absolute;top:calc(100% + 3px);left:0;width:218px;padding:6px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 9px 24px #39234218}
.nav-panel a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:6px}.nav-panel a:hover{background:var(--wash)}
.circle-header .menu{gap:8px;align-items:center;font-weight:600}
.menu-icon{display:inline-block;width:16px;height:12px;border-block:2px solid;position:relative}.menu-icon::after{content:'';position:absolute;background:currentColor;height:2px;top:3px;left:0;right:0}
@media(max-width:900px){.circle-header{gap:8px}.circle-header .brand{font-size:1rem;max-width:calc(100% - 92px)}.circle-header .brand img{flex:none}.circle-header .menu{margin-left:auto;border-radius:9px}#primary{display:grid;grid-template-columns:1fr;gap:2px;border-top:1px solid var(--line);padding-top:8px}.interactive .menu[aria-expanded=false]+#primary{display:none}#primary summary{justify-content:space-between}.nav-panel{position:static;width:auto;background:#f8f5fa;border:0;box-shadow:none;margin:0 0 5px 12px}.circle-header #primary .give{justify-content:center;margin:4px 0}}
@media(max-width:900px){header.circle-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}.circle-header .brand{max-width:none;width:fit-content;min-width:0;gap:7px;line-height:1.18}.circle-header #primary{grid-column:1/-1;width:100%}.circle-header .menu{margin:0;padding-inline:10px;justify-self:end}}

.circle-menu-sheet:not([open]) { display: none; }
html.circle-menu-open { overflow: hidden; }
.circle-menu-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.circle-menu-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.circle-menu-sheet::backdrop { background: #30203955; }
.circle-menu-sheet a { text-decoration: none; }
.sheet-bar, .sheet-actions, .sheet-links {
  --menu-inset: max(20px, calc((100% - 560px) / 2));
  padding-inline: var(--menu-inset);
}
.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: max(8px, env(safe-area-inset-top)) 8px;
  border-top: 3px solid var(--purple);
  border-bottom: 1px solid var(--line);
}
.sheet-bar .brand { min-width: 0; gap: 7px; font-size: 1rem; line-height: 1.17; }
.sheet-bar .brand img { width: 42px; height: 42px; }
.sheet-close {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 12px; color: var(--purple); background: #fff;
  border: 1px solid var(--line); border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer;
}
.sheet-close span { font-size: 1.45rem; font-weight: 400; line-height: 1; }
.sheet-links {
  display: block; overflow-y: auto; overscroll-behavior: contain;
  padding-block: 18px; scrollbar-gutter: auto;
}
.sheet-links section { padding: 15px 16px; }
.sheet-links section:first-child {
  border-radius: 14px; background: #f5eff8;
}
.sheet-links section + section { margin-top: 8px; }
.sheet-links section + section + section { border-top: 1px solid var(--line); }
.sheet-links h2 {
  display: flex; align-items: center; gap: 9px; color: var(--purple);
  margin: 0 0 8px; font-size: 0.875rem; font-weight: 700; line-height: 1.45; letter-spacing: 0;
}
.sheet-links a {
  display: flex; min-height: 44px; align-items: center; padding: 6px 10px;
  margin-left: 19px; color: var(--ink); font-size: 1.125rem; font-weight: 560;
  line-height: 1.35; border-radius: 6px;
}
.sheet-links a:is(:hover, :focus-visible, [aria-current=page]) { color: var(--purple); background: #eae0ef; }
.sheet-actions {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  border-top: 1px solid var(--line); padding-block: 12px max(12px,env(safe-area-inset-bottom));
}
.sheet-actions a {
  display: flex; align-items: center; justify-content: center; padding: 7px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 8px; text-align: center; font-weight: 650; line-height: 1.25;
}
.sheet-actions a[aria-current=page]:not(.give) { background: var(--wash); border-color: #9a70aa; }
.sheet-actions .give { background: var(--purple); color: white; border-color: var(--purple); }
@media (max-width: 900px) {
  .interactive .circle-header #primary { display: none; }
  .interactive .circle-header .menu { display: inline-flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .circle-menu-sheet[open] .sheet-links { animation: menu-appear 180ms ease-out; }
  @keyframes menu-appear { from { opacity: .5; transform: translateY(-6px); } }
}
