/* Starlight Menagerie encyclopedia: the field-journal book (sm-book.js).
   A keeper's notebook open on a desk under Samhain: aged paper, ink, gold leaf, a night sky.
   Everything is scoped under .smb and prefixed with .editorial-page so editorial.css cannot
   reach in. Without JavaScript the book stays hidden and the plain entry list shows instead. */

.smb { display: none; }
.smb-on .smb { display: block; }
.smb-on .sm-static { display: none; }

.smb {
  --paper: #f4ead3; --paper-2: #eadbbb; --paper-edge: #d8c39b;
  --ink: #2a2017; --ink-soft: #5b4a37; --ink-faint: #8a785f;
  --gold: #c99a3e; --gold-soft: #e7c47a; --leather: #15302f; --leather-2: #0e2423;
  --sky: #070b16; --w: #e7c47a;
  --wd: color-mix(in srgb, var(--w) 48%, #2a2017);
  margin: 2.5rem 0 0; scroll-margin-top: 1rem;
}

/* ------------------------------------------------------------ the night outside the window */
.editorial-page .smb-sky {
  position: relative; overflow: hidden; padding: clamp(1rem, 3vw, 2rem); border-radius: 14px;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 8%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 22%, #fffc 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 34%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 6%, #fffb 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 4%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 28%, #fff5 50%, transparent 51%),
    radial-gradient(900px 420px at 100% -12%, rgba(255, 140, 70, .30), transparent 62%),
    radial-gradient(700px 500px at 0% 110%, rgba(40, 90, 110, .35), transparent 60%),
    linear-gradient(180deg, #0a1022 0%, var(--sky) 55%, #0b0f14 100%);
  color: #efe6d2;
}
/* Samhain, the gas giant, rising behind the book */
.editorial-page .smb-sky::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -330px; top: -560px; border-radius: 50%; pointer-events: none;
  background:
    repeating-linear-gradient(-14deg, rgba(120, 50, 20, .0) 0 22px, rgba(120, 50, 20, .22) 22px 30px, rgba(255, 210, 160, .12) 30px 44px),
    radial-gradient(circle at 38% 62%, #f6b77a, #d7743a 48%, #8a3a1c 76%, #3a1708 100%);
  box-shadow: 0 0 80px 10px rgba(255, 140, 70, .25);
  opacity: .9;
}
.editorial-page .smb-sky > * { position: relative; }

.editorial-page .smb-head { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.editorial-page .smb .smb-title { margin: 0; max-width: none; font-family: var(--editorial-serif); font-size: clamp(1rem, 2.4vw, 1.25rem); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); line-height: 1.2; }
.editorial-page .smb .smb-title span { display: block; font-size: .62em; letter-spacing: .3em; color: #cdbb94; }
.editorial-page .smb-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.editorial-page .smb-jump { font: inherit; font-size: .92rem; padding: .45rem .75rem; min-width: 12rem; border: 1px solid rgba(231, 196, 122, .45); border-radius: 999px; background: rgba(8, 12, 22, .65); color: #f4ead3; }
.editorial-page .smb-jump::placeholder { color: #a99a7c; }
.editorial-page .smb-btn { font: inherit; font-size: .88rem; padding: .45rem .9rem; border: 1px solid rgba(231, 196, 122, .55); border-radius: 999px; background: transparent; color: var(--gold-soft); cursor: pointer; }
.editorial-page .smb-btn:hover { background: rgba(231, 196, 122, .12); }

/* habitat ribbons, like bookmarks along the top of the book */
.editorial-page .smb-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: 0 .25rem .1rem; scrollbar-width: thin; }
.editorial-page .smb-tabs button {
  --wd: color-mix(in srgb, var(--w) 40%, #1a140e);
  flex: none; display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .78rem; font-weight: 600; white-space: nowrap;
  padding: .45rem .7rem .55rem; border: 0; border-radius: 6px 6px 0 0; cursor: pointer;
  background: color-mix(in srgb, var(--w) 18%, #10161f); color: #e8dcc2; transform: translateY(4px); transition: transform .15s, background .15s;
}
.editorial-page .smb-tabs button:hover { transform: translateY(1px); }
.editorial-page .smb-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); transform: none; }
.smb-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--w); box-shadow: 0 0 6px var(--w); flex: none; }
.smb-tabs [aria-selected="true"] .smb-dot { box-shadow: none; background: var(--wd); }

/* ------------------------------------------------------------ the book */
.editorial-page .smb-book {
  display: grid; grid-template-columns: 1fr 1fr; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, var(--leather), var(--leather-2)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(231, 196, 122, .25);
}
.editorial-page .smb-page {
  position: relative; min-width: 0; padding: clamp(1rem, 2.6vw, 2rem); color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(120, 85, 35, .16)),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.editorial-page .smb-left { border-radius: 6px 0 0 6px; box-shadow: inset -26px 0 30px -22px rgba(70, 45, 15, .55); }
.editorial-page .smb-right { border-radius: 0 6px 6px 0; box-shadow: inset 26px 0 30px -22px rgba(70, 45, 15, .55); }
.editorial-page .smb-left::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 2px; background: rgba(70, 45, 15, .25); }

/* the specimen plate */
.editorial-page .smb-plate {
  position: relative; aspect-ratio: 1 / 1; margin: 0; border: 1px solid rgba(42, 32, 23, .55); outline: 1px solid rgba(42, 32, 23, .25); outline-offset: 4px;
  background: radial-gradient(70% 60% at 50% 45%, #fbf4e3, #ecdcb8 75%, #e1cc9f); overflow: hidden; transition: background .4s;
}
.editorial-page .smb-plate[data-mode="night"] { background: radial-gradient(70% 60% at 50% 40%, #182235, #0b111d 70%, #06090f); border-color: rgba(231, 196, 122, .45); }
.editorial-page .smb-plate[data-mode="sketch"] { background: linear-gradient(180deg, #f6eedb, #efe3c7); }
.smb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.smb-canvas:active { cursor: grabbing; }
.smb-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.smb-no3d .smb-still, .smb-failed .smb-still, .smb-photo .smb-still { opacity: 1; }
.smb-no3d .smb-canvas, .smb-photo .smb-canvas { visibility: hidden; }
.smb-loading .smb-still { opacity: .35; filter: sepia(.6) blur(2px); }
.editorial-page .smb .smb-status { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; max-width: none; text-align: center; font-family: var(--editorial-serif); font-style: italic; font-size: .95rem; color: var(--ink-soft); pointer-events: none; }
.smb-plate[data-mode="night"] .smb-status { color: #cdbb94; }
.smb-hint { position: absolute; right: .7rem; top: .6rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); pointer-events: none; transition: opacity .6s; }
.smb-touched .smb-hint, .smb-no3d .smb-hint, .smb-photo .smb-hint { opacity: 0; }
.smb-plate[data-mode="night"] .smb-hint { color: #8c8370; }

.editorial-page .smb-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.smb-no3d .smb-controls { display: none; }
.editorial-page .smb-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(42, 32, 23, .45); border-radius: 999px; overflow: hidden; }
.editorial-page .smb-seg:empty { display: none; }
.editorial-page .smb-seg button { font: inherit; font-size: .8rem; padding: .35rem .7rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.editorial-page .smb-seg button + button { border-left: 1px solid rgba(42, 32, 23, .3); }
.editorial-page .smb-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.editorial-page .smb .smb-caption { margin: .9rem 0 .6rem; max-width: none; font-family: var(--editorial-serif); font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.editorial-page .smb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.editorial-page .smb-photos button { padding: 0; border: 1px solid rgba(42, 32, 23, .35); background: none; cursor: zoom-in; }
.editorial-page .smb-photos button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.editorial-page .smb-photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: sepia(.15); }

/* the entry */
.smb-entry { transition: opacity .25s; }
.smb-in-r { animation: smbInR .35s ease-out; }
.smb-in-l { animation: smbInL .35s ease-out; }
@keyframes smbInR { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes smbInL { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.editorial-page .smb .smb-entry p, .editorial-page .smb .smb-entry li { max-width: none; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.editorial-page .smb .smb-world { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wd); }
.smb-plate-no { margin-left: auto; color: var(--ink-faint); letter-spacing: .08em; }
.editorial-page .smb .smb-entry h2 { margin: 0 0 .2rem; padding: 0; border: 0; font-family: var(--editorial-serif); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; color: var(--ink); }
.editorial-page .smb .smb-basis { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; }
.editorial-page .smb .smb-basis i { font-family: var(--editorial-serif); }
.editorial-page .smb .smb-note { margin: 1.1rem 0 1.2rem; padding: .9rem 1.1rem; border: 0; border-left: 3px solid var(--wd); background: rgba(255, 250, 235, .55); }
.editorial-page .smb .smb-note p { margin: 0; font-family: var(--editorial-serif); font-style: italic; font-size: 1.18rem; line-height: 1.45; }
.editorial-page .smb .smb-note cite { display: block; margin-top: .35rem; font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.editorial-page .smb .smb-entry h3 { margin: 1.2rem 0 .3rem; padding: 0 0 .25rem; border: 0; border-bottom: 1px solid rgba(42, 32, 23, .2); font-family: var(--editorial-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a5a1c; }
.editorial-page .smb .smb-entry .sm-tag { margin-top: .1rem; }

.editorial-page .smb-meters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; margin: .8rem 0 0; }
.editorial-page .smb-meters div { min-width: 0; }
.editorial-page .smb-meters dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.editorial-page .smb-meters dd { margin: .2rem 0 0; font-size: .9rem; color: var(--ink); }
.smb-bar { display: block; height: 6px; margin: .25rem 0 .3rem; border-radius: 3px; background: rgba(42, 32, 23, .12); overflow: hidden; }
.smb-bar span { display: block; height: 100%; background: linear-gradient(90deg, #b8892f, #9c2f1f); border-radius: 3px; }
.smb-pips { display: inline-flex; gap: 3px; margin-right: .4rem; vertical-align: middle; }
.smb-pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--wd); }
.smb-count { font-family: var(--editorial-serif); font-size: 1.3rem; }

.editorial-page .smb-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; }
.smb-size { display: block; width: 100%; height: auto; }
.smb-sz-grid { stroke: rgba(42, 32, 23, .12); stroke-width: 1; }
.smb-sz-ground { stroke: rgba(42, 32, 23, .6); stroke-width: 1.5; }
.smb-sz-t { font: 600 11px var(--editorial-sans); fill: var(--ink-faint); }
.smb-sz-box { fill: color-mix(in srgb, var(--w) 30%, transparent); stroke: var(--wd); stroke-width: 1.5; stroke-dasharray: 4 3; }
.smb-sz-person { fill: rgba(42, 32, 23, .55); }
.editorial-page .smb-mm { display: block; color: var(--ink); text-decoration: none; font-size: .85rem; }
.editorial-page .smb-mm svg { display: block; width: 100%; height: auto; margin-bottom: .3rem; }
.smb-mm-hull { fill: rgba(42, 32, 23, .06); stroke: rgba(42, 32, 23, .45); stroke-width: 3; }
.smb-mm-off { fill: rgba(42, 32, 23, .1); stroke: rgba(42, 32, 23, .25); stroke-width: 2; }
.smb-mm-on { fill: var(--w); stroke: var(--wd); stroke-width: 6; }
.editorial-page .smb-mm:hover span { text-decoration: underline; }

.editorial-page .smb-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.editorial-page .smb .smb-rel li { font-size: .78rem; line-height: 1.25; }
.editorial-page .smb-rel a { display: block; color: var(--ink); text-decoration: none; }
.editorial-page .smb-rel img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .25rem; border: 1px solid rgba(42, 32, 23, .3); filter: sepia(.2); }
.editorial-page .smb-rel a:hover { color: #8a5a1c; }
.editorial-page .smb .smb-more { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-soft); }
.editorial-page .smb .smb-entry a { color: #7a4b14; }

/* page turns */
.editorial-page .smb-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.editorial-page .smb-turn { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; font: inherit; font-size: .9rem; padding: .5rem .9rem; border: 1px solid rgba(231, 196, 122, .45); border-radius: 999px; background: rgba(8, 12, 22, .5); color: #f4ead3; cursor: pointer; }
.editorial-page .smb-turn:hover { border-color: var(--gold-soft); }
.smb-turn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.smb-folio { font-family: var(--editorial-serif); font-style: italic; color: #cdbb94; white-space: nowrap; }

/* contents */
.smb-contents-dlg { width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 0; border: 0; border-radius: 10px; background: linear-gradient(180deg, #f4ead3, #eadbbb); color: #2a2017; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.smb-contents-dlg::backdrop { background: rgba(5, 8, 14, .75); }
.editorial-page .smb-contents-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: #f4ead3; border-bottom: 1px solid rgba(42, 32, 23, .2); }
.editorial-page .smb .smb-contents-head h2 { margin: 0; padding: 0; border: 0; font-family: var(--editorial-serif); color: #2a2017; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1rem; }
.smb-contents-head .smb-btn { color: #2a2017; border-color: rgba(42, 32, 23, .45); }
.smb-contents-body { columns: 3 15rem; column-gap: 1.5rem; padding: 1rem 1.25rem 1.5rem; }
.smb-contents-body section { break-inside: avoid; margin-bottom: 1rem; }
.editorial-page .smb .smb-contents-body h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; padding: 0; border: 0; font-family: var(--editorial-serif); font-size: 1.05rem; color: #2a2017; }
.smb-contents-body h3 small { font-family: var(--editorial-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8a785f; }
.smb-contents-body ol { margin: 0; padding-left: 2.1rem; }
.editorial-page .smb .smb-contents-body li { font-size: .92rem; line-height: 1.5; color: #8a785f; }
.smb-contents-body a { color: #2a2017; text-decoration: none; }
.smb-contents-body a:hover, .smb-contents-body a:focus { text-decoration: underline; }

/* on this page */
.editorial-page .smb-onpage { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; font-size: .92rem; }
.smb-cover { margin: 0 0 1.5rem; }
.editorial-page.sm-page .article-content figure.smb-cover { margin: 0 0 1.5rem; }
.smb-cover img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* browse all 53 */
.editorial-page .smb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.editorial-page .smb-card { margin: 0; border: 1px solid var(--editorial-rule); background: var(--editorial-paper-bright); border-top: 3px solid color-mix(in srgb, var(--w) 70%, #2a2017); }
.editorial-page .smb-card a { display: block; color: inherit; text-decoration: none; }
.editorial-page .smb-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #10151b; }
.editorial-page .smb-card-text { display: block; padding: .55rem .65rem .7rem; }
.editorial-page .smb-card-text > span { display: block; font-size: .8rem; color: var(--editorial-muted); line-height: 1.35; }
.editorial-page .smb-card-text .smb-card-plate { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.editorial-page .smb-card strong { display: block; font-family: var(--editorial-serif); font-size: 1.02rem; line-height: 1.2; margin: .1rem 0; color: var(--editorial-ink); }
.editorial-page .smb-card .sm-tag { display: inline-block; margin-top: .35rem; font-size: .7rem; }
.editorial-page .smb-card:hover { border-color: var(--editorial-blue); }
.editorial-page.sm-page .article-content ul.smb-grid li { font-size: inherit; line-height: 1.35; }
.editorial-page.sm-page .article-content .smb-browse > p { max-width: 46rem; }
.smb-sort { min-width: 0; width: auto; }

/* without the book: the plain list */
.sm-static .sm-static-hab { margin-top: 2rem; }
.sm-entry-name { margin: 0; font-family: var(--editorial-serif); font-size: 1.4rem; }

/* ------------------------------------------------------------ phones and small tablets */
@media (max-width: 860px) {
  .editorial-page .smb-book { grid-template-columns: 1fr; padding: 8px; }
  .editorial-page .smb-left { border-radius: 6px 6px 0 0; box-shadow: inset 0 -22px 26px -22px rgba(70, 45, 15, .5); }
  .editorial-page .smb-right { border-radius: 0 0 6px 6px; box-shadow: inset 0 22px 26px -22px rgba(70, 45, 15, .5); }
  .editorial-page .smb-left::after { display: none; }
  .editorial-page .smb-plate { aspect-ratio: 4 / 3.4; }
  .editorial-page .smb-sky::before { width: 520px; height: 520px; right: -260px; top: -420px; }
}
@media (max-width: 560px) {
  .editorial-page .smb-sky { padding: .7rem; border-radius: 10px; margin-inline: -.4rem; }
  .editorial-page .smb-head { gap: .6rem; }
  .editorial-page .smb-tools { width: 100%; }
  .editorial-page .smb-jump { flex: 1; min-width: 0; }
  .editorial-page .smb-two { grid-template-columns: 1fr; }
  .editorial-page .smb-meters { grid-template-columns: 1fr; }
  .editorial-page .smb-rel { grid-template-columns: repeat(4, 1fr); }
  .smb-turn-name { max-width: 7.5rem; }
  .editorial-page .smb-turn { padding: .5rem .7rem; font-size: .85rem; }
  .editorial-page .smb-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .editorial-page .smb-seg button { padding: .4rem .6rem; }
}
@media (prefers-reduced-motion: reduce) { .smb-in-r, .smb-in-l { animation: none; } .editorial-page .smb-tabs button { transition: none; } }

/* editorial.css spaces every section in an article; inside the book the page sets its own rhythm */
.editorial-page.sm-page .article-content .smb section,
.editorial-page.sm-page .article-content .smb-entry > section { margin: 0; padding: 0; }
.editorial-page.sm-page .article-content .smb-entry > section { margin-top: .2rem; }
.editorial-page.sm-page .article-content .smb-entry .smb-two { margin-top: .6rem; }
/* the plate stays in view while the entry scrolls past it */
@media (min-width: 861px) {
  .editorial-page .smb-left > * { position: relative; }
  .editorial-page .smb-left .smb-sticky { position: sticky; top: 1rem; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.editorial-page .smb-arrow { position: absolute; bottom: .6rem; width: 2.4rem; height: 2.4rem; padding: 0; justify-content: center; font-size: 1.5rem; line-height: 1; border-radius: 50%; background: rgba(244, 234, 211, .85); color: var(--ink); border: 1px solid rgba(42, 32, 23, .4); }
.editorial-page .smb-arrow[data-step="-1"] { left: .6rem; }
.editorial-page .smb-arrow[data-step="1"] { right: .6rem; }
.smb-plate[data-mode="night"] .smb-arrow { background: rgba(10, 15, 25, .7); color: #f4ead3; border-color: rgba(231, 196, 122, .4); }
.editorial-page .smb-arrow:hover { border-color: var(--ink); }
@media (max-width: 560px) {
  .editorial-page .smb-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .editorial-page .smb-jump { grid-column: 1 / -1; width: 100%; }
}

/* ------------------------------------------------------------ ribbons: chevrons, no scrollbar */
.editorial-page .smb-tabbar { position: relative; display: flex; align-items: flex-end; }
.editorial-page .smb-tabs { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding-top: 4px; }
.editorial-page .smb-tabs::-webkit-scrollbar { display: none; }

.editorial-page .smb-chev {
  position: absolute; z-index: 2; bottom: 4px; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center;
  font: 600 1.4rem/1 var(--editorial-sans); border: 1px solid rgba(231, 196, 122, .5); border-radius: 50%;
  background: rgba(8, 12, 22, .9); color: var(--gold-soft); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.editorial-page .smb-chev[hidden] { display: none; }
.editorial-page .smb-chev[data-chev="-1"] { left: -.25rem; }
.editorial-page .smb-chev[data-chev="1"] { right: -.25rem; }
.editorial-page .smb-chev:hover { background: #1a2233; }
.smb-tabbar::before, .smb-tabbar::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 3rem; pointer-events: none; opacity: 0; transition: opacity .2s; }
.smb-tabbar::before { left: 0; background: linear-gradient(90deg, #080c18, transparent); }
.smb-tabbar::after { right: 0; background: linear-gradient(-90deg, #080c18, transparent); }
.smb-fade-l::before, .smb-fade-r::after { opacity: 1; }

/* the header buttons sit over the gas giant: give them a solid ground so they read */
.editorial-page .smb-btn { background: rgba(8, 12, 22, .72); color: #f1d9a2; }
.editorial-page .smb-btn:hover { background: rgba(20, 28, 44, .9); }
.smb-fs-off { display: none; }
.smb-full .smb-fs-on { display: none; }
.smb-full .smb-fs-off { display: inline; }

/* ------------------------------------------------------------ full screen */
.smb-locked, .smb-locked body { overflow: hidden; }
.editorial-page .smb.smb-full { position: fixed; inset: 0; z-index: 10000; margin: 0; overflow-y: auto; overscroll-behavior: contain; background: #070b16; }
.smb:fullscreen { overflow-y: auto; background: #070b16; }
.editorial-page .smb-full .smb-sky { min-height: 100%; border-radius: 0; margin: 0; padding: clamp(.8rem, 2vw, 1.5rem) clamp(.8rem, 3vw, 2.5rem); }
.editorial-page .smb-full .smb-head, .editorial-page .smb-full .smb-tabbar, .editorial-page .smb-full .smb-book, .editorial-page .smb-full .smb-foot { max-width: 1500px; margin-left: auto; margin-right: auto; }
.editorial-page .smb-full .smb-head { margin-bottom: .9rem; }
@media (min-width: 861px) {
  .editorial-page .smb-full .smb-book { grid-template-columns: 1.15fr 1fr; }
  .editorial-page .smb-full .smb-plate { aspect-ratio: auto; height: min(calc(100vh - 19rem), 62vw); min-height: 360px; }
}
@media (max-width: 860px) {
  .editorial-page .smb-full .smb-plate { aspect-ratio: auto; height: min(58vh, 120vw); }
}
@media (max-width: 560px) {
  .editorial-page .smb-tools { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .editorial-page .smb-tools .smb-btn { padding: .45rem .3rem; font-size: .8rem; white-space: nowrap; }
}
