/* Hermetic Cloud · the Tree of Life entry (assets/tree-life-sheet.js). Every rule is scoped under .tl-sheet, the
   non-modal native dialog the module places beside or over the Tree, so no page rule reaches it and none of its rules
   reach the page (the page's own rules for the docked state live in tree-life.css).
   dock    wider than 900 px: a panel in the right column, the ledger's frame, its body scrolling on its own.
   sheet   900 px and narrower: a bottom sheet at about 46% of the screen with a grab handle, full height on More.
   drawer  over the enlarged drawing on a wide window: a column at the right.
   Inside every mode the entry opens on the card, the title block and the facts; the longer parts are closed folds.
   Tokens and fonts come from styles.css (--paper, --card, --ink, --gold-ink, --line, Cinzel, Newsreader, Archivo,
   Frank Ruhl Libre). */

.tl-sheet{box-sizing:border-box;position:static;inset:auto;display:none;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:1px solid var(--line);border-top:2px solid var(--gold);border-radius:14px;background:var(--card);color:var(--ink);overflow:hidden;container-type:inline-size;container-name:tl-entry;font-family:var(--ff-body);font-size:16.5px;line-height:1.6;font-variant-emoji:text}
.tl-sheet[open]{display:flex;flex-direction:column}
.tl-sheet *{box-sizing:border-box}
.tl-sheet a{color:var(--gold-ink);text-underline-offset:4px}
.tl-sheet a:hover{color:var(--gold)}
.tl-sheet :is(a,button,summary,[tabindex]):not(h2):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.tl-sheet [lang="he"]{font-family:var(--ff-heb);font-weight:300;unicode-bidi:isolate}
.tl-sheet-heb{font-family:var(--ff-heb);font-weight:300;color:var(--gold-ink);margin-left:6px}
.tl-sheet-glyph{font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols","Noto Sans Symbols 2","DejaVu Sans",var(--ff-heb),serif;font-variant-emoji:text}
.tl-sheet-symsvg{display:inline-block;width:1em;height:1em;vertical-align:-.14em;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tl-sheet-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* the dock: in the right column beside the Tree, the height the page gives it */
.tl-sheet[data-mode="dock"]{flex:1 1 auto;min-height:0;width:100%}
.tl-sheet[data-mode="dock"] .tl-sheet-x{display:none}

/* the bottom sheet: the lower part of the screen, the Tree above it still in view and still answering the pointer */
.tl-sheet[data-mode="sheet"]{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:52;width:100%;height:46vh;height:46dvh;border-width:1px 0 0;border-top:2px solid var(--gold);border-radius:16px 16px 0 0;background:var(--paper);box-shadow:0 -12px 44px #0007;transition:height .22s ease}
.tl-sheet[data-mode="sheet"].is-expanded{height:calc(100vh - env(safe-area-inset-top,0px));height:calc(100dvh - env(safe-area-inset-top,0px));border-radius:0}
.tl-sheet.is-dragging{transition:none}
.tl-sheet[data-mode="sheet"] .tl-sheet-body{padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))}

/* the drawer: over the enlarged drawing on a wide window, beside it in the enlarged view's grid */
.tl-sheet[data-mode="drawer"]{grid-column:2;grid-row:2;width:min(460px,42vw);height:auto;min-height:0;border-width:0 0 0 1px;border-top:0;border-radius:0;background:var(--paper)}

/* the bar: '‹ All places' at the left of the dock, More at the left of the bottom sheet, the round controls at the right;
   in the bottom sheet the grab handle sits in the middle of the same 44 px row, over the bar, so the entry starts at once */
.tl-sheet-grab{display:none}
.tl-sheet[data-mode="sheet"] .tl-sheet-grab{position:absolute;top:0;left:50%;z-index:2;display:flex;justify-content:center;align-items:center;width:96px;height:44px;margin-left:-48px;touch-action:none;cursor:grab}
.tl-sheet-grab span{display:block;width:40px;height:4px;border-radius:2px;background:var(--line2)}
.tl-sheet-bar{flex:none;display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 14px 8px 18px;border-bottom:1px solid var(--line)}
.tl-sheet[data-mode="sheet"] .tl-sheet-bar{min-height:44px;height:44px;padding:0 10px 0 16px;touch-action:none}
.tl-sheet[data-mode="sheet"] .tl-sheet-ico{width:32px;height:32px;font-size:18px}
:is(.tl-sheet-back,.tl-sheet-more){flex:none;display:none;appearance:none;-webkit-appearance:none;margin:0;padding:8px 0;min-height:36px;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;font-family:var(--ff-ui);font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--gold-ink);cursor:pointer}
.tl-sheet-back:hover{border-bottom-color:var(--gold)}
/* More and Less: plain quiet text, never a tab; a hairline beneath only under the pointer or the focus */
.tl-sheet-more{padding:6px 2px;font-size:12px;letter-spacing:.04em;text-transform:none;color:var(--mute)}
.tl-sheet-more:is(:hover,:focus-visible){color:var(--ink2);border-bottom-color:var(--line2)}
.tl-sheet[data-mode="dock"] .tl-sheet-back{display:inline-block}
.tl-sheet[data-mode="sheet"] .tl-sheet-more{display:inline-block}
.tl-sheet-controls{display:flex;gap:6px;margin-left:auto}
.tl-sheet-ico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid var(--line2);border-radius:50%;background:transparent;color:var(--ink2);cursor:pointer;font-family:var(--ff-body);font-size:19px;line-height:1}
.tl-sheet-ico:hover:not(:disabled){border-color:var(--gold);color:var(--gold-ink)}
.tl-sheet-ico:disabled{opacity:.35;cursor:default}
.tl-sheet-ico[hidden]{display:none}

/* the body: its own scroll; the card and the title block side by side, the deck switch and caption beneath, the text */
.tl-sheet-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "figure" "deck" "text";align-content:start;padding:20px 22px 28px}
.tl-sheet-body.has-figure{grid-template-columns:clamp(92px,30%,132px) minmax(0,1fr);grid-template-areas:"figure head" "deck deck" "text text";column-gap:16px}
@container tl-entry (min-width:520px){
  .tl-sheet-body{padding:22px 26px 32px}
  .tl-sheet-body.has-figure{grid-template-columns:clamp(150px,36%,210px) minmax(0,1fr);column-gap:22px}
}
.tl-sheet-head{grid-area:head;min-width:0}
.tl-sheet-figure{grid-area:figure;min-width:0}
.tl-sheet-deckrow{grid-area:deck;min-width:0;margin:0 0 6px}
.tl-sheet-text{grid-area:text;min-width:0}

/* the title block: the letter line, the title, the title of the book, the attribution */
.tl-sheet-letter{margin:0 0 8px;font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.tl-sheet-letter [lang="he"]{font-size:18px;letter-spacing:0;color:var(--gold-ink);vertical-align:-2px}
.tl-sheet h2{margin:0 0 8px;font-family:var(--ff-display);font-weight:500;font-size:22px;line-height:1.22;letter-spacing:.015em;color:var(--ink);text-wrap:balance;outline-offset:6px}
@container tl-entry (min-width:520px){.tl-sheet h2{font-size:27px}}
#tl-sheet h2:focus,#tl-sheet h2:focus-visible{outline:none} /* focused only by the module when the entry opens; no ring (the id outweighs the page's focus rule) */
.tl-sheet h2 [lang="he"]{font-size:.95em;color:var(--gold-ink)}
.tl-sheet-epithet{margin:0 0 8px;font-style:italic;font-size:15.5px;line-height:1.5;color:var(--ink2)}
.tl-sheet-src{font-family:var(--ff-ui);font-style:normal;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink);margin-right:2px}
.tl-sheet-sub{margin:0 0 14px;font-size:15px;color:var(--mute)}
.tl-sheet-sub .tl-sheet-symbol{font-size:19px;color:var(--gold-ink);vertical-align:-1px;margin-right:3px}
.tl-sheet-attr{margin:0 0 14px;font-size:17px;color:var(--gold-ink)}
.tl-sheet-attr .tl-sheet-glyph{font-size:21px;vertical-align:-2px;margin-right:4px}
.tl-sheet-lead{font-size:17px;line-height:1.55;color:var(--ink)}

/* the card, then the deck switch, the caption and the divergence line */
.tl-sheet-card{margin:0 0 14px}
.tl-sheet-card .tl-cardbtn{cursor:zoom-in}
.tl-sheet-card img{display:block;width:100%;height:auto;border:1px solid var(--line2);border-radius:5px;background:var(--paper2)}
.tl-sheet-card img[hidden]{display:none}
/* a deck narrower than the column (the Tarot de Marseille, 230 wide) stands at its own size, in the figure and in the rows of cards */
.tl-sheet-card img[data-fit="natural"],.tl-sheet-cards img[data-fit="natural"]{width:auto;max-width:100%;margin:0 auto}
.tl-sheet-bydeck{display:block}
.tl-sheet-cardname{display:flex;align-items:center;justify-content:center;min-height:150px;padding:12px;border:1px solid var(--line);border-radius:5px;background:var(--paper2);font-family:var(--ff-display);font-size:14px;text-align:center;color:var(--ink2)}
.tl-sheet-deck{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;margin:0;padding:4px 0 0;border-top:1px solid var(--line);font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--mute)}
.tl-sheet-deck--end{justify-content:flex-end}
.tl-sheet-deck button{appearance:none;-webkit-appearance:none;margin:0;padding:0 1px;min-height:36px;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--mute);cursor:pointer}
.tl-sheet-deck button:hover{color:var(--ink)}
.tl-sheet-deck button[aria-checked="true"]{color:var(--gold-ink);border-bottom-color:var(--gold)}
.tl-sheet-dot{color:var(--line2)}
.tl-sheet-caption{margin:6px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink2)}
.tl-sheet-divergence{margin:6px 0 0;font-size:13.5px;line-height:1.5;color:var(--mute)}
.tl-sheet-text .tl-sheet-textnote{margin:0 0 14px}
.tl-sheet-text .tl-sheet-reading{font-size:16px;color:var(--ink2)}
.tl-sheet-profile-glyph{display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-height:0;margin:0 0 12px;border:1px solid var(--line);border-radius:8px;font-size:clamp(48px,14cqw,84px);line-height:1;color:var(--gold-ink)}
.tl-sheet-profile-glyph--heb{font-size:clamp(28px,8cqw,48px);font-family:var(--ff-heb);font-weight:300}

/* the text: facts, the rows of cards, the folds, the quotation block, the links rows */
.tl-sheet-text{padding-top:6px}
.tl-sheet-text p{margin:0 0 15px;color:var(--ink)}
.tl-sheet-text h3{margin:22px 0 10px;font-family:var(--ff-display);font-weight:500;font-size:17px;line-height:1.4;letter-spacing:.015em;color:var(--ink)}
.tl-sheet-text h3:first-child{margin-top:0}
.tl-sheet-text h4{margin:16px 0 6px;font-family:var(--ff-ui);font-weight:400;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.tl-sheet-note{font-size:15px;color:var(--ink2)}
.tl-sheet-rankline{font-size:15.5px}
.tl-sheet-rankline a{text-decoration:none;border-bottom:1px solid var(--line2)}
.tl-sheet-rankline a:hover{border-bottom-color:var(--gold)}
.tl-sheet-facts{display:grid;grid-template-columns:92px minmax(0,1fr);gap:0 12px;margin:0 0 18px;border-top:1px solid var(--line);font-size:15px}
@container tl-entry (min-width:520px){.tl-sheet-facts{grid-template-columns:124px minmax(0,1fr);gap:0 16px}}
.tl-sheet-facts dt,.tl-sheet-facts dd{margin:0;padding:7px 0;border-bottom:1px solid var(--line)}
.tl-sheet-facts dt{padding-top:10px;font-family:var(--ff-ui);font-size:10px;line-height:1.6;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.tl-sheet-facts dd{color:var(--ink2);line-height:1.5;overflow-wrap:anywhere}
.tl-sheet-facts a{text-decoration:none;border-bottom:1px solid var(--line2)}
.tl-sheet-facts a:hover{border-bottom-color:var(--gold)}
.tl-sheet-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0 0 20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
@container tl-entry (min-width:520px){.tl-sheet-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tl-sheet-strip div{min-width:0}
.tl-sheet-strip dt{font-family:var(--ff-ui);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin:0 0 4px}
.tl-sheet-strip dd{margin:0;font-size:15px;line-height:1.45;color:var(--ink2);overflow-wrap:anywhere}
.tl-sheet-strip .tl-sheet-symbol{font-size:18px;color:var(--gold-ink);vertical-align:-1px}
.tl-sheet-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 6px}
@container tl-entry (min-width:440px){.tl-sheet-cards{grid-template-columns:repeat(4,minmax(0,170px))}.tl-sheet-cards--many{grid-template-columns:repeat(5,minmax(0,140px));gap:10px}}
.tl-sheet-cards figure{margin:0;min-width:0;display:flex;flex-direction:column}
.tl-sheet-cards .tl-cardbtn{cursor:zoom-in}
.tl-sheet-cards img{display:block;width:100%;height:auto;border:1px solid var(--line2);border-radius:4px;background:var(--paper2);transition:transform .15s,border-color .15s}
.tl-sheet-cards .tl-cardbtn:hover img{transform:translateY(-3px);border-color:var(--gold)}
.tl-sheet-card .tl-cardbtn:hover img{border-color:var(--gold)}
.tl-sheet-cards figcaption{margin-top:auto;padding-top:7px;font-size:12px;line-height:1.45;color:var(--ink2)}
.tl-sheet-cards+.tl-sheet-deck{margin-bottom:16px}
.tl-sheet-cards .tl-sheet-cardname{min-height:120px;font-size:12.5px}
.tl-sheet-fold{margin-top:0;border-top:1px solid var(--line)}
.tl-sheet-fold:last-of-type{border-bottom:1px solid var(--line)}
.tl-sheet-fold[hidden]{display:none}
.tl-sheet-fold>summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 0;min-height:46px;cursor:pointer;list-style:none;padding:14px 0 10px;font-family:var(--ff-display);font-weight:500;font-size:12px;letter-spacing:.17em;text-transform:uppercase;color:var(--gold-ink);-webkit-tap-highlight-color:transparent}
.tl-sheet-fold>summary::-webkit-details-marker{display:none}
.tl-sheet-fold>summary::before{content:"+";display:inline-block;width:1.3em;flex:none;font-family:var(--ff-ui)}
.tl-sheet-fold[open]>summary::before{content:"\2212"}
.tl-sheet-fold>summary:hover{color:var(--gold)}
.tl-sheet-fold>summary span{font-family:var(--ff-body);font-size:14px;letter-spacing:0;text-transform:none;color:var(--mute);margin-left:8px}
.tl-sheet-fold-body{padding:2px 0 16px}
.tl-sheet-fold-body>.tl-sheet-links{margin-top:0}
.tl-sheet-777 .tl-sheet-facts{grid-template-columns:110px minmax(0,1fr);font-size:14.5px;margin-bottom:6px}
@container tl-entry (min-width:520px){.tl-sheet-777 .tl-sheet-facts{grid-template-columns:170px minmax(0,1fr)}}
.tl-sheet-777 h4:first-child{margin-top:4px}
.tl-sheet-q{margin:0 0 12px;padding:10px 14px;border-left:2px solid var(--gold);border-radius:2px;background:var(--paper2);font-size:15.5px;line-height:1.6}
.tl-sheet-q small{display:block;margin-bottom:6px;font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.tl-sheet-q p{margin:0 0 8px;color:var(--ink)}
.tl-sheet-q a{display:inline-block;font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink);text-decoration:none}
.tl-sheet-q a:hover{text-decoration:underline;text-underline-offset:3px}
.tl-sheet-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:4px 0 18px;font-size:15px}
.tl-sheet-links .tl-sheet-k{font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);margin-right:4px}
.tl-sheet-links a{text-decoration:none;border-bottom:1px solid transparent}
.tl-sheet-links a:hover{border-bottom-color:var(--gold)}
.tl-sheet-here{color:var(--ink2)}
/* the Tarot page: one quiet line at the very foot of Elsewhere */
.tl-sheet-text .tl-sheet-tarotlink{margin:2px 0 0;font-family:var(--ff-ui);font-size:11px;letter-spacing:.06em;color:var(--mute)}
.tl-sheet-tarotlink a{color:var(--mute);text-decoration:none;border-bottom:1px solid var(--line2)}
.tl-sheet-tarotlink a:hover{color:var(--gold-ink);border-bottom-color:var(--gold)}
.tl-sheet-sources{margin:0;padding:0 0 0 1.1em;font-size:14px;line-height:1.6;color:var(--ink2)}
.tl-sheet-sources li{margin:0 0 4px}
.tl-sheet-brain:empty{display:none}
/* the Brain's panel inside its fold: the fold carries the heading and the name */
.tl-sheet-fold--brain .hc-brain-panel{margin-top:0;padding-top:0;border-top:0}
.tl-sheet-fold--brain .hc-brain-panel>.hcb-h{display:none}

/* a phone's half sheet: a smaller card beside the title block, so the deck switch and the first facts are in view */
@container tl-entry (max-width:479px){
  .tl-sheet-body{padding:14px 16px 24px}
  .tl-sheet-body.has-figure{grid-template-columns:96px minmax(0,1fr);column-gap:14px}
  .tl-sheet-card{margin:0 0 10px}
  .tl-sheet h2{font-size:20px;margin-bottom:6px}
  .tl-sheet-letter{margin-bottom:6px}
  .tl-sheet-epithet{font-size:14.5px;margin-bottom:6px}
  .tl-sheet-sub{font-size:14px;margin-bottom:8px}
  .tl-sheet-attr{font-size:15.5px;margin-bottom:8px}
  .tl-sheet-text{padding-top:2px}
  .tl-sheet-deckrow .tl-sheet-caption{margin-top:4px;font-size:13px}
  /* at half height the divergence line (repeated in the entry's own fold) waits for More, so the facts begin within
     the half sheet */
  .tl-sheet[data-mode="sheet"]:not(.is-expanded) .tl-sheet-deckrow .tl-sheet-divergence{display:none}
}

/* while the bottom sheet is up (html.tl-sheet-lock) the page keeps scrolling under a finger on the Tree, and gains a
   foot as tall as the sheet so the lowest places (Yesod, Malkuth) can be scrolled above it; only the sheet's bar and
   handle hold a touch (the module), and the sheet's body scrolls inside itself */
html.tl-sheet-lock body{padding-bottom:46vh;padding-bottom:46dvh}
/* on a tablet the drawing is sticky; under the sheet it stands in the page, so it scrolls with it and the module can
   move a place into sight */
html.tl-sheet-lock .tl-map{position:relative;top:auto}

@media(prefers-reduced-motion:reduce){
  .tl-sheet,.tl-sheet *{transition:none!important;scroll-behavior:auto!important}
}
@media(forced-colors:active){
  .tl-sheet{border-color:CanvasText}
  .tl-sheet-deck button[aria-checked="true"]{border-bottom-color:Highlight;color:Highlight}
  .tl-sheet-grab span{background:CanvasText}
}
@media print{.tl-sheet{display:none!important}}

/* ---------- the card picture buttons, in the entry and in the ledger: the picture alone, no box */
button.tl-cardbtn{appearance:none;-webkit-appearance:none;display:block;width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
button.tl-cardbtn:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------- the card viewer: a quiet modal over the Tree, the card at large size, its title, the deck switch */
.tl-viewer{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);border:0;background:color-mix(in srgb,var(--paper) 90%,transparent);color:var(--ink);overflow:hidden;font-family:var(--ff-body);font-variant-emoji:text;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.tl-viewer[open]{display:flex;flex-direction:column}
.tl-viewer::backdrop{background:transparent}
.tl-viewer *{box-sizing:border-box}
.tl-viewer :is(button,a):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.tl-viewer-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 16px 4px}
.tl-viewer-count{font-family:var(--ff-ui);font-size:11px;letter-spacing:.14em;color:var(--mute)}
.tl-viewer-stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;gap:clamp(8px,3vw,28px);padding:0 16px}
.tl-viewer-nav{background:color-mix(in srgb,var(--paper) 70%,transparent)}
.tl-viewer-nav[hidden]{display:none}
.tl-viewer-frame{position:relative;flex:0 1 auto;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;touch-action:none;overflow:visible}
.tl-viewer-img{display:block;width:auto;height:auto;max-width:min(100%,calc(var(--tl-card-w,448px) * 1.6),560px);max-height:100%;aspect-ratio:var(--tl-card-ar,auto);border:1px solid var(--line2);border-radius:6px;background:var(--paper2);box-shadow:0 18px 50px -20px #000a;transform-origin:50% 50%;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none;cursor:zoom-in}
.tl-viewer.is-zoomed .tl-viewer-img{cursor:grab;position:relative;z-index:2}
.tl-viewer-img.is-anim{transition:transform .2s ease}
.tl-viewer-foot{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 16px 18px;text-align:center}
.tl-viewer-title{margin:0;font-family:var(--ff-display);font-weight:500;font-size:clamp(17px,2.4vw,21px);letter-spacing:.02em;color:var(--ink)}
.tl-viewer-switch .tl-sheet-deck{justify-content:center;margin-top:6px;padding-top:2px;border-top:0;font-family:var(--ff-ui);font-size:10.5px;letter-spacing:.13em;text-transform:uppercase}
.tl-viewer .tl-sheet-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
  .tl-viewer-stage{padding:0 8px;gap:4px}
  .tl-viewer-nav{position:absolute;bottom:50%;z-index:3;width:32px;height:32px;font-size:18px}
  .tl-viewer-nav[data-v="prev"]{left:6px}
  .tl-viewer-nav[data-v="next"]{right:6px}
  .tl-viewer-stage{position:relative}
  .tl-viewer-img{max-width:calc(100vw - 96px)}
  /* the card, its title and the switch sit together as one block in the middle of the screen, the bar on top */
  .tl-viewer[open]{justify-content:center}
  .tl-viewer-bar{position:absolute;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:4}
  .tl-viewer-stage{flex:0 1 auto}
  .tl-viewer-frame{height:auto}
  .tl-viewer-img{max-height:calc(100dvh - 210px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){.tl-viewer-img.is-anim{transition:none}}
@media(forced-colors:active){.tl-viewer{background:Canvas}.tl-viewer-img{border-color:CanvasText}}
