.sgdl-wrap {
	--sgdl-primary: #17454f;
	--sgdl-accent: #d15b18;
	--sgdl-text: #17454f;
	--sgdl-muted: color-mix(in srgb, var(--sgdl-text) 60%, white);
	--sgdl-line: color-mix(in srgb, var(--sgdl-text) 15%, white);
	--sgdl-soft: color-mix(in srgb, var(--sgdl-primary) 7%, white);
	--sgdl-accent-soft: color-mix(in srgb, var(--sgdl-accent) 7%, white);
	container-type: inline-size;
	width: 100%;
	max-width: 100%;
	color: var(--sgdl-text);
	font-family: inherit;
}
.sgdl-wrap,
.sgdl-wrap * {
	box-sizing: border-box;
}
.sgdl-wrap .screen-reader-text {
	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;
}
.sgdl-wrap button,
.sgdl-wrap a {
	font-family: inherit;
}
.sgdl-panel {
	display: grid;
	gap: 24px;
	min-width: 0;
}
.sgdl-tabs-shell {
	display: flex;
	align-items: stretch;
	gap: 8px;
	min-width: 0;
	padding: 8px;
	background: var(--sgdl-soft);
	border-radius: 14px;
}
.sgdl-tabs {
	display: flex;
	flex: 1 1 auto;
	gap: 6px;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.sgdl-tabs::-webkit-scrollbar {
	display: none;
}
.sgdl-wrap button.sgdl-tab-btn {
	flex: 0 0 auto;
	display: flex;
	min-width: 132px;
	min-height: 46px;
	padding: 11px 16px !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--sgdl-text) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: left;
	text-decoration: none !important;
	transition: background-color .18s ease, color .18s ease;
}
.sgdl-wrap button.sgdl-tab-btn span {
	min-width: 0;
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}
.sgdl-wrap button.sgdl-tab-btn small {
	flex: 0 0 auto;
	color: var(--sgdl-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}
.sgdl-wrap button.sgdl-tab-btn:hover,
.sgdl-wrap button.sgdl-tab-btn:focus {
	color: var(--sgdl-primary) !important;
	background: color-mix(in srgb, var(--sgdl-primary) 10%, white) !important;
}
.sgdl-wrap button.sgdl-tab-btn.active,
.sgdl-wrap button.sgdl-tab-btn[aria-selected="true"],
.sgdl-wrap button.sgdl-tab-btn.active:hover,
.sgdl-wrap button.sgdl-tab-btn.active:focus,
.sgdl-wrap button.sgdl-tab-btn[aria-selected="true"]:hover,
.sgdl-wrap button.sgdl-tab-btn[aria-selected="true"]:focus {
	color: #fff !important;
	background: var(--sgdl-primary) !important;
}
.sgdl-wrap button.sgdl-tab-btn.active small,
.sgdl-wrap button.sgdl-tab-btn[aria-selected="true"] small {
	color: color-mix(in srgb, white 75%, var(--sgdl-primary));
}
.sgdl-wrap button.sgdl-tab-arrow {
	flex: 0 0 36px;
	display: grid;
	place-items: center;
	width: 36px;
	min-width: 36px;
	padding: 0 !important;
	color: var(--sgdl-primary) !important;
	background: #fff !important;
	border: 1px solid var(--sgdl-line) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	cursor: pointer;
	text-decoration: none !important;
}
.sgdl-tabs-shell:not(.has-overflow) .sgdl-tab-arrow {
	display: none !important;
}
.sgdl-wrap button.sgdl-tab-arrow:hover,
.sgdl-wrap button.sgdl-tab-arrow:focus {
	color: #fff !important;
	background: var(--sgdl-accent) !important;
	border-color: var(--sgdl-accent) !important;
}
.sgdl-tab-arrow span {
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}
.sgdl-lists,
.sgdl-list-panel {
	min-width: 0;
	width: 100%;
}
.sgdl-list-panel[hidden] {
	display: none !important;
}
.sgdl-type-heading {
	padding: 0 8px 12px;
	color: var(--sgdl-muted);
	font-size: var(--sgdl-heading-size, 24px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.sgdl-type-heading span {
	color: var(--sgdl-accent);
}
.sgdl-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) minmax(150px, auto);
	gap: 18px 24px;
	align-items: center;
	width: 100%;
	max-width: 100%;
	padding: 18px 8px;
	border-bottom: 1px solid var(--sgdl-line);
}
.sgdl-file-block {
	display: flex;
	min-height: 72px;
	padding: 8px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--sgdl-primary);
	background: var(--sgdl-soft);
	border-radius: 12px;
}
.sgdl-file-block strong {
	max-width: 100%;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .05em;
	overflow-wrap: anywhere;
	text-align: center;
}
.sgdl-file-block .sgdl-document-icon {
	width: 24px;
	height: 24px;
}
.sgdl-document-info {
	min-width: 0;
}
.sgdl-document-info h3 {
	margin: 0 0 7px !important;
	padding: 0 !important;
	color: var(--sgdl-text) !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	overflow-wrap: anywhere;
}
.sgdl-document-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	color: var(--sgdl-muted);
	font-size: 13px;
	line-height: 1.4;
}
.sgdl-document-meta i {
	color: var(--sgdl-line);
	font-style: normal;
}
.sgdl-document-action {
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}
.sgdl-document-button {
	display: inline-flex;
	min-width: 148px;
	max-width: 100%;
	min-height: 60px;
	padding: 10px 14px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--sgdl-primary) !important;
	background: #fff !important;
	border: 1px solid color-mix(in srgb, var(--sgdl-primary) 24%, white) !important;
	border-radius: 10px;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.sgdl-document-button:hover,
.sgdl-document-button:focus {
	color: var(--sgdl-primary) !important;
	background: var(--sgdl-soft) !important;
	border-color: color-mix(in srgb, var(--sgdl-primary) 42%, white) !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}
.sgdl-document-button span {
	display: flex;
	min-width: 0;
	flex-direction: column;
	line-height: 1.2;
}
.sgdl-document-button strong {
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.sgdl-document-button small {
	margin-top: 3px;
	color: var(--sgdl-muted);
	font-size: 10px;
	font-weight: 400;
}
.sgdl-document-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sgdl-unavailable {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sgdl-muted);
	font-size: 13px;
}
.sgdl-unavailable i {
	width: 7px;
	height: 7px;
	background: var(--sgdl-line);
	border-radius: 50%;
}
.sgdl-info {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}
.sgdl-info summary {
	display: inline-block;
	color: var(--sgdl-accent);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.sgdl-info summary::-webkit-details-marker {
	display: none;
}
.sgdl-info summary::before {
	content: "+ ";
}
.sgdl-info[open] summary::before {
	content: "− ";
}
.sgdl-info-body {
	width: 100%;
	max-width: 100%;
	margin-top: 10px;
	padding: 16px 18px;
	color: var(--sgdl-text);
	background: color-mix(in srgb, var(--sgdl-primary) 3%, white);
	border: 1px solid var(--sgdl-line);
	border-radius: 10px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.sgdl-info-body > :first-child {
	margin-top: 0;
}
.sgdl-info-body > :last-child {
	margin-bottom: 0;
}
.sgdl-info-body a {
	color: var(--sgdl-primary);
	text-decoration: underline;
}
.sgdl-empty {
	color: var(--sgdl-muted);
}
.sgdl-wrap[data-tab-position="left"] .sgdl-panel {
	grid-template-columns: 170px minmax(0, 1fr);
	align-items: start;
}
.sgdl-wrap[data-tab-position="left"] .sgdl-tabs-shell {
	display: block;
	padding: 8px;
}
.sgdl-wrap[data-tab-position="left"] .sgdl-tabs {
	display: grid;
	gap: 2px;
	overflow: visible;
}
.sgdl-wrap[data-tab-position="left"] button.sgdl-tab-btn {
	width: 100%;
	min-width: 0;
}
.sgdl-wrap[data-tab-position="left"] .sgdl-tab-arrow {
	display: none;
}

.sgdl-mobile-filter {
	display: none;
}

/* Modern Cards: category filters are intentionally fixed across the top. */
.sgdl-wrap[data-layout="cards"] .sgdl-panel {
	gap: 26px;
}
.sgdl-wrap[data-layout="cards"] .sgdl-tabs-shell {
	padding: 0 0 8px;
	background: transparent;
	border-radius: 0;
}
.sgdl-wrap[data-layout="cards"] .sgdl-tabs {
	gap: 10px;
}
.sgdl-wrap[data-layout="cards"] button.sgdl-tab-btn {
	min-width: 0;
	min-height: 42px;
	padding: 9px 16px !important;
	gap: 8px;
	background: #fff !important;
	border: 1px solid var(--sgdl-line) !important;
	border-radius: 999px !important;
}
.sgdl-wrap[data-layout="cards"] button.sgdl-tab-btn.active,
.sgdl-wrap[data-layout="cards"] button.sgdl-tab-btn[aria-selected="true"] {
	color: #fff !important;
	background: var(--sgdl-primary) !important;
	border-color: var(--sgdl-primary) !important;
}
.sgdl-wrap[data-layout="cards"] .sgdl-list-panel.active {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.sgdl-wrap[data-layout="cards"] .sgdl-type-heading {
	grid-column: 1 / -1;
	padding: 0 0 2px;
	color: var(--sgdl-text);
	text-transform: none;
}
.sgdl-wrap[data-layout="cards"] .sgdl-row {
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 14px 18px;
	align-content: start;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--sgdl-line);
	border-radius: 14px;
	box-shadow: 0 5px 18px color-mix(in srgb, var(--sgdl-primary) 7%, transparent);
}
.sgdl-wrap[data-layout="cards"] .sgdl-file-block {
	min-height: 62px;
	color: var(--sgdl-accent);
	background: var(--sgdl-accent-soft);
}
.sgdl-wrap[data-layout="cards"] .sgdl-document-info h3 {
	font-weight: 650 !important;
}
.sgdl-wrap[data-layout="cards"] .sgdl-document-action {
	grid-column: 2;
	justify-content: stretch;
}
.sgdl-wrap[data-layout="cards"] .sgdl-document-button {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	color: #fff !important;
	background: var(--sgdl-primary) !important;
	border-color: var(--sgdl-primary) !important;
}
.sgdl-wrap[data-layout="cards"] .sgdl-document-button:hover,
.sgdl-wrap[data-layout="cards"] .sgdl-document-button:focus {
	color: #fff !important;
	background: color-mix(in srgb, var(--sgdl-primary) 88%, black) !important;
	border-color: color-mix(in srgb, var(--sgdl-primary) 88%, black) !important;
}
.sgdl-wrap[data-layout="cards"] .sgdl-document-button small {
	color: color-mix(in srgb, white 75%, var(--sgdl-primary));
}

/* Modern Directory: category filters are intentionally fixed on the left. */
.sgdl-wrap[data-layout="directory"] .sgdl-panel {
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	background: var(--sgdl-soft);
	border: 1px solid var(--sgdl-line);
	border-radius: 16px;
	overflow: hidden;
}
.sgdl-wrap[data-layout="directory"] .sgdl-tabs-shell {
	padding: 14px 0;
	background: color-mix(in srgb, var(--sgdl-primary) 3%, white);
	border-right: 1px solid var(--sgdl-line);
	border-radius: 0;
}
.sgdl-wrap[data-layout="directory"] .sgdl-tabs {
	gap: 0;
}
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn {
	min-height: 58px;
	padding: 12px 18px !important;
	border-left: 4px solid transparent !important;
	border-radius: 0 !important;
}
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn.active,
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn[aria-selected="true"],
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn.active:hover,
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn.active:focus {
	color: var(--sgdl-primary) !important;
	background: color-mix(in srgb, var(--sgdl-primary) 9%, white) !important;
	border-left-color: var(--sgdl-accent) !important;
}
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn.active small,
.sgdl-wrap[data-layout="directory"] button.sgdl-tab-btn[aria-selected="true"] small {
	color: var(--sgdl-muted);
}
.sgdl-wrap[data-layout="directory"] .sgdl-lists {
	padding: 28px 30px 30px;
}
.sgdl-wrap[data-layout="directory"] .sgdl-type-heading {
	padding: 0 0 16px;
	color: var(--sgdl-text);
	text-transform: none;
}
.sgdl-wrap[data-layout="directory"] .sgdl-row {
	grid-template-columns: 54px minmax(0, 1fr) minmax(112px, auto);
	gap: 14px 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--sgdl-line);
	border-bottom: 0;
}
.sgdl-wrap[data-layout="directory"] .sgdl-row:first-of-type {
	border-radius: 12px 12px 0 0;
}
.sgdl-wrap[data-layout="directory"] .sgdl-row:last-of-type {
	border-bottom: 1px solid var(--sgdl-line);
	border-radius: 0 0 12px 12px;
}
.sgdl-wrap[data-layout="directory"] .sgdl-file-block {
	min-height: 54px;
	padding: 7px;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--sgdl-primary) 35%, white);
	border-radius: 50%;
}
.sgdl-wrap[data-layout="directory"] .sgdl-file-block strong {
	display: none;
}
.sgdl-wrap[data-layout="directory"] .sgdl-document-info h3 {
	font-weight: 650 !important;
}
.sgdl-wrap[data-layout="directory"] .sgdl-document-button {
	min-width: 112px;
	min-height: 44px;
	padding: 8px 12px;
}
.sgdl-wrap[data-layout="directory"] .sgdl-document-button small {
	display: none;
}

@container (max-width: 700px) {
	.sgdl-wrap[data-tab-position="left"] .sgdl-panel,
	.sgdl-panel {
		grid-template-columns: minmax(0, 1fr);
	}
	.sgdl-wrap[data-tab-position="left"] .sgdl-tabs-shell {
		display: flex;
	}
	.sgdl-wrap[data-tab-position="left"] .sgdl-tabs {
		display: flex;
		overflow-x: auto;
	}
	.sgdl-wrap[data-tab-position="left"] button.sgdl-tab-btn {
		width: auto;
		min-width: 132px;
	}
	.sgdl-wrap[data-tab-position="left"] .sgdl-tab-arrow {
		display: grid;
	}
	.sgdl-row {
		grid-template-columns: 62px minmax(0, 1fr);
		gap: 14px 16px;
		padding: 16px 4px;
	}
	.sgdl-file-block {
		min-height: 62px;
	}
	.sgdl-document-action {
		grid-column: 2;
		justify-content: flex-start;
	}
	.sgdl-info {
		grid-column: 1 / -1;
	}
}
@container (max-width: 430px) {
	.sgdl-tabs-shell {
		gap: 5px;
		padding: 6px;
	}
	.sgdl-wrap button.sgdl-tab-btn,
	.sgdl-wrap[data-tab-position="left"] button.sgdl-tab-btn {
		min-width: 116px;
		min-height: 44px;
		padding: 10px 12px !important;
	}
	.sgdl-row {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 12px;
	}
	.sgdl-file-block {
		min-height: 54px;
		padding: 5px;
	}
	.sgdl-document-button {
		width: 100%;
		min-width: 0;
	}
}

@container (max-width: 700px) {
	.sgdl-wrap[data-layout="cards"] .sgdl-list-panel.active {
		grid-template-columns: minmax(0, 1fr);
	}
	.sgdl-wrap[data-layout="cards"] .sgdl-document-action {
		grid-column: 2;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 16px;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-tabs-shell {
		display: none;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-mobile-filter {
		display: block;
		padding-bottom: 16px;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-mobile-filter > span {
		display: block;
		margin-bottom: 6px;
		font-size: 13px;
		font-weight: 700;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-mobile-filter select {
		width: 100%;
		height: 48px;
		padding: 8px 40px 8px 13px;
		color: var(--sgdl-text);
		background-color: #fff;
		border: 1px solid color-mix(in srgb, var(--sgdl-primary) 28%, white);
		border-radius: 10px;
		font: inherit;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-lists {
		padding: 0;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-row {
		grid-template-columns: 50px minmax(0, 1fr);
		gap: 12px 14px;
		padding: 15px;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-document-action {
		grid-column: 1 / -1;
	}
	.sgdl-wrap[data-layout="directory"] .sgdl-document-button {
		width: 100%;
	}
}

@container (max-width: 430px) {
	.sgdl-wrap[data-layout="cards"] .sgdl-row {
		grid-template-columns: 50px minmax(0, 1fr);
		padding: 17px;
	}
	.sgdl-wrap[data-layout="cards"] .sgdl-file-block {
		min-height: 50px;
	}
	.sgdl-wrap[data-layout="cards"] .sgdl-document-action {
		grid-column: 1 / -1;
	}
}
