.gotham-portal {
	--gotham-ink: #1c1c1a;
	--gotham-paper: #faf8f4;
	--gotham-line: #e4dfd3;
	--gotham-gold: #a1782f;
	--gotham-mute: #8a8578;
	--gotham-green: #3f7a4e;
	--gotham-red: #a33;
	font-family: Georgia, 'Iowan Old Style', serif;
	color: var(--gotham-ink);
	background: var(--gotham-paper);
	max-width: 880px;
	margin: 0 auto;
	padding: 24px 4px 48px;
}

.gotham-mono {
	font-family: 'SF Mono', 'IBM Plex Mono', Consolas, monospace;
	letter-spacing: 0.03em;
}
.gotham-gold { color: var(--gotham-gold); }
.gotham-mute { color: var(--gotham-mute); }
.gotham-strong { font-weight: 600; }

/* Search */
.gotham-search {
	display: flex;
	gap: 10px;
	margin-bottom: 8px;
}
.gotham-search-input-wrap { flex: 1; }
.gotham-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	border: 1px solid var(--gotham-line);
	background: #fff;
	font-size: 13px;
	font-family: inherit;
	color: var(--gotham-ink);
}
.gotham-search-input:focus {
	outline: 2px solid var(--gotham-gold);
	outline-offset: 1px;
}
.gotham-search-btn {
	background: var(--gotham-ink);
	color: var(--gotham-paper);
	border: none;
	padding: 0 22px;
	font-size: 11px;
	letter-spacing: 0.12em;
	cursor: pointer;
	font-family: 'SF Mono', 'IBM Plex Mono', Consolas, monospace;
}
.gotham-search-btn:hover { opacity: 0.85; }
.gotham-search-hint {
	font-size: 12px;
	color: var(--gotham-mute);
	margin: 0 0 20px;
}

/* Filters */
.gotham-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
}
.gotham-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--gotham-line);
	background: #fff;
	padding: 8px 12px;
	position: relative;
}
.gotham-filter-label {
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--gotham-mute);
	pointer-events: none;
}
.gotham-filter-select {
	border: none;
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	color: var(--gotham-ink);
	padding-right: 16px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.gotham-filter-select:focus {
	outline: none;
}
.gotham-filter::after {
	content: "\25BE";
	color: var(--gotham-mute);
	font-size: 10px;
	pointer-events: none;
	margin-left: -14px;
}

/* Table */
.gotham-row {
	display: grid;
	grid-template-columns: 1fr 1.3fr 1fr 1fr 0.8fr 0.7fr 20px;
	align-items: center;
	padding: 14px 6px;
	border-bottom: 1px solid var(--gotham-line);
	font-size: 13px;
}
.gotham-row--head {
	font-family: 'SF Mono', 'IBM Plex Mono', Consolas, monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--gotham-mute);
	border-bottom: 1px solid var(--gotham-line);
	padding-bottom: 10px;
}
.gotham-lot[hidden] { display: none; }
.gotham-lot .gotham-row:not(.gotham-row--head) {
	cursor: pointer;
	transition: background 0.2s ease;
}
.gotham-lot .gotham-row:not(.gotham-row--head):hover {
	background: #f2efe6;
}
.gotham-lot.is-open .gotham-row {
	background: #f2efe6;
	border-bottom: none;
}
.gotham-lot.is-flash .gotham-row {
	background: #fbf1dc;
}
.gotham-chevron {
	justify-self: end;
	color: var(--gotham-mute);
	transition: transform 0.2s ease;
	font-size: 12px;
}
.gotham-lot.is-open .gotham-chevron {
	transform: rotate(180deg);
}
.gotham-result { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.gotham-result--pass { color: var(--gotham-green); }
.gotham-result--fail { color: var(--gotham-red); }
.gotham-result::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.gotham-empty,
.gotham-no-match {
	padding: 28px 6px;
	color: var(--gotham-mute);
	font-size: 13px;
}
.gotham-no-match[hidden] { display: none; }

/* Panel (accordion body) */
.gotham-panel[hidden] { display: none; }
.gotham-panel {
	border: 1px solid var(--gotham-line);
	border-top: none;
	background: #fff;
	margin-bottom: 18px;
	animation: gotham-expand 0.25s ease;
}
@keyframes gotham-expand {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}
.gotham-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--gotham-line);
	font-size: 11px;
	letter-spacing: 0.1em;
}
.gotham-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--gotham-line);
	font-size: 13px;
}
.gotham-label {
	display: block;
	font-size: 10px;
	color: var(--gotham-mute);
	letter-spacing: 0.08em;
	margin-bottom: 4px;
}
.gotham-assay { padding: 14px 20px; }
.gotham-assay-head,
.gotham-assay-row {
	display: grid;
	grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
	font-size: 13px;
}
.gotham-assay-head {
	font-size: 10px;
	color: var(--gotham-mute);
	letter-spacing: 0.06em;
	padding-bottom: 8px;
}
.gotham-assay-row {
	padding: 8px 0;
	border-top: 1px solid var(--gotham-line);
}
.gotham-panel-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 20px;
	border-top: 1px solid var(--gotham-line);
}
.gotham-foot-note {
	font-size: 11px;
	color: var(--gotham-mute);
	max-width: 420px;
}
.gotham-download {
	background: var(--gotham-ink);
	color: var(--gotham-paper) !important;
	border: none;
	padding: 9px 16px;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-decoration: none !important;
	white-space: nowrap;
	font-family: 'SF Mono', 'IBM Plex Mono', Consolas, monospace;
}
.gotham-download:hover { opacity: 0.85; }

.gotham-credit {
	margin-top: 20px;
	text-align: right;
	font-family: 'SF Mono', 'IBM Plex Mono', Consolas, monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--gotham-mute);
	opacity: 0.7;
}

@media (max-width: 640px) {
	.gotham-hide-sm { display: none !important; }
	.gotham-row,
	.gotham-row--head {
		grid-template-columns: 1fr 1fr 0.8fr 0.6fr 18px;
	}
}
