@import url("/css/public-nav.css?v=20260929-paper-white");

:root {
  --hds-panel-bg: #fff;
  --hds-panel-ink: #11110f;
  --hds-panel-muted: #7f7b73;
  --hds-panel-line: #d8d4cb;
  --hds-panel-overlay: rgba(33, 33, 30, .42);
  --hds-focus-width: 640px;
}

body.hds-account-panel-open {
  overflow: hidden;
}

.hds-account-shell,
.hds-account-shell * {
  box-sizing: border-box;
}

.hds-account-shell[hidden],
.hds-account-content[hidden],
.hds-account-note[hidden] {
  display: none !important;
}

.hds-account-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.hds-account-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--hds-panel-overlay);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hds-account-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(var(--hds-focus-width), 100%);
  min-width: 0;
  overflow: auto;
  color: var(--hds-panel-ink);
  background: var(--hds-panel-bg);
  box-shadow: none;
  outline: 0;
  overscroll-behavior: contain;
}

.hds-account-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 84px;
  padding: 0 38px;
}

.hds-account-close {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 420 15px/1.2 Inter, Arial, sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
}

.hds-account-content {
  display: block;
  width: 100%;
  max-width: none;
  padding: 72px 38px 64px;
  text-align: center;
}

.hds-account-kicker {
  margin: 0 0 24px;
  color: var(--hds-panel-muted);
  font: 500 12px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hds-account-content h2 {
  max-width: none;
  margin: 0;
  font: 390 44px/1 Inter, Arial, sans-serif;
  letter-spacing: -.045em;
}

.hds-account-intro {
  max-width: 38ch;
  margin: 28px auto 0;
  color: var(--hds-panel-muted);
  font: 400 17px/1.45 Inter, Arial, sans-serif;
}

.hds-account-options {
  display: grid;
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--hds-panel-line);
  border-bottom: 1px solid var(--hds-panel-line);
  text-align: left;
}

.hds-account-option {
  display: grid;
  min-height: 122px;
  padding: 26px 20px;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.hds-account-option + .hds-account-option {
  border-top: 1px solid var(--hds-panel-line);
}

button.hds-account-option {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}



.hds-account-option-copy {
  display: grid;
  gap: 8px;
}

.hds-account-option strong {
  font: 430 19px/1.25 Inter, Arial, sans-serif;
}

.hds-account-option small {
  color: var(--hds-panel-muted);
  font: 400 15px/1.4 Inter, Arial, sans-serif;
}

.hds-waitlist-form {
  display: grid;
  gap: 24px;
  margin-top: 54px;
  padding: 34px 20px 0;
  text-align: left;
}

.hds-waitlist-form[hidden] {
  display: none;
}

.hds-waitlist-form .hds-account-kicker {
  margin-bottom: 4px;
}

.hds-waitlist-form label:not(.hds-waitlist-consent):not(.hds-waitlist-honeypot) {
  display: grid;
  gap: 8px;
}

.hds-waitlist-form label > span {
  color: var(--hds-panel-muted);
  font: 500 11px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hds-waitlist-form input[type="text"],
.hds-waitlist-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #f5f4f1;
  color: inherit;
  font: 400 17px/1.3 Inter, Arial, sans-serif;
}

.hds-waitlist-form input:focus {
  box-shadow: inset 0 0 0 1px var(--hds-panel-ink);
}

.hds-waitlist-honeypot {
  position: absolute;
  left: -10000px;
}

.hds-waitlist-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.hds-waitlist-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--hds-panel-ink);
}

.hds-waitlist-consent span {
  color: var(--hds-panel-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.hds-waitlist-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid var(--hds-panel-ink);
  background: transparent;
  color: inherit;
  font: 500 14px/1.2 Inter, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.hds-waitlist-submit:hover,
.hds-waitlist-submit:focus-visible {
  background: var(--hds-panel-ink);
  color: var(--hds-panel-bg);
  outline: 0;
}

.hds-waitlist-submit:disabled {
  opacity: .45;
  cursor: wait;
}

.hds-waitlist-status {
  margin: 0;
  color: #7c3029;
  font: 400 13px/1.45 Inter, Arial, sans-serif;
}

.hds-waitlist-success {
  margin: 0;
  font: 400 32px/1.08 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
}

.hds-account-note {
  align-self: end;
  margin: 0;
  padding: 26px 38px 34px;
  color: var(--hds-panel-muted);
  font: 400 12px/1.45 Inter, Arial, sans-serif;
  text-align: center;
}

@media (hover: hover) {
  .hds-account-option:hover {
    background: #f5f4f1;
  }
}

@media (max-width: 720px) {
  .hds-account-panel {
    width: 100%;
  }

  .hds-account-topbar {
    min-height: 70px;
    padding-inline: 20px;
  }

  .hds-account-close {
    font-size: 14px;
  }

  .hds-account-content {
    padding: 52px 20px 46px;
  }

  .hds-account-content h2 {
    font-size: 38px;
  }

  .hds-account-intro {
    font-size: 15px;
  }

  .hds-account-options {
    margin-top: 54px;
  }

  .hds-account-option {
    min-height: 108px;
    padding-inline: 14px;
    gap: 20px;
  }

  .hds-account-option strong {
    font-size: 18px;
  }

  .hds-account-option small {
    font-size: 14px;
  }

  .hds-waitlist-form {
    padding-inline: 14px;
  }

  .hds-account-note {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hds-account-backdrop {
    animation: hds-account-fade 220ms ease both;
  }

  .hds-account-panel {
    animation: hds-account-enter 300ms cubic-bezier(.22, .72, .25, 1) both;
  }

  @keyframes hds-account-fade {
    from { opacity: 0; }
  }

  @keyframes hds-account-enter {
    from { transform: translateX(32px); }
  }
}

.hds-account-close-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* Shared access entry points remain visible outside the mobile navigation. */
.hds-account-shell { z-index: 3000; }
.hds-account-shell [hidden], .hds-account-entry [hidden] { display: none !important; }
.hds-account-entry { display: inline-flex; align-items: center; gap: 22px; flex-shrink: 0; }
.hds-account-entry a { display: inline-flex !important; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; font: 500 12px/1.2 "Inter HDS", Inter, Arial, sans-serif; letter-spacing: .02em; text-transform: none; }
.hds-account-entry .hds-get-started-link { border: 1px solid currentColor; padding: 0 14px; }
.hds-account-entry-mobile { display: none; }
.hds-account-entry a:focus-visible, .hds-account-shell button:focus-visible, .hds-account-shell a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.hds-account-content { padding-top: 42px; }
.hds-waitlist-form { margin-top: 38px; padding: 0; }
.hds-waitlist-submit { justify-content: center; gap: 16px; }
.hds-account-secondary { margin: 26px 0 0; color: #777; font: 400 14px/1.6 Inter, Arial, sans-serif; }
.hds-account-secondary button { padding: 0; border: 0; background: none; font: inherit; color: #111; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hds-account-auth { margin-top: 44px; text-align: left; }
.hds-auth-google { display: block; width: 100%; min-height: 56px; border: 1px solid #111; background: white; color: #111; font: 500 15px/1.4 Inter, Arial, sans-serif; cursor: pointer; }
.hds-auth-separator { display: flex; align-items: center; gap: 16px; margin: 26px 0; color: #777; font: 400 13px/1.4 Inter, Arial, sans-serif; }
.hds-auth-separator::before, .hds-auth-separator::after { content: ''; flex: 1; height: 1px; background: #ddd; }
.hds-auth-form { display: grid; gap: 14px; font: 400 14px/1.4 Inter, Arial, sans-serif; }
.hds-auth-form input { width: 100%; box-sizing: border-box; min-height: 52px; border: 0; background: #f5f4f1; padding: 12px 14px; color: #111; font: 400 17px/1.3 Inter, Arial, sans-serif; border-radius: 0; }
.hds-auth-form input:focus-visible { outline: 1px solid #111; }
.hds-account-auth .hds-account-secondary { text-align: center; }
/* Two deliberate mobile rows: centered brand, then centered access links. */
@media (max-width: 900px) {
  body.site-home .de-header,
  body.hds-public-page .dir-header,
  body.hds-today-body .de-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 56px 44px;
    align-items: center !important;
    align-content: start !important;
    gap: 0 !important;
    height: 108px !important;
    min-height: 108px !important;
    padding: 0 16px 8px !important;
  }

  body .de-header > .brand,
  body .dir-header > .dir-brand {
    position: static !important;
    grid-area: 1 / 1 / 2 / -1;
    justify-self: center;
    transform: none !important;
    max-width: calc(100% - 88px);
    font-size: clamp(10px, 3vw, 12px) !important;
  }

  body .de-header > nav,
  body .dir-header > nav { display: none !important; }

  body .de-header .hds-menu-trigger-mobile,
  body.hds-public-page .dir-header .hds-menu-trigger-mobile {
    grid-area: 1 / 3;
    justify-self: end;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }

  body.hds-public-page .dir-header .dir-actions-group > .dir-wishlist-button {
    grid-area: 1 / 1;
    justify-self: start;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body .de-header > .hds-account-entry-mobile,
  body .dir-header > .hds-account-entry-mobile {
    display: flex !important;
    grid-area: 2 / 1 / 3 / -1;
    justify-content: center;
    justify-self: center;
    gap: 28px;
    margin: 0;
  }

  body .de-header .hds-account-entry-mobile a,
  body .dir-header .hds-account-entry-mobile a {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }

  body .hds-account-entry-mobile a:hover,
  body .hds-account-entry-mobile a:focus-visible {
    text-decoration-thickness: 2px;
  }

  body.home-editorial .de-hero > .de-hero-search { top: 108px; }

  /* Directory's floating search must clear the two-row header as well. */
  body.site-directory:not(.is-space-view) .directory-floating-search {
    top: 116px;
  }

  body.site-directory:not(.is-space-view):has(.directory-floating-search) [data-directory-app] {
    padding-top: 40px;
  }
  body.home-editorial .de-header .hds-account-entry a { color: #fff !important; }
  body.hds-menu-open.home-editorial .de-header .hds-account-entry a { color: #111 !important; }
  .hds-account-content { padding-top: 26px; }
}
.hds-waitlist-form .hds-waitlist-consent > span { font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }

/* One border only; keyboard focus uses an underline rather than a second frame. */
body .hds-account-entry .hds-get-started-link:focus {
  outline: none;
  box-shadow: none;
}
body .hds-account-entry .hds-get-started-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
