/* Hidden Six — guide search (0.9.16). Uses the theme tokens with our palette fallbacks. */
.hs-gs { --gs-ink: var(--e-global-color-text, #1E1A3A); --gs-bg: var(--e-global-color-secondary, #FFF8F0); --gs-accent: var(--e-global-color-accent, #F2735E); --gs-line: #EDE3D6; color: var(--gs-ink); }
.hs-gs__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.hs-gs__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-gs__ac { position: relative; flex: 1 1 260px; }
.hs-gs__ac input { width: 100%; min-height: 44px; padding: 8px 14px; border: 2px solid var(--gs-ink); border-radius: 999px; font: inherit; background: #fff; }
.hs-gs select, .hs-gs__go, .hs-gs__open, .hs-gs__close { min-height: 44px; padding: 8px 16px; border: 2px solid var(--gs-ink); border-radius: 999px; font: inherit; background: var(--gs-bg); color: var(--gs-ink); cursor: pointer; }
.hs-gs__go { background: var(--gs-ink); color: var(--gs-bg); }
.hs-gs :focus-visible { outline: 3px solid var(--gs-accent); outline-offset: 2px; }
.hs-gs__sugg { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 2px solid var(--gs-ink); border-radius: 16px; box-shadow: 0 4px 0 var(--gs-ink); }
.hs-gs__sugg a { display: block; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.hs-gs__sugg a:hover, .hs-gs__sugg a:focus { background: var(--gs-bg); }
.hs-gs__sugg-entity::before { content: "#"; color: var(--gs-accent); margin-right: 4px; font-weight: 700; }
.hs-gs__body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.hs-gs__facet { border: 0; margin: 0 0 16px; padding: 0; }
.hs-gs__facet legend { font-weight: 700; margin-bottom: 6px; }
.hs-gs__opt { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.hs-gs__opt.is-empty { opacity: .45; }
.hs-gs__n { margin-left: auto; font-size: .85em; opacity: .7; }
.hs-gs__open, .hs-gs__close { display: none; }
.hs-gs__count { font-weight: 700; margin: 0 0 12px; }
.hs-gs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hs-gs__card { background: #fff; border: 2px solid var(--gs-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 0 var(--gs-ink); }
.hs-gs__link { display: flex; flex-direction: column; gap: 6px; height: 100%; color: inherit; text-decoration: none; padding-bottom: 12px; }
.hs-gs__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hs-gs__meta, .hs-gs__title, .hs-gs__chips { padding: 0 12px; }
.hs-gs__title { font-weight: 700; line-height: 1.25; }
.hs-gs__zone { font-size: .85em; opacity: .75; }
.hs-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 10px; border: 1.5px solid var(--gs-ink, #1E1A3A); border-radius: 999px; font-size: .8em; background: #FFF8F0; color: inherit; text-decoration: none; }
a.hs-chip:hover, a.hs-chip:focus { background: #3CC6C0; }
.hs-gs__pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hs-gs__pages a, .hs-gs__pages span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--gs-ink); border-radius: 12px; color: inherit; text-decoration: none; }
.hs-gs__pages span { background: var(--gs-ink); color: var(--gs-bg); }
.hs-gs.is-loading [data-hs-results] { opacity: .5; transition: opacity .15s; }
@media (max-width: 760px) {
	.hs-gs__body { grid-template-columns: 1fr; }
	.hs-gs__open, .hs-gs__close { display: inline-block; }
	.hs-gs__filters { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; padding: 20px 16px 24px; background: var(--gs-bg); border-top: 2px solid var(--gs-ink); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 0 rgba(30,26,58,.15); transform: translateY(110%); transition: transform .2s ease; }
	.hs-gs__filters.is-open { transform: none; }
	.hs-gs-sheet-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .hs-gs__filters { transition: none; } }
.hs-article-tags { margin: 2em 0 1em; }
.hs-related { margin: 1.5em 0; padding: 16px; border: 2px solid #1E1A3A; border-radius: 18px; background: #FFF8F0; }
.hs-related h2 { margin-top: 0; font-size: 1.15em; }
.hs-related ul { margin: 0; padding-left: 1.2em; }
.hs-hubs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }

/* 0.9.28 — topic tree: hub chips, tree facet, mega-menu. */
.hs-gs__hubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.hs-gs__hubs .hs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 2px solid #1E1A3A; border-radius: 999px; background: #FFF8F0; color: #1E1A3A; text-decoration: none; font-weight: 600; }
.hs-gs__hubs .hs-chip.is-current { background: #1E1A3A; color: #FFFFFF; }
.hs-gs__facet--tree .hs-gs__children { margin: 2px 0 6px 22px; }
.hs-gs__facet--tree .hs-gs__children summary { cursor: pointer; font-size: 0.9em; color: #5B5675; min-height: 24px; }
.hs-gs__opt--child { font-size: 0.95em; }
.hs-mega__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.hs-mega__parent { display: inline-block; min-height: 24px; font-weight: 700; color: #1E1A3A; text-decoration: none; }
.hs-mega__kids { margin: 6px 0 0; padding: 0; list-style: none; }
.hs-mega__kids li { margin: 2px 0; }
.hs-mega__kids a { display: inline-block; min-height: 24px; color: #1E1A3A; text-decoration: none; }
.hs-mega__kids a:hover, .hs-mega__parent:hover { text-decoration: underline; }
.hs-mega__n { color: #5B5675; font-size: 0.85em; }

/* 0.9.29 — sort select like the search input; empty chips; hub intro; guides index. */
.hs-gs select {
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;
	padding: 0 40px 0 14px;
	border: 2px solid #1E1A3A;
	border-radius: 12px;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1A3A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: #1E1A3A;
	font: inherit;
	box-shadow: none;
}
.hs-gs select:focus-visible { outline: 3px solid #3FC7C0; outline-offset: 2px; }
.hs-gs__intro { margin: 0 0 0.8em; color: #5B5675; }
.hs-gs__hubs .hs-chip.is-empty { opacity: 0.55; border-style: dashed; }
.hs-gs__empty--hub { padding: 16px; border: 2px dashed #EDE3D6; border-radius: 16px; background: #FFF8F0; }
.hs-gi__intro { margin: 0 0 1.2em; color: #5B5675; }
.hs-gi__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hs-gi__card { padding: 16px; border: 2px solid #1E1A3A; border-radius: 18px; background: #FFF8F0; }
.hs-gi__card.is-empty { opacity: 0.6; border-style: dashed; }
.hs-gi__head { display: flex; align-items: center; gap: 10px; color: #1E1A3A; text-decoration: none; font-weight: 700; font-size: 1.1em; }
.hs-gi__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; font-size: 1.2em; }
.hs-gi__n { margin-left: auto; color: #5B5675; font-weight: 600; font-size: 0.9em; }
.hs-gi__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hs-gi__chips .hs-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid #1E1A3A; border-radius: 999px; color: #1E1A3A; text-decoration: none; font-size: 0.9em; }
