/* Safee Glossary — front end. Everything is scoped under .sg so it never leaks into the theme. */

/* ------------------------------------------------------------------ tokens */
.sg {
	--sg-green: #2c8c5f;
	--sg-bright: #5fdc92;
	--sg-green-text: #247349;
	--sg-tint: #ecf6f1;
	--sg-ink: #231f20;
	--sg-deep: #1f3027;
	--sg-deeper: #1a1716;
	--sg-mute: #6b6868;
	--sg-line: #e8e6e6;
	--sg-paper: #f7f6f6;
	--sg-sticky: 0px;
	--sg-shadow: 0 1px 2px rgba(35, 31, 32, .05), 0 14px 32px -18px rgba(35, 31, 32, .28);
	--sg-ease: cubic-bezier(.2, .8, .2, 1);

	box-sizing: border-box;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--sg-ink);
	-webkit-font-smoothing: antialiased;
	text-align: start;
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg [hidden] { display: none !important; }
.sg a { text-decoration: none; box-shadow: none; border: 0; }
.sg h1, .sg h2, .sg p, .sg ul, .sg ol { margin: 0; padding: 0; font-family: inherit; letter-spacing: 0; text-transform: none; }
.sg ul, .sg ol { list-style: none; }
.sg li { margin: 0; padding: 0; }
.sg .sg-i { width: 1.25em; height: 1.25em; flex: none; display: block; }
.sg-hub, .sg-single { display: block; }

/* Break out of narrow theme columns and sit centred (switch off in Settings). */
body.sg-wide .sg-hub { --sg-w: min(1180px, calc(100vw - 32px)); }
body.sg-wide .sg-single { --sg-w: min(1120px, calc(100vw - 32px)); }
body.sg-wide .sg { width: var(--sg-w); max-width: none !important; margin-inline: calc(50% - var(--sg-w) / 2) !important; }

/* The theme prints its own title / meta above the content; our hero already carries them. */
body.sg-notitle .wp-block-post-title,
body.sg-notitle .entry-title,
body.sg-notitle .page-title,
body.sg-notitle .elementor-page-title,
body.sg-notitle .wp-block-group:has(> .wp-block-post-title):not(:has(.wp-block-post-content)),
body.sg-term-page .wp-block-post-author-name,
body.sg-term-page .wp-block-post-author,
body.sg-term-page .wp-block-post-date,
body.sg-term-page .wp-block-post-terms,
body.sg-term-page .entry-meta,
body.sg-term-page .wp-block-group:has(> .wp-block-post-author-name):not(:has(.wp-block-post-content)),
body.sg-term-page .wp-block-group:has(> .wp-block-post-date):not(:has(.wp-block-post-content)),
body.sg-term-page .wp-block-query,
body.sg-term-page .wp-block-group:has(+ .wp-block-post-content),
body.sg-term-page .wp-block-group:has(> .wp-block-query),
body.sg-term-page .wp-block-post-navigation-link,
body.sg-term-page .wp-block-comments { display: none !important; }

/* ------------------------------------------------------------------- hero */
.sg .sg-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	border-radius: 30px;
	background: radial-gradient(120% 150% at 88% -20%, var(--sg-deep) 0%, var(--sg-deeper) 68%);
	box-shadow: 0 40px 70px -40px rgba(20, 20, 20, .65);
}
.sg .sg-hero-bg { position: absolute; inset: 0; z-index: -1; }
.sg .sg-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-ar .sg-art { transform: scaleX(-1); }
.sg .sg-hero--term .sg-art { opacity: .6; }
.sg .sg-art-grid { color: rgba(255, 255, 255, .055); }
.sg .sg-art-geo { fill: rgba(107, 239, 160, .05); stroke: rgba(107, 239, 160, .28); stroke-width: 1.5; stroke-dasharray: 5 7; animation: sg-dash 40s linear infinite; }
.sg .sg-art-route { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 3; stroke-linecap: round; }
.sg .sg-art-flow { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 180 720; animation: sg-flow 9s linear infinite; }
.sg .sg-art-nodes circle { fill: var(--sg-bright); }
.sg .sg-art-nodes .sg-ping { fill: none; stroke: var(--sg-bright); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sg-ping 3.4s ease-out infinite; }
.sg .sg-art-nodes .sg-ping--2 { animation-delay: 1.1s; }
.sg .sg-art-nodes .sg-ping--3 { animation-delay: 2.2s; }
.sg .sg-car-halo { fill: var(--sg-bright); opacity: .22; transform-box: fill-box; transform-origin: center; animation: sg-halo 2.2s ease-in-out infinite; }
.sg .sg-car-dot { fill: #fff; stroke: var(--sg-bright); stroke-width: 3.5; }
.sg .sg-glow {
	position: absolute; width: 560px; height: 560px; max-width: 120vw; left: var(--mx, 78%); top: var(--my, 6%);
	transform: translate(-50%, -50%); pointer-events: none;
	background: radial-gradient(closest-side, rgba(63, 185, 96, .32), rgba(63, 185, 96, 0) 70%);
	transition: left .45s var(--sg-ease), top .45s var(--sg-ease);
}
@keyframes sg-flow { to { stroke-dashoffset: -900; } }
@keyframes sg-dash { to { stroke-dashoffset: -400; } }
@keyframes sg-ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(5); opacity: 0; } }
@keyframes sg-halo { 0%, 100% { transform: scale(.85); opacity: .35; } 50% { transform: scale(1.5); opacity: .08; } }

.sg .sg-hero-in { position: relative; padding: clamp(26px, 5vw, 56px); }
.sg .sg-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.sg .sg-h {
	font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.25; color: #fff; margin: 0;
	background: linear-gradient(95deg, #fff 30%, #b8f3d1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	animation: sg-rise .8s var(--sg-ease) both;
}

/* language switch (glass pill) */
.sg .sg-switch {
	display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, transform .25s var(--sg-ease), border-color .25s;
}
.sg-ar .sg-switch { padding: 0 14px 0 18px; }
.sg .sg-switch:hover, .sg .sg-switch:focus-visible { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff; transform: translateY(-2px); }
.sg .sg-switch .sg-i { width: 19px; height: 19px; transition: transform .6s var(--sg-ease); }
.sg .sg-switch:hover .sg-i { transform: rotate(180deg); }

/* search */
.sg .sg-search { position: relative; display: flex; align-items: center; animation: sg-rise .8s .1s var(--sg-ease) both; }
.sg .sg-search-i { position: absolute; inset-inline-start: 22px; width: 24px; height: 24px; color: var(--sg-green); pointer-events: none; transition: transform .3s var(--sg-ease); z-index: 1; }
.sg .sg-q {
	all: unset; box-sizing: border-box; width: 100%; height: 68px; padding-inline: 62px 70px; border-radius: 20px;
	background: #fff; color: var(--sg-ink); font: inherit; font-size: 1.15rem; font-weight: 500;
	box-shadow: 0 24px 44px -22px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset; transition: box-shadow .3s, transform .3s var(--sg-ease);
}
.sg .sg-q::placeholder { color: #8b8888; opacity: 1; font-weight: 400; }
.sg .sg-q::-webkit-search-cancel-button, .sg .sg-q::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.sg .sg-q:focus { box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .7), 0 0 0 5px rgba(95, 220, 146, .55); transform: translateY(-1px); }
.sg .sg-search:focus-within .sg-search-i { transform: scale(1.12) rotate(-8deg); }
.sg .sg-kbd {
	position: absolute; inset-inline-end: 20px; min-width: 30px; height: 30px; padding: 0 9px; display: grid; place-items: center;
	border-radius: 9px; border: 1px solid var(--sg-line); border-bottom-width: 3px; background: var(--sg-paper); color: var(--sg-mute); font: 600 .9rem/1 ui-monospace, monospace; pointer-events: none;
}
.sg .sg-clear {
	all: unset; box-sizing: border-box; position: absolute; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	cursor: pointer; background: var(--sg-paper); color: var(--sg-ink); transition: background .2s, color .2s, transform .25s var(--sg-ease);
}
.sg .sg-clear[hidden] { display: none !important; }
.sg .sg-clear .sg-i { width: 18px; height: 18px; }
.sg .sg-clear:hover, .sg .sg-clear:focus-visible { background: var(--sg-ink); color: #fff; transform: rotate(90deg); }
.sg .sg-search.has-q .sg-kbd { display: none; }

.sg .sg-count { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .78); font-size: .98rem; font-weight: 600; animation: sg-rise .8s .2s var(--sg-ease) both; }
.sg .sg-count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sg-bright); animation: sg-live 2.4s ease-out infinite; }
@keyframes sg-live { 0% { box-shadow: 0 0 0 0 rgba(95, 220, 146, .6); } 100% { box-shadow: 0 0 0 12px rgba(95, 220, 146, 0); } }
@keyframes sg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- controls */
.sg .sg-controls { margin-block: 26px 14px; display: flex; align-items: center; }
.sg .sg-tabs { position: relative; display: inline-flex; padding: 5px; gap: 2px; border-radius: 16px; background: var(--sg-paper); border: 1px solid var(--sg-line); }
.sg .sg-ind { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 12px; background: var(--sg-ink); box-shadow: 0 10px 18px -10px rgba(35, 31, 32, .8); transition: transform .45s var(--sg-ease), width .45s var(--sg-ease); pointer-events: none; }
.sg .sg-tab {
	all: unset; box-sizing: border-box; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 20px; border-radius: 12px;
	cursor: pointer; color: var(--sg-ink); font: inherit; font-size: .98rem; font-weight: 700; white-space: nowrap; transition: color .3s;
}
.sg .sg-tab .sg-i { width: 17px; height: 17px; }
.sg .sg-tab:hover { color: var(--sg-green-text); }
.sg .sg-tab[aria-pressed="true"], .sg .sg-tab[aria-pressed="true"]:hover { color: #fff; }
.sg:not(.sg-js) .sg-controls, .sg:not(.sg-js) .sg-chips, .sg:not(.sg-js) .sg-kbd, .sg:not(.sg-js) .sg-letters { display: none; }
.sg .sg-tabs:not(.has-ind) .sg-tab[aria-pressed="true"] { background: var(--sg-ink); }

.sg .sg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sg .sg-chip {
	all: unset; box-sizing: border-box; --c: hsl(var(--h, 152) 52% 33%); --cb: hsl(var(--h, 152) 55% 95%); --cl: hsl(var(--h, 152) 40% 85%);
	display: inline-flex; align-items: center; gap: 9px; height: 42px; padding-inline: 8px 16px; border-radius: 999px; cursor: pointer;
	background: #fff; border: 1.5px solid var(--sg-line); color: var(--sg-ink); font: inherit; font-size: .93rem; font-weight: 600; line-height: 1;
	transition: transform .25s var(--sg-ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.sg .sg-chip .sg-i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--cb); color: var(--c); transition: background .25s, color .25s, transform .4s var(--sg-ease); }
.sg .sg-chip:hover { transform: translateY(-2px); border-color: var(--cl); box-shadow: 0 10px 20px -14px var(--c); }
.sg .sg-chip:hover .sg-i { transform: rotate(-10deg) scale(1.08); }
.sg .sg-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 12px 22px -12px var(--c); }
.sg .sg-chip[aria-pressed="true"] .sg-i { background: rgba(255, 255, 255, .2); color: #fff; }
.sg .sg-chip.sg-chip--all { --c: var(--sg-ink); --cb: var(--sg-paper); --cl: #cfcdcd; padding-inline: 20px; }
.sg :is(.sg-tab, .sg-chip, .sg-clear, .sg-switch, .sg-link, .sg-rel, .sg-top-btn, .sg-pn a):focus-visible { outline: 3px solid var(--sg-bright); outline-offset: 3px; }

/* ---------------------------------------------------------------- letters */
.sg .sg-letters { position: sticky; top: calc(var(--sg-sticky) + 10px); z-index: 30; margin-bottom: 8px; display: flex; justify-content: center; pointer-events: none; transition: opacity .3s, transform .4s var(--sg-ease); }
.sg .sg-letters.is-hidden { opacity: 0; transform: translateY(-10px); visibility: hidden; }
.sg .sg-letters-in {
	pointer-events: auto; display: flex; gap: 2px; padding: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
	background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
	border: 1px solid var(--sg-line); border-radius: 999px; box-shadow: 0 16px 32px -18px rgba(35, 31, 32, .4);
}
.sg .sg-letters-in::-webkit-scrollbar { display: none; }
.sg .sg-letters a, .sg .sg-letters span {
	flex: none; min-width: 36px; height: 36px; padding-inline: 4px; display: grid; place-items: center; border-radius: 50%;
	font-weight: 800; font-size: 1rem; line-height: 1; color: var(--sg-ink); transition: background .25s, color .25s, transform .3s var(--sg-ease);
}
.sg .sg-letters a:hover { background: var(--sg-tint); color: var(--sg-green-text); transform: translateY(-2px); }
.sg .sg-letters a.is-active { background: linear-gradient(135deg, var(--sg-green), var(--sg-bright)); color: #fff; box-shadow: 0 8px 16px -8px var(--sg-green); transform: scale(1.08); }
.sg .sg-letters .is-off { opacity: .2; pointer-events: none; }

/* ------------------------------------------------------------------ lists */
.sg .sg-group, .sg .sg-cgroup { margin-top: 30px; scroll-margin-top: calc(var(--sg-sticky) + 84px); }
.sg .sg-letter, .sg .sg-cat-h { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.sg .sg-letter b {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none;
	background: linear-gradient(135deg, var(--sg-green), var(--sg-bright)); color: #fff; font-size: 1.75rem; font-weight: 800; line-height: 1;
	box-shadow: 0 14px 24px -14px var(--sg-green);
}
.sg .sg-letter::after, .sg .sg-cat-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--sg-line), transparent); }
.sg-ar .sg-letter { direction: rtl; }
.sg-ar .sg-letter::after, .sg-ar .sg-cat-h::after { background: linear-gradient(270deg, var(--sg-line), transparent); }
.sg .sg-cat-n { color: var(--sg-mute); font-size: .9rem; font-weight: 700; }
.sg .sg-cat-n:empty { display: none; }
.sg .sg-cat-h { --c: hsl(var(--h, 152) 52% 33%); --cb: hsl(var(--h, 152) 55% 94%); font-size: 1.3rem; font-weight: 800; color: var(--sg-ink); }
.sg .sg-cat-h .sg-i { width: 48px; height: 48px; padding: 11px; border-radius: 16px; background: var(--cb); color: var(--c); }

.sg .sg-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 12px; }

.sg .sg-link, .sg .sg-rel {
	--c: hsl(var(--h, 152) 52% 33%); --cb: hsl(var(--h, 152) 55% 94%); --cl: hsl(var(--h, 152) 45% 78%);
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 20px;
	background: #fff; border: 1px solid var(--sg-line); color: var(--sg-ink);
	transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .3s;
}
.sg .sg-link::before, .sg .sg-rel::before {
	content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s;
	background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), hsl(var(--h, 152) 85% 58% / .16), transparent 62%);
}
.sg .sg-link:hover, .sg .sg-link:focus-visible, .sg .sg-rel:hover, .sg .sg-rel:focus-visible { transform: translateY(-4px); border-color: var(--cl); box-shadow: 0 22px 36px -24px var(--c); color: var(--sg-ink); }
.sg .sg-link:hover::before, .sg .sg-rel:hover::before { opacity: 1; }
.sg .sg-tile { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, var(--cb, #ecf6f1), hsl(var(--h, 152) 60% 90%)); color: var(--c, #2c8c5f); transition: background .3s, color .3s, transform .45s var(--sg-ease); position: relative; }
.sg .sg-tile .sg-i { width: 23px; height: 23px; }
.sg .sg-link:hover .sg-tile, .sg .sg-rel:hover .sg-tile { background: var(--c); color: #fff; transform: rotate(-7deg) scale(1.07); }
.sg .sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; }
.sg .sg-t { font-weight: 800; font-size: 1.04rem; line-height: 1.35; overflow-wrap: anywhere; }
.sg .sg-tr { color: var(--sg-mute); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.sg .sg-go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sg-paper); color: var(--sg-ink); transition: background .3s, color .3s, transform .4s var(--sg-ease); position: relative; }
.sg .sg-go .sg-i { width: 17px; height: 17px; }
.sg-ar .sg-arrow { transform: scaleX(-1); }
.sg .sg-link:hover .sg-go, .sg .sg-rel:hover .sg-go { background: var(--c); color: #fff; transform: translateX(4px); }
.sg-ar .sg-link:hover .sg-go, .sg-ar .sg-rel:hover .sg-go { transform: translateX(-4px); }
.sg .sg-badge { flex: none; align-self: flex-start; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: var(--sg-green); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.5; box-shadow: 0 6px 12px -6px var(--sg-green); position: relative; }

/* scroll reveal (only when JS is on) */
.sg.sg-js .sg-row { opacity: 0; transform: translateY(18px) scale(.98); }
.sg.sg-js .sg-row.is-in { opacity: 1; transform: none; transition: opacity .55s ease var(--d, 0ms), transform .7s var(--sg-ease) var(--d, 0ms); }
.sg.sg-js .sg-group > .sg-letter { opacity: 0; transform: translateX(-14px); }
.sg.sg-js .sg-cgroup > .sg-banner { opacity: 0; transform: translateY(18px); }
.sg.sg-js .sg-group.is-in > .sg-letter, .sg.sg-js .sg-cgroup.is-in > .sg-banner { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--sg-ease); }
.sg-ar.sg-js .sg-group > .sg-letter { transform: translateX(14px); }
.sg-ar.sg-js .sg-group.is-in > .sg-letter { transform: none; }

.sg .sg-empty { padding: 70px 20px; text-align: center; color: var(--sg-mute); font-size: 1.1rem; font-weight: 600; }
.sg .sg-empty .sg-i { width: 64px; height: 64px; margin: 0 auto 14px; padding: 16px; border-radius: 50%; background: var(--sg-paper); color: var(--sg-green); animation: sg-float 3s ease-in-out infinite; }
@keyframes sg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sg .sg-top-btn {
	all: unset; box-sizing: border-box; position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
	background: var(--sg-ink); color: #fff; cursor: pointer; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); animation: sg-rise .4s var(--sg-ease) both; transition: background .25s, transform .3s var(--sg-ease);
}
.sg .sg-top-btn[hidden] { display: none !important; }
.sg .sg-top-btn:hover { background: var(--sg-green); transform: translateY(-4px); }

/* ------------------------------------------------------ category banners (hub, "by category") */
.sg .sg-banner {
	--a: hsl(var(--h, 152) 85% 68%);
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 148px; margin-bottom: 14px; padding: 20px clamp(18px, 3vw, 30px); border-radius: 26px; color: #fff;
	background: radial-gradient(110% 160% at 100% 0%, hsl(var(--h, 152) 42% 20%) 0%, #1a1716 66%);
	box-shadow: 0 30px 50px -34px rgba(20, 20, 20, .7);
}
.sg-ar .sg-banner { background: radial-gradient(110% 160% at 0% 0%, hsl(var(--h, 152) 42% 20%) 0%, #1a1716 66%); }
.sg .sg-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 48px); }
.sg .sg-banner-t { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 62%; }
.sg .sg-banner .sg-cat-h { margin: 0; color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; }
.sg .sg-banner .sg-cat-h::after { display: none; }
.sg .sg-banner-i { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 19px; background: hsl(var(--h, 152) 70% 55% / .2); border: 1px solid hsl(var(--h, 152) 80% 70% / .4); color: var(--a); }
.sg .sg-banner-i .sg-i { width: 28px; height: 28px; }
.sg .sg-banner .sg-cat-n { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .9rem; }
.sg .sg-banner-scene { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(52%, 330px); display: grid; align-items: center; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to left, #000 62%, transparent); }
.sg-ar .sg-banner-scene { -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); }
.sg .sg-banner-scene .sg-scene-svg { width: 100%; }
.sg .sg-banner-scene .sc-glow { opacity: .6; }

/* ------------------------------------------------------------- term page */
.sg .sg-progress { position: fixed; inset-inline: 0; top: var(--sg-ab, 0px); height: 4px; z-index: 99999; pointer-events: none; }
.sg .sg-progress span { display: block; height: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sg-green), var(--sg-bright)); box-shadow: 0 0 12px var(--sg-bright); border-radius: 0 4px 4px 0; }
.sg-ar .sg-progress span { transform-origin: right center; border-radius: 4px 0 0 4px; }

/* hero */
.sg .sg-hero--term { background: radial-gradient(95% 130% at 100% 0%, hsl(var(--h, 152) 40% 17%) 0%, #1a1716 64%); }
.sg-ar .sg-hero--term { background: radial-gradient(95% 130% at 0% 0%, hsl(var(--h, 152) 40% 17%) 0%, #1a1716 64%); }
.sg .sg-hero--term .sg-hero-bg::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 56px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 56px); -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent); mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent); }
.sg .sg-hero--term .sg-glow { background: radial-gradient(closest-side, hsl(var(--h, 152) 80% 55% / .3), transparent 70%); }
.sg .sg-hero--term .sg-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 410px); align-items: center; gap: clamp(22px, 4vw, 52px); padding: clamp(26px, 4.4vw, 54px); max-width: none; }
.sg .sg-hero-text { min-width: 0; }
.sg .sg-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; animation: sg-rise .6s var(--sg-ease) both; }
.sg .sg-crumb a { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .92rem; transition: color .2s; }
.sg .sg-crumb > a:hover { color: #fff; }
.sg .sg-crumb .sg-chev { width: 16px; height: 16px; color: rgba(255, 255, 255, .4); }
.sg-ar .sg-chev { transform: scaleX(-1); }
.sg .sg-cat-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; color: #fff !important;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: background .25s, transform .25s var(--sg-ease);
}
.sg-ar .sg-cat-chip { padding: 0 6px 0 14px; }
.sg .sg-cat-chip .sg-i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: hsl(var(--h, 152) 60% 42%); color: #fff; }
.sg .sg-cat-chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.sg .sg-hero--term .sg-h { display: block; margin-bottom: 16px; font-size: clamp(2rem, 4.8vw, 3.4rem); }
.sg .sg-pairrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; animation: sg-rise .7s .1s var(--sg-ease) both; }
.sg .sg-pair { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); font-size: 1rem; }
.sg .sg-pair-v { display: inline-block; padding: 5px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 800; font-size: 1.1rem; }
.sg .sg-brief { position: relative; padding: 16px 20px 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: sg-rise .7s .2s var(--sg-ease) both; }
.sg .sg-brief-l { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--a); font-weight: 800; font-size: .86rem; }
.sg .sg-brief-l .sg-i { width: 16px; height: 16px; }
.sg .sg-brief p { font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.85; color: rgba(255, 255, 255, .94); }
.sg .sg-scene { position: relative; overflow: hidden; border-radius: 28px; padding: 6px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .13); box-shadow: inset 0 0 70px hsl(var(--h, 152) 80% 60% / .1), 0 34px 50px -34px #000; animation: sg-rise .9s .15s var(--sg-ease) both; }

/* layout: article + side menu */
.sg .sg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(24px, 4vw, 60px); align-items: start; margin-top: 34px; }
.sg .sg-col { min-width: 0; }
.sg .sg-side { position: sticky; top: calc(var(--sg-sticky) + 22px); display: grid; gap: 18px; }
.sg .sg-toc { padding: 4px 0; }
.sg .sg-toc-h { margin: 0 0 10px; color: var(--sg-mute); font-weight: 800; font-size: .82rem; letter-spacing: .02em; }
.sg .sg-toc ol { position: relative; border-inline-start: 2px solid var(--sg-line); }
.sg .sg-toc a {
	display: flex; align-items: center; gap: 10px; margin-inline-start: -2px; padding: 9px 14px; border-inline-start: 2px solid transparent; color: var(--sg-mute); font-weight: 700; font-size: .95rem; line-height: 1.4;
	transition: color .25s, border-color .25s, background .25s, padding .3s var(--sg-ease);
}
.sg .sg-toc a:hover { color: var(--sg-ink); }
.sg .sg-toc a.is-active { color: var(--sg-ink); border-inline-start-color: hsl(var(--h, 152) 60% 42%); background: linear-gradient(to inline-end, hsl(var(--h, 152) 60% 96%), transparent); padding-inline-start: 18px; }
.sg-ar .sg-toc a.is-active { background: linear-gradient(to left, hsl(var(--h, 152) 60% 96%), transparent); }
.sg .sg-toc-n { font-variant-numeric: tabular-nums; font-size: .8rem; color: hsl(var(--h, 152) 45% 45%); direction: ltr; }
.sg .sg-back { display: inline-flex; align-items: center; gap: 8px; color: var(--sg-mute); font-weight: 700; font-size: .92rem; transition: color .2s, gap .3s var(--sg-ease); }
.sg .sg-back:hover { color: var(--sg-ink); gap: 12px; }
.sg .sg-back-i { width: 18px; height: 18px; transform: scaleX(-1); }
.sg-ar .sg-back-i { transform: none; }

/* sections */
.sg .sg-sec { margin: 0 0 clamp(34px, 5vw, 52px); scroll-margin-top: calc(var(--sg-sticky) + 80px); }
.sg .sg-sec > h2, .sg .sg-ex > h2, .sg .sg-related h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; line-height: 1.45; color: var(--sg-ink); }
.sg .sg-n { flex: none; min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: hsl(var(--h, 152) 55% 94%); color: hsl(var(--h, 152) 55% 28%); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; direction: ltr; }
.sg .sg-prose { max-width: none; } /* Text runs the full column width, aligned with the boxes below it. */
.sg .sg-prose p { margin: 0 0 1.1em; font-size: 1.1rem; line-height: 2; color: #2f2b2c; }
.sg-en .sg-prose p { line-height: 1.85; }
.sg .sg-prose p:last-child { margin-bottom: 0; }
.sg .sg-prose strong, .sg .sg-prose b { color: var(--sg-ink); font-weight: 800; }
.sg.sg-js .sg-sec, .sg.sg-js .sg-ex, .sg.sg-js .sg-related, .sg.sg-js .sg-pn { opacity: 0; transform: translateY(28px); }
.sg.sg-js .sg-sec.is-in, .sg.sg-js .sg-ex.is-in, .sg.sg-js .sg-related.is-in, .sg.sg-js .sg-pn.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--sg-ease); }

/* how it works */
.sg .sg-flow { margin-top: 26px; padding: 22px clamp(16px, 3vw, 28px) 26px; border-radius: 24px; background: linear-gradient(160deg, hsl(var(--h, 152) 60% 97%), hsl(var(--h, 152) 50% 94%)); border: 1px solid hsl(var(--h, 152) 40% 88%); }
.sg .sg-flow-l { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: hsl(var(--h, 152) 55% 28%); font-weight: 800; font-size: .95rem; }
.sg .sg-flow-l .sg-i { width: 18px; height: 18px; }
.sg .sg-flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sg .sg-fs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sg .sg-fs-ico { position: relative; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: hsl(var(--h, 152) 55% 32%); border: 2px solid hsl(var(--h, 152) 45% 82%); box-shadow: 0 14px 24px -16px hsl(var(--h, 152) 60% 30%); animation: sg-step 5.4s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); }
.sg .sg-fs-ico .sg-i { width: 29px; height: 29px; }
.sg .sg-fs-ico b { position: absolute; top: -4px; inset-inline-end: -4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h, 152) 60% 38%); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; }
.sg .sg-fs-t { font-weight: 700; font-size: 1.02rem; line-height: 1.55; color: var(--sg-ink); max-width: 17ch; }
.sg .sg-fs:not(:last-child)::after {
	content: ""; position: absolute; top: 33px; inset-inline-start: calc(50% + 46px); width: calc(100% - 92px + 14px); height: 3px; border-radius: 2px;
	background: repeating-linear-gradient(90deg, hsl(var(--h, 152) 55% 52%) 0 7px, transparent 7px 14px); background-size: 14px 3px; animation: sg-march 1s linear infinite;
}
.sg-ar .sg-fs:not(:last-child)::after { animation-direction: reverse; }
@keyframes sg-march { to { background-position: 14px 0; } }
@keyframes sg-step {
	0%, 60%, 100% { background: #fff; color: hsl(var(--h, 152) 55% 32%); transform: none; }
	12%, 40% { background: hsl(var(--h, 152) 62% 40%); color: #fff; transform: scale(1.1); }
}
.sg.sg-js .sg-fs { opacity: 0; transform: translateY(14px); }
.sg.sg-js .sg-sec.is-in .sg-fs { opacity: 1; transform: none; transition: opacity .6s ease calc(.3s + var(--i) * .16s), transform .8s var(--sg-ease) calc(.3s + var(--i) * .16s); }

/* what you gain */
.sg .sg-gains { margin-top: 24px; }
.sg .sg-gains-l { margin-bottom: 12px; color: var(--sg-mute); font-weight: 800; font-size: .9rem; }
.sg .sg-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; }
.sg .sg-points li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--sg-line); font-weight: 700; font-size: 1.01rem; line-height: 1.55; box-shadow: var(--sg-shadow); }
.sg .sg-pt-i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h, 152) 55% 92%); color: hsl(var(--h, 152) 55% 30%); }
.sg .sg-pt-i .sg-i { width: 17px; height: 17px; }
.sg.sg-js .sg-points li { opacity: 0; transform: translateY(14px) scale(.98); }
.sg.sg-js .sg-sec.is-in .sg-points li { opacity: 1; transform: none; transition: opacity .6s ease calc(.25s + var(--i) * .1s), transform .8s var(--sg-ease) calc(.25s + var(--i) * .1s); }

/* interface path + tip */
.sg .sg-ui { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 22px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px dashed hsl(var(--h, 152) 35% 68%); }
.sg .sg-ui-l { display: inline-flex; align-items: center; gap: 9px; color: var(--sg-mute); font-weight: 800; font-size: .92rem; }
.sg .sg-ui-l .sg-i { width: 20px; height: 20px; color: hsl(var(--h, 152) 55% 38%); }
.sg .sg-ui-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg .sg-crumb-chip { padding: 7px 14px; border-radius: 11px; background: hsl(var(--h, 152) 55% 94%); color: hsl(var(--h, 152) 55% 25%); font-weight: 800; font-size: .93rem; line-height: 1.3; }
.sg .sg-ui .sg-chev { width: 15px; height: 15px; color: #a9a6a6; }
.sg .sg-tip { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(135deg, #fff8e4, #fff2cf); border: 1px solid #f1deaa; }
.sg .sg-tip-i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #ffe49a; color: #7a5200; }
.sg .sg-tip-i .sg-i { width: 22px; height: 22px; }
.sg .sg-tip b { display: block; margin-bottom: 2px; color: #6b4600; font-weight: 800; font-size: .92rem; }
.sg .sg-tip p { color: #4a3300; font-size: 1.04rem; line-height: 1.75; }

/* field example */
.sg .sg-ex { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 clamp(34px, 5vw, 52px); padding: clamp(26px, 4vw, 44px); border-radius: 30px; color: #e8f4ed; background: linear-gradient(135deg, hsl(var(--h, 152) 30% 18%), #1a1716); box-shadow: 0 40px 70px -40px rgba(20, 20, 20, .7); scroll-margin-top: calc(var(--sg-sticky) + 80px); }
.sg .sg-ex-art { position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(60% 90% at 100% 0%, hsl(var(--h, 152) 80% 55% / .3), transparent 62%),
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px),
	repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px); }
.sg-ar .sg-ex-art { background:
	radial-gradient(60% 90% at 0% 0%, hsl(var(--h, 152) 80% 55% / .3), transparent 62%),
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px),
	repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px); }
.sg .sg-ex > h2 { color: #fff; }
.sg .sg-ex > h2 .sg-n { background: hsl(var(--h, 152) 70% 55% / .2); color: hsl(var(--h, 152) 90% 80%); border: 1px solid hsl(var(--h, 152) 80% 70% / .35); }
.sg .sg-ex-meta { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 15px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: .92rem; }
.sg-ar .sg-ex-meta { padding: 7px 11px 7px 15px; }
.sg .sg-ex-meta .sg-i { width: 18px; height: 18px; color: hsl(var(--h, 152) 90% 72%); }
.sg .sg-ex .sg-prose p { color: rgba(255, 255, 255, .93); font-size: 1.1rem; }

/* faq */
.sg .sg-faq { display: grid; gap: 10px; }
.sg .sg-qa { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--sg-line); transition: border-color .3s, box-shadow .3s; }
.sg .sg-qa[open] { border-color: hsl(var(--h, 152) 40% 74%); box-shadow: var(--sg-shadow); }
.sg .sg-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.08rem; line-height: 1.55; color: var(--sg-ink); }
.sg .sg-qa summary::-webkit-details-marker { display: none; }
.sg .sg-qa summary:focus-visible { outline: 3px solid var(--sg-bright); outline-offset: -3px; border-radius: 20px; }
.sg .sg-qa-i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h, 152) 55% 94%); color: hsl(var(--h, 152) 55% 30%); transition: transform .4s var(--sg-ease), background .3s, color .3s; }
.sg .sg-qa-i .sg-i { width: 18px; height: 18px; }
.sg .sg-qa[open] .sg-qa-i { transform: rotate(135deg); background: hsl(var(--h, 152) 60% 40%); color: #fff; }
.sg .sg-qa-a { padding: 0 22px 20px; }
.sg .sg-qa-a p { max-width: 68ch; font-size: 1.06rem; line-height: 1.95; color: #2f2b2c; }
.sg .sg-qa[open] .sg-qa-a { animation: sg-open .45s var(--sg-ease) both; }
@keyframes sg-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* related + prev/next */
.sg .sg-related { margin-top: 8px; }
.sg .sg-related h2 { font-size: 1.2rem; }
.sg .sg-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.sg .sg-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.sg .sg-pn a { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 20px; background: var(--sg-paper); border: 1px solid var(--sg-line); color: var(--sg-ink); transition: transform .35s var(--sg-ease), background .3s, box-shadow .3s; }
.sg .sg-pn a:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--sg-shadow); color: var(--sg-ink); }
.sg .sg-pn-l { display: block; color: var(--sg-mute); font-size: .82rem; font-weight: 700; }
.sg .sg-pn-t { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.sg .sg-pn a .sg-arrow { width: 22px; height: 22px; color: var(--sg-green); flex: none; }
.sg .sg-pn-prev { grid-column: 1; }
.sg .sg-pn-prev .sg-arrow { order: -1; transform: scaleX(-1); }
.sg-ar .sg-pn-prev .sg-arrow { transform: none; }
.sg .sg-pn-next { grid-column: 2; justify-content: space-between; }
.sg .sg-pn .is-off { display: none; }

/* ------------------------------------------------------------------ small */
@media (max-width: 960px) {
	.sg .sg-layout { grid-template-columns: minmax(0, 1fr); }
	.sg .sg-side { display: none; }
}
@media (max-width: 860px) {
	.sg .sg-hero--term .sg-hero-in { grid-template-columns: minmax(0, 1fr); }
	.sg .sg-scene { order: -1; max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
	.sg .sg-hero { border-radius: 24px; }
	.sg .sg-qa { height: auto; }
	.sg .sg-search .sg-q { height: 60px; font-size: 1.05rem; padding-inline: 54px 56px; }
	.sg .sg-search-i { inset-inline-start: 18px; width: 22px; height: 22px; }
	.sg .sg-kbd { display: none; }
	.sg .sg-controls { margin-top: 20px; }
	.sg .sg-tabs { width: 100%; }
	.sg .sg-tab { flex: 1; justify-content: center; padding-inline: 8px; font-size: .9rem; }
	.sg .sg-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 4px; scrollbar-width: none; }
	.sg .sg-chips::-webkit-scrollbar { display: none; }
	.sg .sg-chip { flex: none; }
	.sg .sg-letter b { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 15px; }
	.sg .sg-n { min-width: 40px; height: 40px; border-radius: 13px; }
	.sg .sg-flow-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.sg .sg-fs { flex-direction: row; text-align: start; align-items: center; }
	.sg .sg-fs-t { max-width: none; }
	.sg .sg-fs:not(:last-child)::after { top: 74px; inset-inline-start: 33px; width: 3px; height: calc(100% - 52px + 6px); background: repeating-linear-gradient(180deg, hsl(var(--h, 152) 55% 52%) 0 7px, transparent 7px 14px); background-size: 3px 14px; animation-name: sg-march-v; }
	.sg .sg-sec, .sg .sg-ex { scroll-margin-top: calc(var(--sg-sticky) + 20px); }
	.sg .sg-pn { grid-template-columns: 1fr; }
	.sg .sg-pn-next, .sg .sg-pn-prev { grid-column: 1; }
	.sg .sg-banner { min-height: 120px; border-radius: 22px; }
	.sg .sg-banner-t { max-width: 66%; }
	.sg .sg-banner-i { width: 46px; height: 46px; border-radius: 15px; }
	.sg .sg-banner-i .sg-i { width: 22px; height: 22px; }
	.sg .sg-ex { border-radius: 24px; }
}
@keyframes sg-march-v { to { background-position: 0 14px; } }

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sg *, .sg *::before, .sg *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.sg.sg-js .sg-row, .sg.sg-js .sg-sec, .sg.sg-js .sg-ex, .sg.sg-js .sg-related, .sg.sg-js .sg-pn, .sg.sg-js .sg-fs, .sg.sg-js .sg-points li,
	.sg.sg-js .sg-letter, .sg.sg-js .sg-cat-h, .sg.sg-js .sg-banner { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   1.3 — canvas (site header & footer / blank) and Control Center options
   ===================================================================== */
.sg-canvas { display: block; width: 100%; box-sizing: border-box; margin-inline: auto; padding: var(--sg-pad-top, 32px) 16px var(--sg-pad-bottom, 72px); max-width: calc(var(--sg-maxw-hub, 1180px) + 32px); }
.sg-canvas--term { max-width: calc(var(--sg-maxw-term, 1120px) + 32px); }
.sg-canvas > .sg, .sg-canvas .sg { width: 100%; max-width: none; margin-inline: 0; }
/* Block themes add a gap above every top-level block; keep header → glossary → footer flush. */
.sg-site > .sg-canvas { margin-block: 0 !important; }
.sg-site > .sg-site-header, .sg-site > .sg-site-footer { display: block; }
.sg-site-header > :first-child, .sg-site-footer > :first-child { margin-top: 0; }
body.sg-layout-blank .sg-canvas { padding-top: max(var(--sg-pad-top, 32px), 16px); }

/* hub intro line */
.sg .sg-intro { max-width: 62ch; margin: -6px 0 22px; color: rgba(255, 255, 255, .8); font-size: 1.08rem; line-height: 1.8; animation: sg-rise .8s .05s var(--sg-ease) both; }

/* fixed number of columns in the term list */
.sg .sg-rows { grid-template-columns: var(--sg-cols, repeat(auto-fill, minmax(min(100%, 310px), 1fr))); }
@media (max-width: 900px) { .sg .sg-rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); } }

/* term page without the side menu / without the scene */
.sg .sg-layout--solo { grid-template-columns: minmax(0, 1fr); }
.sg .sg-layout--solo .sg-col { max-width: 860px; margin-inline: auto; width: 100%; }
.sg .sg-hero--noscene .sg-hero-in { grid-template-columns: minmax(0, 1fr); }

/* decorative art off */
.sg.sg-nodeco .sg-art, .sg.sg-nodeco .sg-glow, .sg.sg-nodeco .sg-banner-scene, .sg.sg-nodeco .sg-hero--term .sg-hero-bg::before { display: none !important; }
.sg.sg-nodeco .sg-ex-art { background: none; }
.sg.sg-nodeco .sg-banner-t { max-width: none; }

/* motion off (same result as the visitor's "reduce motion" setting) */
.sg.sg-nomotion *, .sg.sg-nomotion *::before, .sg.sg-nomotion *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.sg.sg-nomotion.sg-js .sg-row, .sg.sg-nomotion.sg-js .sg-sec, .sg.sg-nomotion.sg-js .sg-ex, .sg.sg-nomotion.sg-js .sg-related, .sg.sg-nomotion.sg-js .sg-pn,
.sg.sg-nomotion.sg-js .sg-fs, .sg.sg-nomotion.sg-js .sg-points li, .sg.sg-nomotion.sg-js .sg-letter, .sg.sg-nomotion.sg-js .sg-cat-h, .sg.sg-nomotion.sg-js .sg-banner { opacity: 1 !important; transform: none !important; }

/* corner style */
.sg.sg-r-soft :is(.sg-hero, .sg-ex, .sg-banner, .sg-scene) { border-radius: 16px !important; }
.sg.sg-r-soft :is(.sg-link, .sg-rel, .sg-q, .sg-qa, .sg-pn a, .sg-flow, .sg-ui, .sg-tip, .sg-brief, .sg-points li, .sg-tabs, .sg-letter b, .sg-tile, .sg-n, .sg-banner-i, .sg-cat-h .sg-i) { border-radius: 10px !important; }
.sg.sg-r-soft :is(.sg-tab, .sg-ind, .sg-crumb-chip, .sg-tip-i) { border-radius: 7px !important; }
.sg.sg-r-square :is(.sg-hero, .sg-ex, .sg-banner, .sg-scene, .sg-link, .sg-rel, .sg-q, .sg-qa, .sg-pn a, .sg-flow, .sg-ui, .sg-tip, .sg-brief, .sg-points li, .sg-tabs, .sg-letter b, .sg-tile, .sg-n, .sg-banner-i, .sg-cat-h .sg-i, .sg-tab, .sg-ind, .sg-crumb-chip, .sg-tip-i, .sg-chip, .sg-switch, .sg-pair-v, .sg-letters-in, .sg-cat-chip, .sg-ex-meta) { border-radius: 4px !important; }

/* ---------- consultation + newsletter band ---------- */
.sg .sg-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 clamp(34px, 5vw, 52px); }
.sg .sg-cta--one { grid-template-columns: minmax(0, 1fr); }
.sg .sg-cta > div { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 3.4vw, 34px); border-radius: 26px; overflow: hidden; }
.sg .sg-cta-consult { color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--sg-deep) 0%, var(--sg-deeper) 70%); box-shadow: 0 30px 60px -36px rgba(20, 20, 20, .75); }
.sg .sg-cta-news { background: var(--sg-tint); border: 1px solid color-mix(in srgb, var(--sg-green) 22%, transparent); }
.sg .sg-cta-i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sg-green); color: #fff; }
.sg .sg-cta-consult .sg-cta-i { background: rgba(255, 255, 255, .1); color: var(--sg-bright); border: 1px solid rgba(255, 255, 255, .18); }
.sg .sg-cta-i .sg-i { width: 24px; height: 24px; }
.sg .sg-cta .sg-cta-h { margin: 4px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; line-height: 1.45; color: inherit; }
.sg .sg-cta-news .sg-cta-h { color: var(--sg-ink); }
.sg .sg-cta .sg-cta-p { margin: 0; font-size: 1rem; line-height: 1.75; opacity: .9; }
.sg .sg-cta-consult .sg-cta-p { color: rgba(255, 255, 255, .86); }
.sg .sg-cta-news .sg-cta-p { color: var(--sg-mute); opacity: 1; }
.sg .sg-cta-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--sg-bright); color: var(--sg-deeper) !important; font-weight: 800; text-decoration: none !important; transition: transform .25s var(--sg-ease), box-shadow .25s; box-shadow: 0 12px 26px -14px var(--sg-bright); }
.sg .sg-cta-btn:hover, .sg .sg-cta-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 32px -14px var(--sg-bright); }
.sg .sg-cta-btn .sg-i { width: 18px; height: 18px; }
.sg-ar .sg-cta-btn .sg-arrow { transform: scaleX(-1); }
.sg .sg-news { width: 100%; margin: auto 0 0; }
.sg .sg-news-row { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.sg .sg-news-in { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--sg-line); background: #fff; color: var(--sg-ink); font: inherit; font-size: 1rem; box-shadow: 0 1px 2px rgba(35, 31, 32, .05); }
.sg-ar .sg-news-in { text-align: right; }
.sg-ar .sg-news-in:not(:placeholder-shown) { text-align: left; }
.sg .sg-news-in:focus { outline: none; border-color: var(--sg-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-green) 22%, transparent); }
.sg .sg-news-btn { flex: 0 0 auto; height: 50px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--sg-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s var(--sg-ease); }
.sg .sg-news-btn:hover, .sg .sg-news-btn:focus-visible { background: var(--sg-green-text); }
.sg .sg-news-btn:disabled { opacity: .6; cursor: wait; }
.sg .sg-news-note { margin: 8px 0 0; font-size: .85rem; color: var(--sg-mute); }
.sg .sg-news-msg { margin: 6px 0 0; min-height: 1.4em; font-size: .95rem; font-weight: 700; }
.sg .sg-news-msg.is-ok { color: var(--sg-green-text); }
.sg .sg-news-msg.is-bad, .sg .sg-news-msg.is-err { color: #b42318; }
.sg .sg-news.is-done .sg-news-row, .sg .sg-news.is-done .sg-news-note { display: none; }
.sg .sg-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
.sg .sg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sg-hub .sg-cta { margin: clamp(30px, 5vw, 56px) auto 0; }
@media (max-width: 760px) {
	.sg .sg-cta { grid-template-columns: minmax(0, 1fr); }
	.sg .sg-news-row { flex-direction: column; }
	.sg .sg-news-btn { width: 100%; }
}
.sg.sg-r-soft .sg-cta > div { border-radius: 16px; }
.sg.sg-r-square .sg-cta > div, .sg.sg-r-square .sg-cta-btn, .sg.sg-r-square .sg-news-in, .sg.sg-r-square .sg-news-btn, .sg.sg-r-square .sg-cta-i { border-radius: 4px; }
