
:root {
	--line: #737373; /* subtle grid lines */
	--text: #eeeeee; /* primary text */
	--muted: #cccccc; /* label text */
	--accent: #007bff; /* button accent */
	--bg: #232327; /* page background */
	--backdrop: #434347; /* card background */

	--bs-body-bg: var(--bg);
	--bs-body-color: var(--text);
	--bs-tertiary-bg: var(--backdrop);

	--bs-primary: var(--accent);
	--bs-secondary-color: var(--muted);
	--bs-link-color: var(--bs-primary);

	--bs-body-font-size: 1.7rem;

	--font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
	--font-sans: "Ranga", 'Segoe UI', sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: var(--crt-accent-color, var(--backdrop));
}

h1 {
	margin: 0;
	font-size: 1.25em;
}

h1 > pre {
	margin: 0;
}

code, pre {
	font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
}

/*
button {
	padding: 0.5rem 1rem;
	border: 2px solid var(--accent);
	border-radius: 8px;
	color: var(--accent);
	background-color: inherit;
	font-family: inherit;
	font-size: 1.4rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease,
		box-shadow 0.3s ease;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
	background-color: var(--accent);
	color: var(--text);
}

textarea,
input {
	font-family: inherit;
	font-size: 1.2rem;
	padding: 0.5rem;
	border: none;
	border-radius: 8px;
	background-color: inherit;
	color: var(--text);
	resize: vertical;
}
*/

.crt-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;          /* include padding in width */
	width: clamp(288px, 92vw, 42rem); /* min, fluid, max */
	padding: clamp(12px, 4vw, 24px);  /* scales padding too */
	margin: clamp(12px, 4vw, 24px) auto;  /* scales margin too */
	color: var(--text);
	background-color: var(--bg);
	font-family: "Ranga", 'Segoe UI', sans-serif;
	font-size: 1.7rem;
	border-radius: 1rem;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3);
	gap: 16px;
}

.cert {
	display: grid;
	align-items: stretch;
	grid-template-columns: min-content 1fr;
	border: 2px solid var(--line);
	table-layout: fixed;
	border-radius: 12px;
	border-collapse: separate; /* keep radius clean */
	border-spacing: 0;
	width: 100%;
	overflow: hidden; /* clip inner corners */
	font-family: "Ranga", 'Segoe UI', sans-serif;
	font-size: 1.5rem;
}

.cert thead,
.cert tbody,
.cert tr { display: contents; }

.cert th,
.cert td {
	padding: 6px 14px;
}

.cert th {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;

	text-align: right;
	color: var(--muted);
	font-weight: 700;
	white-space: nowrap;
}

.cert td {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;

	overflow-wrap: anywhere;
	word-break: break-all;
	font-size: 0.8em;
	font-family: var(--font-mono);
}

/* Row dividers */
.cert tr + tr th,
.cert tr + tr td {
	border-top: 2px solid var(--line);
}

/* Column divider (between key and value) */
.cert tr > * + * {
	border-left: 2px solid var(--line);
}

.crt-new-form {
	font-size: 1rem;
	font-family: var(--font-mono);
}

#cert-header {
	text-align: left;
	justify-content: flex-start;
	width: 1fr;
	grid-column: 1 / -1;
	padding: 12px 14px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-weight: 800;
	font-size: 0.95rem;
}

#pfp {
	width: min(80vw, 400px);
	border-radius: 1rem;
	display: block;
}
