/* The header (top bar, menu with dropdowns, Cart, Sign in, Staff area), the footer, and the buttons they use. Shared by the website
   and the client area: brand/apply.py copies this file into the client area, and builds its header from parts/header.html. */
.sx-site-header, .sx-site-header *, .sx-site-footer, .sx-site-footer * { box-sizing: border-box; }
.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sx-icon { width: 1.15em; height: 1.15em; flex: none; }

/* buttons */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.25em; border-radius: var(--w-r-control); font-weight: 700;
  font-size: .98rem; line-height: 1.15; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.sx-btn-primary { background: var(--w-accent); color: var(--w-accent-ink) !important; }
.sx-btn-primary:hover { background: var(--w-accent-hover); }
.sx-btn-line { border-color: var(--w-line-2); color: var(--w-text) !important; }
.sx-btn-line:hover { border-color: var(--w-muted); }
.sx-btn-block { width: 100%; }
.sx-btn-sm { padding: .6em 1em; font-size: .92rem; }

/* header: slim, always on screen (below WordPress's admin bar when you're signed in) */
.sx-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.sx-topbar { background: var(--w-bg); border-bottom: 1px solid var(--w-line); font-size: .82rem; color: var(--w-muted); }
.sx-topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.sx-topbar-links { display: flex; gap: 18px; align-items: center; }
.sx-topbar-links a { color: var(--w-muted) !important; text-decoration: none; } .sx-topbar-links a:hover { color: var(--w-text) !important; }
.sx-zar { padding: 1px 7px; border: 1px solid var(--w-line-2); border-radius: 6px; font-size: .74rem; }
.sx-header { background: var(--w-bg-2); border-bottom: 1px solid var(--w-line); }
.sx-header-row { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.sx-logo img { display: block; height: 40px; width: auto; }
.sx-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.sx-nav-link, .sx-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; color: var(--w-text) !important;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.sx-nav-link:hover, .sx-drop-btn:hover, .sx-drop.open .sx-drop-btn { background: var(--w-surface); }
.sx-drop { position: relative; }
.sx-drop-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.sx-drop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.sx-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: 6px; border-radius: var(--w-r-card); background: var(--w-surface); border: 1px solid var(--w-line-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: none; }
.sx-drop:hover .sx-panel, .sx-drop:focus-within .sx-panel, .sx-drop.open .sx-panel { display: grid; }
.sx-panel a { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--w-text) !important; }
.sx-panel a:hover { background: var(--w-surface-2); }
.sx-panel a.sx-panel-foot { border-top: 1px solid var(--w-line); border-radius: 0 0 9px 9px; margin-top: 4px; }
.sx-panel a.sx-panel-foot b { color: var(--w-accent); }
.sx-panel b { font-size: .95rem; }
.sx-panel small { grid-column: 1; color: var(--w-muted); font-size: .84rem; }
.sx-panel em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--w-text); white-space: nowrap; }
.sx-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sx-cart a { color: var(--w-text) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.sx-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--w-line-2); background: none; color: var(--w-text); cursor: pointer; margin-left: auto; }
.sx-burger-lines, .sx-burger-lines::before, .sx-burger-lines::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: currentColor; position: relative; content: ""; }
.sx-burger-lines::before { position: absolute; top: -6px; } .sx-burger-lines::after { position: absolute; top: 6px; }
.sx-account-hide { display: none !important; }
.sx-btn { white-space: nowrap; }
/* signed in: one "My account" menu (Client area, Staff area for staff, Account settings, Sign out) instead of "Sign in" */
.sx-me .sx-me-btn { background: var(--w-accent); color: var(--w-accent-ink) !important; border-radius: var(--w-r-control); padding: .6em .9em .6em 1em; font-size: .92rem; font-weight: 700; }
.sx-me .sx-me-btn:hover, .sx-me.open .sx-me-btn { background: var(--w-accent-hover); }
.sx-me .sx-panel { left: auto; right: 0; width: 270px; }
.sx-me .sx-panel a { grid-template-columns: 1fr; }
.sx-me .sx-panel a:last-child { border-top: 1px solid var(--w-line); border-radius: 0 0 9px 9px; margin-top: 4px; }


/* footer */
.sx-footer { background: var(--w-bg); border-top: 1px solid var(--w-line); padding: 56px 0 26px; color: var(--w-muted); font-size: .92rem; }
.sx-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.sx-footer-brand p { margin: 14px 0 0; max-width: 22em; }
.sx-footer nav { display: grid; gap: 9px; align-content: start; }
.sx-footer h2 { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--w-text) !important; margin: 0 0 6px; font-family: var(--w-font-body); font-weight: 700; }
.sx-footer a { color: var(--w-muted) !important; text-decoration: none; } .sx-footer a:hover { color: var(--w-text) !important; }
.sx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--w-line); font-size: .82rem; }
@media (max-width: 1080px) {
  .sx-footer-grid { grid-template-columns: repeat(3, 1fr); } .sx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .sx-burger { display: inline-flex; align-items: center; justify-content: center; }
  .sx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--w-bg-2); border-bottom: 1px solid var(--w-line); max-height: calc(100vh - 100px); overflow: auto; }
  .sx-nav.open { display: flex; }
  .sx-header-row { position: relative; gap: 12px; }
  .sx-actions { margin-left: 0; }
  .sx-nav-link, .sx-drop-btn { width: 100%; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--w-line); border-radius: 0; }
  .sx-panel { position: static; display: none; width: auto; border: 0; box-shadow: none; background: none; padding: 4px 0 8px; }
  .sx-drop:hover .sx-panel { display: none; }
  .sx-drop.open .sx-panel { display: grid; }
  .sx-me .sx-me-btn { width: auto; border-bottom: 0; border-radius: var(--w-r-control); padding: .6em .9em .6em 1em; }
  .sx-me .sx-panel { position: absolute; width: 250px; padding: 6px; border: 1px solid var(--w-line-2); background: var(--w-surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  .sx-topbar-row > span { display: none; } .sx-topbar-row { justify-content: flex-end; }
}
@media (max-width: 600px) {
  .sx-cart { display: none; }
  .sx-actions { gap: 10px; }
  .sx-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Drop-down menus, the futuristic version (Tim, 2026-10-17): glass over a fine grid, a light running along the top edge,
   corner marks, and a yellow marker that slides in on the item you point at. Same layout and wording as before. */
@media (min-width: 961px) {
  .sx-panel { top: calc(100% + 12px); padding: 8px; border-radius: 14px; border: 1px solid rgba(141, 179, 226, .18);
    background:
      linear-gradient(180deg, rgba(26, 44, 69, .92), rgba(15, 28, 46, .96)),
      radial-gradient(circle at 1px 1px, rgba(141, 179, 226, .18) 1px, transparent 0) 0 0 / 14px 14px;
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 0 0 1px rgba(242, 183, 5, .06), 0 24px 60px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
    transform-origin: top left; }
  .sx-drop:hover .sx-panel, .sx-drop:focus-within .sx-panel, .sx-drop.open .sx-panel { animation: sx-panel-in .22s cubic-bezier(.2, .8, .2, 1); }
  .sx-panel::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--w-accent), transparent); opacity: .9; }
  .sx-panel::after { content: ""; position: absolute; inset: 6px; border-radius: 10px; pointer-events: none;
    background:
      linear-gradient(var(--w-accent), var(--w-accent)) left top / 10px 1px no-repeat, linear-gradient(var(--w-accent), var(--w-accent)) left top / 1px 10px no-repeat,
      linear-gradient(var(--w-accent), var(--w-accent)) right bottom / 10px 1px no-repeat, linear-gradient(var(--w-accent), var(--w-accent)) right bottom / 1px 10px no-repeat;
    opacity: .55; }
  .sx-panel a { position: relative; transition: background-color .18s, padding-left .18s; }
  .sx-panel a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--w-accent);
    transform: scaleY(0); transition: transform .2s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 10px rgba(242, 183, 5, .6); }
  .sx-panel a:hover, .sx-panel a:focus-visible { background: rgba(141, 179, 226, .07); padding-left: 16px; }
  .sx-panel a:hover::before, .sx-panel a:focus-visible::before { transform: scaleY(1); }
  .sx-panel em { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--w-accent); letter-spacing: -.01em; }
  .sx-panel a.sx-panel-foot { border-top-color: rgba(141, 179, 226, .14); }
  .sx-me .sx-panel { transform-origin: top right; }
}
@keyframes sx-panel-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-panel, .sx-panel a, .sx-panel a::before { animation: none !important; transition: none !important; } }
/* "Get started" (Site redesign): on phones the bottom bar has it, so the header keeps to the cart and Sign in */
@media (max-width: 600px) { .sx-actions .sx-start { display: none; } }
