/* The light sign-in page (SPEC-LIGHT-SIGN-IN): today's app sign-in form, drawn without the app. The rules are the
   app's own (stoareads-app public/styles.css and Stoa's default brand.css), cut to what this page uses. The build
   serves this file under a content-hash name (/si/<hash>.css), cached for good. */

/* stoareads.com's fonts, as .com declares them (reading-room.css): Public Sans 400 and Newsreader 500 are preloaded
   (Forge's two); the 600 weights the header and the form's labels and buttons use load with swap, as on .com, so the
   form never waits for them. Lighter weights read the 400 and 500 files, so nothing is synthesized. */
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-500-normal.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-600-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
/* Fallbacks with the web fonts' metrics, so nothing moves when they arrive (§5): widths measured against Liberation
   Sans and Serif (Arial's and Times's metrics), ascent and descent from the fonts' own tables. */
@font-face {
  font-family: 'Public Sans fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 105.1%;
  ascent-override: 90.4%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Newsreader fallback';
  src: local('Times New Roman'), local('Times'), local('Liberation Serif');
  size-adjust: 107.7%;
  ascent-override: 68.3%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --color-background: #fbfbf9;
  --color-surface: #ffffff;
  --color-ink: #111a2e;
  --color-ink-soft: #4b5468;
  --color-line: #dce0e7;
  --color-primary: #2f44b5;
  --color-primary-deep: #1a3180;
  --color-on-primary: #ffffff;
  --color-success: #2f6b50;
  --color-danger: #a3201a;
  --color-brand: #2f44b5; /* the one filled primary (Juno, design pass item 7) */
  --color-on-brand: #ffffff;
  --font-display: 'Newsreader', 'Newsreader fallback', Georgia, serif;
  --font-ui: 'Public Sans', 'Public Sans fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rule: color-mix(in oklab, var(--color-line) 70%, var(--color-background));
  --raised: color-mix(in oklab, var(--color-surface) 60%, white);
  --hover: color-mix(in srgb, var(--color-ink) 5%, transparent);
  --button-hover: color-mix(in oklab, var(--color-brand) 82%, black);
  --glass: color-mix(in srgb, var(--color-background) 80%, transparent);
  --edge: color-mix(in srgb, var(--color-ink) 8%, transparent);
  --t-title: clamp(2rem, 1.7rem + 1.3vw, 2.75rem);
  --t-item: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --t-read: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --t-ui: 0.9375rem;
  --t-meta: 0.8125rem;
  --t-label: 0.875rem;
  --lh-title: 1.14;
  --lh-ui: 1.35;
  --track-tight: -0.025em;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --tap: 2.75rem;
  --w-page: 70rem;
  --r-control: 8px;
  --r-card: 12px;
  --lift:
    0 1px 2px color-mix(in srgb, var(--color-ink) 5%, transparent),
    0 6px 20px -10px color-mix(in srgb, var(--color-ink) 16%, transparent);
  --press: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px color-mix(in srgb, var(--color-ink) 18%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--color-primary) 28%, transparent);
  --quick: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #111215;
    --color-surface: #151b27;
    --color-ink: #eceef3;
    --color-ink-soft: #a9b0be;
    --color-line: #2a3342;
    --color-primary: #a8bbf0;
    --color-primary-deep: #c3d0fa;
    --color-on-primary: #10151f;
    --color-brand: #a8bbf0;
    --color-on-brand: #0f1a3a;
    --color-success: #86c2a2;
    --color-danger: #ff8f84;
    --raised: color-mix(in oklab, var(--color-surface) 92%, white);
    --rule: color-mix(in oklab, var(--color-line) 85%, var(--color-background));
    --hover: color-mix(in srgb, white 6%, transparent);
    --lift: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --press: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(0 0 0 / 0.4);
    --edge: rgb(255 255 255 / 0.08);
  }
}

*,
::before,
::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-ink);
  font: 400 1.0625rem / 1.55 var(--font-ui);
}
:where(main) a {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
@media (hover: hover) {
  :where(main) a:hover {
    color: var(--color-primary-deep);
    text-decoration-color: currentColor;
  }
}
:where(main) h1 {
  margin: 0;
  font: 400 var(--t-title) / var(--lh-title) var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  color: var(--color-ink);
}
:where(main) p {
  margin: 0 0 var(--s4);
}
:where(main) p:last-child {
  margin-bottom: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
:where(main) a,
:where(main) button,
:where(main) summary,
:where(main) label {
  -webkit-tap-highlight-color: transparent;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The header is stoareads.com's own (shared/discover/site-header.css and menu.css follow this file in the same
   stylesheet), and so is the footer (site-footer.css, UX-14). They read .com's tokens, set on .hd and .ft alone so the
   form keeps its own. */
.hd,
.ft {
  --bg: #fbfbf9;
  --ink: #15171c;
  --mut: #5a606b;
  --rule: #e2e2dc;
  --maxw: 1280px;
  --gut: 20px;
  --font-ui: 'Public Sans', 'Public Sans fallback', system-ui, sans-serif;
  --font-display: 'Newsreader', 'Newsreader fallback', serif;
  color: var(--ink);
  font: 400 16px / 1.55 var(--font-ui);
}
/* .com's base under the header (reading-room.css): links take the text colour; the form's element rules above are
   scoped to main and the footer, so nothing of the form's look reaches the header. */
:where(.hd, .ft) a {
  color: inherit;
}
@media (min-width: 900px) {
  .hd,
  .ft {
    --gut: 40px;
  }
}
@media (prefers-color-scheme: dark) {
  .hd,
  .ft {
    --bg: #111215;
    --ink: #ecebe6;
    --mut: #a3a6ad;
    --rule: #2a2c31;
  }
}
main {
  width: min(var(--w-page), 100% - var(--s6) * 2);
  margin-inline: auto;
}
main {
  flex: 1 1 0%;
  padding-bottom: var(--s7);
}

/* Fields and buttons. */
.field {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
:where(main) label {
  font: 600 var(--t-label) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink);
}
.field small {
  font: 400 var(--t-meta) / 1.45 var(--font-ui);
  color: var(--color-ink-soft);
}
:where(main) input {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: var(--s3);
  font: 400 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, var(--color-line));
  border-radius: var(--r-control);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-ink) 4%, transparent);
  transition:
    border-color var(--quick) ease,
    box-shadow var(--quick) ease;
}
:where(main) input::placeholder {
  color: var(--color-ink-soft);
  opacity: 0.8;
}
@media (hover: hover) {
  :where(main) input:hover {
    border-color: color-mix(in srgb, var(--color-ink) 35%, var(--color-line));
  }
}
:where(main) input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--ring);
}
.hint {
  margin: 0;
  font: 400 var(--t-meta) / 1.45 var(--font-ui);
  color: var(--color-ink-soft);
}
.form-status {
  margin: var(--s3) 0 0;
  font: 500 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-success);
}
.form-status:empty {
  margin: 0;
}
.form-status.error {
  color: var(--color-danger);
}
/* Under the password, before Sign in: the error sits by the field it is about. */
.signin-password .field + .form-status:not(:empty) {
  margin: calc(-1 * var(--s2)) 0 var(--s3);
}
:where(main) button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: var(--s3) var(--s5);
  font: 600 var(--t-ui) / 1 var(--font-ui);
  letter-spacing: -0.005em;
  color: var(--color-on-brand);
  background: var(--color-brand);
  border: 1px solid color-mix(in srgb, var(--color-brand) 80%, black);
  border-radius: var(--r-control);
  box-shadow: var(--press);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--quick) ease,
    border-color var(--quick) ease,
    box-shadow var(--quick) ease,
    color var(--quick) ease,
    transform var(--quick) ease;
}
@media (hover: hover) {
  :where(main) button:hover,
  .button:hover {
    color: var(--color-on-brand);
    background: var(--button-hover);
    border-color: var(--button-hover);
  }
}
:where(main) button:active,
.button:active {
  transform: scale(0.98);
}
:where(main) button:disabled {
  opacity: 0.55;
  cursor: progress;
}
:where(main) button.secondary,
.button.secondary {
  color: var(--color-ink);
  background: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-ink) 14%, var(--color-line));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-ink) 6%, transparent);
}
@media (hover: hover) {
  :where(main) button.secondary:hover,
  .button.secondary:hover {
    color: var(--color-ink);
    background: color-mix(in srgb, var(--color-ink) 4%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-ink) 24%, var(--color-line));
  }
}
.link-button,
:where(main) button.link-button {
  display: inline;
  min-height: 0;
  padding: 0;
  font: 500 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-primary);
  background: none;
  border: 0;
  box-shadow: none;
  text-decoration: underline color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
}
@media (hover: hover) {
  .link-button:hover,
  :where(main) button.link-button:hover {
    color: var(--color-primary-deep);
    background: none;
  }
}

/* The sign-in panel. */
.auth {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: var(--s8) 0 0;
}
.auth-panel {
  width: 100%;
  max-width: 25rem;
}
.auth-head {
  margin-bottom: var(--s6);
  text-align: center;
}
.auth-lede {
  margin: var(--s3) 0 0;
  font: 400 var(--t-read) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink);
  text-wrap: balance;
}
.auth-switch,
.auth-note {
  width: 100%;
  max-width: 25rem;
  margin: 0;
  text-align: center;
  font: 400 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink-soft);
  text-wrap: balance;
}
.auth-switch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s2);
  margin-top: var(--s5);
}
.auth-switch.inline {
  display: block;
}
.auth-switch a {
  font-weight: 600;
}
/* The inline switch link is a 44 px tap target, its padding taken back by a matching margin so the line doesn't grow
   (Vera on #503; 20.25 px line + 2 × 12 px). */
.auth-switch.inline a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}
.auth-note {
  margin-top: var(--s3);
  font-size: var(--t-meta);
}
.auth-explore {
  margin: 0;
  text-align: center;
  font: 500 var(--t-meta) / var(--lh-ui) var(--font-ui);
}
.auth-explore a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-code {
  width: 100%;
  max-width: 25rem;
}
.signin-code {
  margin-top: var(--s2);
}
.signin-code > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: 500 var(--t-meta) / var(--lh-ui) var(--font-ui);
  color: var(--color-primary);
  text-align: center;
  list-style: none;
  cursor: pointer;
  /* R3-12 (Juno): underlined like the page's other links, Explore clubs beside it. */
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
@media (hover: hover) {
  .signin-code > summary:hover {
    color: var(--color-primary-deep);
    text-decoration-color: currentColor;
  }
}
.signin-code > summary::-webkit-details-marker {
  display: none;
}
.signin-code form {
  margin-top: var(--s4);
}
.signin-code .hint {
  margin: 0 0 var(--s4);
}
.signin-code button[type='submit'],
.signin-password button[type='submit'],
.code-step button[type='submit'],
.providers .button {
  width: 100%;
}
.signin-password button[type='submit'] {
  margin-top: var(--s2);
}
:where(main) input[name='code'] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}
:where(main) button.link-button.forgot-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  margin-top: calc(-1 * var(--s2));
  font: 500 var(--t-meta) / var(--lh-ui) var(--font-ui);
}
:where(main) button.link-button.signin-link {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin: var(--s2) auto 0;
}
.providers {
  display: grid;
  gap: var(--s2);
}
.button.provider {
  color: var(--color-ink);
  background: var(--raised);
  border-color: color-mix(in srgb, var(--color-ink) 18%, var(--color-line));
  font-weight: 500;
}
@media (hover: hover) {
  .button.provider:hover {
    color: var(--color-ink);
    background: var(--hover);
    border-color: color-mix(in srgb, var(--color-ink) 35%, var(--color-line));
  }
}
.provider-icon {
  display: inline-flex;
  flex: 0 0 auto;
}
.or {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s5) 0;
  font: 400 var(--t-meta) / 1 var(--font-ui);
  color: var(--color-ink-soft);
}
.or::before,
.or::after {
  content: '';
  flex: 1 1 0%;
  border-top: 1px solid var(--rule);
}
.terms {
  margin: var(--s4) 0 0;
  font: 400 var(--t-meta) / 1.45 var(--font-ui);
  color: var(--color-ink-soft);
  text-align: center;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Check your email": the code finishes here, in this tab (§3 state 4). */
.code-step h2 {
  margin: 0 0 var(--s3);
  font: 500 1.375rem / 1.24 var(--font-display);
  letter-spacing: -0.01em;
  text-align: center;
}
.code-step h2:focus {
  outline: none;
}
.code-step > p {
  text-align: center;
  font: 400 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink-soft);
}
.code-step form + .hint {
  margin-top: var(--s4);
}
.code-step strong {
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.code-step .again {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--s5);
  margin-top: var(--s2);
}
.code-step .again .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-meta);
}

/* Keep my shelf (§4): the device shelf, drawn small. */
.kept {
  margin: 0 0 var(--s5);
  text-align: center;
}
.kept ul {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  padding: 0;
  list-style: none;
}
.kept li {
  display: flex;
  align-items: flex-end;
  width: 3rem;
  height: 4.5rem;
  padding: 4px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  border-radius: var(--r-control);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: 600 0.5rem / 1.1 var(--font-display);
  text-align: left;
  box-shadow: 0 0 0 1px var(--edge), 0 6px 14px -6px color-mix(in srgb, var(--color-ink) 35%, transparent);
}
.kept li span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.kept li:nth-child(3n + 2) {
  background: #2f6b50;
}
.kept li:nth-child(3n) {
  background: #8c322b;
}
.kept p {
  margin: 0;
  font: 500 var(--t-meta) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .auth {
    padding-top: var(--s9);
  }
  .auth-panel {
    max-width: 27rem;
    padding: var(--s6);
    background: var(--color-surface);
    border: 1px solid var(--edge);
    border-radius: var(--r-card);
    box-shadow: var(--lift);
  }
}
@media (max-width: 640px) {
  main,
    }
@media (max-width: 720px) {
  :where(main) input {
    font-size: max(16px, 1rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* The light club invite page (SPEC-LIGHT-JOIN): who invited you, then one step to join. The server fills the club
   block before the page leaves, so nothing below it moves. */
.join-head {
  margin-bottom: var(--s5);
  text-align: center;
}
.join-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s4);
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  font: 600 22px/1 var(--font-display);
  color: var(--color-ink);
}
.join-k {
  margin: 0 0 var(--s2);
  font: 400 14px / 20px var(--font-ui);
  color: var(--color-ink-soft);
}
.join-head h1 {
  overflow-wrap: anywhere;
}
.join-n {
  margin: var(--s2) 0 0;
  font: 400 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink-soft);
}
.join-tag {
  margin: var(--s3) 0 0;
  font: 400 var(--t-read) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.join-rule {
  border: 0;
  border-top: 1px solid var(--rule);
}
.join-gone {
  text-align: center;
}
.join-gone p {
  margin: var(--s3) 0 var(--s4);
  font: 400 var(--t-read) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink-soft);
}
.join-head .join-rule {
  margin: var(--s5) 0 0;
}
/* C2 (Juno's audit): the club's photo or logo in place of its letter, then what it reads and when it next meets. */
.join-img {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  object-fit: cover;
  background: var(--color-surface, transparent);
}
.join-facts {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: fit-content;
  max-width: 100%;
  margin: var(--s4) auto 0;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  text-align: left;
}
.join-ft {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}
.join-ft p {
  margin: 0;
  font: 400 var(--t-ui) / var(--lh-ui) var(--font-ui);
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.join-fk {
  display: block;
  font: 400 14px / 20px var(--font-ui);
  color: var(--color-ink-soft);
}
.join-fv {
  font-weight: 600;
}
.join-fa {
  color: var(--color-ink-soft);
}
.join-cover {
  flex: none;
  width: 48px;
  height: 72px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--rule);
}

/* shared/discover/site-header.css */
/* stoareads.com's header, base rules (SPEC-ONE-HEADER §1): the header site-header.mjs draws. menu.css has its
   dropdowns, phone menu, Your clubs and search field. Spliced into reading-room.css and shell.css; the app copies it.
   Reads --bg, --ink, --rule, --maxw and --gut (.com's values: reports/sprint-5/ONE-HEADER-INTERFACE.md). */
.hd{border-bottom:1px solid var(--rule);background:var(--bg)}
.hd-in{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut);height:64px;display:flex;align-items:center;gap:28px}
.logo{display:inline-flex;align-items:center;text-decoration:none;padding:11px 0}
.logo .wm{display:block;flex:none}
.hd-nav a{display:inline-block;font-weight:600;font-size:15px;text-decoration:none;padding:21px 0 19px;border-bottom:2px solid transparent}
.hd-nav a[aria-current]{border-color:var(--ink)}
.hd-nav a+a{margin-left:28px}
.hd-q{flex:1;min-width:0;max-width:440px;margin:0 0 0 auto}/* the box is the shared search field (menu.css .sf); min-width 0 lets it give way to the links */
.hd-a{font-weight:600;font-size:15px;text-decoration:none;padding:12px 0;white-space:nowrap;background:none;border:0;color:inherit;cursor:pointer;font-family:inherit;line-height:inherit;min-height:44px;display:inline-flex;align-items:center}
.hd-join{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:15px;text-decoration:none;border:1.5px solid var(--ink);border-radius:var(--r-control,8px);padding:0 14px;white-space:nowrap}
.hd-s{display:none}
[data-signed-in] [data-signed-out-only],:root:not([data-signed-in]) [data-signed-in-only],:root:not([data-one]) [data-one-only]{display:none !important}
@media (min-width:900px){
  .hd-noq .hd-q{display:none}
  .hd-noq .hd-nav{margin-right:auto}
}
@media (max-width:899px){
  .hd-nav,.hd .hd-q,.hd-join{display:none}
  .hd-s{display:flex;flex:none;width:44px;height:44px;align-items:center;justify-content:center}
  .hd-in{gap:0}
  .hd-a{padding:12px 6px}
}
/* Narrower than any phone we gate on (Vera B's 260 rig): the header needs about 293 px, so its Sign in (or My Shelf)
   link goes; the menu has the same link, and search keeps its icon. Nothing runs off the edge; logo and gutter keep
   their sizes (Juno, Nov 14). */
@media (max-width:299.98px){
  .hd-in>.hd-a{display:none}
}
/* Discover on the phone's top line, not only in the menu (Seph, Nov 29): beside the logo under 900, where the nav
   goes. Under 390 the account link (Sign in, My Shelf) gives it the room and stays in the menu, as under 300 before. */
.hd-dz{display:none}
@media (max-width:899px){
  .hd-dz{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:12px 0;font-weight:600;font-size:15px;line-height:20px;text-decoration:none;white-space:nowrap;color:inherit}
  .hd-dz[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
}
/* The phone top line, balanced (Seph, Nov 30): the logo on the left; Discover, the account link, search and the menu
   one group on the right, text links first, then the two icons. The gaps between marks read about 18 to 24 px: 18 px
   between the words, the search glyph's 12 px of box after the account link, and the two 44 px icon boxes overlapping
   by 6 px so their glyphs sit about 24 px apart. The menu box hangs 14 px into the right gutter so its glyph ends
   about 20 px from the edge, mirroring the logo (Juno on #739). Each tap target stays 44 px tall; the words keep their full width. */
@media (max-width:899px){
  .hd .hd-in>.hd-a{margin-left:18px;padding:12px 0}
  .hd .hd-in>.hd-s{margin-left:2px}
  .hd .hd-in>.hd-m{margin-left:-6px;margin-right:-14px}
}
@media (max-width:389.98px){
  .hd-in>.hd-a{display:none}
}
/* Your account is back (SPEC-DELETE-ACCOUNT, grace period): one calm line under the header, once, after a sign-in
   that cancelled a deletion. site.js draws it from /api/me's restored and then tells the app it was shown. */
.hd-back{margin:0;padding:12px max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut)));border-bottom:1px solid var(--rule);font-size:15px;line-height:22px;color:var(--ink)}

/* shared/discover/menu.css */
/* The Discover menu and the phone menu (DIRECTION §1, SPEC-SHELL §1). Loaded by the shared header on every page, so
   it uses only the header's own tokens (--bg, --ink, --mut, --rule), which reading-room.css and shell.css both set. */
.hd-dm{position:relative;display:inline-flex;align-items:center}
.hd-dm+a{margin-left:22px}
.hd-nav a+.hd-dm{margin-left:28px}
.hd-dm-b{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-4px;padding:0;border:0;background:none;color:inherit;cursor:pointer;border-radius:var(--r-control,8px)}
.hd-dm-b svg{transition:transform 150ms ease}
.hd-dm-b[aria-expanded='true'] svg{transform:rotate(180deg)}
.hd-dm-b:focus-visible,.hd-m:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

.dm{position:absolute;top:100%;left:0;z-index:30;width:780px;margin-top:1px;padding:24px;background:var(--bg);border:1px solid var(--rule);border-radius:var(--r-card,12px);box-shadow:0 1px 2px rgba(0,0,0,.08),0 8px 24px -8px rgba(0,0,0,.22)}
.dm[hidden]{display:none}
.dm-cols{display:grid;grid-template-columns:1fr 1.25fr;gap:32px}
.dm-h{margin:0 0 4px;font:600 13px/18px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.hd .dm-open{display:flex;align-items:center;min-height:44px;margin-top:16px;padding-top:12px;border-top:1px solid var(--rule);font-weight:600;font-size:15px;color:var(--ink);text-decoration:none}
@media (hover:hover){.hd .dm-open:hover{text-decoration:underline;text-underline-offset:3px}}

/* ---- The shared pieces (SPEC-DISCOVER-SYSTEM §2): Ways in and Subjects, the same on every door ---- */
.wi,.sj{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
.sj[hidden]{display:none}
.wi li,.sj li{border-top:1px solid var(--rule);min-width:0}
.sj li{display:flex}
.wi a{display:block;min-height:64px;padding:11px 0 12px;text-decoration:none;color:var(--ink)}
.wi-l{display:block;font:600 16px/22px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink)}
.wi-d{display:block;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
@media (hover:hover){.wi a:hover .wi-l,.sj a:hover{text-decoration:underline;text-underline-offset:3px}}
.sj a{flex:1;display:flex;align-items:center;min-height:44px;padding:10px 0;box-sizing:border-box;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-decoration:none}
.sj-more summary{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid var(--rule);font:600 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);cursor:pointer;list-style:none}
.sj-more summary::-webkit-details-marker{display:none}
.sj-more summary::after{content:'';width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform-origin:50% 50%;transform:rotate(45deg)}
.sj-more[open] summary::after{transform:rotate(225deg)}
@media (min-width:640px){
  .wi{grid-template-columns:repeat(3,1fr);column-gap:24px}
}
.wi.wi-1{grid-template-columns:1fr}
.dm .sj{column-gap:24px}

/* ---- The phone menu (§3): a short list on a full-height <dialog>, its top bar where the header is ---- */
.hd-m{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;background:none;color:inherit;cursor:pointer;border-radius:var(--r-control,8px)}
.pm{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--bg);color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
.pm::backdrop{background:transparent}
.pm-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 20px;border-bottom:1px solid var(--rule);background:var(--bg)}
.pm-bar .logo{color:var(--ink)}
.pm-x{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:0;padding:0;border:0;background:none;color:inherit;cursor:pointer;border-radius:var(--r-control,8px)}
.pm-x:focus-visible,.pm a:focus-visible,.pm button:focus-visible,.pm summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.pm-nav{padding:0 20px 32px}
.pm-d summary,.hd .pm .pm-a{display:flex;align-items:center;width:100%;min-height:56px;padding:0;border:0;border-bottom:1px solid var(--rule);background:none;font:600 18px/24px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-align:left;text-decoration:none;cursor:pointer;list-style:none}
.pm-d summary::-webkit-details-marker{display:none}
.pm-d summary::after{content:'';margin-left:auto;margin-right:4px;width:8px;height:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform-origin:50% 50%;transform:rotate(45deg)}
.pm-d[open] summary::after{transform:rotate(225deg)}
.pm-d[open] summary{border-bottom-color:transparent}
.pm-d .sj{padding-bottom:12px;border-bottom:1px solid var(--rule)}
.pm-ft{display:flex;flex-direction:column;margin-top:12px}
.hd .pm-ft a,.hd .pm-ft button{display:flex;align-items:center;min-height:44px;padding:0;border:0;background:none;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut);text-align:left;text-decoration:none;cursor:pointer}
@media (hover:hover){.hd .pm .pm-a:hover,.hd .pm-ft a:hover,.hd .pm-ft button:hover{text-decoration:underline;text-underline-offset:3px}}
/* UX-31 (Juno): signed out, Create free account is the primary filled button, like Want to read, not a muted line. */
.hd .pm-ft a.pm-join{align-self:flex-start;justify-content:center;margin:4px 0 8px;padding:0 18px;border:0;border-radius:var(--r-control,8px);background:var(--acc,var(--accent));font-weight:600;color:var(--acc-ink,var(--on-accent))}
@media (hover:hover){.hd .pm-ft a.pm-join:hover{text-decoration:none;color:var(--acc-ink,var(--on-accent))}}
html.pm-open,html.pm-open body{overflow:hidden}
/* "Your clubs" (SPEC-CLUBS-MENU): Clubs stays a link, and its chevron opens the list. It drops under Clubs on a wide
   screen (Discover's panel, at least 280 px) and opens in place in the phone menu, like Genres. Rows match the app's
   club switcher: the initial in a small square, the name, the next date muted, "Current" as plain text. */
/* Clubs leads the nav either way, at the header's own gap from the logo (App builder, Nov 13): signed in, the Clubs menu
   with its chevron; signed out, a plain Clubs link (below). */
[data-signed-in] .hd-cm + .hd-dm{margin-left:22px}
/* Clubs without its chevron (outside the mode): the plain-link gap to Discover (Juno, #482). */
:root[data-signed-in]:not([data-one]) .hd-cm+.hd-dm{margin-left:28px}
/* Signed out, Clubs is a plain link to Find a club (/explore; Juno, P1 1): first in the nav, so it takes no margin and
   Discover keeps the 28 px a link gives it. */
.hd-nav a[data-signed-out-only]+.hd-cm{margin-left:0}
:root:not([data-signed-in]) .hd-cm+.hd-dm{margin-left:28px}
/* With Clubs' chevron the signed-in header is one control longer: between 900 and 1199 px the gaps tighten, so the
   search bar keeps room for "Search books" at 1024 (SPEC-CLUBS-MENU §1: nothing cut at 1024). */
@media (min-width:900px) and (max-width:1199px){.hd .hd-in{gap:16px}.hd-nav a+a,.hd-nav a+.hd-dm,:root[data-signed-in]:not([data-one]) .hd-cm+.hd-dm,:root:not([data-signed-in]) .hd-cm+.hd-dm{margin-left:20px}.hd-nav a[data-signed-out-only]+.hd-cm{margin-left:0}.hd-dm+a,[data-signed-in] .hd-cm+.hd-dm{margin-left:12px}}
.dm.cm{width:320px;max-width:calc(100vw - 32px);padding:16px 20px 12px}
/* The Account menu (UX-13, Juno): Settings, then Sign out below a hairline, in a small panel whose right edge is the
   button's. Settings and Sign out are rare, so two clicks; Your taste stays a one-click link beside it. */
.hd-am-b .hd-dm-b{flex:none}/* Discover's own caret box (44 px, -4 px), so glyph, size and gap match (Juno) */
.hd-am-b[aria-expanded='true'] .hd-dm-b svg{transform:rotate(180deg)}
.hd-am-b:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:2px}
.dm.am{left:auto;right:0;width:200px;padding:8px 0}
.am a,.am button{display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:0 20px;border:0;background:none;color:var(--ink);font-family:inherit;font-weight:600;font-size:15px;line-height:20px;text-align:left;text-decoration:none;cursor:pointer}
.am button{border-top:1px solid var(--rule)}
@media (hover:hover){.am a:hover,.am button:hover{text-decoration:underline;text-underline-offset:3px}}
.am a:focus-visible,.am button:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.cm-h{margin:0 0 4px;font:600 13px/18px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.cm-list,.cm-ways{list-style:none;margin:0;padding:0}
.hd .cm .cm-row,.cm .cm-row{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:52px;margin:0;padding:6px 0;border:0;border-top:1px solid var(--rule);background:none;font:inherit;color:var(--ink);text-align:left;text-decoration:none;cursor:pointer}
.hd .cm .cm-list li:first-child .cm-row,.cm .cm-list li:first-child .cm-row{border-top:0}
.cm-row[aria-disabled="true"]{cursor:default}
.cm-row[aria-disabled="true"] .cm-club{color:var(--mut)}
.cm-i{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--rule);border-radius:var(--r-control,8px);font:500 15px/1 var(--font-display,Newsreader,serif);color:var(--ink)}
.cm-img{padding:0;object-fit:cover}
.cm-n{flex:1;min-width:0}
.cm-club{display:block;font:600 16px/22px var(--font-ui,'Public Sans',system-ui,sans-serif);overflow-wrap:anywhere}
.cm-next{display:block;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.cm-cur{flex:none;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
@media (hover:hover){.cm-row:not([aria-disabled="true"]):hover .cm-club,.cm-way:hover{text-decoration:underline;text-underline-offset:3px}}
.cm-note{display:flex;align-items:center;min-height:52px;margin:0;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.cm-err{margin:0;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--err,#b3261e)}
.cm-err:empty{display:none}
@media (prefers-color-scheme:dark){.cm-err{color:var(--err,#f2b8b5)}}
.cm-ways{margin-top:8px;padding-top:4px;border-top:1px solid var(--rule)}
.hd .cm .cm-way,.cm .cm-way{display:flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-decoration:none}
.cm-row:focus-visible,.cm-way:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.cm-ways.cm-again{margin-top:0;padding-top:0;border-top:0}
.cm .cm-try{width:100%;background:none;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
.pm-cl{display:flex;align-items:center;border-bottom:1px solid var(--rule)}
.hd .pm .pm-cl .pm-a{flex:1;width:auto;border-bottom:0}
/* The chevron's mark sits where Genres' does (summary::after, 4px in from the column's edge): Vera's 2px rule. */
.pm-cb{flex:none;display:inline-flex;align-items:center;justify-content:flex-end;width:44px;height:44px;margin-right:0;padding:0 4px 0 0;border:0;border-radius:var(--r-control,8px);background:none;color:var(--ink);cursor:pointer}
.pm-cb::after{content:'';width:8px;height:8px;margin-top:-4px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg)}
.pm-cb[aria-expanded="true"]::after{margin-top:4px;transform:rotate(225deg)}
.pm-cl:has(.pm-cb[aria-expanded="true"]){border-bottom-color:transparent}
.pm-cm{padding-bottom:12px;border-bottom:1px solid var(--rule)}
.pm-cm[hidden]{display:none}
@media (max-width:899px){
  .hd-m{display:inline-flex;margin-left:4px}
  /* Signed in on a phone the header keeps My books only; Your taste, Settings and Sign out are in the menu (Juno, #304; M3). */
  .hd-in > .hd-taste,.hd-in > .hd-am{display:none !important}
}
@media (min-width:900px){
  .pm{display:none !important}
}
@media (prefers-reduced-motion:reduce){
  .hd-dm-b svg{transition:none}
}

/* ---- The search sheet (SPEC-DISCOVER-SYSTEM §4): full screen on a phone, a 640 px panel under the header on a wide
   screen. Before typing: Recent searches, Ways in, Subjects. Typing: the grouped results (§5). ---- */
.ss{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--bg);color:var(--ink);overflow:hidden;font:400 16px/1.5 var(--font-ui,'Public Sans',system-ui,sans-serif)}
.ss[open]{display:flex;flex-direction:column}
.ss::backdrop{background:transparent}
.ss-f{flex:none;display:flex;align-items:center;gap:8px;height:64px;padding:0 9px 0 20px;border-bottom:1px solid var(--rule)}
/* The field keeps its 1 px border at rest, the icon inside it (Juno, #347). */
.ss-box{flex:1;min-width:0}/* the box is the search field below (.sf) */
.ss-x{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 8px;border:0;background:none;font:400 16px/24px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);cursor:pointer;border-radius:var(--r-control,8px)}
.ss-x:focus-visible,.ss a:focus-visible,.ss button:focus-visible,.ss summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ss-b{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 32px}
.ss-sec,.ss-g{margin-top:20px}
.ss-g + .ss-g{padding-top:16px;border-top:1px solid var(--rule)}
.ss h2.sh{margin:0 0 8px;font:500 22px/28px var(--font-display,Newsreader,serif);letter-spacing:-.01em;color:var(--ink)}
.ss-h{display:flex;align-items:center;justify-content:space-between}
.ss-h h2.sh{margin:0}
.ss ul{list-style:none;margin:0;padding:0}
/* Before typing (SPEC-SEARCH-BAR §3): small muted headings, then Recent, Try and Browse as rows, ruled between. */
.ss-home h2.sh{margin:0 0 2px;font:600 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);letter-spacing:0;color:var(--mut)}
.ss-home .ss-sec{margin-top:24px}
.ss-recent li,.ss-tries li{display:flex;align-items:center;border-top:1px solid var(--rule)}
.ss-recent li:first-child,.ss-tries li:first-child{border-top:0}
.ss-recent a,.ss-tries a{flex:1;min-width:0;display:flex;align-items:center;gap:14px;min-height:48px;padding:2px 0;font:400 16px/22px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-decoration:none}
.ss-recent a span,.ss-tries a span{min-width:0;overflow-wrap:anywhere}
.ss-recent a svg,.ss-tries a svg{flex:none;width:20px;height:20px;color:var(--mut)}
.ss-rx{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-12px;padding:0;border:0;border-radius:var(--r-control,8px);background:none;color:var(--mut);cursor:pointer}
@media (hover:hover){.ss-rx:hover{color:var(--ink)}}
@media (hover:hover){.ss-recent a:hover span,.ss-tries a:hover span,.ss-more a:hover{text-decoration:underline;text-underline-offset:3px}}
/* Browse: the lead eight with their counts in two columns, then "All 19 genres" across both. */
.ss-browse .ss-gn{row-gap:0}
.ss-browse .ss-gn li:nth-child(-n+2){border-top:0}
.ss-browse .ss-gn a{justify-content:space-between;gap:8px;min-height:48px;font-size:16px;line-height:22px}
.ss-browse .sj-n{flex:none;font-variant-numeric:tabular-nums;color:var(--mut)}
.ss-browse .sj-all-li{grid-column:1/-1;border-top-color:color-mix(in srgb,var(--mut) 45%,var(--rule))}
.ss-browse .sj-all{justify-content:space-between}
.ss-browse .sj-all::after{content:'';flex:none;width:7px;height:7px;margin-right:4px;border-top:1.6px solid currentColor;border-right:1.6px solid currentColor;transform:rotate(45deg)}
/* Ways in, one line of plain links (on a phone the sheet is still its shortest path). */
.ss-wl{display:flex;flex-wrap:wrap;column-gap:20px}
.ss-wl a{display:inline-flex;align-items:center;min-height:44px;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px}
@media (hover:hover){.ss-wl a:hover{text-decoration-color:currentColor}}
/* The compact book row (§5): a 48 x 72 cover, title, byline, proof line; the whole row is the link. */
/* As you type (SPEC-SEARCH-BAR §4): small muted headings, Top result, Books, Go to, then Ask and See all. Each row is
   an option of one listbox; the highlighted one (Up and Down, or the pointer) takes a soft fill that bleeds 12 px past
   the text on both sides, drawn on every row at rest so nothing moves. Only what matches the typing is semi-bold. */
.ss-res h2.sh{margin:0 0 2px;font:600 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);letter-spacing:0;color:var(--mut)}
.ss-res .ss-g{margin-top:16px}
.ss-res .ss-g + .ss-g{padding-top:0;border-top:0}
.ss-o{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:48px;margin:0 -12px;padding:6px 12px;border-radius:var(--r-control,8px);text-decoration:none;color:var(--ink)}
.ss-o[aria-selected="true"]{background:color-mix(in srgb,var(--ink) 7%,transparent)}
@media (hover:hover){.ss-o:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}}
.ss-o[aria-selected="true"]{outline:2px solid transparent}/* forced colours keep a visible highlight */
.ss-tx{min-width:0;flex:1}
.ss-m{font-weight:600}
.ss .cr .cv-box{flex:none;width:32px;height:48px;min-width:0;border-radius:2px;overflow:hidden}
.ss .cr-top .cv-box{width:44px;height:66px}
/* F1 (Juno, Vera's P3 on #728): People and Picks by {name} share one 40 px media column and a 16 px gap, the 32 px covers
   left in it, so a person's name and the pick titles under it start at the same x. */
.ss-g[aria-labelledby="ss-gp"] .ss-o,.ss-g[aria-labelledby="ss-gk"] .ss-o,.ss:has(.ss-g[aria-labelledby="ss-gp"]) .ss-g[aria-labelledby="ss-gb"] .ss-o{gap:16px}
.ss-g[aria-labelledby="ss-gk"] .cr .cv-box,.ss:has(.ss-g[aria-labelledby="ss-gp"]) .ss-g[aria-labelledby="ss-gb"] .cr .cv-box{margin-right:8px}
/* At this size a missing cover is its tone and the title-block mark (R3-93): the title and author beside it carry the row (§4). */
.ss .cr .cv-none > *{display:none}
.cr-t{display:block;font:400 16px/22px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);overflow-wrap:anywhere}
.cr-top .cr-t{font:500 19px/24px var(--font-display,Newsreader,serif);letter-spacing:-.005em}
.cr-by,.cr-p{display:block;margin-top:2px;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut);overflow-wrap:anywhere}
.cr-p.ev{color:var(--ink)}
.ss-go-t{display:block;font:400 16px/22px var(--font-ui,'Public Sans',system-ui,sans-serif);overflow-wrap:anywhere}
.ss-go-k{display:block;margin-top:2px;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.ss-go-n{flex:none;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);font-variant-numeric:tabular-nums;color:var(--mut)}
/* A person's monogram tile in search (F1, Juno on #728), the /people cards' tile at 40 px, on every page this loads. */
.mono.mono-40{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border-radius:2px;background:#3a3f5a;color:#f4f4f0}
.mono.mono-40 b{font:500 17px/1 var(--font-display,Newsreader,serif);letter-spacing:.02em}
.ss-end{margin-top:12px;padding-top:4px;border-top:1px solid var(--rule)}
.ss-end .ss-o{font:600 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif)}
/* S3: a sentence's Ask Stoa row leads the list, so it has no rule over it. */
.ss-end.ss-ask{margin-top:0;padding-top:0;border-top:0}
/* "Searching" sits in a strip the panel always keeps at its top, so it appears and goes without moving anything
   (layout shift 0, Vera on #478). */
.ss-res{position:relative;padding-top:20px}
.ss-res > :first-child,.ss-res > :first-child > .ss-g:first-child,.ss-res > .ss-wait + *,.ss-res > .ss-wait + * > .ss-g:first-child{margin-top:0}
.ss-wait{position:absolute;top:0;left:0;margin:0;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.ss-read{margin:12px 0 0;font:400 14px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.ss-more a{display:flex;align-items:center;min-height:44px;font:600 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);text-decoration:none}
.ss-none{margin:20px 0 0;font:400 18px/24px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink)}
.ss-try{margin:4px 0 0;font:400 15px/20px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
.ss-try a{color:var(--ink);font-weight:600}
html.ss-open,html.ss-open body{overflow:hidden}
/* A wide screen (SPEC-SEARCH-BAR §3): the panel hangs under the bar that opened it (search-field.js sets where and
   how wide), the bar keeps the caret, and the panel's own field is not shown. Nothing is greyed and nothing in the
   header is covered. Not modal, so it needs its own layer. */
@media (min-width:900px){
  .ss.ss-under{position:fixed;inset:auto;top:var(--ss-top,72px);left:var(--ss-left,16px);right:auto;z-index:40;width:var(--ss-w,520px);height:auto;max-height:calc(100vh - var(--ss-top,72px) - 16px);border:1px solid var(--rule);border-radius:var(--r-card,12px);box-shadow:0 1px 2px rgba(0,0,0,.06),0 12px 32px -12px rgba(0,0,0,.24)}
  .ss-under .ss-f{display:none}
  .ss-under .ss-b{max-height:calc(100vh - var(--ss-top,72px) - 18px);padding-top:8px}
}

/* The search field (SPEC-SEARCH-BAR §2): one box for every search bar, on any element with class "sf" that holds
   discover-parts.mjs searchField(). 52 px, 44 in the desktop header (.sf-hd). No button at rest; with text, a clear
   and the arrow that submits, shown by CSS alone. Focus is a 2 px ink border drawn inward, so nothing moves. It has
   its own field, border and arrow colours because the header's tokens stop at --bg, --ink, --mut and --rule. */
.sf{--sf-field:#fff;--sf-line:#c6c6be;--sf-go:var(--fill,#2f44b5);--sf-go-ink:var(--on-fill,#fff);display:flex;align-items:center;box-sizing:border-box;height:52px;padding:0 5px 0 18px;border:1px solid var(--sf-line);border-radius:var(--r-control,8px);background:var(--sf-field);color:var(--mut);cursor:text}
@media (prefers-color-scheme:dark){.sf{--sf-field:#1c1d22;--sf-line:#44474d;--sf-go:var(--fill,#a8bbf0);--sf-go-ink:var(--on-fill,#0f1a3a)}}
.sf:focus-within{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.sf > svg{flex:none;width:20px;height:20px;margin-right:12px}
.sf:focus-within > svg{color:var(--ink)}
.sf input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;background:none;font:400 17px/24px var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--ink);outline:none;-webkit-appearance:none;appearance:none}
.sf.sf input:focus-visible{outline:none}
.sf input::-webkit-search-cancel-button,.sf input::-webkit-search-decoration{display:none;-webkit-appearance:none}
.sf input::placeholder{color:var(--mut);opacity:1}
.sf-x,.sf-go,.sf-k{display:none;flex:none;align-items:center;justify-content:center;box-sizing:border-box;padding:0}
.sf input:not(:placeholder-shown) ~ .sf-x,.sf input:not(:placeholder-shown) ~ .sf-go{display:inline-flex}
.sf-x{width:44px;height:44px;margin-right:8px;border:0;border-radius:var(--r-control,8px);background:none;color:var(--mut);cursor:pointer}
@media (hover:hover){.sf-x:hover{color:var(--ink)}}
.sf-go{width:44px;height:44px;border:0;border-radius:var(--r-control,8px);background:var(--sf-go);color:var(--sf-go-ink);cursor:pointer}
.sf-x:focus-visible,.sf-go:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.sf-k{width:24px;height:24px;margin-right:9px;border:1px solid var(--sf-line);border-radius:var(--r-control,8px);font:400 13px/1 var(--font-ui,'Public Sans',system-ui,sans-serif);color:var(--mut)}
@media (min-width:900px) and (hover:hover){.sf:not(.sf-hd) input:placeholder-shown:not(:focus) ~ .sf-k{display:inline-flex}}
/* The header bar gives way to the links below 1100 px: no "/" hint there, and tighter sides below 1024, so
   "Search books" still fits whole at 900 (Vera, #432). */
@media (min-width:1100px) and (hover:hover){.sf-hd input:placeholder-shown:not(:focus) ~ .sf-k{display:inline-flex}}
.sf-hd{height:44px;padding:0 4px 0 14px;border-radius:var(--r-control,8px)}
.sf-hd input{font-size:16px}
/* In the 44 px bar both buttons are 44 x 44 boxes (Vera S1, Nov 13), overlapping the bar's 1 px border so its height
   holds; the arrow's visible square stays 34 px where it was, drawn by ::before, and its focus ring rings that square. */
.sf-hd .sf-go{position:relative;width:44px;height:44px;margin:-1px -4px -1px 0;border-radius:var(--r-control,8px);background:none}
.sf-hd .sf-go::before{content:'';position:absolute;inset:5px 4px 5px 6px;border-radius:var(--r-control,8px);background:var(--sf-go)}
.sf-hd .sf-go > svg{position:relative;left:1px}
.sf-hd .sf-go:focus-visible{outline:none}
.sf-hd .sf-go:focus-visible::before{outline:2px solid var(--ink);outline-offset:2px}
.sf-hd .sf-x{height:44px;margin:-1px 4px -1px 0}
@media (max-width:1023px){.sf-hd{padding-left:10px}.sf-hd > svg{margin-right:6px}}

/* ---- Previous and Next on a sideways row (UX-AUDIT-2 PL15; row-arrows.js): desktop with a hovering pointer only, right
   of "See all" in the row head, 44 px round icon buttons, disabled at each end; none on touch, none while the row fits ---- */
.row-arrows{display:none}
@media (min-width:900px) and (hover:hover){
.sec-h.has-arrows{align-items:center}
.sec-h.has-arrows > :first-child{margin-right:auto}
/* R3-80: a Gallery rail's head (author, book and list pages, section[data-rail]) holds the arrows' room from the first
   paint: 44 px tall, centred, and a 96 px spacer (two 44 px arrows and their 8 px gap) where the arrows will sit, so
   adding them moves neither the rail nor See all. The spacer stays while the arrows are hidden (a row that fits). */
section[data-rail]:not(:has(.rail-arrows)) > .sec-h{min-height:44px;align-items:center}
section[data-rail]:not(:has(.rail-arrows)) > .sec-h > :first-child{margin-right:auto}
section[data-rail]:not(:has(.rail-arrows)) > .sec-h:not(:has(> .row-arrows:not([hidden])))::after{content:"";flex:none;width:96px}
/* VB-56: home's sideways rows (Best, subjects, rails, paths) hold the same room from the first paint as R3-80 above, so the
   arrows arriving after parse no longer grow each head 2 px (CLS 0.06 at 1366) or slide See all 112 px left. */
.dh-home > section:has(.rail, .dh-subj, .path) > .sec-h{min-height:44px;align-items:center}
.dh-home > section:has(.rail, .dh-subj, .path) > .sec-h > :first-child{margin-right:auto}
.dh-home > section:has(.rail, .dh-subj, .path) > .sec-h:not(:has(> .row-arrows:not([hidden])))::after{content:"";flex:none;width:96px}
.row-arrows:not([hidden]){display:inline-flex;flex:none;gap:8px}
.row-arrow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--rule);border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.row-arrow:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 7%,transparent)}
.row-arrow:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.row-arrow:disabled{opacity:.35;cursor:default}
}

/* shared/discover/site-footer.css */
.ft{border-top:1px solid var(--rule);padding:32px 0 48px;margin-top:24px}
.ft-in{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut);display:flex;gap:32px;align-items:center;flex-wrap:wrap}
.ft-tag{margin:0;color:var(--mut);font-size:15px;flex:1}
.ft nav{display:flex;flex-wrap:wrap;gap:0 24px;font-size:15px}
.ft nav a{display:inline-block;min-width:44px;color:var(--mut);text-decoration:none;padding:12px 6px;margin-inline:-6px}
@media (hover:hover){.ft nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}}
/* A short page still ends at the fold: its main is a screen less the 65 px header and the footer's 24 px margin, so the footer starts at the fold (Juno). */
body > .hd ~ main{min-height:calc(100svh - 89px)}
