/* The accent color (appearance.js). It recolors what you click and what's
   highlighted: install buttons, links, the switch, focus rings. The anchor,
   the stars and the drawings stay gold (--brand-gold). */
:root[data-accent="blue"]  { --gold: #5b8fe3; --gold-ink: #2456a6; }
:root[data-accent="teal"]  { --gold: #2aa59c; --gold-ink: #11695f; }
:root[data-accent="green"] { --gold: #4fae6a; --gold-ink: #22703c; }
:root[data-accent="rose"]  { --gold: #df5f8a; --gold-ink: #a0305a; }
:root[data-accent="coral"] { --gold: #ec7d3e; --gold-ink: #a84d16; }

/* The header sits above the page, so its menu never opens behind a sheet
   (the page and the header each make their own layer for page transitions). */
.top { position: relative; z-index: 50; }
.pin .top { position: absolute; }

/* ---------- the menu ---------- */
.appear { position: relative; display: inline-flex; margin-right: 12px; }
.nav-right { align-items: center; }
.appear-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 239, 223, 0.12); color: #f6efdf; cursor: pointer; transition: background-color 160ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.appear-btn svg { width: 19px; height: 19px; }
.appear-btn:hover, .appear-btn[aria-expanded="true"] { background: rgba(246, 239, 223, 0.22); }
.appear-btn:active { transform: scale(0.94); }
.appear-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.appear-panel { position: absolute; z-index: 60; top: calc(100% + 12px); right: -8px; width: max-content; padding: 14px 18px; border-radius: 16px; background: #211d19; color: #f2ead9; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 50px -12px rgba(0, 0, 0, 0.6); text-align: left; transform-origin: calc(100% - 28px) -8px; }
.appear-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .appear-panel:not([hidden]) { animation: appear-in 200ms cubic-bezier(0.23, 1, 0.32, 1); } }
@keyframes appear-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.appear-row { display: flex; align-items: center; gap: 18px; }
.appear-label { font: 800 12px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 234, 217, 0.72); }
.appear-colors { display: flex; gap: 10px; }
.appear-colors button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.appear-colors button:hover { transform: scale(1.1); }
.appear-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px #211d19, 0 0 0 4px var(--c); }
.appear-panel button:focus-visible { outline: 2px solid #f2ead9; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .appear-btn, .appear-colors button { transition: none; } }
@media (max-width: 560px) {
  .appear { margin-right: 8px; }
  .appear-btn { width: 36px; height: 36px; }
  .appear-panel { right: -54px; padding: 12px 14px; }
  .appear-row { gap: 12px; }
  .appear-colors { gap: 9px; }
  .appear-colors button { width: 26px; height: 26px; }
}
