/* =========================================================
   flatsome.css - skin for the parent Flatsome theme components.

   All colours come from tokens.css (skin + mode); no literal colours here except neutral
   shadows. Load order: flatsome-main, tokens.css, flatsome.css, plugin.css. All CSS lives in
   plugin files (no Customizer custom CSS, which would print inline on every page).

   Contents:
     01. Page base              06. Typography and content
     02. Main header            07. Images, tables, quotes
     03. Menu row + icons       08. Absolute footer
     04. Dropdown               09. Mobile and off-canvas
     05. Buttons                10. Light mode: header keeps the brand look
                                11. Homepage: visual order vs source order
========================================================= */

/* --- 01. Page base --- */
html, body { background-color: var(--bg); }
body {
  color: var(--muted);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 560px at 12% -8%, var(--body-glow-1), transparent 60%),
    radial-gradient(900px 560px at 108% 6%, var(--body-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
#wrapper, #main, .page-wrapper, .section, .section-bg { background-color: transparent !important; }
::selection { background: var(--primary); color: var(--on-primary); }

/* --- 02. Main header --- */
.header-main {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
/* Parent header background layer (.header-bg-color, white by default) follows the token; otherwise a
   translucent header over the white layer looks grey. */
.header-wrapper .header-bg-color { background-color: var(--bg-deep) !important; }
.header-wrapper .header-bg-image { background-image: none !important; }
/* Header logo box = width/height from the theme mods (e.g. 84 x 88) while the file is square: keep its own proportions
   inside the box instead of stretching it (PageSpeed "image aspect ratio"). */
img.header_logo, img.header-logo-dark { object-fit: contain; }
#logo img { max-height: 72px; width: auto; filter: drop-shadow(0 0 14px var(--primary-glow)); }

/* --- 03. Menu row + icons ---
   Icons are drawn with a mask (colour = currentColor, so they follow the skin). They are matched by the
   menu item ROLE class (.ivory-glade-role-<role>), not by href or position. */
.header-bottom {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-bottom .header-nav > li > a.nav-top-link {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 14px 8px; line-height: 1.1;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted);
}
.header-bottom .header-nav > li > a.nav-top-link::before {
  content: ''; width: 22px; height: 22px; opacity: .9;
  background: currentColor;
  -webkit-mask: var(--nav-icon, none) center / contain no-repeat;
          mask: var(--nav-icon, none) center / contain no-repeat;
}
/* Neutral icon for any menu role without its own rule (otherwise the mask is empty and a solid square shows). */
.header-bottom .header-nav > li > a.nav-top-link { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l2.2%205.6L20%2010l-5.8%201.4L12%2017l-2.2-5.6L4%2010l5.8-1.4z%22/%3E%3C/svg%3E"); }
.header-bottom .header-nav > li > a.nav-top-link:hover,
.header-bottom .header-nav > li.active > a.nav-top-link,
.header-bottom .header-nav > li.current-menu-ancestor > a.nav-top-link {
  color: var(--primary);
  text-shadow: 0 0 14px var(--primary-glow);
}
.header-bottom .header-nav > li.active > a.nav-top-link::after,
.header-bottom .header-nav > li.current-menu-ancestor > a.nav-top-link::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.header-bottom .header-nav > li > a.nav-top-link > i.icon-angle-down {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 10px; opacity: .6;
}
/* Home */
.header-bottom .header-nav li.menu-item-home > a,
.header-bottom .header-nav > li.ivory-glade-role-homepage > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-7%209%207v9a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z%22/%3E%3C/svg%3E"); }
/* Game hub */
.header-bottom .header-nav > li.ivory-glade-role-game-hub > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%208h12a4%204%200%200%201%204%204v3a3%203%200%200%201-5.2%202L15%2015H9l-1.8%202A3%203%200%200%201%202%2015v-3a4%204%200%200%201%204-4z%22/%3E%3Cpath%20d%3D%22M7%2010.5v3M5.5%2012h3%22/%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2211.5%22%20r%3D%22.9%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2213.5%22%20r%3D%22.9%22/%3E%3C/svg%3E"); }
/* Register */
.header-bottom .header-nav > li.ivory-glade-role-register > a,
.header-bottom .header-nav > li.ivory-glade-role-daftar > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021a7%207%200%200%201%2014%200%22/%3E%3Cpath%20d%3D%22M19%208v6M16%2011h6%22/%3E%3C/svg%3E"); }
/* Login */
.header-bottom .header-nav > li.ivory-glade-role-login > a,
.header-bottom .header-nav > li.ivory-glade-role-masuk > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%203h4a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202h-4%22/%3E%3Cpath%20d%3D%22M10%2017l5-5-5-5M15%2012H3%22/%3E%3C/svg%3E"); }
/* App download */
.header-bottom .header-nav > li.ivory-glade-role-download-apk > a,
.header-bottom .header-nav > li.ivory-glade-role-apk-aplikasi > a,
.header-bottom .header-nav > li.ivory-glade-role-app-hub > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12M7%2010l5%205%205-5%22/%3E%3Cpath%20d%3D%22M5%2021h14%22/%3E%3C/svg%3E"); }
/* Alternate link */
.header-bottom .header-nav > li.ivory-glade-role-link-alternatif > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2014a5%205%200%200%200%207%200l3-3a5%205%200%200%200-7-7l-1%201%22/%3E%3Cpath%20d%3D%22M14%2010a5%205%200%200%200-7%200l-3%203a5%205%200%200%200%207%207l1-1%22/%3E%3C/svg%3E"); }
/* Promotions + giftcode */
.header-bottom .header-nav > li.ivory-glade-role-promotions > a,
.header-bottom .header-nav > li.ivory-glade-role-giftcode > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%224%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M12%208v13M19%2012v7a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2v-7%22/%3E%3Cpath%20d%3D%22M7.5%208a2.5%202.5%200%200%201%200-5C10%203%2012%208%2012%208s2-5%204.5-5a2.5%202.5%200%200%201%200%205%22/%3E%3C/svg%3E"); }
/* Deposit + withdraw */
.header-bottom .header-nav > li.ivory-glade-role-deposit > a,
.header-bottom .header-nav > li.ivory-glade-role-withdraw > a { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207H5a2%202%200%200%201%200-4h13v4%22/%3E%3Cpath%20d%3D%22M3%205v14a2%202%200%200%200%202%202h15V7%22/%3E%3Cpath%20d%3D%22M16%2014h.01%22/%3E%3C/svg%3E"); }

/* --- 04. Dropdown --- */
.nav-dropdown {
  background: var(--surface) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 14px;
  box-shadow: var(--shadow) !important;
  padding: 8px 0;
}
.nav-dropdown li a { color: var(--muted) !important; font-weight: 500; }
.nav-dropdown li a:hover { color: var(--primary) !important; background: var(--primary-soft); }
.nav-dropdown-has-arrow li.has-dropdown::before,
.nav-dropdown-has-arrow li.has-dropdown::after { border-bottom-color: var(--surface) !important; }

/* --- 05. Buttons --- */
.button, button.button { border-radius: 12px; font-family: var(--font-display); }
.button.primary:not(.is-outline),
.button.secondary:not(.is-outline) {
  background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
  color: var(--on-primary) !important;
  border: 0;
  font-weight: 800;
  box-shadow: 0 8px 22px var(--primary-glow);
}
.button.primary:not(.is-outline):hover,
.button.secondary:not(.is-outline):hover { filter: brightness(1.07); transform: translateY(-1px); }
.header-button .button { padding: 0 22px; min-height: 40px; line-height: 40px; letter-spacing: .03em; }
.header-button .button.is-outline {
  color: var(--primary) !important;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, transparent) !important;
  background: var(--primary-soft) !important;
  font-weight: 700;
}
.header-button .button.is-outline:hover { background: color-mix(in srgb, var(--primary) 18%, transparent) !important; }
/* Outline buttons in the content (hero login, game-grid "more"): Flatsome's default silver is ~1.7:1 on a light page.
   Text = body text colour (readable on every palette, dark and light), frame = the palette's primary colour. */
#main .button.is-outline:not(.primary) {
  color: var(--text); border: 1px solid var(--primary); background: var(--primary-soft); font-weight: 700;
}
#main .button.is-outline:not(.primary):hover { color: var(--text); background: color-mix(in srgb, var(--primary) 20%, transparent); }

/* --- 06. Typography and content --- */
h1, h2, h3, h4, h5, h6, .heading-font { color: var(--text); font-family: var(--font-display); }
h1, .h1 { letter-spacing: -.01em; text-transform: uppercase; }
.section-title-center b { height: 2px; background: linear-gradient(90deg, transparent, var(--hero-border)) !important; }
.section-title-center b:last-child { background: linear-gradient(90deg, var(--hero-border), transparent) !important; }
.section-title-center .section-title-main {
  font-size: 1.7em; font-weight: 800;
  background: linear-gradient(90deg, var(--text) 0%, color-mix(in srgb, var(--primary) 55%, var(--text)) 60%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-wrapper h2, .entry-content h2 { font-size: 1.4em; margin-top: 1.5em; }
.page-wrapper p, .page-wrapper li { color: var(--muted); }
.page-wrapper strong, .page-wrapper b { color: var(--text); }
.page-wrapper a:not(.button), .entry-content a:not(.button) {
  color: var(--link); font-weight: 500; text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--link) 45%, transparent);
}
.page-wrapper a:not(.button):hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- 07. Images, tables, quotes --- */
.ux-image img, .img-inner img, .page-wrapper img { border-radius: 18px; }
.ux-image .img-inner { border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.wp-caption-text, figcaption { color: var(--muted-soft); }
blockquote {
  margin: 1.2em 0; padding: 14px 20px;
  border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0;
  background: var(--surface); color: var(--text); font-style: italic;
}
table { border-color: var(--line-strong); }
th, td { border-color: var(--line-strong) !important; color: var(--muted); }
th { color: var(--text); background: var(--primary-soft); }

/* --- 08. Absolute footer --- */
.absolute-footer {
  background: var(--bg-deep) !important;
  color: var(--footer-muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.absolute-footer strong { color: var(--primary); }
.absolute-footer .footer-secondary, .absolute-footer .footer-nav { display: none; }

/* --- 09. Mobile and off-canvas --- */
.header-wrapper .header-bottom.hide-for-medium, .show-for-medium .header-bottom { background: var(--surface) !important; }
.header .icon-menu, .header .nav-icon a { color: var(--text) !important; }
.mobile-sidebar, .off-canvas .sidebar-menu { background: var(--nav-mobile-bg) !important; }
.nav-sidebar > li > a, .mobile-sidebar .nav > li > a { color: var(--text) !important; }
.nav-sidebar > li { border-color: var(--line) !important; }

/* --- 10. Light mode: header keeps the brand look ---
   The page body is light while the header stays dark so the logo blends in. Tokens are scoped to
   .header-wrapper only. */
html[data-theme="light"] .header-wrapper {
  --header-bg:   rgba(12, 16, 56, 0.95);
  --surface:     #141a44;
  --text:        #eef0ff;
  --muted:       #aab0dd;
  --line:        rgba(238, 240, 255, 0.10);
  --line-strong: rgba(238, 240, 255, 0.18);
  --nav-mobile-bg: #141a44;
}

/* --- 11. Homepage: visual order vs source order ---
   In the source the H1 is the first content element; the banner, category cards and article follow.
   On screen the order is banner, category cards, H1, article, via flex order. The .home-stack class
   is set by the homepage renderer. */
.home-stack .col-inner { display: flex; flex-direction: column; }
.home-stack .col-inner > * { order: 4; }
.home-stack .col-inner > .img { order: 1; margin-bottom: 26px; }
.home-stack .col-inner > .ivory-glade-games { order: 2; }
/* Homepage H1 is shown as written (brand phrase + navigation), not upper-cased. */
.home-stack h1 { text-transform: none; }
.home-stack .col-inner > .section-title-container { order: 3; margin-top: 10px; }

/* --- 12. Provider logos + game tiles (from site data) ---
   Markup is a plain <ul> after the prose (homepage and game category pages). Logos sit in cards with a thin
   gold border and game tiles are square with rounded corners; the display size is set here, while
   width/height on the <img> only reserve the ratio (no layout shift). */
.ivory-glade-prov, .ivory-glade-tiles { list-style: none; margin: 1.4em 0; padding: 0; }
.ivory-glade-tiles { display: grid; }
/* The parent sets '.entry-content ul li { margin-left: 1.3em }'; reset with equal or higher specificity. */
ul.ivory-glade-prov > li, ul.ivory-glade-tiles > li,
.entry-content ul.ivory-glade-prov > li, .entry-content ul.ivory-glade-tiles > li { margin: 0; list-style: none; }
/* Provider logos: ONE row. Without JS (or with reduced motion) the row scrolls sideways; plugin.js turns a row
   that is wider than its box into a marquee. Every card carries its own side margins (no flex gap), so the
   original half and the cloned half of the marquee track are exactly the same width and the loop has no jump. */
.ivory-glade-prov {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; justify-content: safe center;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.ivory-glade-prov::-webkit-scrollbar { display: none; }
ul.ivory-glade-prov > li, .entry-content ul.ivory-glade-prov > li { flex: 0 0 auto; width: 120px; margin: 0 5px; }
@media (min-width: 850px) {
  ul.ivory-glade-prov > li, .entry-content ul.ivory-glade-prov > li { width: 150px; margin: 0 7px; }
}
.ivory-glade-prov li {
  display: flex; align-items: center; justify-content: center; padding: 8px 10px;
  border: 1px solid var(--card-border); border-radius: 12px; background: var(--tile-bg);
}
.ivory-glade-prov img { display: block; width: 100%; max-width: 160px; height: auto; }
/* Marquee (built by plugin.js): the wrapper clips and fades the edges, the list is the moving track.
   The wrapper takes over the list's outer margin, so the row keeps its height (no layout shift). */
.ivory-glade-marq {
  overflow: hidden; margin: 1.4em 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ivory-glade-marq > ul.ivory-glade-prov {
  margin: 0; width: max-content; overflow: visible; justify-content: flex-start;
  animation: ivory-glade-marq var(--marq-dur, 60s) linear infinite; will-change: transform;
}
.ivory-glade-marq:hover > ul, .ivory-glade-marq:focus-within > ul, .ivory-glade-marq.is-paused > ul { animation-play-state: paused; }
@keyframes ivory-glade-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ivory-glade-marq > ul.ivory-glade-prov { animation: none; } }
/* two provider rows: the second one runs the other way */
.ivory-glade-marq > ul.ivory-glade-prov--balik { animation-direction: reverse; }
.ivory-glade-prov__title ~ .ivory-glade-prov, .ivory-glade-prov__title ~ .ivory-glade-marq { margin: 0 0 12px; }
/* block titles of the provider rows and the game grid: same look as the theme's game category block title */
.ivory-glade-prov__title, .ivory-glade-kisi__title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15em; letter-spacing: .02em; text-transform: uppercase;
  color: var(--primary); text-align: left; padding-bottom: 10px; margin: 0 0 16px; border-bottom: 2px solid var(--line-strong);
}
.ivory-glade-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 850px) { .ivory-glade-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.ivory-glade-tiles li {
  overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px;
  border: 1px solid var(--card-border); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.ivory-glade-tiles li:hover { transform: translateY(-3px); border-color: var(--hero-border); }
.ivory-glade-tiles img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
@media (min-width: 550px) and (max-width: 849px) { .ivory-glade-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ivory-glade-tiles li > a { display: block; width: 100%; height: 100%; }
ul.ivory-glade-tiles > li[hidden] { display: none; }

/* --- 12b. Game grid ---
   Homepage: title + category tabs + the tiles of every menu category, taken in turn. Category page: the tiles only.
   12 tiles first, then 12 more per click. The "more" button is shown by CSS from the tile count
   (--m1 = more than 12), so nothing moves when plugin.js takes over. Tabs are buttons that filter the grid in place. */
.ivory-glade-kisi { margin: 1.4em 0; }
.ivory-glade-kisi > ul.ivory-glade-tiles { margin: 0; }
.ivory-glade-kisi__tabs {
  position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 16px; padding: 5px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
}
.ivory-glade-kisi__tabs::-webkit-scrollbar { display: none; }
/* the parent theme styles every <button> (uppercase, min-height, bottom margin): reset to a plain tab */
.ivory-glade-kisi__tabs button, .ivory-glade-kisi__tabs button:not(.is-outline) {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 0; margin: 0; padding: 8px 14px;
  border: 0; border-radius: 10px; white-space: nowrap; line-height: 1.4; letter-spacing: 0; text-transform: none;
  text-shadow: none; background: transparent; color: var(--muted); font-size: .88em; font-weight: 600; cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.ivory-glade-kisi__tabs button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ivory-glade-kisi__tabs button:hover { color: var(--text); background: var(--tile-bg); }
.ivory-glade-kisi__tabs button[aria-pressed="true"], .ivory-glade-kisi__tabs button[aria-pressed="true"]:hover {
  color: var(--on-primary); background: var(--primary);
}
.ivory-glade-kisi__more { display: none; text-align: center; margin-top: 16px; }
.ivory-glade-kisi__more .button { margin: 0; }
.ivory-glade-kisi--batas:not(.is-js) > ul > li:nth-child(n+13) { display: none; }
.ivory-glade-kisi--m1 > .ivory-glade-kisi__more { display: block; }
/* --- 12c. Table of contents on inner pages (built from the page's own H2s, see portal._toc) --- */
.ivory-glade-toc {
  margin: 1.2em 0 1.6em; padding: 14px 18px; border: 1px solid var(--card-border); border-radius: 14px;
  background: var(--surface);
}
.ivory-glade-toc__title {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: .9em; letter-spacing: .03em;
  text-transform: uppercase; color: var(--primary);
}
.ivory-glade-toc ol { margin: 0; padding-left: 1.3em; }
.entry-content .ivory-glade-toc ol li, .ivory-glade-toc ol li { margin: 4px 0 4px 0; }
.page-wrapper .ivory-glade-toc a, .ivory-glade-toc a { color: var(--text); border-bottom: 0; }
.page-wrapper .ivory-glade-toc a:hover, .ivory-glade-toc a:hover { color: var(--primary); }
/* jump targets land below the sticky header */
#main h2[id], #main h3[id] { scroll-margin-top: 96px; }
.ivory-glade-kisi.is-js > .ivory-glade-kisi__more { display: block; }
.ivory-glade-kisi.is-js > .ivory-glade-kisi__more[hidden] { display: none; }
