.sitehead {
  position: sticky; top: 0; z-index: 50; isolation: isolate;
  gap: clamp(15px, 2vw, 34px);
  background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 #1d2a4310, 0 5px 20px #17223608;
}
.sitehead .brand { flex-shrink: 0; }
.sitehead .desktopnav { gap: 5px; margin-inline: auto; }
.sitehead .desktopnav > a, .sitehead .product-toggle, .sitehead .signin {
  min-height: 40px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; text-decoration: none;
  color: #29364a; font-size: 14px; font-weight: 590; white-space: nowrap;
}
.sitehead :is(.desktopnav > a,.product-toggle,.signin):is(:hover,:focus-visible,[aria-current=page],[aria-expanded=true]) {
  color: #142038; background: #edf1f7; filter: none; text-decoration: none;
}
.sitehead .product-toggle { gap: 7px; }
.product-toggle i { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.product-toggle[aria-expanded=true] i { transform: translateY(1px) rotate(225deg); }
.nav-actions { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid #d9dee7; }
.sitehead .book { font-size: 14px; padding: 10px 16px; text-decoration: none; white-space: nowrap; }
.sitehead .book::after { content: '→'; font-size: 1.1em; line-height: 1; }
.product-disclosure { position: relative; }
.sitehead .product-drawer, .sitehead .mobilemenu {
  background: #fff; border: 1px solid #d9dfe9; box-shadow: 0 22px 60px #192e501c, 0 3px 8px #1420380d;
  border-radius: 14px; padding: 11px; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain;
}
.sitehead .product-drawer { top: calc(100% + 12px); left: 0; right: auto; width: 452px; }
.sitehead .drawer[hidden] { display: none; }
.product-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sitehead .product-items a {
  display: flex; align-items: center; gap: 10px; padding: 12px 9px;
  border-radius: 8px; text-decoration: none; line-height: 1.25; color: #1b2941;
}
.sitehead .product-items svg { width: 33px; height: 33px; padding: 7px; color: #394968; background: #eef1f8; border-radius: 8px; flex: none; }
.product-items b, .product-items small { display: block; }
.product-items b { font-size: 14px; font-weight: 650; }
.product-items small { font-size: 11px; color: #5a6576; margin-top: 4px; }
.sitehead .product-items a:is(:hover,:focus-visible,[aria-current=page]) { background: #f0f4fa; filter: none; }
.sitehead .menu-overview {
  display: flex; justify-content: space-between;
  margin-top: 8px; padding: 12px 10px 3px; border-top: 1px solid #e2e6ed;
  font-size: 13px; font-weight: 600;
}
.menu-overview::after { content: '→'; }
.sitehead .menuBtn { align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d5dce6; border-radius: 50px; font-weight: 600; }
.menuBtn i { display: inline-block; width: 13px; height: 7px; border-block: 1.5px solid currentColor; }
.sitehead :focus-visible, .card:focus-visible, .button:focus-visible, .playBtn:focus-visible { outline: 3px solid #516eb0; outline-offset: 3px; }
@media (max-width: 1000px) {
  .sitehead .desktopnav { display: none; }
  .sitehead .menuBtn { display: inline-flex; }
  .nav-actions { margin-left: auto; padding: 0; border: 0; }
  .sitehead .mobilemenu:not([hidden]) { display: grid; gap: 6px; top: calc(100% + 4px); left: auto; right: 12px; width: min(430px, calc(100% - 24px)); }
  .mobile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-block: 6px; }
  .mobile-links a { border-radius: 6px; font-weight: 550; }
  .mobile-links a:is(:hover,:focus-visible,[aria-current=page]) { background: #f0f4fa; }
  .sitehead .mobilemenu .book { margin: 0; justify-self: stretch; justify-content: center; }
}
@media (max-width: 530px) {
  .nav-actions .book { display: none; }
  .sitehead .signin { min-height: 44px; }
  .sitehead .product-items a { gap: 6px; padding: 10px 3px; }
  .product-items small { font-size: 10px; }
}
@media (max-width: 360px) { .product-items { grid-template-columns: 1fr; } }

/* Cards lift as a unit. The arrow tracks forward without moving neighboring text. */
.card .more::after { content: ' →'; display: inline-block; margin-left: 5px; text-decoration: none; }
.card:is(:hover,:focus-visible) {
  border-color: #a6b8d0; background: #fbfcff;
  box-shadow: 0 14px 32px #23375915, 0 3px 9px #2337590b;
}
.button.dark:is(:hover,:focus-visible), .sitehead .book:is(:hover,:focus-visible), .hero .playBtn:is(:hover,:focus-visible) {
  background: #314665; color: white; box-shadow: 0 4px 15px #1b32592a; filter: none; text-decoration: none;
}
.textlink:is(:hover,:focus-visible) { text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .card .more::after, .book::after, .product-toggle i, .play-mark, .button.dark, .sitehead .book {
    transition: transform .22s ease-out, background-color .22s, border-color .22s, box-shadow .22s;
  }
  .card:is(:hover,:focus-visible) { transform: translateY(-4px); }
  .card:is(:hover,:focus-visible) .more::after, .book:is(:hover,:focus-visible)::after { transform: translateX(3px); }
  .playBtn:is(:hover,:focus-visible) .play-mark { transform: scale(1.18); }
  .button.dark:active, .book:active, .playBtn:active { transform: translateY(1px); }
}
@media (max-width: 360px) {
  .sitehead { gap: 6px; padding-inline: 12px; }
  .sitehead .brand img { width: 124px; }
  .sitehead .signin { padding-inline: 8px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .footer > div { min-width: 0; }
}
