/* E’MOTION: adjustment values. Keep the 1024px breakpoint in sync with JS. */
:root {
  --emotion-header-height: 88px;
  --emotion-header-gutter: clamp(24px, 4vw, 72px);
  --emotion-header-background: rgb(255 255 255 / 96%);
  --emotion-header-ink: #171717;
  --emotion-header-layer: 1000;
  --emotion-admin-offset: 0px;
}
.admin-bar { --emotion-admin-offset: 32px; }
.emotion-header-slot { height: var(--emotion-header-height); }
.emotion-header,
.emotion-header-dialog { color: var(--emotion-header-ink); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif; }
.emotion-header *, .emotion-header-dialog * { box-sizing: border-box; }
.emotion-header {
  position: fixed;
  inset: var(--emotion-admin-offset) 0 auto;
  z-index: var(--emotion-header-layer);
  height: var(--emotion-header-height);
  margin: 0;
  padding: 0;
  background: var(--emotion-header-background);
  opacity: 1;
  transform: translateY(0);
  /* No temporal transition: scroll position must map exactly to the visual state. */
  transition: none;
}
.emotion-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-inline: var(--emotion-header-gutter);
}
.emotion-header a, .emotion-header-dialog a { color: inherit; text-decoration: none; }
.emotion-header button, .emotion-header-dialog button {
  appearance: none; background: transparent; color: inherit; border: 0; border-radius: 0;
  font: inherit; cursor: pointer; padding: 10px 0; min-height: 44px;
}
.emotion-header a:focus-visible, .emotion-header button:focus-visible,
.emotion-header-dialog :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.emotion-header__links { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; }
.emotion-header__links li { list-style: none; margin: 0; padding: 0; }
.emotion-header__links a, .emotion-header__utilities a { display: inline-flex; align-items: center; min-height: 44px; }
.emotion-header__desktop, .emotion-header__utilities, .emotion-header__menu { font-size: 13px; line-height: 1.5; }
.emotion-header__brand { grid-column: 2; font-size: 26px; letter-spacing: .1em; line-height: 1; white-space: nowrap; font-weight: 400; }
.emotion-header__utilities { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 20px; white-space: nowrap; }
.emotion-header__menu { grid-column: 1; justify-self: start; }
.emotion-header [hidden] { display: none !important; }
.emotion-header__menu { display: none; }
.emotion-header-dialog {
  box-sizing: border-box; width: min(720px, calc(100% - 40px)); max-height: 85dvh;
  padding: 40px; border: 1px solid #dedede; background: #fff; margin: auto;
  font-size: 16px; line-height: 1.8; overflow: auto;
}
.emotion-header-dialog:not([open]) { display: none; }
.emotion-header-dialog::backdrop { background: rgb(0 0 0 / 25%); }
.emotion-header-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.emotion-header-dialog h2 { font: inherit; font-size: 28px; margin: 0; }
.emotion-header-dialog .emotion-header__links { display: grid; gap: 20px; margin-bottom: 40px; font-size: 24px; }
.emotion-header-dialog form { margin: 32px 0 0; }
.emotion-header-dialog label { display: block; margin-bottom: 12px; }
.emotion-header-dialog__search { display: flex; gap: 16px; }
.emotion-header-dialog input[type="search"] { min-width: 0; width: 100%; background: #fff; color: #171717; border: 1px solid #777; border-radius: 0; padding: 12px; font: inherit; font-size: 16px; }
.emotion-header-dialog__search button { flex-shrink: 0; min-width: 44px; }
@media (hover: hover) and (pointer: fine) {
  .emotion-header a:hover, .emotion-header button:hover, .emotion-header-dialog a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (max-width: 1023px) {
  :root { --emotion-header-height: 64px; --emotion-header-gutter: 20px; }
  .emotion-header__inner { gap: 12px; }
  .emotion-header__brand { font-size: 21px; letter-spacing: .06em; }
  .emotion-header--enhanced .emotion-header__desktop { display: none; }
  .emotion-header--enhanced .emotion-header__menu { display: inline-flex; align-items: center; }
  .emotion-header__utilities .emotion-header__search, .emotion-header__account { display: none; }
  .emotion-header__utilities { gap: 0; font-size: 12px; }
  .emotion-header__menu { font-size: 12px; min-width: 44px; }
  /* Without JS, retain the actual navigation instead of showing a dead button. */
  .emotion-header:not(.emotion-header--enhanced) { position: relative; height: auto; inset: auto; }
  .emotion-header:not(.emotion-header--enhanced) .emotion-header__inner { padding-block: 16px; }
  .emotion-header:not(.emotion-header--enhanced) .emotion-header__desktop { grid-column: 1 / -1; grid-row: 2; }
  .emotion-header:not(.emotion-header--enhanced) .emotion-header__links { flex-wrap: wrap; gap: 16px; }
  .emotion-header-slot:has(.emotion-header:not(.emotion-header--enhanced)) { height: auto; }
  .emotion-header-dialog { padding: 24px; }
}
@media (max-width: 782px) { .admin-bar { --emotion-admin-offset: 46px; } }
/* WP's toolbar normally scrolls away below 601px; JS measures it in that case. */
@media (prefers-reduced-motion: reduce) {
  .emotion-header { transform: none !important; will-change: auto !important; }
}
