/* Denuo Core front end. Colors come from the theme tokens in style.css, with
   fallbacks so the plugin degrades sensibly under any other theme. */

.denuo-specs,
.denuo-coa-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.denuo-specs th,
.denuo-specs td,
.denuo-coa-table th,
.denuo-coa-table td {
	border-bottom: 1px solid var(--denuo-line, #e3e0d9);
	padding: 0.75rem 0.9rem;
	text-align: left;
	vertical-align: top;
}

.denuo-specs th {
	width: 220px;
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--denuo-muted, #5d6569);
	white-space: nowrap;
	font-family: var(--denuo-mono, monospace);
}

.denuo-specs td {
	font-family: var(--denuo-mono, monospace);
	font-variant-numeric: tabular-nums;
}

.denuo-coa-table thead th {
	border-bottom: 2px solid var(--denuo-ink, #16191b);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--denuo-muted, #5d6569);
	white-space: nowrap;
	font-family: var(--denuo-mono, monospace);
}

.denuo-coa-table td {
	font-family: var(--denuo-mono, monospace);
	font-variant-numeric: tabular-nums;
}

.denuo-coa-table td code {
	background: none;
	padding: 0;
	font-size: 1em;
	color: inherit;
}

.denuo-sequence {
	display: inline-block;
	word-break: break-word;
	font-family: var(--denuo-mono, monospace);
	font-size: 0.85em;
	line-height: 1.7;
	background: var(--denuo-ground, #faf9f6);
	border: 1px solid var(--denuo-line, #e3e0d9);
	padding: 0.4rem 0.55rem;
	border-radius: var(--denuo-radius-sm, 8px);
}

.denuo-coa-intro {
	color: var(--denuo-muted, #5d6569);
	max-width: 62ch;
}

/* --- Research-use notice ------------------------------------------------- */

.denuo-ruo-notice {
	border: 1px solid var(--denuo-warn-line, #d9c48a);
	background: var(--denuo-warn-bg, #fbf6e9);
	border-radius: var(--denuo-radius-md, 14px);
	padding: 0.95rem 1.1rem;
	margin: 1.25rem 0;
	font-size: 0.875rem;
	line-height: 1.55;
}

.denuo-ruo-notice strong {
	display: block;
	margin-bottom: 0.35rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.68rem;
	font-weight: 500;
	font-family: var(--denuo-mono, monospace);
	color: var(--denuo-ink, #16191b);
}

.denuo-ruo-notice p {
	margin: 0;
	color: #5a5344;
}

/* --- Age gate ------------------------------------------------------------ */

body.denuo-gate-active {
	overflow: hidden;
}

.denuo-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(16, 20, 22, 0.95);
	backdrop-filter: blur(5px);
}

.denuo-gate__panel {
	background: var(--denuo-ground, #faf9f6);
	border-radius: var(--denuo-radius-lg, 20px);
	max-width: 520px;
	width: 100%;
	padding: 2.4rem;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	text-align: left;
}

.denuo-gate__brand {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--denuo-accent, #1f5d3f);
	margin: 0 0 1.1rem;
	font-family: var(--denuo-mono, monospace);
}

.denuo-gate__title {
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 0 0 0.9rem;
	color: var(--denuo-ink, #16191b);
}

.denuo-gate__body {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--denuo-muted, #5d6569);
	margin: 0 0 1.7rem;
}

.denuo-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.denuo-gate__btn {
	flex: 1 1 auto;
	padding: 0.9rem 1.2rem;
	border-radius: var(--denuo-radius-sm, 8px);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	font-family: inherit;
	transition: background-color 0.15s ease;
}

.denuo-gate__btn--accept {
	background: var(--denuo-accent, #1f5d3f);
	color: var(--denuo-on-accent);
}

.denuo-gate__btn--accept:hover {
	background: var(--denuo-accent-hover, #17492f);
}

.denuo-gate__btn--decline {
	background: transparent;
	border-color: var(--denuo-line, #e3e0d9);
	color: var(--denuo-muted, #5d6569);
}

.denuo-gate__btn--decline:hover {
	background: var(--denuo-surface, #fff);
}

.denuo-gate__declined {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--denuo-negative, #9c4a2a);
}

@media (max-width: 480px) {
	.denuo-gate__panel {
		padding: 1.6rem;
	}

	.denuo-gate__btn {
		flex-basis: 100%;
	}
}

/* Tables must scroll rather than break the page on narrow screens. */
@media (max-width: 600px) {
	.denuo-coa-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.denuo-specs th {
		width: auto;
		white-space: normal;
	}
}
