/* WealthView GST Tools — frontend styles */

.wv-gst-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Breadcrumb */
.wv-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	font-size: 0.875rem;
	color: #666;
}
.wv-breadcrumb li:not(:last-child)::after {
	content: "›";
	margin: 0 0.5em;
	color: #999;
}
.wv-breadcrumb a {
	text-decoration: none;
}
.wv-breadcrumb a:hover {
	text-decoration: underline;
}

/* Search widget */
.wv-gst-search-widget {
	position: relative;
	margin: 1.5rem 0;
	max-width: 640px;
}
.wv-gst-search-input {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}
.wv-gst-search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 50;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 6px 6px;
	max-height: 420px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.wv-gst-no-results {
	padding: 1rem;
	color: #666;
	margin: 0;
}

/* Result tables (shared by dropdown, listing, and detail pages) */
.wv-result-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.9rem;
}
.wv-result-table th,
.wv-result-table td {
	padding: 0.5rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}
.wv-result-table th {
	background: #fafafa;
	font-weight: 600;
	white-space: nowrap;
}
.wv-result-table--dropdown {
	margin: 0;
}
.wv-result-table--dropdown th,
.wv-result-table--dropdown td {
	font-size: 0.85rem;
	padding: 0.4rem 0.6rem;
}
.wv-result-table tr:hover {
	background: #fbfbfb;
}

.wv-col-code a {
	font-weight: 600;
	text-decoration: none;
}
.wv-col-code a:hover {
	text-decoration: underline;
}

/* Rate cell states — numeric, '-' (not separately applicable), and blank
   (genuinely missing) must look visibly distinct per Section 6. */
.wv-rate--numeric {
	color: #1a1a1a;
}
.wv-rate--na {
	color: #888;
	font-weight: 600;
}
.wv-rate--blank {
	color: #ccc;
}

/* Section / chapter directory */
.wv-sections-directory .wv-section-block {
	margin-bottom: 2rem;
}
.wv-chapter-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.wv-chapter-list li a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	background: #f2f2f2;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
}
.wv-chapter-list li a:hover {
	background: #e6e6e6;
}

/* Code detail page */
.wv-multi-row-notice {
	background: #fff8e5;
	border-left: 3px solid #e0b200;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
}
.wv-hierarchy-decode ul,
.wv-related-codes ul {
	list-style: none;
	margin: 0.5rem 0;
	padding: 0;
}
.wv-hierarchy-decode li,
.wv-related-codes li {
	padding: 0.25rem 0;
}
.wv-related-codes a {
	text-decoration: none;
}
.wv-related-codes a:hover {
	text-decoration: underline;
}
.wv-source-note {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	font-size: 0.85rem;
	color: #777;
}

.wv-sac-heading-list {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}
.wv-sac-heading-list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f0f0f0;
}
.wv-sac-heading-list a {
	text-decoration: none;
}
.wv-sac-heading-list a:hover {
	text-decoration: underline;
}
