.hirdev-toc {
	--hirdev-toc-primary: #173354;
	--hirdev-toc-accent: #2e6f9e;
	--hirdev-toc-offset: 110px;
	direction: rtl;
	width: 100%;
	margin: 28px 0;
	border: 1px solid #dce4ec;
	border-radius: 14px;
	background: transparent;
	box-shadow: none;
	overflow: hidden;
	font-family: inherit;
	box-sizing: border-box;
}

.hirdev-toc *, .hirdev-toc *::before, .hirdev-toc *::after { box-sizing: border-box; }

.hirdev-toc__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background: var(--hirdev-toc-primary);
	color: #fff;
	font: inherit;
	cursor: pointer;
	text-align: right;
}

.hirdev-toc__toggle:hover, .hirdev-toc__toggle:focus-visible { background: #102b49; color: #fff; }
.hirdev-toc__toggle:focus-visible { outline: 3px solid rgba(46, 111, 158, .38); outline-offset: -3px; }
.hirdev-toc__title { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 17px; font-weight: 800; }
.hirdev-toc__toggle-label { font-size: 13px; opacity: .85; }
.hirdev-toc__chevron { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
.hirdev-toc.is-collapsed .hirdev-toc__chevron { transform: rotate(180deg); }
.hirdev-toc__list-icon { display: grid; gap: 3px; width: 19px; }
.hirdev-toc__list-icon i { position: relative; display: block; width: 14px; height: 2px; margin-right: 5px; border-radius: 2px; background: currentColor; }
.hirdev-toc__list-icon i::before { content: ""; position: absolute; right: -5px; top: 0; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

.hirdev-toc__panel { max-height: 1000px; background: transparent; opacity: 1; visibility: visible; transition: max-height .28s ease, opacity .2s ease, visibility .2s ease; }
.hirdev-toc.is-collapsed .hirdev-toc__panel { max-height: 0; opacity: 0; visibility: hidden; }
.hirdev-toc__list { position: relative; display: grid; gap: 4px; margin: 0 !important; padding: 13px 14px 15px 24px !important; background: transparent !important; list-style: none !important; }
.hirdev-toc__list::before { content: ""; position: absolute; top: 16px; bottom: 18px; right: 14px; width: 2px; border-radius: 4px; background: #e5ebf1; }
.hirdev-toc__item { margin: 0 !important; padding: 0 10px 0 0 !important; background: transparent !important; list-style: none !important; }
.hirdev-toc__item::before, .hirdev-toc__item::marker { display: none !important; content: none !important; }
.hirdev-toc__link { position: relative; display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 8px; background: transparent !important; color: #24313d !important; font-size: 15px; font-weight: 600; line-height: 1.75; text-decoration: none !important; transition: color .18s ease, transform .18s ease; }
.hirdev-toc__link:hover { color: var(--hirdev-toc-accent) !important; background: transparent !important; transform: translateX(-2px); }
.hirdev-toc__link:focus-visible { outline: 2px solid var(--hirdev-toc-accent); outline-offset: 1px; }
.hirdev-toc--show-active .hirdev-toc__link.is-active { color: var(--hirdev-toc-primary) !important; background: transparent !important; font-weight: 800; }
.hirdev-toc--show-active .hirdev-toc__link.is-active::after { content: ""; position: absolute; right: 13px; width: 4px; height: 25px; border-radius: 5px; background: var(--hirdev-toc-accent); }
.hirdev-toc--hide-active .hirdev-toc__link.is-active { color: #24313d !important; font-weight: 600; }
.hirdev-toc__number { flex: 0 0 auto; min-width: 25px; color: var(--hirdev-toc-accent); font-variant-numeric: tabular-nums; }
.hirdev-toc--marker-bullets .hirdev-toc__number { display: inline-flex; align-items: center; justify-content: center; width: 12px; min-width: 12px; height: 1.75em; color: transparent; font-size: 0; }
.hirdev-toc--marker-bullets .hirdev-toc__number::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hirdev-toc-accent); }
.hirdev-toc--marker-none .hirdev-toc__number { display: none; }
.hirdev-toc--hide-rail .hirdev-toc__list::before { display: none; }
.hirdev-toc--hide-title-icon .hirdev-toc__list-icon { display: none; }
.hirdev-toc__item--level-2 { padding-right: 10px !important; }
.hirdev-toc__item--level-3 { padding-right: 28px !important; }
.hirdev-toc__item--level-4 { padding-right: 46px !important; }
.hirdev-toc__item--level-5 { padding-right: 64px !important; }
.hirdev-toc__item--level-6 { padding-right: 82px !important; }
.hirdev-toc--flat .hirdev-toc__item { padding-right: 10px !important; }

.entry-content h1[id^="hirdev-heading-"], .entry-content h2[id^="hirdev-heading-"], .entry-content h3[id^="hirdev-heading-"], .entry-content h4[id^="hirdev-heading-"], .entry-content h5[id^="hirdev-heading-"], .entry-content h6[id^="hirdev-heading-"] { scroll-margin-top: var(--hirdev-toc-offset, 110px); }

@media (max-width: 768px) {
	.hirdev-toc { margin: 22px 0; border-radius: 12px; }
	.hirdev-toc__toggle { min-height: 54px; padding: 11px 14px; }
	.hirdev-toc__title { font-size: 16px; }
	.hirdev-toc__toggle-label { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
	.hirdev-toc__list { padding: 10px 10px 12px 16px !important; }
	.hirdev-toc__list::before { right: 10px; }
	.hirdev-toc__item { padding-right: 7px !important; }
	.hirdev-toc__item--level-3 { padding-right: 20px !important; }
	.hirdev-toc__item--level-4 { padding-right: 34px !important; }
	.hirdev-toc__item--level-5 { padding-right: 48px !important; }
	.hirdev-toc__item--level-6 { padding-right: 60px !important; }
	.hirdev-toc__link { padding: 9px 10px; font-size: 14px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
	.hirdev-toc__panel, .hirdev-toc__chevron, .hirdev-toc__link { transition: none; }
}
