/* Isolated reading surface: no fixed, sticky, timed or ornamental navigation. */
.nights-suite {
  --night-ink: #172038; --night-paper: #fffdf6; --night-muted: #475569;
  --night-midnight: #172139; --night-gold: #f1d58b; --night-teal: #09645e;
  color: var(--night-ink); background: var(--night-paper); border-radius: 1rem;
  padding: clamp(.75rem, 2.5vw, 2rem); margin: 0 auto 2rem; max-width: 78rem;
  line-height: 1.6; overflow-wrap: anywhere; box-sizing: border-box;
}
.nights-suite *, .nights-suite *::before, .nights-suite *::after { box-sizing: border-box; min-width: 0; }
.nights-suite :is(h1,h2,h3,p,figure,dl) { margin: 0 0 1rem; max-width: 100%; }
.nights-suite h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.2; font-weight: 700; }
.nights-suite h2 { font-size: 1.45rem; line-height: 1.35; }
.nights-suite h3 { font-size: 1.2rem; line-height: 1.45; }
.nights-suite h1 [lang="ar"] { font-size: .82em; margin-block-start: .6rem; }
.nights-suite [lang="fr"], .nights-suite [lang="ar"] { display: block; }
.nights-suite [lang="fr"] { direction: ltr; text-align: start; }
.nights-suite [lang="ar"] { direction: rtl; text-align: start; letter-spacing: normal; line-height: 1.8; }
.nights-suite span[lang="ar"] { margin-block-start: .3rem; }
.nights-suite a { color: var(--night-teal); text-decoration: underline; text-underline-offset: .2em; }
.nights-suite :is(button, input, a[data-night-link], .nights-breadcrumb a, .nights-source) {
  min-height: 44px; max-width: 100%; font: inherit; font-size: 1rem; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere; border-radius: .65rem;
}
.nights-suite :is(button,a[data-night-link],.nights-breadcrumb a,.nights-source) { padding: .65rem .9rem; }
.nights-suite button { color: var(--night-ink); background: #fff; border: 1px solid #718096; cursor: pointer; box-shadow: none; transform: none; }
.nights-suite button:hover, .nights-suite button:active { background: #e7f2ef; color: var(--night-ink); transform: none; box-shadow: none; }
.nights-suite button:disabled { color: #566171; background: #edf0f2; cursor: not-allowed; opacity: 1; }
.nights-suite :is(a,button,input,summary):focus-visible { outline: 3px solid #1764a4; outline-offset: 3px; box-shadow: 0 0 0 6px var(--night-paper); }
.nights-suite a[data-night-link] { display: inline-flex; flex-direction: column; justify-content: center; border: 1px solid #8c9aab; background: #fff; }
.nights-suite a[data-night-link]:hover { background: #e7f2ef; color: #064b46; }
.nights-suite :is(.nights-actions,.nights-breadcrumb,.nights-scenes,.nights-shelves) { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-block: 1rem; }
.nights-suite .nights-breadcrumb a { display: inline-block; }
.nights-suite .nights-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; background: var(--night-midnight); color: var(--night-paper); border-radius: .85rem; align-items: center; }
.nights-suite .nights-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: .6rem; }
.nights-suite .nights-eyebrow { font-size: .875rem; font-weight: 700; color: var(--night-teal); }
.nights-suite .nights-hero .nights-eyebrow { color: var(--night-gold); }
.nights-suite .nights-intro { padding: 1.25rem 0; border-bottom: 1px solid #aeb9c5; }
.nights-suite .nights-pair { font-size: 1rem; }
.nights-suite .nights-note { color: var(--night-muted); }
.nights-suite .nights-shelves a[aria-current], .nights-suite .nights-scenes a[aria-current] { color: #fff; background: var(--night-teal); border-color: var(--night-teal); text-decoration-thickness: .15em; }
.nights-suite .nights-search { max-width: 44rem; margin-block: 1rem; }
.nights-suite .nights-search label { display: block; font-weight: 600; margin-block-end: .5rem; }
.nights-suite .nights-search > div { display: flex; gap: .75rem; flex-wrap: wrap; }
.nights-suite .nights-search input { flex: 1 1 12rem; width: 100%; color: var(--night-ink); background: #fff; padding: .65rem; border: 1px solid #718096; }
.nights-suite .nights-search button { flex: 0 1 auto; }
.nights-suite .nights-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 20rem),1fr)); gap: 1rem; }
.nights-suite .nights-card { display: flex; flex-direction: column; padding: 1.25rem; background: #f2f5f3; border: 1px solid #aeb9c5; border-block-start: .3rem solid var(--night-teal); border-radius: .8rem; }
.nights-suite .nights-card h3 a { border: 0; padding: 0; border-radius: 0; background: transparent; }
.nights-suite .nights-card > .nights-actions { margin-block-start: auto; padding-block-start: .75rem; }
.nights-suite .nights-card > .nights-actions > * { flex: 1 1 8rem; }
.nights-suite .nights-state { padding: 1.25rem; background: #f5f0df; border: 1px solid #a49a77; border-radius: .7rem; }
.nights-suite .nights-result-count { color: var(--night-muted); }
.nights-suite .nights-reader { max-width: 66rem; margin-inline: auto; }
.nights-suite .nights-prose { max-width: 72ch; margin: 1.5rem auto; font-size: 1.125rem; line-height: 1.9; }
.nights-suite .nights-prose p { margin-block: 0 1.5rem; }
.nights-suite .nights-prose [lang="ar"] { padding-block-start: 1rem; border-block-start: 1px solid #aeb9c5; font-size: 1.08em; line-height: 2; }
.nights-suite .nights-english { direction: ltr; text-align: start; }
.nights-suite .nights-original-title { color: var(--night-muted); }
.nights-suite .nights-source { display: inline-block; }
.nights-suite .nights-choice { margin-block: 1.5rem; padding: 1.25rem; background: #eff5f3; border-radius: .75rem; }
.nights-suite .nights-options { display: grid; gap: .75rem; }
.nights-suite .nights-options button { text-align: start; }
.nights-suite .nights-options button[aria-pressed="true"] { border: 2px solid var(--night-teal); background: #d9ede5; }
.nights-suite :is(.nights-status,.nights-feedback) { min-height: 1.25rem; margin-block: .75rem; color: #164d3d; }
.nights-suite .nights-completed { color: #164d3d; font-weight: 600; }
.nights-suite .nights-speech { padding: 1rem; border: 1px solid #aeb9c5; border-radius: .65rem; }
.nights-suite .nights-speech p { font-size: .9375rem; }
.nights-suite .nights-glossary { margin-block: 1.5rem; }
.nights-suite .nights-glossary dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; }
.nights-suite .nights-glossary dl > div { padding: .75rem; border-inline-start: 3px solid var(--night-teal); background: #f2f5f3; }
.nights-suite .nights-glossary dt { font-weight: 600; }
.nights-suite .nights-glossary dd { margin: .35rem 0 0; }
.nights-suite .nights-local { padding-block-start: 1rem; border-block-start: 1px solid #aeb9c5; margin-block-start: 1.5rem; color: var(--night-muted); font-size: .9rem; }
.nights-suite .nights-offline { padding: .8rem; color: #44360c; background: #fbefc8; }
@media (max-width: 48rem) {
  .nights-suite .nights-hero { grid-template-columns: minmax(0,1fr); padding: 1rem; }
  .nights-suite .nights-hero img { max-height: 18rem; object-fit: contain; }
  .nights-suite :is(.nights-actions,.nights-scenes,.nights-shelves) > * { flex: 1 1 11rem; }
}
@media (forced-colors: active) {
  .nights-suite :is(a,button,input,summary):focus-visible { outline-color: Highlight; box-shadow: none; }
  .nights-suite button[aria-pressed="true"], .nights-suite a[aria-current] { outline: 2px solid Highlight; }
}
