/* MRKeliawebModernBlog 3.0 shared theme core. Theme files (signal.css, paper.css, ...) only restyle these parts.
   Colours: the active skin's tokens (--ew-*, Bootstrap, DNN 10) win; otherwise one hue drives the palette. */
.eb-module, .eb-widget {
  --eb-hue: 195;
  --eb-tint: oklch(.96 .02 var(--eb-hue));
  --eb-tint-strong: oklch(.9 .05 var(--eb-hue));
  --eb-ink: oklch(.25 .05 var(--eb-hue));
  --eb-top-offset: 0px;
  --eb-ease: cubic-bezier(.23, 1, .32, 1);
}
@supports not (color: oklch(.5 .1 100)) { .eb-module, .eb-widget { --eb-tint: color-mix(in srgb, var(--eb-brand) 7%, #fff); --eb-tint-strong: color-mix(in srgb, var(--eb-brand) 18%, #fff); --eb-ink: color-mix(in srgb, var(--eb-brand) 40%, #0b1620); } }
.eb-module[data-eb-hue], .eb-widget[data-eb-hue] { --eb-brand: var(--ew-brand, oklch(.52 .14 var(--eb-hue))); }

/* image placeholder + fade-in (only when the script runs; without it images just show) */
.eb-js .eb-module :where(.eb-card__media, .eb-mini__media, .eb-g__item, .eb-article__hero, .eb-l__media), .eb-js .eb-widget :where(.eb-l__media) { background: linear-gradient(110deg, var(--eb-tint) 30%, var(--eb-tint-strong) 50%, var(--eb-tint) 70%) 0 0 / 300% 100%; animation: eb-shimmer 1.6s linear infinite; }
.eb-js .eb-module :where(.eb-card__media, .eb-mini__media, .eb-g__item, .eb-article__hero, .eb-l__media) img, .eb-js .eb-widget .eb-l__media img { opacity: 0; transition: opacity .45s ease; }
.eb-js .eb-module img.is-loaded, .eb-js .eb-widget img.is-loaded { opacity: 1; }
.eb-js .eb-module :where(.eb-card__media, .eb-mini__media, .eb-g__item, .eb-article__hero, .eb-l__media):has(img.is-loaded), .eb-js .eb-widget .eb-l__media:has(img.is-loaded) { animation: none; background: var(--eb-tint); }
@keyframes eb-shimmer { to { background-position: -300% 0; } }

/* ---------- "on this page" bar ---------- */
.eb-sections { position: sticky; inset-block-start: calc(var(--eb-top-offset) + 10px); z-index: 30; margin-block: 0 1.25rem; }
.eb-sections[hidden] { display: none; }
.eb-sections__bar { align-items: stretch; background: var(--eb-ink); border-radius: var(--eb-radius-sm); box-shadow: 0 12px 34px color-mix(in srgb, var(--eb-ink) 28%, transparent); color: #fff; display: flex; overflow: hidden; position: relative; }
.eb-sections__list { display: flex; flex: 1; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.eb-sections__list::-webkit-scrollbar { display: none; }
.eb-sections__link { align-items: center; border-inline-end: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82) !important; display: flex; flex: 0 0 auto; font-size: .82rem; font-weight: 700; line-height: 1.25; max-inline-size: 15rem; min-block-size: 52px; padding: .55rem 1.05rem; position: relative; scroll-snap-align: start; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-block: 1rem .9rem; }
.eb-sections__link.is-sub { font-weight: 600; opacity: .85; }
.eb-sections__link:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.eb-sections__link[aria-current] { background: rgba(255,255,255,.1); color: #fff !important; }
.eb-sections__link[aria-current]::after { background: var(--eb-accent); border-radius: 3px 3px 0 0; content: ""; block-size: 3px; inset-block-end: 0; inset-inline: .9rem; position: absolute; }
.eb-sections__edge { background: var(--eb-ink); border: 0; color: #fff; cursor: pointer; display: none; flex: 0 0 40px; place-items: center; padding: 0; }
.eb-sections__edge svg { block-size: 18px; inline-size: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
[dir="rtl"] .eb-sections__edge svg { transform: scaleX(-1); }
.eb-sections.has-start [data-eb-sections-scroll="-1"], .eb-sections.has-end [data-eb-sections-scroll="1"] { display: grid; }
.eb-sections__select { display: none; }
@container (max-width: 760px) {
  .eb-sections__bar { display: none; }
  .eb-sections__select { appearance: none; background: var(--eb-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px; border: 0; border-radius: var(--eb-radius-sm); box-shadow: 0 10px 28px color-mix(in srgb, var(--eb-ink) 28%, transparent); color: #fff; display: block; font: inherit; font-weight: 700; inline-size: 100%; min-block-size: 52px; padding: .8rem 3rem .8rem 1rem; }
  [dir="rtl"] .eb-sections__select { background-position: left 1rem center; padding: .8rem 1rem .8rem 3rem; }
  .eb-sections__label { color: var(--eb-muted); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin-block-end: .35rem; text-transform: uppercase; }
}
.eb-sections__label { display: none; }
.eb-module :where(.eb-prose h2[id], .eb-prose h3[id], [data-eb-section-label][id]) { scroll-margin-block-start: calc(var(--eb-sticky-top, var(--eb-top-offset)) + 96px); }

/* ---------- reading ring ---------- */
.eb-ring { --eb-p: 0; appearance: none; background: conic-gradient(var(--eb-accent) calc(var(--eb-p) * 360deg), color-mix(in srgb, var(--eb-text) 14%, transparent) 0); border: 0; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.18); cursor: pointer; display: grid; block-size: 56px; inline-size: 56px; inset-block-end: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px; opacity: 0; padding: 4px; place-items: center; pointer-events: none; position: fixed; transform: translateY(16px); transition: opacity .25s ease, transform .25s var(--eb-ease); z-index: 40; }
.eb-ring.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.eb-ring__core { background: var(--eb-surface); border-radius: 50%; color: var(--eb-text); display: grid; block-size: 100%; inline-size: 100%; place-items: center; }
.eb-ring svg { block-size: 22px; inline-size: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eb-ring__toc { background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: var(--eb-radius); box-shadow: 0 24px 60px rgba(0,0,0,.18); display: none; inset-block-end: calc(max(18px, env(safe-area-inset-bottom)) + 70px); inset-inline-end: 18px; max-block-size: min(70vh, 520px); max-inline-size: min(360px, calc(100vw - 36px)); overflow: auto; padding: 1rem; position: fixed; z-index: 41; }
.eb-ring__toc[data-open] { display: block; animation: eb-pop .22s var(--eb-ease); }
.eb-ring__toc h2 { font-size: .8rem; letter-spacing: .08em; margin: 0 0 .6rem; text-transform: uppercase; color: var(--eb-muted); }
.eb-ring__toc ol { list-style: none; margin: 0; padding: 0; }
.eb-ring__toc a { border-radius: 8px; display: block; padding: .45rem .6rem; font-size: .92rem; }
.eb-ring__toc a:hover { background: var(--eb-canvas); }
.eb-ring__toc .eb-toc__l3 a { padding-inline-start: 1.4rem; font-size: .86rem; color: var(--eb-muted); }
@keyframes eb-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- galleries ---------- */
.eb-g { margin-block: 2rem; position: relative; }
.eb-g__head { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-block-end: 1rem; }
.eb-g__head h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.eb-g__item { border-radius: var(--eb-radius-sm); display: block; overflow: hidden; position: relative; cursor: zoom-in; isolation: isolate; }
.eb-g__item img { block-size: 100%; inline-size: 100%; object-fit: cover; display: block; transition: transform .45s var(--eb-ease), opacity .45s ease; }
@media (hover: hover) and (pointer: fine) { .eb-g__item:hover img { transform: scale(1.045); } }
.eb-g__item::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); content: ""; inset: 0; opacity: 0; position: absolute; transition: opacity .3s ease; }
.eb-g__item:hover::after, .eb-g__item:focus-visible::after { opacity: 1; }
.eb-g__cap { color: #fff; font-size: .8rem; font-weight: 600; inset-block-end: .7rem; inset-inline: .8rem; opacity: 0; position: absolute; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--eb-ease); z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-g__item:hover .eb-g__cap, .eb-g__item:focus-visible .eb-g__cap { opacity: 1; transform: none; }
.eb-g__count { align-items: center; background: color-mix(in srgb, var(--eb-surface) 92%, transparent); border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.14); color: var(--eb-text); display: inline-flex; font-size: .78rem; font-weight: 800; gap: .4rem; inset-block-end: .8rem; inset-inline-start: .8rem; padding: .35rem .7rem; position: absolute; z-index: 2; pointer-events: none; }
.eb-g__more { align-items: center; background: color-mix(in srgb, var(--eb-brand) 72%, transparent); color: #fff; display: grid; font-weight: 800; inset: 0; justify-content: center; position: absolute; text-align: center; z-index: 2; line-height: 1.2; }
.eb-g__more b { display: block; font-size: 1.8rem; }
/* mosaic: 1 large + 4 small; adapts to 1-4 photos */
.eb-g--mosaic .eb-g__grid { display: grid; gap: .6rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(120px, 16vw)); max-block-size: 520px; }
.eb-g--mosaic .eb-g__item:first-child { grid-row: 1 / 3; }
.eb-g--mosaic .eb-g__item:nth-child(n+6) { display: none; }
.eb-g--mosaic[data-n="1"] .eb-g__grid { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 34vw); }
.eb-g--mosaic[data-n="2"] .eb-g__grid { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(200px, 26vw); }
.eb-g--mosaic[data-n="2"] .eb-g__item:first-child, .eb-g--mosaic[data-n="1"] .eb-g__item:first-child { grid-row: auto; }
.eb-g--mosaic[data-n="3"] .eb-g__grid { grid-template-columns: 2fr 1fr; }
.eb-g--mosaic[data-n="4"] .eb-g__grid { grid-template-columns: 2fr 1fr 1fr; }
.eb-g--mosaic[data-n="4"] .eb-g__item:nth-child(4) { grid-column: 2 / 4; }
/* masonry */
.eb-g--masonry .eb-g__grid { columns: 3 220px; column-gap: .7rem; }
.eb-g--masonry .eb-g__item { break-inside: avoid; margin-block-end: .7rem; }
.eb-g--masonry .eb-g__item img { block-size: auto; }
/* accordion strip */
.eb-g--accordion .eb-g__grid { display: flex; gap: .5rem; block-size: clamp(280px, 38vw, 460px); }
.eb-g--accordion .eb-g__item { flex: 1 1 0; min-inline-size: 0; transition: flex-grow .35s cubic-bezier(.77, 0, .175, 1); }
.eb-g--accordion .eb-g__item:is(:hover, :focus-visible) { flex-grow: 5; }
.eb-g--accordion .eb-g__grid:not(:hover):not(:focus-within) .eb-g__item:first-child { flex-grow: 5; }
.eb-g--accordion .eb-g__item:nth-child(n+8) { display: none; }
/* snap slider */
.eb-g--snap .eb-g__grid { display: grid; gap: .7rem; grid-auto-columns: min(78%, 620px); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; padding-block-end: .6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.eb-g--snap .eb-g__item { aspect-ratio: 3 / 2; scroll-snap-align: center; }
@container (max-width: 640px) {
  .eb-g :is(.eb-g__grid) { display: grid !important; gap: .6rem; grid-auto-columns: 100%; grid-auto-flow: column; grid-template-columns: none !important; grid-template-rows: none !important; columns: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; block-size: auto !important; max-block-size: none; scrollbar-width: none; }
  .eb-g .eb-g__grid::-webkit-scrollbar { display: none; }
  .eb-g .eb-g__item { aspect-ratio: 4 / 3; grid-row: auto !important; grid-column: auto !important; scroll-snap-align: start; scroll-snap-stop: always; display: block !important; margin: 0; flex: none; }
  .eb-g .eb-g__item img { block-size: 100%; }
  .eb-g .eb-g__more { display: none; }
  .eb-g .eb-g__nav { display: flex; }
  .eb-g__cap { opacity: 1; transform: none; }
  .eb-g__item::after { opacity: 1; }
}

/* ---------- lightbox ---------- */
html.eb-lightbox-open { overflow: hidden; }
.eb-lightbox { background: rgba(6, 12, 20, .94); block-size: 100dvh; border: 0; color: #fff; display: none; grid-template-rows: auto 1fr auto; inline-size: 100vw; inset: 0; margin: 0; max-block-size: none; max-inline-size: none; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); font-family: inherit; }
.eb-lightbox[open] { display: grid; animation: eb-fade .22s ease; }
.eb-lightbox::backdrop { background: transparent; }
.eb-lightbox__top { align-items: center; display: grid; gap: .8rem; grid-template-columns: auto 1fr auto; min-block-size: 48px; }
.eb-lightbox__count { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; font-size: .82rem; font-weight: 700; padding: .4rem .7rem; white-space: nowrap; }
.eb-lightbox__caption { font-size: clamp(.92rem, 1.6vw, 1.15rem); font-weight: 700; margin: 0; max-block-size: 3.2em; overflow: auto; text-align: center; }
.eb-lightbox__btn, .eb-lightbox__nav, .eb-lightbox__tool { align-items: center; appearance: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; gap: .45rem; justify-content: center; transition: background .2s ease, transform .2s ease; }
.eb-lightbox__btn { block-size: 46px; inline-size: 46px; background: #fff; color: #0b1620; }
.eb-lightbox :where(button):hover { background: rgba(255,255,255,.22); }
.eb-lightbox__btn:hover { background: #e9eef3; }
.eb-lightbox :where(button):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.eb-lightbox svg { block-size: 20px; inline-size: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eb-lightbox[dir="rtl"] .eb-lightbox__nav svg { transform: scaleX(-1); }
.eb-lightbox__stage { align-items: center; display: grid; gap: .6rem; grid-template-columns: auto 1fr auto; min-block-size: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.eb-lightbox__nav { block-size: 48px; inline-size: 48px; border-radius: 12px; background: rgba(255,255,255,.08); }
.eb-lightbox__nav[hidden] { visibility: hidden; display: inline-flex; }
.eb-lightbox__frame { align-items: center; block-size: 100%; display: flex; justify-content: center; margin: 0; min-block-size: 0; overflow: hidden; position: relative; }
.eb-lightbox__img { max-block-size: 100%; max-inline-size: 100%; object-fit: contain; transition: transform .3s var(--eb-ease), opacity .2s ease; cursor: zoom-in; -webkit-user-drag: none; }
.eb-lightbox__frame.is-zoomed .eb-lightbox__img { cursor: grab; transition: none; }
.eb-lightbox__frame.is-loading::before { animation: eb-spin .8s linear infinite; border: 3px solid rgba(255,255,255,.25); border-block-start-color: #fff; border-radius: 50%; content: ""; block-size: 34px; inline-size: 34px; position: absolute; }
.eb-lightbox__frame.is-in-next .eb-lightbox__img { animation: eb-in-next .32s var(--eb-ease); }
.eb-lightbox__frame.is-in-prev .eb-lightbox__img { animation: eb-in-prev .32s var(--eb-ease); }
.eb-lightbox__bottom { display: grid; gap: .6rem; justify-items: center; padding-block-start: .6rem; }
.eb-lightbox__tools { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.eb-lightbox__tool { min-block-size: 42px; padding: .5rem .95rem; border-radius: 12px; font-size: .88rem; font-weight: 600; }
.eb-lightbox__thumbs { display: flex; gap: .4rem; max-inline-size: min(100%, 760px); overflow-x: auto; padding: 2px; scrollbar-width: none; }
.eb-lightbox__thumbs[hidden] { display: none; }
.eb-lightbox__thumb { appearance: none; background: none; border: 2px solid transparent; border-radius: 8px; cursor: pointer; flex: 0 0 auto; block-size: 52px; inline-size: 70px; opacity: .55; overflow: hidden; padding: 0; transition: opacity .2s ease, border-color .2s ease; }
.eb-lightbox__thumb img { block-size: 100%; inline-size: 100%; object-fit: cover; display: block; }
.eb-lightbox__thumb[aria-current], .eb-lightbox__thumb:hover { border-color: #fff; opacity: 1; }
.eb-lightbox__status { font-size: .82rem; margin: 0; min-block-size: 1.1em; opacity: .85; }
@media (max-width: 640px) {
  .eb-lightbox__stage { grid-template-columns: 1fr; }
  .eb-lightbox__nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.35); }
  .eb-lightbox__prev { inset-inline-start: 10px; } .eb-lightbox__next { inset-inline-end: 10px; }
  .eb-lightbox__tool span { display: none; } .eb-lightbox__tool { inline-size: 44px; padding: 0; }
  .eb-lightbox__thumb { block-size: 42px; inline-size: 56px; }
}
.eb-zoomable { cursor: zoom-in; }
@keyframes eb-fade { from { opacity: 0; } }
@keyframes eb-spin { to { transform: rotate(1turn); } }
@keyframes eb-in-next { from { opacity: 0; transform: translateX(40px); } }
@keyframes eb-in-prev { from { opacity: 0; transform: translateX(-40px); } }
.eb-lightbox[dir="rtl"] .is-in-next .eb-lightbox__img { animation-name: eb-in-prev; }
.eb-lightbox[dir="rtl"] .is-in-prev .eb-lightbox__img { animation-name: eb-in-next; }

/* ---------- content blocks (inside .eb-prose) ---------- */
.eb-prose :where(.eb-b) { border-radius: var(--eb-radius-sm); margin-block: 1.6rem; padding: 1.15rem 1.3rem; }
.eb-prose .eb-b > :first-child { margin-block-start: 0; } .eb-prose .eb-b > :last-child { margin-block-end: 0; }
.eb-prose .eb-b__title { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.05rem; margin: 0 0 .6rem; }
.eb-prose .eb-b--takeaways { background: var(--eb-tint); border-inline-start: 4px solid var(--eb-accent); }
.eb-prose .eb-b--takeaways ul { margin: 0; padding-inline-start: 1.2rem; }
.eb-prose .eb-b--note { --eb-n: var(--eb-brand); background: color-mix(in srgb, var(--eb-n) 8%, var(--eb-surface)); border: 1px solid color-mix(in srgb, var(--eb-n) 30%, transparent); }
.eb-prose .eb-b--note .eb-b__title { color: color-mix(in srgb, var(--eb-n) 70%, var(--eb-text)); }
.eb-prose .eb-b--tip { --eb-n: #13795b; } .eb-prose .eb-b--warn { --eb-n: #b45309; } .eb-prose .eb-b--danger { --eb-n: #c0262d; }
.eb-prose .eb-b--steps { counter-reset: eb-step; list-style: none; padding: 0; }
.eb-prose .eb-b--steps > li { counter-increment: eb-step; display: grid; gap: .1rem 1rem; grid-template-columns: 2.4rem 1fr; margin-block-end: 1rem; }
.eb-prose .eb-b--steps > li::before { align-self: start; background: var(--eb-brand); border-radius: 50%; color: #fff; content: counter(eb-step); display: grid; font-weight: 800; block-size: 2.4rem; inline-size: 2.4rem; grid-row: span 2; place-items: center; }
.eb-prose .eb-b--proscons { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; }
.eb-prose .eb-b--proscons > div { border: 1px solid var(--eb-border); border-radius: var(--eb-radius-sm); padding: 1rem 1.1rem; }
.eb-prose .eb-b--proscons > div:first-child { border-block-start: 4px solid #13795b; } .eb-prose .eb-b--proscons > div:last-child { border-block-start: 4px solid #c0262d; }
.eb-prose .eb-b--cta { background: var(--eb-ink); color: #fff; padding: 1.5rem 1.6rem; }
.eb-prose .eb-b--cta :is(h2,h3,p) { color: #fff; } .eb-prose .eb-b--cta a { background: var(--eb-accent); border-radius: 10px; color: #fff; display: inline-flex; font-weight: 800; padding: .7rem 1.1rem; text-decoration: none; }
.eb-prose .eb-b--spec { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 0; border: 1px solid var(--eb-border); overflow: hidden; }
.eb-prose .eb-b--spec > div { border-block-start: 3px solid var(--eb-brand); padding: .9rem 1.1rem; background: var(--eb-surface); }
.eb-prose .eb-b--spec > div:nth-child(even) { border-block-start-color: var(--eb-accent); }
.eb-prose .eb-b--spec dt { color: var(--eb-muted); font-size: .78rem; font-weight: 700; } .eb-prose .eb-b--spec dd { margin: .2rem 0 0; font-weight: 800; }
.eb-prose [data-eb-tabs] [role="tablist"] { display: flex; gap: .3rem; border-block-end: 1px solid var(--eb-border); overflow-x: auto; }
.eb-prose [data-eb-tab] { appearance: none; background: none; border: 0; border-block-end: 3px solid transparent; cursor: pointer; font: inherit; font-weight: 700; padding: .6rem .9rem; color: var(--eb-muted); }
.eb-prose [data-eb-tab][aria-selected="true"] { border-block-end-color: var(--eb-brand); color: var(--eb-text); }
.eb-prose [data-eb-panel] { padding-block: 1rem; }
.eb-prose .eb-b--compare { --eb-split: 50%; aspect-ratio: 3 / 2; overflow: hidden; padding: 0; position: relative; }
.eb-prose .eb-b--compare img { block-size: 100%; inline-size: 100%; inset: 0; object-fit: cover; position: absolute; margin: 0; }
.eb-prose .eb-b--compare img:last-of-type { clip-path: inset(0 calc(100% - var(--eb-split)) 0 0); }
[dir="rtl"] .eb-prose .eb-b--compare img:last-of-type { clip-path: inset(0 0 0 calc(100% - var(--eb-split))); }
.eb-prose .eb-b--compare input { appearance: none; background: none; block-size: 100%; cursor: ew-resize; inline-size: 100%; inset: 0; margin: 0; position: absolute; z-index: 2; }
.eb-prose .eb-b--compare input::-webkit-slider-thumb { appearance: none; background: #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.25); block-size: 34px; inline-size: 34px; }
.eb-prose .eb-b--compare input::-moz-range-thumb { background: #fff; border: 0; border-radius: 50%; block-size: 34px; inline-size: 34px; }
.eb-prose .eb-b--compare::after { background: #fff; content: ""; inline-size: 3px; inset-block: 0; inset-inline-start: var(--eb-split); position: absolute; transform: translateX(-50%); z-index: 1; pointer-events: none; }
.eb-prose .eb-b--compare span { background: rgba(0,0,0,.55); border-radius: 6px; color: #fff; font-size: .75rem; font-weight: 700; inset-block-start: .7rem; padding: .2rem .5rem; position: absolute; z-index: 1; }
.eb-prose .eb-b--compare span:first-of-type { inset-inline-end: .7rem; } .eb-prose .eb-b--compare span:last-of-type { inset-inline-start: .7rem; }
.eb-prose .eb-b--table { overflow-x: auto; padding: 0; border: 1px solid var(--eb-border); }
.eb-prose .eb-b--table table { margin: 0; inline-size: 100%; min-inline-size: 520px; border-collapse: collapse; word-break: normal; overflow-wrap: normal; }
.eb-prose .eb-b--table th { background: var(--eb-ink); color: #fff; text-align: start; }
.eb-prose .eb-b--table :is(th,td) { padding: .7rem .9rem; border-block-end: 1px solid var(--eb-border); }
.eb-prose .eb-b--table tr:nth-child(even) td { background: var(--eb-tint); }

/* spotlight glow used by bento cards */
[data-eb-spot] { position: relative; }
[data-eb-spot]::before { background: radial-gradient(420px circle at var(--eb-mx, -999px) var(--eb-my, -999px), color-mix(in srgb, var(--eb-brand) 16%, transparent), transparent 60%); border-radius: inherit; content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .eb-module *, .eb-widget *, .eb-lightbox * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .eb-sections, .eb-ring, .eb-ring__toc, .eb-lightbox { display: none !important; } }
/* shared small parts used by every theme */
.eb-module .eb-avatar, .eb-widget .eb-avatar { align-items: center; background: color-mix(in srgb, var(--eb-brand) 16%, var(--eb-surface)); border-radius: 50%; color: var(--eb-brand-text); display: inline-flex; flex: none; font-size: .75rem; font-weight: 800; block-size: 26px; inline-size: 26px; justify-content: center; margin-inline-end: .45rem; vertical-align: middle; }
.eb-module .eb-meta__author { align-items: center; display: inline-flex; }

/* ---------- shared article parts (every theme; a theme only changes colours and spacing) ---------- */
.eb-i { block-size: 1.1em; inline-size: 1.1em; fill: none; flex: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.eb-tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-block: 1.4rem; align-items: start; }
.eb-tool { --tc: var(--eb-brand); background: color-mix(in srgb, var(--tc) 5%, var(--eb-surface)); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); border-block-start: 3px solid var(--tc); border-radius: var(--eb-radius-sm); }
.eb-tool--rating { --tc: var(--eb-accent); } .eb-tool--share { --tc: color-mix(in srgb, var(--eb-text) 85%, #000); }
.eb-tool summary { align-items: center; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 40px 1fr 22px; list-style: none; padding: 14px 16px; }
.eb-tool summary::-webkit-details-marker { display: none; }
.eb-tool__icon { background: var(--tc); border-radius: 10px; color: #fff; display: grid; block-size: 40px; inline-size: 40px; place-items: center; font-size: 19px; }
.eb-tool summary small { color: var(--eb-muted); display: block; font-size: .72rem; font-weight: 600; }
.eb-tool summary b { color: var(--tc); font-size: .98rem; }
.eb-tool summary > .eb-i { border: 1px solid currentColor; border-radius: 50%; color: var(--tc); padding: 3px; block-size: 22px; inline-size: 22px; transition: transform .25s ease; }
.eb-tool[open] summary > .eb-i { transform: rotate(180deg); }
.eb-tool__body { padding: 0 16px 16px; }
.eb-tool__body .eb-share { display: flex; flex-wrap: wrap; gap: .45rem; }
.eb-tool__body .eb-share__link, .eb-tool__body .eb-engagement__button { background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: 999px; color: var(--eb-text); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .8rem; text-decoration: none; }
.eb-tool__body .eb-share__link:hover, .eb-tool__body .eb-engagement__button:hover, .eb-tool__body .eb-share__link:focus-visible { border-color: var(--tc); color: var(--tc); }
.eb-tool__body .eb-engagement__button[aria-pressed="true"], .eb-tool__body .is-recorded { background: var(--tc); border-color: var(--tc); color: #fff; }
.eb-tool__body .eb-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-block-end: .7rem; }
.eb-tool__body .eb-rating button { background: none; border: 1px solid var(--eb-border); border-radius: 8px; color: var(--eb-muted); cursor: pointer; font-size: 1.15rem; min-inline-size: 2.4rem; min-block-size: 2.4rem; }
.eb-tool__body .eb-rating button.is-recorded, .eb-tool__body .eb-rating button:hover { color: #f5a524; border-color: #f5a524; }
.eb-tool__body output { color: var(--eb-muted); display: block; font-size: .8rem; margin-block-start: .4rem; }
.eb-t--article .eb-article-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: .9rem; }
.eb-t--article .eb-article-back { margin: 0; }
.eb-t--article .eb-article-back a { color: var(--eb-brand-text); font-weight: 700; text-decoration: none; }
.eb-t--article .eb-article-back a::before { content: "\2190"; display: inline-block; margin-inline-end: .35rem; }
[dir="rtl"] .eb-t--article .eb-article-back a::before { content: "\2192"; }
.eb-module .eb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.eb-module .eb-chip { background: var(--eb-tint); border-radius: 999px; color: var(--eb-brand-text); font-size: .75rem; font-weight: 700; padding: .2rem .65rem; text-decoration: none; }
.eb-module .eb-meta { align-items: center; color: var(--eb-muted); display: flex; flex-wrap: wrap; font-size: .85rem; gap: .35rem 1rem; }
.eb-module .eb-meta__item + .eb-meta__item::before, .eb-module .eb-meta__author + .eb-meta__item::before { content: "\00B7"; margin-inline-end: 1rem; opacity: .6; }
.eb-t--article .eb-toc { background: var(--eb-tint); border-radius: var(--eb-radius-sm); margin-block-end: 1.2rem; padding: .8rem 1rem; }
.eb-t--article .eb-toc summary { cursor: pointer; font-weight: 800; }
.eb-t--article .eb-toc ol { margin: .6rem 0 0; padding-inline-start: 1.2rem; }
.eb-t--article .eb-toc a { color: inherit; text-decoration: none; }
.eb-t--article .eb-toc a[aria-current] { color: var(--eb-brand-text); font-weight: 700; }
.eb-t--article .eb-toc__l3 { margin-inline-start: 1rem; font-size: .92em; }
.eb-t--article .eb-video { margin-block: 1.2rem; }
.eb-t--article .eb-author-card { align-items: center; background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: var(--eb-radius-sm); display: flex; gap: 1rem; margin-block: 1.4rem; padding: 1rem 1.2rem; }
.eb-t--article .eb-author-card small { color: var(--eb-muted); display: block; font-size: .75rem; }
.eb-t--article .eb-author-card strong { display: block; font-size: 1.05rem; }
.eb-t--article .eb-author-card p { color: var(--eb-muted); font-size: .85rem; margin: .2rem 0 0; }
.eb-module .eb-avatar--lg { block-size: 52px; inline-size: 52px; font-size: 1.2rem; margin: 0; }
.eb-t--article .eb-article-sources { margin-block: 1.4rem; font-size: .9rem; }
.eb-t--article .eb-article-sources h2 { font-size: 1.1rem; }
.eb-t--article .eb-related { margin-block: 2rem 1rem; }
.eb-t--article .eb-related h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.eb-t--article .eb-related__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.eb-t--article .eb-mini { background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: var(--eb-radius-sm); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .25s var(--eb-ease), box-shadow .25s var(--eb-ease); }
@media (hover: hover) and (pointer: fine) { .eb-t--article .eb-mini:hover { box-shadow: 0 14px 30px -18px rgb(0 0 0 / .35); transform: translateY(-2px); } }
.eb-t--article .eb-mini__media { aspect-ratio: 16 / 10; background: var(--eb-tint); display: block; }
.eb-t--article .eb-mini__media img { block-size: 100%; inline-size: 100%; object-fit: cover; }
.eb-t--article .eb-mini__body { display: grid; gap: .4rem; padding: .8rem 1rem 1rem; }
.eb-t--article .eb-mini h3 { font-size: 1rem; line-height: 1.45; margin: 0; }
.eb-t--article .eb-mini__link { color: inherit; text-decoration: none; }
.eb-t--article .eb-mini__link::after { content: ""; inset: 0; position: absolute; }
.eb-t--article .eb-mini small { color: var(--eb-muted); }
.eb-t--article .eb-comments { margin-block-start: 2rem; }
.eb-module .eb-card__edit { align-items: center; background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: 999px; color: var(--eb-text); display: inline-flex; font-size: .75rem; font-weight: 700; gap: .3rem; inset-block-start: .6rem; inset-inline-end: .6rem; padding: .25rem .6rem; position: absolute; text-decoration: none; z-index: 3; }
.eb-module .eb-card__edit .eb-i { block-size: 14px; inline-size: 14px; }

/* ---------- gallery slider nav ---------- */
.eb-g__nav { align-items: center; display: none; gap: 1.1rem; justify-content: center; margin-block-start: .9rem; }
.eb-g--snap .eb-g__nav { display: flex; }
.eb-g__btn { align-items: center; background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: 50%; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .25); color: var(--eb-brand-text); cursor: pointer; display: inline-flex; block-size: 46px; inline-size: 46px; justify-content: center; transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s var(--eb-ease); }
.eb-g__btn svg { block-size: 20px; inline-size: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .eb-g__btn svg { transform: scaleX(-1); }
.eb-g__btn:hover:not(:disabled) { background: var(--eb-brand); border-color: var(--eb-brand); color: #fff; }
.eb-g__btn:active:not(:disabled) { transform: scale(.94); }
.eb-g__btn:disabled { cursor: default; opacity: .38; box-shadow: none; }
.eb-g__btn:focus-visible { outline: 2px solid var(--eb-accent); outline-offset: 2px; }
.eb-g__pos { color: var(--eb-muted); font-size: .9rem; font-variant-numeric: tabular-nums; font-weight: 700; min-inline-size: 3.5rem; text-align: center; }

/* ---------- FAQ: full width, icon + title + count (fixin4u) ---------- */
.eb-t--article .eb-faq { inline-size: 100%; margin: 2.2rem 0 0; max-inline-size: none; }
.eb-faq__head { align-items: center; display: flex; gap: .75rem; margin-block-end: 1rem; }
.eb-faq__head h2 { flex: 1; margin: 0 !important; }
.eb-faq__icon { align-items: center; background: var(--eb-tint); border-radius: 12px; color: var(--eb-brand-text); display: inline-flex; flex: none; block-size: 40px; inline-size: 40px; justify-content: center; }
.eb-faq__icon .eb-i { block-size: 22px; inline-size: 22px; }
.eb-faq__count { color: var(--eb-muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.eb-t--article .eb-faq__item { background: color-mix(in srgb, var(--eb-brand) 5%, var(--eb-surface)); border: 1px solid transparent; border-radius: 12px; margin-block-end: .55rem; padding: 0; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.eb-t--article .eb-faq__item:hover { border-color: color-mix(in srgb, var(--eb-brand) 22%, transparent); }
.eb-t--article .eb-faq__item[open] { background: var(--eb-surface); border-color: color-mix(in srgb, var(--eb-brand) 30%, transparent); box-shadow: 0 10px 26px -18px rgb(0 0 0 / .35); }
.eb-t--article .eb-faq__item summary { align-items: center; cursor: pointer; display: flex; font-weight: 700; gap: 1rem; justify-content: space-between; list-style: none; padding: 1rem 1.15rem; }
.eb-t--article .eb-faq__item summary::-webkit-details-marker { display: none; }
.eb-t--article .eb-faq__item summary::after { content: none; }
.eb-t--article .eb-faq__item summary:focus-visible { outline: 2px solid var(--eb-accent); outline-offset: -2px; border-radius: 12px; }
.eb-faq__chev { color: var(--eb-brand-text); transition: transform .3s var(--eb-ease); }
.eb-faq__item[open] .eb-faq__chev { transform: rotate(180deg); }
.eb-t--article .eb-faq__item > .eb-prose { color: var(--eb-muted); padding: 0 1.15rem 1.1rem; }

/* ---------- rating card ---------- */
.eb-rate { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 150px) 1fr; align-items: center; }
.eb-rate__score { align-items: center; background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--tc) 20%, transparent); border-radius: 14px; display: grid; gap: .25rem; justify-items: center; padding: .9rem .6rem; text-align: center; }
.eb-rate__avg { color: var(--eb-text); font-size: 2.3rem; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.eb-rate__score small { color: var(--eb-muted); display: block; font-size: .74rem; margin-block-start: .2rem; }
.eb-rate__meter { color: color-mix(in srgb, var(--eb-text) 16%, transparent); display: inline-flex; position: relative; }
.eb-rate__meter .eb-i, .eb-rate__fill .eb-i { block-size: 16px; inline-size: 16px; fill: currentColor; stroke: none; }
.eb-rate__fill { color: #f5a524; display: inline-flex; inset-block: 0; inset-inline-start: 0; overflow: hidden; position: absolute; inline-size: calc(var(--eb-r, 0) / 5 * 100%); white-space: nowrap; }
.eb-rate__q { font-weight: 700; margin: 0 0 .55rem; }
.eb-rate__pick { display: flex; gap: .35rem; }
.eb-rate__opt { align-items: center; background: none; border: 0; border-radius: 10px; color: color-mix(in srgb, var(--eb-text) 22%, transparent); cursor: pointer; display: inline-flex; block-size: 44px; inline-size: 44px; justify-content: center; padding: 0; transition: transform .18s var(--eb-ease), color .15s ease, background .15s ease; }
.eb-rate__opt .eb-i { block-size: 30px; inline-size: 30px; fill: currentColor; stroke: none; }
.eb-rate__pick:hover .eb-rate__opt, .eb-rate__opt.is-recorded { color: #f5a524; }
.eb-rate__pick .eb-rate__opt:hover ~ .eb-rate__opt { color: color-mix(in srgb, var(--eb-text) 22%, transparent); }
@media (hover: hover) and (pointer: fine) { .eb-rate__opt:hover { transform: scale(1.14); } }
.eb-rate__opt:focus-visible { outline: 2px solid var(--tc); outline-offset: 1px; }
.eb-rate__opt:disabled { cursor: progress; }
.eb-rate[data-mode="numbers"] .eb-rate__pick { gap: 0; border: 1px solid var(--eb-border); border-radius: 12px; overflow: hidden; inline-size: fit-content; }
.eb-rate[data-mode="numbers"] .eb-rate__opt { border-radius: 0; color: var(--eb-text); font-size: 1rem; font-weight: 800; inline-size: 52px; }
.eb-rate[data-mode="numbers"] .eb-rate__opt + .eb-rate__opt { border-inline-start: 1px solid var(--eb-border); }
.eb-rate[data-mode="numbers"] .eb-rate__pick:hover .eb-rate__opt { color: var(--eb-text); }
@media (hover: hover) and (pointer: fine) { .eb-rate[data-mode="numbers"] .eb-rate__opt:hover, .eb-rate[data-mode="numbers"] .eb-rate__opt.is-recorded { background: var(--tc); color: #fff; transform: none; } }
.eb-rate__label { color: var(--tc); font-size: .85rem; font-weight: 700; margin: .45rem 0 0; min-block-size: 1.3em; }
.eb-rate__status { color: var(--eb-muted); display: block; font-size: .8rem; min-block-size: 1.1em; }
.eb-rate__slider { display: grid; gap: .35rem; max-inline-size: 340px; }
.eb-rate__slider input { accent-color: var(--tc); inline-size: 100%; }
.eb-rate__ticks { color: var(--eb-muted); display: flex; font-size: .75rem; font-weight: 700; justify-content: space-between; }
.eb-rate__submit { background: var(--tc); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; margin-block-start: .3rem; padding: .55rem 1.1rem; }

/* ---------- share card ---------- */
.eb-sharebox { display: grid; gap: .9rem; }
.eb-sharebox__grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.eb-sharebox__net { align-items: center; background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: 12px; color: var(--eb-text); cursor: pointer; display: flex; font: inherit; font-size: .84rem; font-weight: 700; gap: .55rem; min-block-size: 46px; padding: .4rem .65rem; text-align: start; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s var(--eb-ease), box-shadow .2s ease; }
.eb-sharebox__ico { align-items: center; background: color-mix(in srgb, var(--net) 12%, transparent); border-radius: 9px; color: var(--net); display: inline-flex; flex: none; block-size: 32px; inline-size: 32px; justify-content: center; transition: background .2s ease, color .2s ease; }
.eb-sharebox__ico svg { block-size: 18px; inline-size: 18px; fill: currentColor; }
.eb-sharebox__ico .eb-i { fill: none; }
.eb-sharebox__net:hover, .eb-sharebox__net:focus-visible { border-color: var(--net); box-shadow: 0 8px 20px -14px var(--net); transform: translateY(-1px); }
.eb-sharebox__net:hover .eb-sharebox__ico, .eb-sharebox__net:focus-visible .eb-sharebox__ico { background: var(--net); color: #fff; }
.eb-sharebox__net:focus-visible { outline: 2px solid var(--net); outline-offset: 1px; }
.eb-sharebox__link { align-items: center; background: var(--eb-surface); border: 1px dashed var(--eb-border); border-radius: 12px; display: flex; gap: .5rem; padding: .35rem .35rem .35rem .8rem; }
[dir="rtl"] .eb-sharebox__link { padding: .35rem .8rem .35rem .35rem; }
.eb-sharebox__url { color: var(--eb-muted); flex: 1; font-size: .8rem; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-sharebox__copy { align-items: center; background: var(--tc); border: 0; border-radius: 9px; color: #fff; cursor: pointer; display: inline-flex; flex: none; font: inherit; font-size: .8rem; font-weight: 700; gap: .35rem; padding: .5rem .8rem; transition: background .2s ease; }
.eb-sharebox__copy.is-copied { background: #16a34a; }
.eb-sharebox__like { align-items: center; border-block-start: 1px solid var(--eb-border); color: var(--eb-muted); display: flex; font-size: .85rem; gap: .8rem; justify-content: space-between; padding-block-start: .8rem; }
.eb-like { align-items: center; background: none; border: 1px solid var(--eb-border); border-radius: 999px; color: var(--eb-text); cursor: pointer; display: inline-flex; font: inherit; font-size: .84rem; font-weight: 700; gap: .4rem; padding: .45rem .95rem; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.eb-like .eb-i { block-size: 18px; inline-size: 18px; transition: transform .3s var(--eb-ease); }
.eb-like:hover { border-color: #e11d48; color: #e11d48; }
.eb-like[aria-pressed="true"], .eb-like.is-recorded { background: #e11d48; border-color: #e11d48; color: #fff; }
.eb-like[aria-pressed="true"] .eb-i, .eb-like.is-recorded .eb-i { fill: currentColor; transform: scale(1.12); }
.eb-tools__status { color: var(--eb-muted); font-size: .82rem; grid-column: 1 / -1; min-block-size: 0; }
.eb-tools__status:empty { display: none; }
@container (max-width: 560px) {
  .eb-rate { grid-template-columns: 1fr; }
  .eb-rate__score { grid-template-columns: auto 1fr; justify-items: start; text-align: start; padding: .7rem .9rem; gap: .2rem .8rem; }
  .eb-rate__avg { grid-row: span 2; }
  .eb-sharebox__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .eb-rate__opt, .eb-sharebox__net, .eb-g__btn, .eb-faq__chev { transition: none; } }
.eb-tools > *, .eb-tool__body, .eb-sharebox, .eb-rate > * { min-inline-size: 0; }
.eb-tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.eb-sharebox { grid-template-columns: minmax(0, 1fr); }
.eb-rate .eb-rate__opt .eb-i { block-size: 30px; inline-size: 30px; fill: currentColor; stroke: none; }
.eb-rate .eb-rate__meter .eb-i { block-size: 16px; inline-size: 16px; fill: currentColor; stroke: none; }
.eb-sharebox .eb-sharebox__net { border-radius: 12px; }
.eb-sharebox .eb-sharebox__ico svg { stroke: none; }
.eb-sharebox .eb-sharebox__ico .eb-i { fill: none; stroke: currentColor; }
.eb-t--article:has(.eb-ring) .eb-tools { padding-block-end: .5rem; }
.eb-sharebox__net > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-sharebox__grid > button.eb-sharebox__net { grid-column: span 2; }

/* ---------- 3.1 latest widget in a sidebar: accent-bar heading, thumbnail list, hover motion ---------- */
.eb-widget[data-eb-widget="latest"] { container: eb-latest / inline-size; }
.eb-widget[data-eb-widget="latest"] .eb-widget__header h2 { position: relative; padding-inline-start: .85rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 900; letter-spacing: 0; }
.eb-widget[data-eb-widget="latest"] .eb-widget__header h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .18em; inline-size: 4px; border-radius: 4px; background: linear-gradient(var(--eb-accent, var(--eb-brand)), var(--eb-brand)); transform-origin: bottom; animation: eb-bar-in .4s var(--eb-ease) both; }
@container eb-latest (max-width: 420px) {
  .eb-t--latest[data-eb-theme="signal"] .eb-t__items { grid-template-columns: 1fr; gap: 4px; }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini { grid-template-columns: minmax(0, 1fr) 92px; border-color: transparent; padding: 10px 6px; border-radius: 14px; transition: background-color .3s ease, transform .25s var(--eb-ease); }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini > div { grid-row: 1; grid-column: 1; }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini__media { grid-row: 1; grid-column: 2; border-radius: 12px; aspect-ratio: 16 / 11; }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini h3 { font-size: .92rem; font-weight: 800; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini time { font-size: .7rem; opacity: .8; }
  @media (hover: hover) and (pointer: fine) { .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini:hover { background: color-mix(in srgb, var(--eb-brand) 7%, transparent); box-shadow: none; transform: translateX(-3px); } }
  @media (hover: hover) and (pointer: fine) { [dir="rtl"] .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini:hover { transform: translateX(3px); } }
  .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini img { transition: transform .45s var(--eb-ease); }
  @media (hover: hover) and (pointer: fine) { .eb-t--latest[data-eb-theme="signal"] .eb-sg-mini:hover img { transform: scale(1.08); } }
}
@keyframes eb-bar-in { from { transform: scaleY(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .eb-widget[data-eb-widget="latest"] .eb-widget__header h2::before { animation: none; } .eb-t--latest .eb-sg-mini, .eb-t--latest .eb-sg-mini img { transition: none !important; } }

/* ---------- 3.1 colour mode: light is the default; dark, or auto (follows the visitor's device) ---------- */
.eb-module.eb-module[data-eb-mode="dark"], .eb-widget.eb-widget[data-eb-mode="dark"] {
  color-scheme: dark;
  --eb-surface: #1b1d22; --eb-canvas: #121418; --eb-text: #eceef2; --eb-muted: #a7adb8;
  --eb-border: rgb(255 255 255 / .1); --eb-brand-text: color-mix(in srgb, var(--eb-brand) 62%, #fff);
  --eb-tint: color-mix(in srgb, var(--eb-brand) 12%, #1b1d22); --eb-tint-strong: color-mix(in srgb, var(--eb-brand) 24%, #1b1d22);
  --eb-shadow: 0 18px 55px rgb(0 0 0 / .45);
  background: var(--eb-canvas); color: var(--eb-text); border-radius: var(--eb-radius); padding: clamp(12px, 2.5vw, 24px);
}
@media (prefers-color-scheme: dark) {
  .eb-module.eb-module[data-eb-mode="auto"], .eb-widget.eb-widget[data-eb-mode="auto"] {
    color-scheme: dark;
    --eb-surface: #1b1d22; --eb-canvas: #121418; --eb-text: #eceef2; --eb-muted: #a7adb8;
    --eb-border: rgb(255 255 255 / .1); --eb-brand-text: color-mix(in srgb, var(--eb-brand) 62%, #fff);
    --eb-tint: color-mix(in srgb, var(--eb-brand) 12%, #1b1d22); --eb-tint-strong: color-mix(in srgb, var(--eb-brand) 24%, #1b1d22);
    --eb-shadow: 0 18px 55px rgb(0 0 0 / .45);
    background: var(--eb-canvas); color: var(--eb-text); border-radius: var(--eb-radius); padding: clamp(12px, 2.5vw, 24px);
  }
}
.eb-module[data-eb-mode="dark"] :is(h1, h2, h3, h4, .eb-prose) { color: var(--eb-text); }
@media (prefers-color-scheme: dark) { .eb-module[data-eb-mode="auto"] :is(h1, h2, h3, h4, .eb-prose) { color: var(--eb-text); } }
/* 3.1 site mode: with the MRKeliawebModern skin's dark mode on (2.27+), the skin leads on every page. The blog then
   takes the skin's dark colours from <html data-ew-mode="dark"> (no box of its own, the whole page is dark). */
:root[data-ew-mode="dark"] :is(.eb-module.eb-module[data-eb-mode="site"], .eb-widget.eb-widget:not([data-eb-mode])) {
  color-scheme: dark;
  --eb-surface: var(--ew-dm-raise, #1b1d22); --eb-canvas: var(--ew-canvas, #121418); --eb-text: var(--ew-text, #eceef2);
  --eb-muted: color-mix(in srgb, var(--ew-text, #eceef2) 70%, var(--ew-canvas, #121418));
  --eb-border: color-mix(in srgb, var(--ew-text, #eceef2) 14%, transparent); --eb-brand-text: var(--ew-primary, color-mix(in srgb, var(--eb-brand) 62%, #fff));
  --eb-tint: color-mix(in srgb, var(--eb-brand) 12%, var(--ew-dm-raise, #1b1d22)); --eb-tint-strong: color-mix(in srgb, var(--eb-brand) 24%, var(--ew-dm-raise, #1b1d22));
  --eb-shadow: 0 18px 55px rgb(0 0 0 / .45);
  color: var(--eb-text);
}
:root[data-ew-mode="dark"] .eb-module[data-eb-mode="site"] :is(h1, h2, h3, h4, .eb-prose) { color: var(--eb-text); }

/* ---------- 3.4: "On this page" bar: centred floating pill under the site's menu (distance: Look page, or automatic) ---------- */
.eb-sections { inset-block-start: calc(var(--eb-sticky-top, var(--eb-top-offset)) + 12px); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.eb-sections > * { pointer-events: auto; }
.eb-sections__bar { inline-size: fit-content; max-inline-size: min(100%, 1040px); margin-inline: auto; border-radius: 999px; padding: 5px; gap: 4px; align-items: center;
  background: color-mix(in srgb, var(--eb-ink) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--eb-ink) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .08); }
.eb-sections__list { gap: 2px; }
.eb-sections__link { border: 0; border-radius: 999px; min-block-size: 40px; padding: .55rem 1rem !important; font-size: .8rem; -webkit-line-clamp: 1; max-inline-size: 13rem; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 1.75; transition: background .25s ease, color .25s ease; }
.eb-sections__link[aria-current] { background: #fff; color: var(--eb-ink) !important; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .45); }
.eb-sections__link[aria-current]::after { display: none; }
.eb-sections__edge { flex: 0 0 34px; block-size: 34px; border-radius: 50%; background: rgb(255 255 255 / .12); }
@container (max-width: 760px) {
  .eb-sections { align-items: stretch; }
  .eb-sections__select { border-radius: 999px; box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--eb-ink) 70%, transparent); }
}

/* ---------- 3.4: rating and sharing, one open panel (replaces the two folding cards) ---------- */
.eb-module .eb-act { --tc: var(--eb-accent); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; margin-block: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: calc(var(--eb-radius, 16px) + 6px); overflow: hidden; background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 9%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--eb-text) 4%, transparent), 0 30px 60px -40px color-mix(in srgb, var(--eb-ink) 55%, transparent); }
.eb-module .eb-act--share-only { grid-template-columns: 1fr; }
.eb-module .eb-act__card { padding: clamp(18px, 3vw, 30px); display: grid; align-content: start; gap: .9rem; min-inline-size: 0; }
.eb-module .eb-act__card--rate { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--eb-accent) 14%, transparent), transparent 60%), color-mix(in srgb, var(--eb-accent) 4%, var(--eb-surface)); border-inline-end: 1px solid color-mix(in srgb, var(--eb-text) 8%, transparent); }
.eb-module .eb-act__kicker { margin: 0; display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--eb-muted); }
.eb-module .eb-act__kicker .eb-i { color: var(--tc); }
.eb-module .eb-act__title { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.3; color: var(--eb-text); }
.eb-module .eb-act .eb-rate { grid-template-columns: auto 1fr; gap: 1.2rem; }
.eb-module .eb-act .eb-rate__score { border: 0; background: var(--eb-surface); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--eb-ink) 60%, transparent); padding: 1rem 1.2rem; }
.eb-module .eb-act .eb-rate__avg { font-size: 2.6rem; }
.eb-module .eb-act .eb-rate__q { font-size: 1.02rem; }
/* round network buttons; the names stay for screen readers and show as a tip */
.eb-module .eb-act .eb-sharebox { gap: 1rem; }
.eb-module .eb-act .eb-sharebox__grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.eb-module .eb-act .eb-sharebox__net { position: relative; inline-size: 46px; block-size: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; gap: 0;
  background: color-mix(in srgb, var(--net) 10%, var(--eb-surface)); color: var(--net); border: 1px solid color-mix(in srgb, var(--net) 22%, transparent);
  transition: transform .2s var(--eb-ease), background .25s ease, color .25s ease, box-shadow .25s ease; }
.eb-module .eb-act .eb-sharebox__net > span:not(.eb-sharebox__ico) { position: absolute; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; translate: -50% 4px; white-space: nowrap; font-size: .72rem; font-weight: 700;
  padding: .3rem .55rem; border-radius: 8px; background: var(--eb-ink); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease; }
[dir="rtl"] .eb-module .eb-act .eb-sharebox__net > span:not(.eb-sharebox__ico), .eb-module[dir="rtl"] .eb-act .eb-sharebox__net > span:not(.eb-sharebox__ico) { translate: 50% 4px; }
.eb-module .eb-act .eb-sharebox__net:is(:hover, :focus-visible) { background: var(--net); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 22px -12px var(--net); }
.eb-module .eb-act .eb-sharebox__net:is(:hover, :focus-visible) > span:not(.eb-sharebox__ico) { opacity: 1; translate: -50% 0; }
[dir="rtl"] .eb-module .eb-act .eb-sharebox__net:is(:hover, :focus-visible) > span:not(.eb-sharebox__ico), .eb-module[dir="rtl"] .eb-act .eb-sharebox__net:is(:hover, :focus-visible) > span:not(.eb-sharebox__ico) { translate: 50% 0; }
.eb-module .eb-act .eb-sharebox__ico, .eb-module .eb-act .eb-sharebox__ico svg { inline-size: 20px; block-size: 20px; display: grid; place-items: center; }
.eb-module .eb-act .eb-sharebox__ico svg { fill: currentColor; }
.eb-module .eb-act .eb-sharebox__link { display: flex; align-items: center; gap: .4rem; padding: .35rem .35rem .35rem .9rem; border-radius: 999px; background: color-mix(in srgb, var(--eb-text) 5%, var(--eb-surface)); border: 1px solid color-mix(in srgb, var(--eb-text) 10%, transparent); }
[dir="rtl"] .eb-module .eb-act .eb-sharebox__link, .eb-module[dir="rtl"] .eb-act .eb-sharebox__link { padding: .35rem .9rem .35rem .35rem; }
.eb-module .eb-act .eb-sharebox__url { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--eb-muted); }
.eb-module .eb-act .eb-sharebox__copy { flex: none; display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; background: var(--eb-ink); color: #fff; }
.eb-module .eb-act .eb-sharebox__copy.is-copied { background: #16a34a; }
.eb-module .eb-act .eb-sharebox__like { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-block-start: .9rem; border-block-start: 1px dashed color-mix(in srgb, var(--eb-text) 14%, transparent); }
.eb-module .eb-act .eb-sharebox__like > span { color: var(--eb-muted); font-size: .88rem; }
.eb-module .eb-act .eb-like { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .6rem 1.1rem; border: 1px solid color-mix(in srgb, #e11d48 30%, transparent); background: color-mix(in srgb, #e11d48 7%, var(--eb-surface)); color: #e11d48; font: inherit; font-weight: 800; cursor: pointer; }
.eb-module .eb-act .eb-like .eb-i { fill: currentColor; stroke: none; }
.eb-module .eb-act .eb-like:is(:hover, [aria-pressed="true"], .is-recorded) { background: #e11d48; color: #fff; }
.eb-module .eb-act .eb-tools__status { grid-column: 1 / -1; padding: 0 clamp(18px, 3vw, 30px); }
.eb-module .eb-act .eb-tools__status:empty { display: none; }
@container (max-width: 760px) {
  .eb-module .eb-act { grid-template-columns: 1fr; }
  .eb-module .eb-act__card--rate { border-inline-end: 0; border-block-end: 1px solid color-mix(in srgb, var(--eb-text) 8%, transparent); }
  .eb-module .eb-act .eb-rate { grid-template-columns: 1fr; }
  .eb-module .eb-act .eb-sharebox__net { inline-size: 44px; block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .eb-module .eb-act .eb-sharebox__net { transition: none; } }

/* ---------- 3.4: comments: write box, the window, sign-in gate, CAPTCHA picture, picture preview ---------- */
.eb-module .eb-cwrite { display: flex; align-items: center; gap: .7rem; margin-block: 1rem 1.4rem; padding: .5rem; border-radius: 999px; background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 11%, transparent); box-shadow: 0 16px 36px -28px color-mix(in srgb, var(--eb-ink) 70%, transparent); }
.eb-module .eb-cwrite[hidden] { display: none; }
.eb-module .eb-cwrite__ava { flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--eb-brand), var(--eb-accent)); }
.eb-module .eb-cwrite__btn { flex: 1; text-align: start; background: none; border: 0; font: inherit; color: var(--eb-muted); cursor: text; padding: .6rem .4rem; }
.eb-module .eb-cwrite__go { flex: none; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--eb-ink); color: #fff; }
.eb-module .eb-cform.is-window { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgb(8 10 14 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.eb-module .eb-cform.is-window[hidden] { display: none; }
.eb-module .eb-cform.is-window.is-on { opacity: 1; }
.eb-module .eb-cform.is-window .eb-cform__panel { position: relative; inline-size: min(640px, 100%); max-block-size: min(88vh, 860px); overflow: auto; border-radius: 22px; background: var(--eb-surface, #fff); color: var(--eb-text);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .55); padding: clamp(18px, 3.5vw, 30px); translate: 0 18px; scale: .98; transition: translate .3s cubic-bezier(.22,.8,.24,1), scale .3s cubic-bezier(.22,.8,.24,1); }
.eb-module .eb-cform.is-window.is-on .eb-cform__panel { translate: 0 0; scale: 1; }
.eb-module .eb-cform__x { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; inline-size: 38px; block-size: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--eb-text); background: color-mix(in srgb, var(--eb-text) 7%, transparent); }
.eb-module .eb-cform.is-window .eb-comment-form { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.eb-module .eb-cform.is-window .eb-comment-form h3 { margin-block-start: 0; padding-inline-end: 48px; }
html.eb-cform-on { overflow: hidden; }
.eb-module .eb-cgate { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-block: 1rem 1.4rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: color-mix(in srgb, var(--eb-brand) 6%, var(--eb-surface)); border: 1px solid color-mix(in srgb, var(--eb-brand) 18%, transparent); }
.eb-module .eb-cgate > div { flex: 1 1 240px; }
.eb-module .eb-cgate b { display: block; } .eb-module .eb-cgate p { margin: .2rem 0 0; color: var(--eb-muted); font-size: .88rem; }
.eb-module .eb-cgate__ico { inline-size: 46px; block-size: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--eb-brand); font-size: 22px; }
.eb-module .eb-capt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-block: .6rem; }
.eb-module .eb-capt__pic { display: inline-grid; padding: .25rem .6rem; border-radius: 12px; color: var(--eb-ink); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--eb-brand) 8%, var(--eb-surface)) 0 6px, var(--eb-surface) 6px 12px); border: 1px solid color-mix(in srgb, var(--eb-text) 12%, transparent); user-select: none; }
.eb-module .eb-capt small { color: var(--eb-muted); }
.eb-module .eb-cpic { display: flex; align-items: center; gap: .5rem; margin-block-start: .5rem; }
.eb-module .eb-cpic img { inline-size: 84px; block-size: 84px; object-fit: cover; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--eb-text) 12%, transparent); }
.eb-module .eb-cpic button { inline-size: 30px; block-size: 30px; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, var(--eb-text) 8%, transparent); color: var(--eb-text); font-size: 1.1rem; }
.eb-module .eb-cpic.is-error { color: #b42318; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .eb-module .eb-cform.is-window, .eb-module .eb-cform.is-window .eb-cform__panel { transition: none; } }

/* ---------- 3.4: Saved / Liked above the list ---------- */
.eb-module .eb-mine { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-block: 0 1rem; }
.eb-module .eb-mine[hidden] { display: none; }
.eb-module .eb-mine__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700;
  color: var(--eb-text); background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 12%, transparent); transition: border-color .2s ease, box-shadow .2s ease; }
.eb-module .eb-mine__btn:hover, .eb-module .eb-mine__btn[aria-expanded="true"] { border-color: var(--eb-brand); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--eb-brand) 70%, transparent); }
.eb-module .eb-mine__btn b { min-inline-size: 1.4em; padding: 0 .35em; border-radius: 999px; font-size: .72rem; line-height: 1.6; text-align: center; color: #fff; background: var(--eb-brand); }
.eb-module .eb-mine__btn b:empty { display: none; }
.eb-module .eb-mine__btn[data-eb-mine-open="liked"] .eb-i { color: #e11d48; }
.eb-module .eb-mine__panel { position: absolute; z-index: 25; inset-block-start: calc(100% + 8px); inset-inline-end: 0; inline-size: min(420px, 100%); max-block-size: 420px; overflow: auto; padding: .6rem;
  border-radius: 18px; background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 10%, transparent); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.eb-module .eb-mine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.eb-module .eb-mine__list li { display: flex; align-items: center; gap: .4rem; }
.eb-module .eb-mine__list a { flex: 1; min-inline-size: 0; display: flex; align-items: center; gap: .7rem; padding: .4rem; border-radius: 12px; color: var(--eb-text); text-decoration: none; }
.eb-module .eb-mine__list a:hover { background: color-mix(in srgb, var(--eb-brand) 7%, transparent); }
.eb-module .eb-mine__list img, .eb-module .eb-mine__ph { flex: none; inline-size: 64px; block-size: 48px; border-radius: 9px; object-fit: cover; background: color-mix(in srgb, var(--eb-brand) 12%, var(--eb-surface)); }
.eb-module .eb-mine__list a span { font-size: .88rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.eb-module .eb-mine__list button { flex: none; inline-size: 30px; block-size: 30px; border-radius: 50%; border: 0; cursor: pointer; color: var(--eb-muted); background: none; font-size: 1.1rem; }
.eb-module .eb-mine__list button:hover { background: color-mix(in srgb, var(--eb-text) 8%, transparent); color: var(--eb-text); }
.eb-module .eb-mine__empty, .eb-module .eb-mine__note { margin: .5rem; color: var(--eb-muted); font-size: .85rem; }
.eb-module .eb-mine__note { border-block-start: 1px dashed color-mix(in srgb, var(--eb-text) 14%, transparent); padding-block-start: .5rem; font-size: .78rem; }

/* ---------- 3.4: More to read (related / most popular) ---------- */
.eb-module .eb-more { margin-block: clamp(1.8rem, 5vw, 3rem); }
.eb-module .eb-more__head { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-block-end: 1rem; }
.eb-module .eb-more__head h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-inline-end: auto; }
.eb-module .eb-more__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--eb-text) 6%, var(--eb-surface)); }
.eb-module .eb-more__tabs button { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; color: var(--eb-muted); background: none; }
.eb-module .eb-more__tabs button[aria-selected="true"] { background: var(--eb-surface); color: var(--eb-text); box-shadow: 0 6px 16px -10px rgb(0 0 0 / .35); }
.eb-module .eb-more__tabs .eb-i { color: #f5a524; fill: currentColor; stroke: none; }
.eb-module .eb-more__nav { display: inline-flex; gap: .4rem; }
.eb-module .eb-more__nav button { inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--eb-text); background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 12%, transparent); transition: background .2s ease, color .2s ease; }
.eb-module .eb-more__nav button:not(:disabled):hover { background: var(--eb-ink); color: #fff; }
.eb-module .eb-more__nav button:disabled { opacity: .35; cursor: default; }
.eb-module .eb-more__nav svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
[dir="rtl"] .eb-module .eb-more__nav svg, .eb-module[dir="rtl"] .eb-more__nav svg { transform: scaleX(-1); }
.eb-module .eb-more.is-single .eb-more__nav, .eb-module .eb-more.is-single .eb-more__dots { display: none; }
.eb-module .eb-more__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px 10px; overscroll-behavior-x: contain; }
.eb-module .eb-more__track::-webkit-scrollbar { display: none; }
.eb-module .eb-more__track[hidden] { display: none; }
.eb-module .eb-more__card { scroll-snap-align: start; min-inline-size: 0; }
.eb-module .eb-more__card .eb-mini__media { position: relative; }
.eb-module .eb-more__rank { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; min-inline-size: 34px; block-size: 34px; padding-inline: 8px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; color: #fff; background: rgb(10 12 16 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.eb-module .eb-more__dots { display: flex; justify-content: center; gap: 6px; margin-block-start: .6rem; }
.eb-module .eb-more__dots i { inline-size: 7px; block-size: 7px; border-radius: 999px; background: color-mix(in srgb, var(--eb-text) 20%, transparent); transition: inline-size .3s ease, background .3s ease; }
.eb-module .eb-more__dots i.is-on { inline-size: 22px; background: var(--eb-brand); }
@container (max-width: 900px) { .eb-module .eb-more__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@container (max-width: 560px) { .eb-module .eb-more__track { grid-auto-columns: 82%; } .eb-module .eb-more__head h2 { inline-size: 100%; } }

/* ---------- 3.4: video and music: their own section, gallery tiles and the viewer ---------- */
.eb-module .eb-media { margin-block: clamp(1.6rem, 4vw, 2.6rem); }
.eb-module .eb-media h2 { margin: 0 0 1rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.eb-module .eb-media__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.eb-module .eb-media__item { margin: 0; border-radius: 20px; overflow: hidden; background: var(--eb-surface); border: 1px solid color-mix(in srgb, var(--eb-text) 10%, transparent); box-shadow: 0 24px 50px -36px color-mix(in srgb, var(--eb-ink) 70%, transparent); display: grid; }
.eb-module .eb-media__item video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.eb-module .eb-media__item--audio { padding: 1.1rem 1.1rem .4rem; gap: .9rem; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--eb-accent) 22%, transparent), transparent 60%), linear-gradient(160deg, var(--eb-ink), color-mix(in srgb, var(--eb-ink) 70%, #000)); color: #fff; border: 0; }
.eb-module .eb-media__disc { display: flex; align-items: center; gap: 4px; block-size: 64px; }
.eb-module .eb-media__disc .eb-i { inline-size: 46px; block-size: 46px; padding: 11px; border-radius: 14px; background: rgb(255 255 255 / .14); margin-inline-end: .5rem; }
.eb-module .eb-media__disc i { inline-size: 4px; block-size: 40%; border-radius: 4px; background: rgb(255 255 255 / .8); animation: eb-eqbar 1.2s ease-in-out infinite paused; }
.eb-module .eb-media__disc i:nth-child(3) { animation-delay: -.3s; } .eb-module .eb-media__disc i:nth-child(4) { animation-delay: -.6s; } .eb-module .eb-media__disc i:nth-child(5) { animation-delay: -.9s; } .eb-module .eb-media__disc i:nth-child(6) { animation-delay: -.45s; }
.eb-module .eb-media__item--audio.is-playing .eb-media__disc i { animation-play-state: running; }
@keyframes eb-eqbar { 0%, 100% { block-size: 25%; } 50% { block-size: 95%; } }
.eb-module .eb-media__item audio { inline-size: 100%; block-size: 44px; color-scheme: dark; }
.eb-module .eb-media__item figcaption { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; }
.eb-module .eb-media__item--audio figcaption { padding: .2rem 0 .6rem; }
.eb-module .eb-media__item figcaption span { flex: 1; min-inline-size: 0; display: grid; }
.eb-module .eb-media__item figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-module .eb-media__item figcaption small { opacity: .7; font-size: .76rem; }
.eb-module .eb-media__share { flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); }
.eb-module .eb-media__share.is-done { background: #16a34a; color: #fff; }
.eb-module .eb-g__item--video, .eb-module .eb-g__item--audio { display: grid; place-items: stretch; min-block-size: 160px; background: linear-gradient(150deg, var(--eb-ink), color-mix(in srgb, var(--eb-ink) 55%, var(--eb-accent))); color: #fff; text-decoration: none; }
.eb-module .eb-g__item--audio { background: linear-gradient(150deg, color-mix(in srgb, var(--eb-accent) 70%, var(--eb-ink)), var(--eb-ink)); }
.eb-module .eb-g__clip { display: grid; align-content: end; gap: .2rem; padding: 1rem; position: relative; }
.eb-module .eb-g__clip .eb-i { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -60%; inline-size: 58px; block-size: 58px; padding: 16px; border-radius: 50%; background: rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); fill: currentColor; transition: transform .3s ease; }
@media (hover: hover) and (pointer: fine) { .eb-module .eb-g__item--video:hover .eb-g__clip .eb-i, .eb-module .eb-g__item--audio:hover .eb-g__clip .eb-i { transform: scale(1.1); } }
.eb-module .eb-g__clip b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eb-module .eb-g__clip small { opacity: .75; font-size: .74rem; }
.eb-lightbox.is-media .eb-lightbox__tool[data-act="zoom"], .eb-lightbox.is-media .eb-lightbox__tool[data-act="print"] { display: none; }
.eb-lightbox__media { display: grid; place-items: center; inline-size: min(1100px, 92vw); }
.eb-lightbox__media video { inline-size: 100%; max-block-size: 74vh; border-radius: 14px; background: #000; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .7); }
.eb-lightbox__media--audio { inline-size: min(520px, 92vw); gap: 1.2rem; padding: 2rem 1.6rem; border-radius: 26px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, rgb(255 255 255 / .14), transparent 55%), linear-gradient(160deg, #1d2433, #0b0e14); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .7); }
.eb-lightbox__media--audio b { font-size: 1.1rem; text-align: center; }
.eb-lightbox__media--audio audio { inline-size: 100%; color-scheme: dark; }
.eb-lb-disc { display: flex; align-items: center; gap: 5px; block-size: 90px; }
.eb-lb-disc i { inline-size: 6px; block-size: 30%; border-radius: 6px; background: linear-gradient(#fff, rgb(255 255 255 / .55)); animation: eb-eqbar 1.1s ease-in-out infinite paused; }
.eb-lb-disc i:nth-child(2n) { animation-delay: -.4s; } .eb-lb-disc i:nth-child(3n) { animation-delay: -.75s; }
.eb-lightbox__media.is-playing .eb-lb-disc i { animation-play-state: running; }
.eb-lightbox__kind { display: grid; place-items: center; inline-size: 100%; block-size: 100%; font-size: 1.2rem; color: #fff; background: linear-gradient(150deg, #263042, #0b0e14); }
@media (prefers-reduced-motion: reduce) { .eb-module .eb-media__disc i, .eb-lb-disc i { animation: none; } }

/* 3.4: viewer: never wider than the screen (100vw counted the page scrollbar, so the close button was cut off); glass tools */
.eb-lightbox { inline-size: auto; max-inline-size: 100%; inset-inline: 0; }
.eb-lightbox__close { margin-inline-end: 4px; }
.eb-lightbox__tool { border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease; }
.eb-lightbox__tool:hover { background: rgb(255 255 255 / .2); }
.eb-lightbox__count { border-radius: 999px; }
