/* http-status-explorer — 資訊區 tabs / FAQ 對齊改版工具語彙 */

.tool-header-actions {
	display: none !important;
}

.hse-tool-header {
	margin-bottom: 20px;
}

.tool-top-ad-primary {
	margin: 16px 0 20px;
}

.tool-top-ad-secondary {
	margin: 20px 0;
}

.hse-toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	padding: 10px 0 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--c-border);
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hse-toolbar-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	flex: 0 0 auto;
}

.hse-chip {
	border: 1px solid var(--c-border-strong);
	background: var(--c-surface, #fff);
	color: var(--c-text-2);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hse-chip:hover {
	border-color: rgba(37, 99, 235, 0.35);
	color: var(--c-text);
}

.hse-chip.active {
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	border-color: transparent;
	color: #fff;
}

.hse-toolbar-search {
	position: relative;
	flex: 1 1 220px;
	min-width: 140px;
	max-width: 320px;
	margin-left: auto;
}

.hse-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-text-3);
	font-size: 0.95rem;
	pointer-events: none;
}

.hse-search-input {
	width: 100%;
	height: 38px;
	padding: 0 12px 0 38px;
	border-radius: 10px;
	border: 1px solid var(--c-border-strong);
	font-size: 0.92rem;
	background: var(--c-surface, #fff);
}

.hse-search-input:focus {
	outline: none;
	border-color: rgba(37, 99, 235, 0.45);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hse-count {
	font-size: 0.82rem;
	color: var(--c-text-2);
	margin-bottom: 10px;
	min-height: 1.35em;
}

.hse-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 16px;
	align-items: stretch;
	min-height: 420px;
	margin-bottom: 8px;
}

.hse-list-panel {
	min-height: 0;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: var(--c-surface-2, rgba(0, 0, 0, 0.02));
	overflow: hidden;
}

.hse-list {
	max-height: min(60vh, 520px);
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hse-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	background: transparent;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.hse-row:hover {
	background: rgba(37, 99, 235, 0.06);
}

.hse-row.is-active {
	background: rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.25);
}

.hse-row-code {
	font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
	font-weight: 700;
	font-size: 0.95rem;
	color: #2563eb;
	min-width: 2.8rem;
}

.hse-row-phrase {
	font-size: 0.88rem;
	color: var(--c-text-2);
	flex: 1;
	min-width: 0;
}

.hse-detail-panel {
	min-height: 0;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	padding: 18px 20px;
	background: var(--c-surface, #fff);
}

.hse-detail-empty {
	color: var(--c-text-2);
	font-size: 0.95rem;
	line-height: 1.55;
	padding: 24px 8px;
	text-align: center;
}

.hse-detail-code {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 14px;
	margin-bottom: 16px;
}

#hse-d-code {
	font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--c-text);
}

.hse-detail-phrase {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--c-text-2);
}

.hse-dl {
	margin: 0;
}

.hse-dl dt {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-text-3);
	margin-top: 14px;
	margin-bottom: 4px;
}

.hse-dl dt:first-child {
	margin-top: 0;
}

.hse-dl dd {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--c-text);
}

.hse-rfc-note {
	margin-top: 18px;
	font-size: 0.82rem;
	color: var(--c-text-2);
	line-height: 1.5;
}

.hse-rfc-note .bi {
	margin-right: 6px;
	vertical-align: -0.1em;
	color: var(--c-text-3);
}

/* 資訊區 tabs + FAQ（與 json-formatter / statistics-calculator 同一語彙） */
.hse-info-section {
	margin-top: 34px !important;
	padding-top: 28px !important;
}

#hseInfoTabContent {
	border: none;
	border-radius: 0;
	padding: 0;
	margin-top: 0;
	background: transparent;
}

.hse-faq-list .faq-item {
	border: 1px solid var(--c-border);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--c-surface-2);
}

.hse-faq-list .faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	user-select: none;
	color: var(--c-text);
}

.hse-faq-list .faq-q .bi {
	transition: transform 0.2s ease;
	color: var(--c-text-3);
}

.hse-faq-list .faq-item.is-open .faq-q .bi {
	transform: rotate(180deg);
}

.hse-faq-list .faq-a {
	display: none;
	padding: 0 18px 14px;
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--c-text-2);
}

.hse-faq-list .faq-item.is-open .faq-a {
	display: block;
}

.hse-info-section .rk-item {
	padding: 18px 0;
	margin: 0;
	border-radius: 0;
	background: transparent !important;
}

.hse-info-section .rk-thumb {
	width: 84px;
	height: 84px;
	min-width: 84px;
	min-height: 84px;
	border-radius: 14px;
	align-self: flex-start;
}

.hse-info-section .rk-thumb::after {
	background: rgba(0, 0, 0, 0.16);
}

.hse-info-section .rk-thumb-icon {
	font-size: 1.45rem;
}

.hse-info-section .rk-info > .d-flex {
	margin-bottom: 4px !important;
}

.hse-info-section .rk-info > .d-flex > div:first-child,
.hse-info-section .rk-tag {
	display: none !important;
}

.hse-info-section .rk-title {
	font-size: 0.875rem;
	line-height: 1.35;
	margin-bottom: 6px;
}

.hse-info-section .rk-excerpt {
	font-size: 0.77rem;
	line-height: 1.55;
}

.hse-info-section .rk-date {
	margin-top: 8px;
	font-size: 0.88rem;
}

@media (max-width: 991px) {
	.hse-layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hse-list {
		max-height: 280px;
	}

	.hse-toolbar {
		flex-wrap: wrap;
	}

	.hse-toolbar-search {
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
	}

	}

@media (max-width: 576px) {
	.hse-toolbar-filters {
		flex-wrap: wrap;
	}
}

@media (max-width: 767.98px) {
	
	
	.hse-info-section .rk-title {
		font-size: 1rem;
	}

	.hse-info-section .rk-excerpt {
		font-size: 0.84rem;
	}
}
