/*
Theme Name: mybox Help Center
Theme URI: https://mybox.com/help/
Description: Help Center theme for mybox.com – sections, article types, hybrid smart search, table of contents and article feedback. Texts: Appearance → Customize → Help Center. Sections: Help Center → Topics. Search: Help Center → Smart search.
Author: mybox
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: mybox-help
*/

/* ==========================================================================
   Contents
   1. Fonts            6. Search box          11. Search page
   2. Design tokens    7. Heroes              12. Footer
   3. Base             8. Home sections       13. Motion
   4. Components       9. Lists & grids       14. Responsive
   5. Header          10. Article             15. Print
   ========================================================================== */

/* 1. Fonts (self-hosted Inter variable – no third-party requests) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: var(--fw-regular) 800;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: var(--fw-regular) 800;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design tokens – change the look here --------------------------------- */
:root {
	/* text colours as on mybox.com: headings / body / secondary / labels */
	--ink: #15191d;
	--ink-2: #374151;
	--muted: #4a545e;
	--label: #6a7687;
	--faint: #a5a6b2;
	--line: #e8e8ee;
	--line-2: #f0f0f4;
	--soft: #f7f7fa;
	--bg: #ffffff;

	/* mybox brand gradient */
	--g1: #ff7a3d;
	--g2: #f0508f;
	--g3: #8b5cf6;
	--grad: linear-gradient(90deg, var(--g1) 0%, var(--g2) 48%, var(--g3) 100%);

	/* section accents: text / tint */
	--orange: #e8622a; --orange-bg: #fff0e8;
	--pink: #d93b7d;   --pink-bg: #fdebf3;
	--violet: #7654f0; --violet-bg: #f1ecff;
	--blue: #2f6fe4;   --blue-bg: #e9f1ff;
	--green: #1f9d6b;  --green-bg: #e6f7ef;

	/* article types */
	--t-howto: #2f6fe4;     --t-howto-bg: #e9f1ff;
	--t-problem: #d9480f;   --t-problem-bg: #fff0e6;
	--t-explainer: #7654f0; --t-explainer-bg: #f1ecff;

	--ok: #18a058;
	--warn: #e5a50a;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(14, 14, 19, .04), 0 8px 24px -12px rgba(14, 14, 19, .12);
	--shadow-lg: 0 2px 4px rgba(14, 14, 19, .04), 0 24px 48px -20px rgba(64, 30, 120, .25);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	/* type scale as on mybox.com: light hero, medium headings, normal tracking */
	--fw-regular: 400;   /* hero, body text */
	--fw-medium: 500;    /* headings, buttons, navigation, labels */
	--fw-strong: 600;    /* bold inside article text only */
	--tracking-label: .05em;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--wrap: 1200px;
	--gutter: 24px;
	/* header: floating card like mybox.com; content starts under it (see .hero/.page-hero/.article-top) */
	--hdr-top: 20px;
	--hdr-h: 66px;
	--hdr-space: calc(var(--hdr-top) + var(--hdr-h));
	--hdr-line: #e9ebed;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-space) + 24px); }
body {
	margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
	color: var(--ink); background: var(--bg); overflow-x: clip;
	font-weight: var(--fw-regular);
}
img, video, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: var(--fw-medium); margin: 0; text-wrap: balance; }
p { margin: 0; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--g3); outline-offset: 2px; border-radius: 6px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* search highlight: covers the whole word, wraps cleanly across lines (box-decoration-break) */
mark {
	color: inherit; border-radius: .32em; padding: .04em .22em; margin: 0 -.1em;
	background: linear-gradient(90deg, rgba(255, 122, 61, .16), rgba(240, 80, 143, .18), rgba(139, 92, 246, .16));
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* 4. Components ------------------------------------------------------------ */
/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
	font-weight: var(--fw-medium); font-size: 15px; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--grad); background-size: 200% 100%; animation: grad-move 3s linear infinite; box-shadow: 0 6px 18px -6px rgba(118, 84, 240, .55); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #cfcfd8; }
.btn:active { transform: translateY(1px); }

/* tags, section accents, article types */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-medium); padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.accent-orange { --ac: var(--orange); --ac-bg: var(--orange-bg); }
.accent-pink   { --ac: var(--pink);   --ac-bg: var(--pink-bg); }
.accent-violet { --ac: var(--violet); --ac-bg: var(--violet-bg); }
.accent-blue   { --ac: var(--blue);   --ac-bg: var(--blue-bg); }
.accent-green  { --ac: var(--green);  --ac-bg: var(--green-bg); }
.tag[class*="accent-"] { background: var(--ac-bg); color: var(--ac); }

[class*="--howto"]     { --tc: var(--t-howto);     --tc-bg: var(--t-howto-bg); }
[class*="--problem"]   { --tc: var(--t-problem);   --tc-bg: var(--t-problem-bg); }
[class*="--explainer"] { --tc: var(--t-explainer); --tc-bg: var(--t-explainer-bg); }
.type {
	display: inline-flex; align-items: center; gap: 5px; flex: none;
	font-size: 11px; font-weight: var(--fw-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; line-height: 1.4;
	padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--tc-bg, var(--soft)); color: var(--tc, var(--muted));
}
a.type:hover { filter: brightness(.96); }
.type-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--tc-bg, var(--soft)); color: var(--tc, var(--muted)); }

/* link chips and filter chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.chips__label { flex: none; font-size: 14px; color: var(--muted); margin-right: 2px; }
.chip {
	flex: none; font-size: 14px; font-weight: var(--fw-medium); padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .75); border: 1px solid rgba(14, 14, 19, .08); backdrop-filter: blur(6px);
	transition: background .2s, border-color .2s, transform .2s;
}
.chip:hover { background: #fff; border-color: rgba(14, 14, 19, .2); transform: translateY(-2px); }

.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip {
	display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--line); background: #fff; font: var(--fw-medium) 14px/1 var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.fchip span { font-size: 12px; font-weight: var(--fw-medium); color: var(--muted); }
.fchip .icon { color: var(--tc, currentColor); }
.fchip:hover { border-color: #cfcfd8; }
.fchip:active { transform: scale(.97); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.is-on span, .fchip.is-on .icon { color: rgba(255, 255, 255, .75); }
.fselect select {
	height: 36px; max-width: 100%; border-radius: 999px; border: 1px solid var(--line); padding: 0 34px 0 14px;
	font: var(--fw-medium) 14px var(--font); color: var(--ink-2); cursor: pointer; -webkit-appearance: none; appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6270' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}

/* misc */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(24, 160, 88, .15); }
.dot--warn, .dot--degraded { background: var(--warn); box-shadow: 0 0 0 4px rgba(229, 165, 10, .18); }
.dot--down { background: #e0452b; box-shadow: 0 0 0 4px rgba(224, 69, 43, .16); }
.dot--maintenance { background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 228, .15); }
.pill { font-size: 12px; font-weight: var(--fw-medium); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: #e7f6ee; color: #11834a; }
.pill--degraded { background: #fff5dc; color: #946800; }
.pill--down { background: #fde8e4; color: #b42d17; }
.pill--maintenance { background: var(--blue-bg); color: var(--blue); }
.count { font-size: 12px; font-weight: var(--fw-medium); padding: 3px 10px; border-radius: 999px; background: var(--ac-bg); color: var(--ac); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-medium); font-size: 14px; }
.more .icon { transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }
.smart { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-medium); color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.smart--on { color: #fff; background: var(--grad); background-size: 200% 100%; animation: grad-move 6s linear infinite; }
.smart__spark { display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
.smart__spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(118, 84, 240, .25); border-top-color: var(--g3); animation: spin .8s linear infinite; }
.why-tag { font-size: 11px; font-weight: var(--fw-medium); color: var(--violet); background: linear-gradient(90deg, #fff1ea, #f1ecff); padding: 3px 9px; border-radius: 999px; }

/* 5. Header ---------------------------------------------------------------- */
/* Floating white card like the mybox.com header: 20 px from the top, 1 px border, 8 px radius,
   40 px controls, fixed to the viewport on the whole page. It overlays the page, so the first block
   of each template adds --hdr-space to its top padding. */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	padding: var(--hdr-top) 16px 0; pointer-events: none;
}
.admin-bar .site-header { top: 32px; }
.site-header__card {
	pointer-events: auto; position: relative; max-width: 1680px; margin: 0 auto;
	background: #fff; border: 1px solid var(--hdr-line); border-radius: 8px;
	transition: box-shadow .3s;
}
.site-header.is-scrolled .site-header__card, .site-header.is-menu-open .site-header__card { box-shadow: 0 8px 16px rgba(74, 84, 94, .08); }
.site-header__bar { height: calc(var(--hdr-h) - 2px); display: flex; align-items: center; gap: 20px; padding: 0 12px 0 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__home { display: block; flex: none; }
.brand__logo { height: 28px; width: auto; display: block; }
.brand__tag { line-height: 28px; font-size: 12px; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--tracking-label); padding-left: 12px; border-left: 1px solid var(--hdr-line); color: var(--label); white-space: nowrap; }
.brand__tag:hover { color: var(--ink); }

/* main links (14 px / 500, 32 px apart – as on mybox.com) */
.hnav { display: flex; align-items: center; gap: 32px; margin-left: 28px; min-width: 0; }
.hnav__link {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: var(--fw-medium); line-height: 1; color: var(--ink); white-space: nowrap; transition: color .15s;
}
.hnav__link:hover, .hnav__link[aria-expanded="true"] { color: var(--muted); }
.hnav__link.is-current { position: relative; }
.hnav__link.is-current::after { content: ""; position: absolute; left: 0; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad); }
.hnav__status { gap: 8px; color: var(--muted); font-weight: var(--fw-regular); }
.hnav__status:hover { color: var(--ink); }

/* right-hand controls */
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-header__search { flex: 0 1 260px; min-width: 150px; margin-right: 4px; }
.hbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; flex: none;
	border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; white-space: nowrap;
	font: inherit; font-size: 16px; font-weight: var(--fw-medium); line-height: 1; color: var(--ink);
	transition: background-color .2s, border-color .2s, color .2s;
}
.hbtn--plain { padding: 0 14px; }
.hbtn--plain:hover, .hbtn--plain[aria-expanded="true"] { background: #f1f1f2; }
.hbtn__lang { font-size: 12px; font-weight: var(--fw-medium); }
.hbtn--outline { padding: 0 16px 0 20px; background: #fff; border-color: #cfd6dd; color: var(--muted); }
.hbtn--outline:hover, .hbtn--outline[aria-expanded="true"] { background: #f1f1f1; border-color: #b0b8be; }
.hbtn--outline .hbtn__chev { margin-left: 4px; }
.hbtn--dark { background: var(--ink); color: #fff; }
.hbtn--dark:hover { background: #2c3238; }
.hbtn--block { width: 100%; height: 48px; }
.hbtn--icon { width: 40px; padding: 0; }
.hbtn__chev { transition: transform .2s; }
[aria-expanded="true"] > .hbtn__chev { transform: rotate(180deg); }
.hbtn__user { display: none; }
.flag { display: block; width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 .5px rgba(21, 25, 29, .12); }
.menu-toggle { display: none; }
.menu-toggle .when-open, .menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }

/* dropdowns (Topics, Language, Login) */
.pop { position: relative; }
.pop__panel {
	position: absolute; top: calc(100% + 26px); left: 50%; z-index: 5; width: 300px; padding: 24px;
	background: #fff; border: 1px solid var(--hdr-line); border-radius: 8px; box-shadow: 0 8px 16px rgba(74, 84, 94, .08);
	opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.pop.is-open > .pop__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.pop__panel--end { left: auto; right: 0; transform: translateY(8px); }
.pop.is-open > .pop__panel--end { transform: translateY(0); }
.pop__panel--topics { left: -12px; width: 560px; transform: translateY(8px); }
.pop.is-open > .pop__panel--topics { transform: translateY(0); }
html:not(.js) .pop:focus-within > .pop__panel { opacity: 1; visibility: visible; } /* works without JS too */
.pop__title { margin: 0 0 16px; font-size: 18px; font-weight: var(--fw-medium); line-height: 1; color: var(--ink); }
.pop-links, .lang-list { list-style: none; margin: 0; padding: 0; }
.pop-links--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.pop-links a, .lang-list a {
	display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 4px;
	font-size: 14px; line-height: 20px; color: var(--ink); transition: background-color .15s;
}
.pop-links a:hover, .lang-list a:hover, .pop-links a[aria-current] { background: rgba(21, 25, 29, .06); }
.pop-links--grid a { padding: 8px 12px; }
.pop-links .icon { color: var(--ink); flex: none; }
.ico-chip { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--ac-bg, var(--soft)); color: var(--ac, var(--ink)); }
.ico-chip .icon { color: inherit; }
.lang-list a { padding: 15px 16px; }
.lang-list__check { margin-left: auto; }
.pop-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(255, 255, 255, .6); animation: fade-in .2s ease both; }

/* mobile menu (shown below 1024 px) */
.site-menu { display: none; }
.read-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }

/* 6. Search box ------------------------------------------------------------ */
.sbox { position: relative; display: flex; align-items: center; isolation: isolate; }
.sbox__icon { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.sbox__input {
	width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; outline: none;
	-webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.sbox__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sbox__input:focus { border-color: #c9bdf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .14); }
.hero__search, .page-hero .sbox { position: relative; z-index: 30; } /* dropdown above later animated content */
.sbox--hero { max-width: 680px; margin: 30px auto 0; }
.sbox--hero .sbox__input { height: 64px; border-radius: 999px; padding: 0 150px 0 56px; font-size: 17px; box-shadow: var(--shadow-lg); border-color: rgba(14, 14, 19, .06); }
.sbox--hero .sbox__input:focus { border-color: transparent; }
.sbox--hero .sbox__btn { position: absolute; right: 8px; height: 48px; }
.sbox--hero::before { /* animated gradient ring on focus */
	content: ""; position: absolute; inset: -3px; border-radius: 999px; z-index: -1; opacity: 0; filter: blur(6px);
	background: conic-gradient(from var(--ang, 0deg), var(--g1), var(--g2), var(--g3), #5aa9ff, var(--g1));
	transition: opacity .35s ease; animation: ring-rotate 5s linear infinite;
}
.sbox--hero:focus-within::before { opacity: .75; }
.sbox--header .sbox__icon, .sbox--menu .sbox__icon { left: 13px; }
.sbox--header .sbox__input, .sbox--menu .sbox__input { height: 40px; border-radius: 4px; padding: 0 36px 0 38px; font-size: 14px; background: #f7f8f9; border-color: var(--hdr-line); }
.sbox--header .sbox__input:focus, .sbox--menu .sbox__input:focus { background: #fff; }
.sbox--menu .sbox__input { height: 48px; font-size: 16px; }
.sbox--menu .sbox__kbd { display: none; }
.sbox__kbd { position: absolute; right: 12px; font: var(--fw-medium) 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: #fff; }
.sbox__results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 6px; text-align: left;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 70vh; overflow: auto;
}
.sbox__item { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 10px; animation: drop-in .28s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.sbox__item:hover, .sbox__item[aria-selected="true"] { background: var(--soft); }
.sbox__title { font-size: 15px; font-weight: var(--fw-medium); line-height: 1.35; color: var(--ink); }
.sbox__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--muted); }
.sbox__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbox__meta .type { font-size: 10px; padding: 2px 7px 2px 6px; }
.sbox__why { margin-left: auto; color: var(--g3); font-size: 13px; }
.sbox__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2); margin-top: 4px; padding: 6px 6px 2px 14px; }
.sbox__all { font-weight: var(--fw-medium); font-size: 14px; padding: 8px 0; }
.sbox__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.sbox__empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* 7. Heroes ---------------------------------------------------------------- */
.hero, .page-hero { position: relative; z-index: 3; border-bottom: 1px solid var(--line-2); }
.hero { padding: calc(var(--hdr-space) + 64px) 0 80px; text-align: center; }
.hero--compact { padding: calc(var(--hdr-space) + 72px) 0 110px; }
.page-hero { padding: calc(var(--hdr-space) + 24px) 0 44px; }
.hero__inner { position: relative; }
.hero__mesh {
	position: absolute; inset: 0; z-index: -1; overflow: hidden;
	background:
		radial-gradient(40% 60% at 12% 18%, #ffe1d1 0%, transparent 70%),
		radial-gradient(38% 55% at 88% 12%, #e4dbff 0%, transparent 70%),
		radial-gradient(45% 60% at 72% 100%, #d6e6ff 0%, transparent 70%),
		radial-gradient(40% 50% at 25% 95%, #fcd6ea 0%, transparent 70%),
		#fbfaff;
}
.hero__mesh::after { /* subtle grid like mybox.com */
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(14, 14, 19, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 14, 19, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__mesh--soft { opacity: .75; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -12%; top: -30%; background: radial-gradient(circle, #ffc7ab, transparent 65%); animation: drift-1 18s ease-in-out infinite; }
.blob--2 { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; right: -10%; top: -25%; background: radial-gradient(circle, #d8c8ff, transparent 65%); animation: drift-2 22s ease-in-out infinite; }
.blob--3 { width: 50vw; height: 40vw; max-width: 700px; max-height: 520px; left: 30%; bottom: -45%; background: radial-gradient(circle, #ffc4e1, transparent 65%); animation: drift-3 20s ease-in-out infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--fw-medium); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(14, 14, 19, .08); }
.hero__title { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.1; font-weight: var(--fw-regular); margin-top: 20px; }
.hero .grad-text { background-image: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g2), var(--g1)); background-size: 200% auto; animation: shine 5s linear infinite; }
.hero__text { max-width: 640px; margin: 14px auto 0; font-size: 18px; color: var(--muted); text-wrap: balance; }
.hero__hint { max-width: 560px; margin: 14px auto 0; font-size: 13px; color: var(--muted); text-wrap: balance; }
.hero__hint .icon { color: var(--g3); vertical-align: -2px; margin-right: 4px; }

.page-hero__row { display: flex; gap: 22px; align-items: center; margin-top: 26px; }
.page-hero__icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; flex: none; background: #fff; color: var(--ac, var(--ink)); box-shadow: var(--shadow); border: 1px solid rgba(14, 14, 19, .05); }
.page-hero__icon.type-ico { background: var(--tc-bg); color: var(--tc); }
.page-hero__title { font-size: clamp(28px, 3.6vw, 40px); }
.page-hero__text { color: var(--muted); font-size: 17px; margin-top: 6px; }
.page-hero__count { font-size: 14px; font-weight: var(--fw-medium); margin-top: 8px; color: var(--ink-2); }
.page-hero--search .page-hero__title { margin-top: 22px; }
.page-hero--search .sbox--hero { margin: 24px 0 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b8b9c4; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: var(--fw-medium); }

/* 8. Home sections --------------------------------------------------------- */
.section { padding: 64px 0; }
.section--tight { padding: 8px 0 64px; }
.section--types { padding: 36px 0 8px; }
.section--flush-top { padding-top: 40px; }
.section--soft { background: var(--soft); border-block: 1px solid var(--line-2); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: 28px; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card {
	position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 20px;
	border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.type-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--tc-bg); color: var(--tc); transition: transform .35s var(--spring); }
.type-card:hover .type-card__icon { transform: rotate(-8deg) scale(1.08); }
.type-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.type-card__name { font-weight: var(--fw-medium); font-size: 16px; }
.type-card__desc { font-size: 13px; color: var(--muted); }
.type-card__n { font-size: 22px; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card::before { /* gradient border on hover */
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity .2s;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.topic-card:hover::before { opacity: 1; }
.topic-card__icon { grid-area: icon; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: var(--ac-bg); color: var(--ac); transition: transform .4s var(--spring); }
.topic-card:hover .topic-card__icon { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.topic-card__name { grid-area: name; font-size: 18px; font-weight: var(--fw-medium); }
.topic-card__desc { grid-area: desc; flex: 1; font-size: 14px; color: var(--muted); line-height: 1.5; }
.topic-card__meta { grid-area: meta; display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; font-weight: var(--fw-medium); color: var(--ac); }
.topic-card__arrow { transition: transform .2s; }
.topic-card:hover .topic-card__arrow { transform: translateX(4px); }

.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.task { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.task:hover { border-color: #d6d6de; box-shadow: var(--shadow); }
.task__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ac-bg); color: var(--ac); }
.task__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.task__title, .task__topic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task__title { font-weight: var(--fw-medium); font-size: 15px; line-height: 1.35; }
.task__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.task__meta .type { font-size: 10px; padding: 2px 7px 2px 6px; }
.task__chev { color: var(--faint); transition: transform .15s; }
.task:hover .task__chev { transform: translateX(3px); color: var(--ink); }

.help-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 40px; }
.help-row > * { display: flex; }       /* equal-height status + support cards */
.help-row > * > * { flex: 1; }
.status { padding: 24px; }
.status__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.status__title { font-size: 17px; font-weight: var(--fw-medium); }
.status__link { margin-left: auto; font-size: 13px; font-weight: var(--fw-medium); display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
.status__list { list-style: none; margin: 0; padding: 0; }
.status__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.status__name { min-width: 0; }
.status__name small { color: var(--muted); font-size: 12px; }
.status__incidents { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.status__incident a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: var(--fw-medium); background: #fff5dc; color: #946800; }
.status__incident--down a { background: #fde8e4; color: #b42d17; }
.status__incident--maintenance a { background: var(--blue-bg); color: var(--blue); }
.status__incident a:hover { text-decoration: underline; text-underline-offset: 3px; }
.status__note { margin-top: 10px; font-size: 12px; color: var(--muted); }

.support { position: relative; overflow: hidden; isolation: isolate; padding: 30px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.support__glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -180px; top: -260px; border-radius: 50%; background: conic-gradient(from 200deg, var(--g1), var(--g2), var(--g3), var(--g1)); filter: blur(80px); opacity: .55; animation: drift-2 16s ease-in-out infinite; }
.support__title { font-size: 24px; font-weight: var(--fw-medium); }
.support__text { max-width: 520px; margin-top: 8px; color: rgba(255, 255, 255, .72); }
.support__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.support__tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s, border-color .15s; }
.support__tile:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .25); }
.support__tile .icon { margin-bottom: 6px; }
.support__tile strong { font-size: 15px; }
.support__tile span { font-size: 13px; color: rgba(255, 255, 255, .65); }

/* 9. Lists & grids --------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article-card__tags, .article-row__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.article-card__title { font-size: 17px; font-weight: var(--fw-medium); line-height: 1.35; }
.article-card__excerpt { flex: 1; font-size: 14px; color: var(--muted); line-height: 1.55; }
.article-card__meta { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }

.type-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.type-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: transform .2s, box-shadow .2s; }
.type-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.type-pill .icon { color: var(--tc); }
.type-pill span { color: var(--muted); font-weight: var(--fw-medium); font-size: 13px; }

.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sub-card { position: relative; display: flex; flex-direction: column; padding: 24px; overflow: hidden; isolation: isolate; }
.sub-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.sub-card__title { font-size: 18px; font-weight: var(--fw-medium); }
.sub-card__title a:hover, .sub-card__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sub-card__list { flex: 1; list-style: none; margin: 0 0 16px; padding: 0; }
.sub-card__list li { border-top: 1px solid var(--line-2); }
.sub-card__list a { display: block; position: relative; padding: 9px 0 9px 18px; font-size: 15px; color: var(--ink-2); }
.sub-card__list a::before { content: ""; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.layout-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--hdr-space) + 24px); min-width: 0; }
.side-nav__title { font-size: 13px; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--label); margin-bottom: 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.side-nav li a:hover { background: var(--soft); }
.side-nav li.is-current a { background: var(--ink); color: #fff; }
.side-nav__n { color: var(--muted); font-size: 12px; font-weight: var(--fw-medium); }
.side-nav li.is-current .side-nav__n { color: rgba(255, 255, 255, .7); }

.article-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.article-list li + li { border-top: 1px solid var(--line-2); }
.article-list__empty { padding: 28px 22px; color: var(--muted); }
.article-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; transition: background .15s; }
.article-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform .25s var(--ease); }
.article-row:hover { background: #fcfbff; }
.article-row:hover::before { transform: scaleY(1); }
.article-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; min-width: 0; }
.article-row__title { font-weight: var(--fw-medium); font-size: 16px; }
.article-row__excerpt { font-size: 14px; color: var(--muted); }
.article-row__chev { color: var(--faint); transition: transform .2s, color .2s; }
.article-row:hover .article-row__chev { transform: translateX(3px); color: var(--ink); }

.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: var(--fw-medium); background: #fff; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers.dots { border: 0; background: none; }
a.page-numbers:hover { border-color: #c9c9d3; }

.empty { text-align: center; padding: 40px 0; }
.empty p { color: var(--muted); margin-bottom: 14px; }
.empty .chips { margin-top: 0; }

/* 10. Article -------------------------------------------------------------- */
.article-top { padding-top: calc(var(--hdr-space) + 22px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; margin-block: 28px 64px; align-items: start; }
.article-layout--no-toc { grid-template-columns: minmax(0, 820px); }
.article__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article__title { font-size: clamp(28px, 3.6vw, 40px); margin-top: 16px; }
.article__title--sm { font-size: 22px; margin-top: 30px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 14px; }
.meta-btn:hover { color: var(--ink); }
.meta-btn.is-done { color: var(--ok); }

.article-aside { position: sticky; top: calc(var(--hdr-space) + 24px); }
.toc { border-left: 1px solid var(--line); padding-left: 18px; }
.toc__title { font-size: 12px; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--label); margin-bottom: 10px; }
.toc__list { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 220px); overflow: auto; }
.toc__item a { display: block; position: relative; padding: 5px 0; font-size: 14px; color: var(--muted); line-height: 1.4; transition: color .15s; }
.toc__item--h3 a { padding-left: 14px; font-size: 13px; }
.toc__item a:hover, .toc__item a.is-active { color: var(--ink); }
.toc__item a.is-active { font-weight: var(--fw-medium); }
.toc__item a.is-active::before { content: ""; position: absolute; left: -19px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--grad); }
.toc-mobile { display: none; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.toc-mobile summary { cursor: pointer; font-weight: var(--fw-medium); display: flex; gap: 8px; align-items: center; }
.toc-mobile .toc__list { margin-top: 8px; max-height: none; }

.prose { padding-top: 28px; font-size: 17px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { color: var(--ink); scroll-margin-top: calc(var(--hdr-space) + 24px); }
.prose h1, .prose h2 { font-size: 26px; margin-top: 1.9em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose h4, .prose h5 { font-size: 17px; margin-top: 1.4em; }
.prose a { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(118, 84, 240, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: var(--fw-strong); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--g2); }
.prose img { display: block; border-radius: 14px; border: 1px solid var(--line); }
.prose figure { margin: 1.6em 0; max-width: 100%; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose video, .prose iframe { width: 100%; max-width: 100%; border-radius: 14px; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-radius: 14px; background: var(--violet-bg); border-left: 3px solid var(--violet); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.prose pre { position: relative; overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: #12121a; color: #e8e8f0; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.copy-code { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; font-weight: var(--fw-medium); cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy-code, .copy-code:focus { opacity: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { background: var(--soft); font-weight: var(--fw-strong); color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose .wp-block-table { margin: 1.6em 0; }
.prose .wp-block-table .table-wrap { border: 0; }

.feedback { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 48px 0 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--soft); }
.feedback__q { font-weight: var(--fw-medium); }
.feedback__btns { display: flex; gap: 8px; }
.feedback__thanks { font-weight: var(--fw-medium); color: var(--ok); }
.feedback.is-voted .feedback__thanks { animation: thanks .5s var(--ease) both; }

/* 11. Search page ---------------------------------------------------------- */
.search-app__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.search-app__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.search-app__filters .fchips { margin: 0; }
.search-app__status { margin-left: auto; }
.search-app [data-results] { margin-top: 14px; transition: opacity .2s; }
.search-app.is-loading [data-results] { opacity: .55; }
.search-app__loading { display: none; gap: 6px; justify-content: center; padding-top: 10px; }
.search-app__loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); animation: bounce 1s ease-in-out infinite; }
.search-app__loading span:nth-child(2) { animation-delay: .12s; }
.search-app__loading span:nth-child(3) { animation-delay: .24s; }
.search-app.is-loading .search-app__loading { display: flex; }
.search-app__more { display: flex; margin: 20px auto 0; }
.search-app .empty { padding: 36px 0 0; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 40px; }
.site-footer__brand p { max-width: 300px; margin-top: 14px; color: var(--muted); }
.site-footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--label); margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__list--cols { grid-template-columns: 1fr 1fr; }
.site-footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); }

/* 13. Motion --------------------------------------------------------------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring-rotate { to { --ang: 360deg; } }
@keyframes grad-move { to { background-position: 200% 0; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.35) rotate(20deg); opacity: .75; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6) rotate(-10deg); } 70% { transform: scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes drift-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } }
@keyframes drift-2 { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-8%, 5%) scale(.92); } }
@keyframes drift-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5%, -7%); } }
@keyframes thanks { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* entrance */
.anim-in { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
.anim-pop { animation: pop .7s var(--ease) both .05s; }

/* reveal on scroll – html.js-reveal is set in <head> only when motion is allowed */
.js-reveal [data-reveal] > * { opacity: 0; transform: translateY(16px); }
.js-reveal [data-reveal].is-in > * {
	opacity: 1; transform: none;
	transition: opacity .6s var(--ease), transform .6s var(--ease);
	transition-delay: calc(min(var(--i, 0), 12) * 55ms);
}
.js-reveal [data-reveal].is-in > :hover { transition-delay: 0s; }
.js-reveal .article-list[data-reveal].is-in > * { transition-duration: .45s; transition-delay: calc(min(var(--i, 0), 14) * 30ms); }

/* cursor spotlight on cards with .spot */
.spot::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .09), rgba(240, 80, 143, .05) 35%, transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* page transitions (cross-document View Transitions; ignored by older browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(0, 0, .2, 1) both; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
/* The header is its own layer, so only the page content slides – the header stays perfectly still
   (only the old snapshot is hidden, the new one shows immediately; no cross-fade, no movement). */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; z-index: 10; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }

/* 14. Responsive ----------------------------------------------------------- */
/* header: drop the least important items first, then switch to the mobile menu (as mybox.com at 1023 px) */
@media (max-width: 1360px) { .hnav__status { display: none; } }
@media (max-width: 1180px) { .site-header__bar:has(.site-header__search) .hnav__link--site { display: none; } } /* logo still links to mybox.com */
@media (max-width: 1023px) {
	:root { --hdr-top: 16px; --hdr-h: 58px; }
	.site-header__bar { padding: 0 8px 0 16px; gap: 8px; }
	.brand__logo { height: 24px; }
	.hnav, .pop--lang, .site-header__search, .site-header__actions > .hbtn--dark { display: none; }
	.hbtn--outline { width: 40px; padding: 0; border-color: transparent; background: none; color: var(--ink); }
	.hbtn--outline:hover, .hbtn--outline[aria-expanded="true"] { background: #f1f1f2; border-color: transparent; }
	.hbtn--outline .hbtn__label, .hbtn--outline .hbtn__chev { display: none; }
	.hbtn__user { display: block; }
	.menu-toggle { display: inline-flex; }
	.menu-toggle:hover { background: #f1f1f2; }
	.pop__panel--end { right: -56px; width: min(300px, calc(100vw - 32px)); padding: 12px; top: calc(100% + 22px); }
	.site-header.is-menu-open .site-menu {
		display: block; max-height: calc(100dvh - var(--hdr-space) - 24px); overflow-y: auto; overscroll-behavior: contain;
		padding: 0 16px 16px; border-top: 1px solid var(--hdr-line); animation: drop-in .25s var(--ease) both;
	}
	.site-menu .sbox { margin: 16px 0 4px; }
	.site-menu__sections a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid #dee3e7; font-size: 16px; }
	.site-menu__sections a:hover { background: none; color: var(--muted); }
	.site-menu__sections a[aria-current] { background: none; font-weight: var(--fw-medium); }
	.lang-list--inline { display: flex; gap: 8px; margin: 16px 0 0; }
	.lang-list--inline li { flex: 1; }
	.lang-list--inline a { padding: 12px 14px; border: 1px solid #dee3e7; font-size: 15px; }
	.lang-list--inline a[aria-current] { background: rgba(21, 25, 29, .06); border-color: transparent; }
	.site-menu__links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 24px; font-size: 15px; font-weight: var(--fw-medium); }
	.site-menu__links a:hover { color: var(--muted); }
	.site-menu__status { display: flex; align-items: center; gap: 10px; padding: 16px 4px; font-size: 14px; color: var(--muted); }
}
@media (max-width: 1100px) {
	.topic-grid, .task-grid { grid-template-columns: repeat(2, 1fr); }
	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.article-aside { display: none; }
	.toc-mobile { display: block; }
}
@media (max-width: 960px) {
	.type-card { padding: 16px; gap: 12px; }
	.type-card__desc { display: none; }
	.article-grid { grid-template-columns: repeat(2, 1fr); }
	.help-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	:root { --gutter: 16px; }

	.hero { padding: calc(var(--hdr-space) + 36px) 0 44px; }
	.hero__text { font-size: 16px; }
	.sbox--hero .sbox__input { height: 56px; padding: 0 20px 0 50px; font-size: 16px; }
	.sbox--hero .sbox__btn { display: none; }
	.sbox--hero .sbox__icon { left: 18px; }
	/* popular searches + filter chips: one swipeable row */
	.hero .chips, .fchips {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
	}
	.hero .chips::-webkit-scrollbar, .fchips::-webkit-scrollbar { display: none; }

	.section { padding: 44px 0; }
	.section--types { padding: 24px 0 0; }
	.section--flush-top { padding-top: 36px; }
	.section__title { font-size: 22px; }
	.type-grid, .task-grid, .sub-grid, .article-grid { grid-template-columns: 1fr; }
	.type-grid { gap: 10px; }
	.type-card__desc { display: block; }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.side-nav { position: static; }
	.side-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.side-nav li a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
	.search-app__filters { width: 100%; }
	.search-app__status { margin-left: 0; }
	.page-hero { padding: calc(var(--hdr-space) + 16px) 0 32px; }
	.page-hero__row { gap: 16px; margin-top: 20px; }
	.page-hero__icon, .page-hero__icon.type-ico { width: 56px; height: 56px; border-radius: 16px; }
	.page-hero__text { font-size: 15px; }
	.support { padding: 24px; }
	.support__actions { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.prose { font-size: 16px; }
	.article-row { padding: 16px; gap: 12px; }
	.article-row__icon { display: none; }
	.feedback { padding: 16px 18px; }
	.blob { filter: blur(40px); }
}
@media (max-width: 600px) {
	/* compact topic cards: icon left, text right */
	.topic-grid { grid-template-columns: 1fr; gap: 10px; }
	.topic-card {
		display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "icon name" "icon desc" "icon meta";
		column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px;
	}
	.topic-card__icon { margin: 0; }
	.topic-card__name { font-size: 16px; }
	.topic-card__desc { font-size: 13px; }
	.topic-card__meta { margin-top: 6px; }
}
@media (max-width: 520px) {
	.brand__tag { display: none; } /* phones: logo only, like mybox.com */
	.type-card__n { font-size: 18px; }
	.site-footer__bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
}

/* 15. Print ---------------------------------------------------------------- */
@media print {
	.site-header, .pop-overlay, .read-progress, .site-footer, .article-aside, .toc-mobile, .feedback, .support, .section--soft, .article-top, .meta-btn { display: none !important; }
	.article-layout { display: block; margin: 0; }
	.prose { font-size: 12pt; }
	.prose pre { background: #f4f4f4; color: #000; }
}
