/* help.edeso.app: help-center blocks on top of the site's base.css / page.css / search.css (same tokens, fonts,
   header, footer, buttons, tiles and article typography as edeso.app). Prefix hc- for everything new. */

.hc-skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink-950); color: #fff; font-size: 14px; transition: top .2s; }
.hc-skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Header: logo + "Help" tag, categories as the nav. */
.hc-brand { gap: 10px; }
.hc-brand__tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-200); font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink-700); }
.nav__link[aria-current] { color: var(--blue-500); }
.mobile-menu__link .i { color: var(--ink-400); }
.hc-footer__gap { margin-top: 18px; }

/* ------------------------------------------------------------------ heroes */
.hc-hero { padding: 150px 0 64px; }
.hc-hero__inner { position: relative; z-index: 1; max-width: calc(900px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hc-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-soft); font-size: 14px; color: var(--ink-700); }
.hc-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.hc-hero__title { max-width: 860px; margin: 22px auto 0; }
.hc-hero__lead { max-width: 640px; margin: 22px auto 0; }
.hc-hero__h1 { margin-top: 20px; }
.hc-hero__tile { width: 72px; height: 72px; margin: 26px auto 0; border-radius: 20px; --g: 16px; }
.hc-hero__count { margin-top: 16px; font-size: 14.5px; color: var(--ink-500); }
.hc-hero .crumbs { margin-bottom: 4px; }
.hc-hero--cat .hc-hero__lead { margin-top: 16px; }
.hc-hero--search, .hc-hero--404 { padding-bottom: 56px; }
.hc-404__back { margin-top: 22px; }

/* Search field (hero). Typing opens the instant-search dialog; without JS it submits to the results page. */
.hc-search { position: relative; display: flex; align-items: center; gap: 12px; max-width: 680px; margin: 36px auto 0; padding: 8px 8px 8px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line-200); box-shadow: 0 18px 50px rgba(40, 40, 90, .08); transition: border-color .2s, box-shadow .2s; text-align: left; }
.hc-search:focus-within { border-color: var(--blue-360); box-shadow: 0 0 0 1px var(--blue-360), 0 18px 50px rgba(40, 40, 90, .1); }
.hc-search > .i { color: var(--ink-400); }
.hc-search input { flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; letter-spacing: -0.01em; color: var(--ink-900); }
.hc-search input::placeholder { color: var(--ink-300); }
.hc-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hc-search__kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--line-200); border-bottom-width: 2px; border-radius: 7px; background: #fff; font: inherit; font-size: 13px; color: var(--ink-500); }
.hc-search__btn { height: 52px; min-width: 132px; padding: 0 28px; }
.hc-search__go { display: none; }
.hc-search--sm { margin-top: 28px; }
.hc-search--sm input, .hc-search--sm .hc-search__btn { height: 46px; }
.hc-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 760px; margin: 20px auto 0; }
.hc-suggest > span { font-size: 14px; color: var(--ink-500); margin-right: 2px; }
.hc-suggest .chip { background: rgba(255, 255, 255, .7); color: var(--ink-700); transition: background .2s, color .2s, border-color .2s; }
.hc-suggest .chip:hover { background: #fff; color: var(--ink-900); border-color: var(--line-300); }

/* ------------------------------------------------------------------ sections */
.hc-sec { padding: 72px var(--px) 0; }
.hc-sec > * { max-width: 1286px; margin-left: auto; margin-right: auto; }
.hc-sec--narrow > * { max-width: 880px; }
.hc-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.hc-empty { padding: 40px 0; text-align: center; font-size: 17px; color: var(--ink-500); }

/* Category cards (home). */
.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-cat { display: flex; flex-direction: column; padding: 8px 8px 14px; border-radius: 26px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-soft); transition: border-color .25s, box-shadow .3s var(--ease-out); }
.hc-cat:hover { border-color: var(--line-200); box-shadow: var(--shadow-float); }
.hc-cat__head { display: flex; align-items: center; gap: 16px; padding: 18px 16px 16px; border-radius: 19px; color: var(--ink-900); background: linear-gradient(165deg, color-mix(in srgb, var(--h) 11%, #fff) 0%, color-mix(in srgb, var(--h) 3%, #fff) 70%, #fff 100%); }
.hc-cat__head:hover { color: var(--ink-900); }
.hc-cat__tile { width: 56px; height: 56px; border-radius: 16px; --g: 14px; }
.hc-cat__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-cat__txt b { font-size: 22px; line-height: 1.2; font-weight: 400; letter-spacing: -0.025em; }
.hc-cat__txt small { font-size: 13.5px; color: var(--ink-500); }
.hc-cat__go, .hc-row__go { flex: none; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-200); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink-700); transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s, transform .35s var(--ease-out); }
.hc-cat__head:hover .hc-cat__go, .hc-row:hover .hc-row__go { background: var(--ink-950); border-color: var(--ink-950); color: #fff; transform: translateX(2px); }
:is(.hc-cat__head, .hc-row, .fa-card):is(:hover, :focus-visible) .tile--glow { color: color-mix(in srgb, var(--h, var(--blue-500)) 82%, #10111c); }
:is(.hc-cat__head, .hc-row):is(:hover, :focus-visible) .tile--glow svg { transform: scale(1.12); }
.hc-cat__desc { padding: 6px 16px 0; font-size: 15px; line-height: 1.55; color: var(--ink-500); }
.hc-cat__list { display: flex; flex-direction: column; margin-top: 8px; padding: 0 6px; }
.hc-cat__list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 15.5px; line-height: 1.35; color: var(--ink-700); transition: background .2s, color .2s; }
.hc-cat__list a .i { color: var(--ink-400); transition: color .2s; }
.hc-cat__list a:hover { background: var(--surface-2); color: var(--ink-900); }
.hc-cat__list a:hover .i { color: var(--h); }

/* Video cards. */
.hc-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.hc-vcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-soft); color: var(--ink-900); transition: box-shadow .3s var(--ease-out), border-color .25s; }
.hc-vcard:hover { color: var(--ink-900); border-color: var(--line-200); box-shadow: var(--shadow-float); }
.hc-vcard__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-card-panel); }
.hc-vcard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.hc-vcard:hover .hc-vcard__cover img { transform: scale(1.035); }
.hc-vcard__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 36, 0) 55%, rgba(15, 17, 36, .28) 100%); pointer-events: none; }
.hc-vcard__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 2px; background: rgba(255, 255, 255, .9); color: var(--ink-950); box-shadow: 0 12px 30px rgba(15, 17, 36, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .45s var(--ease-out); }
.hc-vcard__play svg { fill: currentColor; }
.hc-vcard:hover .hc-vcard__play { background: var(--blue-500); color: #fff; transform: scale(1.06); }
.hc-vcard__len { position: absolute; z-index: 1; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 17, 36, .78); color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hc-vcard__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 24px; }
.hc-vcard__cat { display: flex; align-items: center; font-size: 13px; color: var(--ink-500); }
.hc-vcard__title { font-size: 24px; line-height: 1.18; font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
.hc-vcard__sum { font-size: 15.5px; line-height: 1.55; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-vcard__more { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--ink-450); }
.hc-vcard__cta { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14.5px; color: var(--blue-500); }
.hc-vcard__cta .i { transition: transform .35s var(--ease-out); }
.hc-vcard:hover .hc-vcard__cta .i { transform: translateX(3px); }

/* Article rows (category page, recent, search results). */
.hc-rows { display: flex; flex-direction: column; gap: 10px; }
.hc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 18px 16px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line-100); color: var(--ink-900); transition: border-color .25s, box-shadow .3s var(--ease-out); }
.hc-row:hover { color: var(--ink-900); border-color: var(--line-200); box-shadow: var(--shadow-soft); }
.hc-row__tile { width: 50px; height: 50px; border-radius: 14px; }
.hc-row__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-row__txt b { font-size: 18.5px; line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.hc-row__txt > span:not(.hc-row__chapter) { font-size: 14.5px; line-height: 1.5; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-row__cat { font-size: 13px; color: var(--ink-450); }
.hc-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hc-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-kind--video { color: var(--ink-800); }
.hc-kind--video .i { color: var(--h, var(--blue-500)); }
.hc-row__chapter { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; padding: 4px 11px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: 13px; }
.hc-snip mark { padding: 0 2px; border-radius: 3px; background: var(--blue-100); color: var(--ink-900); }
.hc-noresults { padding: 20px 0 8px; text-align: center; }
.hc-noresults__t { font-size: 22px; letter-spacing: -0.02em; color: var(--ink-900); }
.hc-noresults p + p { margin-top: 8px; color: var(--ink-500); }
.hc-catgrid { margin-top: 28px; }

/* "Didn't find the answer?" */
.hc-stuck-wrap { padding-bottom: 96px; }
.hc-stuck { padding: 96px 40px 90px; }
.hc-stuck .t-body-lg { overflow-wrap: anywhere; }
.hc-stuck__mail { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hc-stuck__mail:hover { color: var(--blue-300); }

/* ------------------------------------------------------------------ article */
.hc-hero--article { padding: 150px 0 40px; text-align: left; }
.hc-hero--article .bp-head { z-index: 1; }
.hc-article__lead { max-width: 720px; margin-top: 18px; }
.hc-article .bp-meta { gap: 10px 20px; }
.hc-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line-200); font-size: 13.5px; color: var(--ink-800); transition: border-color .2s; }
.hc-chip:hover { color: var(--ink-900); border-color: var(--line-300); }
.hc-chip__tile { width: 26px; height: 26px; border-radius: 50%; --g: 7px; }
.hc-also a { color: var(--ink-800); text-decoration: underline; text-underline-offset: 3px; }
.hc-body { padding-top: 28px; padding-bottom: 24px; }
.hc-hero + .hc-sec { padding-top: 32px; }
.hc-toc { max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 12px; }
.hc-toc .hc-toc__ch { margin-top: 22px; }
.hc-toc__chapters a { display: flex; gap: 10px; }
.hc-toc__chapters a span { flex: none; min-width: 40px; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.hc-toc a[aria-current] { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-soft); }

/* Player + chapters. */
.hc-player { margin: 0 0 40px; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-frame); scroll-margin-top: 100px; }
.hc-player__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink-950); }
.hc-player__frame iframe, .hc-player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hc-chapters { padding: 16px 14px 14px; }
.bp-article .hc-chapters__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.hc-chapters__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 4px 10px 10px; }
.hc-chapters__head .i { color: var(--blue-500); align-self: center; }
.hc-chapters__head small { font-size: 13px; line-height: 1.4; color: var(--ink-500); }
.bp-article .hc-chapters__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-flow: column; gap: 2px 8px; margin: 0; }
.bp-article .hc-chapters__list li { padding: 0; }
.bp-article .hc-chapters__list li::before { content: none; }
.bp-article .hc-chapters__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 15.5px; line-height: 1.35; color: var(--ink-700); text-decoration: none; transition: background .2s, color .2s; }
.bp-article .hc-chapters__list a:hover { background: var(--surface-2); color: var(--ink-900); }
.hc-chapters__t { min-width: 52px; padding: 3px 8px; border-radius: 8px; background: var(--blue-100); color: var(--blue-550); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.hc-chapters__d { font-size: 12.5px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.bp-article .hc-chapters__list a[aria-current] { background: var(--blue-100); color: var(--ink-900); }
.hc-chapters__list a[aria-current] .hc-chapters__t { background: var(--blue-500); color: #fff; }

/* Body blocks. */
.hc-prose h2, .hc-prose h3 { scroll-margin-top: 110px; }
.hc-prose code { padding: 2px 7px; border-radius: 7px; background: var(--surface-3); font-family: inherit; font-size: .92em; color: var(--ink-800); }
.hc-prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line-150); }
.hc-prose em { color: var(--ink-500); }
.hc-table { overflow-x: auto; margin: 10px 0 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line-100); box-shadow: var(--shadow-soft); -webkit-overflow-scrolling: touch; }
.hc-table:focus-visible { outline-offset: 2px; }
.hc-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.hc-table th { padding: 13px 18px; background: var(--surface-1); border-bottom: 1px solid var(--line-100); font-size: 13px; font-weight: 500; text-align: left; color: var(--ink-500); white-space: nowrap; }
.hc-table td { padding: 12px 18px; border-top: 1px solid var(--line-50); color: var(--ink-800); vertical-align: middle; }
.hc-table tbody tr:first-child td { border-top: 0; }
.hc-table tbody tr:hover td { background: var(--surface-0); }
.hc-table .hc-c { width: 150px; text-align: center; }
.hc-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.hc-badge--yes { background: var(--positive-bg); color: var(--positive); }
.hc-badge--no { background: var(--negative-bg); color: var(--negative); }
.hc-badge--maybe { background: #fdf1d6; }
.hc-badge--opt { background: var(--blue-100); color: var(--blue-500); }
.hc-badge--maybe i { width: 10px; height: 10px; border-radius: 50%; background: #c58a06; }
.bp-article p .hc-badge { width: 22px; height: 22px; margin: -2px 2px 0; }
.bp-article p .hc-badge .i { width: 12px; height: 12px; }
.hc-note { display: flex; gap: 14px; margin: 6px 0 24px; padding: 16px 20px 16px 16px; border-radius: 16px; border: 1px solid; }
.hc-note p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-800); }
.hc-note__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; }
.hc-note--warn { background: #fff8ea; border-color: #f4e0b5; }
.hc-note--warn .hc-note__ico { color: #b7791f; }
.hc-note--info { background: #f1f6fe; border-color: #d6e4fd; }
.hc-note--info .hc-note__ico { color: var(--blue-500); }
.hc-note--ok { background: #effaf4; border-color: #c9ecd9; }
.hc-note--ok .hc-note__ico { color: var(--positive); }
.hc-fig { margin: 10px 0 30px; }
.bp-article .hc-fig a { display: block; text-decoration: none; }
.hc-fig img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-100); box-shadow: var(--shadow-soft); background: #fff; }
.hc-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--ink-500); }
.hc-embed { position: relative; aspect-ratio: 16 / 9; margin: 10px 0 28px; overflow: hidden; border-radius: 18px; background: var(--ink-950); box-shadow: var(--shadow-soft); }
.hc-embed iframe, .hc-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Feedback + previous / next. */
.hc-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 56px; padding: 20px 22px 20px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line-100); }
.bp-article .hc-feedback__q { margin: 0; font-size: 17.5px; letter-spacing: -0.01em; color: var(--ink-900); }
.hc-feedback__btns { display: flex; gap: 8px; }
.hc-feedback__btns .btn { gap: 6px; min-width: 84px; }
.hc-feedback__btns .btn[aria-pressed="true"] { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.bp-article .hc-feedback__thanks, .bp-article .hc-feedback__more { flex-basis: 100%; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-500); }
.bp-article .hc-feedback__thanks { color: var(--positive); }
.hc-feedback [hidden] { display: none; }
.hc-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bp-article .hc-pager__a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-200); background: rgba(255, 255, 255, .6); color: var(--ink-900); text-decoration: none; transition: background .2s, border-color .2s; }
.bp-article .hc-pager__a:hover { background: #fff; border-color: var(--line-300); }
.hc-pager__a small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-500); }
.hc-pager__a b { font-size: 17px; line-height: 1.35; font-weight: 400; letter-spacing: -0.015em; color: var(--ink-900); }
.hc-pager__a--next { align-items: flex-end; text-align: right; grid-column: 2; }
.hc-flip { transform: rotate(180deg); }

.hc-preview-bar { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 24px); padding: 10px 18px; border-radius: 999px; background: var(--ink-950); color: #fff; font-size: 14px; box-shadow: var(--shadow-float); }
.hc-preview-bar a { color: var(--blue-300); text-decoration: underline; }

/* Articles without a table of contents: one centred column, a wider player. */
.hc-article--solo .bp-head { max-width: calc(880px + 2 * var(--gutter)); padding: 0 var(--gutter); }
.hc-article--solo .bp-body { grid-template-columns: minmax(0, 880px); }
.hc-article--solo .bp-article { grid-column: 1; }

/* Table of contents on phones and tablets (the sticky sidebar shows from 1101px). */
.hc-mtoc { display: none; margin: 0 0 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line-100); }
.hc-mtoc summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; font-size: 15.5px; color: var(--ink-900); }
.hc-mtoc summary::-webkit-details-marker { display: none; }
.hc-mtoc summary .i { color: var(--blue-500); }
.hc-mtoc summary span { margin-left: auto; min-width: 26px; height: 26px; border-radius: 999px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-500); }
.bp-article .hc-mtoc ol { gap: 0; margin: 0; padding: 0 8px 10px; }
.bp-article .hc-mtoc a { display: block; padding: 10px 10px; border-radius: 10px; font-size: 15.5px; line-height: 1.35; color: var(--ink-700); text-decoration: none; }
.bp-article .hc-mtoc a:hover { background: var(--surface-2); color: var(--ink-900); }
@media (max-width: 1100px) { .hc-mtoc { display: block; } }

/* Matrix tables (more than three columns): the first column stays in view while the table scrolls sideways. */
.hc-table--matrix table { table-layout: fixed; min-width: calc((var(--cols) - 1) * 64px + 124px); }
.hc-table--matrix th:first-child { width: 30%; }
.hc-table--matrix th, .hc-table--matrix td { padding-left: 8px; padding-right: 8px; }
.hc-table--matrix th:first-child, .hc-table--matrix td:first-child { padding-left: 18px; }
.hc-table--matrix .hc-c { width: auto; }
.hc-table--matrix th:first-child, .hc-table--matrix td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line-100); }
.hc-table--matrix th:first-child { background: var(--surface-1); }
.hc-table--matrix tbody tr:hover td:first-child { background: var(--surface-0); }
.hc-table--matrix th { white-space: normal; line-height: 1.3; }

.hc-player__lang { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; font-size: 14px; color: var(--ink-700); background: var(--surface-1); border-bottom: 1px solid var(--line-100); }
.hc-player__lang .i { color: var(--blue-500); }
.bp-article .hc-player__lang { margin: 0; }

/* Screenshot zoom. */
.hc-fig a { cursor: zoom-in; }
.hc-lightbox { width: min(1200px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(16, 17, 28, .3); cursor: zoom-out; overflow: auto; }
.hc-lightbox::backdrop { background: rgba(16, 17, 28, .6); }
.hc-lightbox img { display: block; width: 100%; height: auto; }

/* Legend above a matrix: the same badges as in the table. */
.bp-article .hc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; font-size: 14.5px; line-height: 1.4; color: var(--ink-600); }
.hc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bp-article .hc-legend .hc-badge { width: 24px; height: 24px; margin: 0; }

/* Wide tables scroll sideways on small screens: a fade on the right edge shows there is more. */
.hc-tablewrap { position: relative; }
.hc-tablewrap::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 44px; border-radius: 0 18px 18px 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; opacity: 0; transition: opacity .25s; }
.hc-tablewrap.is-more::after { opacity: 1; }
.hc-tablewrap .hc-table { margin-top: 0; }
.hc-tablewrap { margin: 10px 0 28px; }
.hc-tablewrap .hc-table { margin-bottom: 0; }

/* Suggestion chips that open a video at a chapter. */
.hc-chip-t { gap: 7px; }
.hc-chip-t .i { color: var(--blue-500); fill: currentColor; }
.hc-chip-t b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-550); }

/* Search dialog additions (same look as the site's). */
.search__item .tile { width: 40px; height: 40px; border-radius: 11px; }
.search__chapter { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: 12.5px; }
.search__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 4px 2px; padding: 11px; border-radius: 14px; font-size: 14.5px; color: var(--blue-500); }
.search__all[aria-selected="true"], .search__all:hover { background: var(--surface-2); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-hero--article { padding-top: 120px; }
  .hc-hero { padding-top: 128px; }
}
@media (max-width: 720px) {
  .hc-hero { padding: 108px 0 40px; }
  .hc-hero + .hc-sec { padding-top: 20px; }
  .hc-hero--article { padding: 104px 0 28px; }
  .hc-hero__title { margin-top: 18px; }
  .hc-hero__lead { margin-top: 16px; }
  .hc-search { margin-top: 28px; padding: 6px 6px 6px 18px; gap: 8px; }
  .hc-search input { height: 48px; font-size: 16px; }
  .hc-search__kbd { display: none; }
  .hc-search__btn { width: 48px; height: 48px; min-width: 0; padding: 0; flex: none; }
  .hc-search__btn .btn__label, .hc-search__btn .btn__arrow { display: none; }
  .hc-search__go { display: flex; }
  .hc-search--sm .hc-search__btn { width: 44px; }
  .hc-search--sm input, .hc-search--sm .hc-search__btn { height: 44px; }
  .hc-suggest { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 18px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .hc-suggest::-webkit-scrollbar { display: none; }
  .hc-suggest .chip { flex: none; }
  .hc-suggest { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .hc-hero--article .hc-crumbs li:last-child { display: none; }
  .hc-sec { padding-top: 52px; }
  .hc-sec__head { margin-bottom: 18px; }
  .hc-cats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hc-cat { border-radius: 22px; }
  .hc-cat__head { padding: 14px 12px 12px; }
  .hc-cat__tile { width: 48px; height: 48px; border-radius: 14px; }
  .hc-cat__txt b { font-size: 20px; }
  .hc-vcard { border-radius: 22px; }
  .hc-vcard__body { padding: 18px 18px 20px; }
  .hc-vcard__title { font-size: 21px; }
  .hc-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px; border-radius: 18px; align-items: start; }
  .hc-row__tile { width: 42px; height: 42px; border-radius: 12px; }
  .hc-row__txt b { font-size: 17px; }
  .hc-row__meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; }
  .hc-row__go { display: none; }
  .hc-stuck-wrap { padding-bottom: 64px; }
  .hc-stuck { padding: 64px 22px 60px; }
  .hc-player { margin-bottom: 28px; border-radius: 18px; margin-left: -4px; margin-right: -4px; }
  .bp-article .hc-chapters__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .hc-chapters { padding: 12px 8px 10px; }
  .hc-table { margin-left: -4px; margin-right: -4px; border-radius: 14px; }
  .hc-table:not(.hc-table--matrix) table { min-width: 0; }
  .hc-table table { font-size: 14.5px; }
  .hc-table--matrix th:first-child { width: 124px; }
  .hc-tablewrap::after { border-radius: 0 14px 14px 0; }
  .hc-table--matrix td:first-child { font-size: 13.5px; line-height: 1.35; }
  .hc-table--matrix th, .hc-table--matrix td { padding-left: 6px; padding-right: 6px; }
  .hc-table--matrix th:first-child, .hc-table--matrix td:first-child { padding-left: 12px; }
  .hc-table th, .hc-table td { padding: 11px 10px; }
  .hc-table th { white-space: normal; font-size: 12px; line-height: 1.3; }
  .hc-table th:first-child, .hc-table td:first-child { padding-left: 14px; }
  .hc-table .hc-c { width: 74px; }
  .hc-feedback { padding: 18px; }
  .hc-pager { grid-template-columns: minmax(0, 1fr); }
  .hc-pager__a--next { grid-column: 1; }
  .hc-brand__tag { height: 24px; padding: 0 8px; font-size: 12px; }
}
@media (hover: none) {
  .hc-search__kbd { display: none; }
}
.reduce-motion .hc-vcard__cover img, .reduce-motion .hc-vcard__play { transition: none; }
