/**
 * TIS Content Outline — self-contained styles.
 */

.tis-co,
.tis-co * {
	box-sizing: border-box;
}

.tis-co__title {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.tis-co__list {
	margin: 0;
	padding: 0 0 0 1.1rem;
	list-style: decimal;
}

.tis-co__list--sub {
	margin-top: 0.25rem;
	padding-left: 1.1rem;
	list-style: lower-alpha;
}

.tis-co__item {
	margin: 0.2rem 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tis-co__link {
	color: inherit;
	text-decoration: none;
	font-size: 0.85rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.tis-co__link:hover,
.tis-co__link.is-active {
	text-decoration: underline;
}

.tis-co__handle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
}

.tis-co__tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.4rem);
	z-index: 40;
	padding: 0.28rem 0.55rem;
	border: 1px solid rgba(148, 163, 184, 0.7);
	border-radius: 0.3rem;
	background: #fff;
	color: #0f172a;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity 0.15s ease, visibility 0.15s;
}

.tis-co__tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #fff;
}

.tis-co--desktop .tis-co__handle:hover .tis-co__tooltip,
.tis-co--desktop .tis-co__handle:focus-visible .tis-co__tooltip {
	opacity: 1;
	visibility: visible;
}

.tis-co--desktop.is-open .tis-co__tooltip {
	opacity: 0;
	visibility: hidden;
}

.tis-co__bars {
	display: block;
	width: 1.15rem;
	height: 2px;
	background: currentColor;
	opacity: 0.45;
	border-radius: 1px;
	box-shadow:
		0 -6px 0 currentColor,
		0 6px 0 currentColor,
		0 12px 0 currentColor;
}

.tis-co__panel {
	position: absolute;
	top: 0;
	left: 2.35rem;
	z-index: 30;
	min-width: 13.5rem;
	width: max-content;
	max-width: min(22rem, calc(100vw - 5rem));
	max-height: min(70vh, 28rem);
	overflow: auto;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(148, 163, 184, 0.7);
	border-radius: 0.45rem;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.tis-co--desktop {
	position: sticky;
	top: 6.5rem;
	align-self: start;
	width: 2.25rem;
	z-index: 20;
}

.tis-co--desktop:hover .tis-co__panel,
.tis-co--desktop:focus-within .tis-co__panel,
.tis-co--desktop.is-open .tis-co__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.tis-co--desktop.is-closing .tis-co__panel,
.tis-co--desktop.is-closing:hover .tis-co__panel,
.tis-co--desktop.is-closing:focus-within .tis-co__panel {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-4px);
}

.tis-co--fixed {
	position: fixed;
	top: 30%;
	left: 0.75rem;
	width: 2.25rem;
}

.tis-co--inline {
	position: relative;
	width: auto;
	margin: 0 0 1.5rem;
}

.tis-co--inline .tis-co__handle {
	display: none;
}

.tis-co--inline .tis-co__panel {
	position: static;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	max-width: none;
	box-shadow: none;
}

.tis-co--mobile {
	display: none;
}

.tis-co__fab {
	position: fixed;
	right: 1rem;
	bottom: 1.15rem;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid rgba(148, 163, 184, 0.8);
	border-radius: 9999px;
	background: #fff;
	color: #0f172a;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
	cursor: pointer;
}

.tis-co__fab-icon {
	display: flex;
	width: 1.1rem;
	height: 1.1rem;
}

.tis-co__fab-icon svg {
	width: 100%;
	height: 100%;
}

.tis-co__fab-icon--close {
	display: none;
}

.tis-co--mobile.is-open .tis-co__fab-icon--list {
	display: none;
}

.tis-co--mobile.is-open .tis-co__fab-icon--close {
	display: flex;
}

.tis-co__sheet {
	position: fixed;
	right: 1rem;
	bottom: 4.25rem;
	z-index: 40;
	width: min(22rem, calc(100vw - 2rem));
	max-height: min(60vh, 24rem);
	overflow: auto;
	padding: 0.95rem 1.05rem;
	border: 1px solid rgba(148, 163, 184, 0.7);
	border-radius: 0.5rem;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.tis-co__sheet[hidden] {
	display: none !important;
}

html.dark .tis-co__panel,
html.dark .tis-co__sheet,
html.dark .tis-co__fab,
html.dark .tis-co__tooltip {
	background: #0f172a;
	color: #f8fafc;
	border-color: #64748b;
}

html.dark .tis-co__tooltip::after {
	border-top-color: #0f172a;
}

html.dark .tis-co__link {
	color: #3eb051;
}

h2[id],
h3[id],
h4[id] {
	scroll-margin-top: 6rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1023px) {
	.tis-co--desktop {
		display: none;
	}

	.tis-co--mobile {
		display: block;
	}
}

@media (min-width: 1024px) {
	.tis-co--mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tis-co__panel {
		transition: none;
	}
}
