/* Compendium 1.22.0: the search pages of the reference inside the site (/content/2014|2024/…).
   The site's shell (sidebar, top bar) comes by nginx SSI; this file only places the reference part:
   - #dd-landing takes the place and the size of the reader frame inside the site's stage (or the whole page without the shell);
   - the lists of a section and the edition pages, in the reader's colours;
   - the small own menu shown only when the site's shell did not come. */
/* the reader's own Onest, the same three faces as its reference-typography.css (the lists use it too) */
@font-face { font-family: "DD Reference Onest"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/compendium-assets/6a3637f42c071fc30c563f7a3346148d880b834b130d10fb16ce82dec720084f/_next/static/compendium-reference-typography/typography-font.d5ba239ff5ca1d7d.woff2") format("woff2"); }
@font-face { font-family: "DD Reference Onest"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/compendium-assets/6a3637f42c071fc30c563f7a3346148d880b834b130d10fb16ce82dec720084f/_next/static/compendium-reference-typography/typography-font.e92a47192938ba79.woff2") format("woff2"); }
@font-face { font-family: "DD Reference Onest"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/compendium-assets/6a3637f42c071fc30c563f7a3346148d880b834b130d10fb16ce82dec720084f/_next/static/compendium-reference-typography/typography-font.5542019477d4154f.woff2") format("woff2"); }

/* the site's plain rules for headings and form controls (its display serif, gold, line height) stop at the reference
   part: (1,0,0) beats the site's (0,0,1) and loses to every scoped rule of the reader (1,0,1 and more) */
#dd-landing :where(h1, h2, h3, h4, h5, h6) { font-family: inherit; color: inherit; line-height: inherit; text-transform: inherit;
  letter-spacing: inherit; text-wrap: inherit; overflow-wrap: inherit; }
#dd-landing :where(button, input, select, textarea) { font-family: inherit; }
/* the reader's title bar «Справочник D&D» is an h1 there and a paragraph here (one h1 per page): the reader's h1 rules
   for its title bar, measured in the live frame (14px/1.45, 600, no tracking, #F5F1F7). The id twice: the reader's
   scoped size rule for text-[13px] is (2,0,0) here (#dd-landing + its :is(#content-workspace, …)) */
#dd-landing#dd-landing [data-testid="content-top-bar"] p[data-dd-title] { font-family: var(--dd-ref-font, "DD Reference Onest", sans-serif) !important;
  font-size: 0.875rem !important; line-height: 1.45 !important; font-weight: 600 !important; font-style: normal !important;
  letter-spacing: normal !important; text-transform: none; color: #F5F1F7 !important; }

body.dd-landing-page { margin: 0; background: #0E0617; color: #DDD6E2; }
#dd-landing { position: relative; container: landing / inline-size; color-scheme: dark; background: #0E0617; }
.dd-stage #dd-landing { container-type: size; height: 100%; overflow: hidden; }
#dd-landing > .dd-landing-body { margin: 0; height: 100%; }

/* the own menu (only without the site's shell; the shell's head hides it) */
.sp-fallback, .sp-fallback * { font-family: "DD Reference Onest", system-ui, sans-serif; }
.sp-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 16px; background: #130A20;
  border-bottom: 1px solid rgba(218,184,120,.22); font: 600 15px/1.3 "DD Reference Onest", system-ui, sans-serif; }
.sp-fallback a { color: #E5C398; text-decoration: none; }
.sp-fallback a:first-child { color: #F2EBF9; margin-right: auto; font-size: 16px; }
.sp-fallback a:hover { text-decoration: underline; }

/* 1.23.1: a catalog lists every card of its section (up to a thousand); a phone draws only what is near the screen and
   keeps the place of the rest (the typical height of a card of that catalog), so the page is not slower than the reader.
   The cards stay in the page (search engines read them); once drawn, a card keeps its real size (auto). */
#dd-landing :is([data-testid="spell-catalog-grid"], [data-testid="bestiary-results"], [data-testid="items-grid"], [data-testid="class-grid"],
  [data-testid="species-grid"], [data-testid="background-grid"], [data-testid="feat-grid"], [data-testid="glossary-grid"]) > * {
  content-visibility: auto; contain-intrinsic-width: auto none; }
#dd-landing [data-testid="spell-catalog-grid"] > * { contain-intrinsic-height: auto 340px; }
#dd-landing [data-testid="bestiary-results"] > * { contain-intrinsic-height: auto 180px; }
#dd-landing [data-testid="items-grid"] > * { contain-intrinsic-height: auto 205px; }
#dd-landing [data-testid="class-grid"] > * { contain-intrinsic-height: auto 225px; }
#dd-landing [data-testid="species-grid"] > * { contain-intrinsic-height: auto 280px; }
#dd-landing [data-testid="background-grid"] > * { contain-intrinsic-height: auto 330px; }
#dd-landing [data-testid="feat-grid"] > * { contain-intrinsic-height: auto 230px; }
#dd-landing [data-testid="glossary-grid"] > * { contain-intrinsic-height: auto 220px; }
