/* doceo.dk — single static page, no framework, no JavaScript.
   All colours live in the custom properties below; edit them here to retheme
   the whole page.

   WHY this file exists at all, rather than a <style> block in index.html:
   public/.htaccess enforces a Content-Security-Policy with style-src 'self'
   and script-src 'none'. An inline <style> would need 'unsafe-inline' and
   would weaken the policy for the whole site. Keep CSS here. */

:root {
	--bg: #101418;
	--surface: #1a1f25;
	--surface-deep: #151a20;
	--border: #2a313a;
	--accent: #374669;
	--accent-hover: #2d5ce6;
	--text: #e6eaee;
	--text-muted: #b8c0c9;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: var(--text);
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 14px 24px;
}

.brand {
	display: block;
	width: 140px;
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
	color: var(--text);
}

@media (max-width: 600px) {
	.nav {
		flex-direction: column;
		justify-content: center;
		padding-bottom: 18px;
	}

	.nav-links {
		justify-content: center;
		gap: 8px 18px;
		width: 100%;
	}

}

/* ── Buttons ────────────────────────────────────────────────────── */

.cta,
.cta-secondary {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.cta {
	background: var(--accent);
	color: #fff;
}

.cta:hover,
.cta:focus-visible {
	background: var(--accent-hover);
}

.cta-secondary {
	border: 1px solid var(--border);
	color: var(--text);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
	border-color: var(--text-muted);
}

/* ── Sections ───────────────────────────────────────────────────── */

.hero {
	padding: 88px 24px 64px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.hero h1 {
	margin: 0 auto 20px;
	max-width: 760px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.15;
	font-weight: 650;
}

.lead {
	margin: 0 auto 32px;
	max-width: 640px;
	font-size: 17px;
	color: var(--text-muted);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.section {
	padding: 64px 24px;
	border-top: 1px solid var(--border);
}

.section h2 {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 650;
}

.section-intro {
	margin: 0 0 24px;
	max-width: 640px;
	color: var(--text-muted);
}

.centered {
	margin-left: auto;
	margin-right: auto;
}

.section-action {
	margin: 24px 0 0;
}

/* ── Cards ──────────────────────────────────────────────────────── */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 32px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px 22px;
}

.card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.card p {
	margin: 0;
	font-size: 14px;
	color: var(--text-muted);
}

/* ── Recommendations ────────────────────────────────────────────── */

.recommendation-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
	margin-top: 32px;
}

.recommendation summary {
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
}

.recommendation summary:focus-visible {
	outline: 2px solid var(--accent-hover);
	outline-offset: 4px;
}

.recommendation blockquote {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.recommendation blockquote p {
	margin: 0 0 1em;
	font-size: 15px;
}

.recommendation blockquote p:last-child {
	margin-bottom: 0;
}

.recommendation-attribution {
	margin-top: 18px;
	font-size: 14px;
	color: var(--text-muted);
}

.recommendation-attribution strong {
	color: var(--text);
}

/* ── Technology groups ──────────────────────────────────────────── */

.technology-groups {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.technology-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.technology-list li {
	padding: 5px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-deep);
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.4;
}

.technology-card .technology-list {
	margin-top: 18px;
}

/* ── Products ───────────────────────────────────────────────────── */

.product-list {
	margin-top: 32px;
}

.ai-systems-figure {
	margin: 32px 0 0;
}

.ai-systems-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #f8f6ef;
}

.ai-systems-figure figcaption {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 13px;
}

.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 40px 0;
	border-top: 1px solid var(--border);
}

.product:first-child {
	padding-top: 0;
	border-top: 0;
}

.product-reverse .product-copy {
	order: 2;
}

.product-media-figure {
	min-width: 0;
	margin: 0;
}

.product-media-figure figcaption {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 13px;
}

.product-media-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
	min-width: 0;
}

.product-media-pair .media {
	box-sizing: border-box;
}

.product-copy h3,
.product-compact h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.product-copy > p:not(.product-kicker):not(.product-actions),
.product-compact p {
	color: var(--text-muted);
}

.product-kicker {
	margin: 0 0 6px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.product-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin: 24px 0 0;
}

.text-link {
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
	text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--text);
}

.product-compact {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: 8px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

.product-compact p {
	max-width: 680px;
	margin-top: 0;
	margin-bottom: 0;
}

.product-compact .product-actions {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.panorama-frame {
	display: block;
	width: 100%;
	height: 440px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

.back-row {
	margin: 0 0 24px;
}

@media (max-width: 900px) {
	.ai-systems-figure {
		display: none;
	}

}

@media (max-width: 800px) {

	.technology-groups {
		grid-template-columns: minmax(0, 1fr);
	}

	.recommendation-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.product {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.product-reverse .product-copy {
		order: initial;
	}

	.product-compact {
		align-items: flex-start;
		flex-direction: column;
	}

	.product-compact .product-actions {
		justify-content: flex-start;
	}

	.panorama-frame {
		height: 360px;
	}
}

.media {
	display: block;
	width: 100%;
	/* WHY: width/height attributes on the img reserve layout space (no layout
	   shift); height must then be auto so CSS width:100% keeps the ratio. */
	height: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

/* ── Bullet list ────────────────────────────────────────────────── */

.list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	max-width: 760px;
}

.list li {
	position: relative;
	padding-left: 22px;
	color: var(--text-muted);
}

.list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--accent);
}

.list strong {
	color: var(--text);
	font-weight: 600;
}

/* ── Closing band ───────────────────────────────────────────────── */

.closing {
	text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 24px 0;
	font-size: 13px;
	color: var(--text-muted);
}

.footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.company-details {
	display: grid;
	gap: 3px;
}

.site-footer a {
	color: var(--text-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--text);
}

.red-cross-link {
	display: block;
	flex: 0 0 auto;
}

.red-cross-link img {
	display: block;
	width: 118px;
	height: auto;
	border-radius: 4px;
}

/* ── CV ────────────────────────────────────────────────────────── */

.cv-hero {
	padding-bottom: 40px;
}

.cv-contact {
	margin: -12px auto 0;
	max-width: 780px;
	color: var(--text-muted);
	font-size: 14px;
}

.cv-contact a {
	color: var(--text-muted);
}

.cv-contact a:hover,
.cv-contact a:focus-visible {
	color: var(--text);
}

.cv-document {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-bottom: 64px;
}

.cv-section-nav {
	position: sticky;
	top: 16px;
	padding: 16px 0;
	border-right: 1px solid var(--border);
}

.cv-section-nav p {
	margin: 0 20px 10px 0;
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cv-section-nav ol {
	margin: 0;
	padding: 0 20px 0 0;
	list-style: none;
}

.cv-section-nav li {
	margin: 0;
}

.cv-section-nav a {
	display: block;
	padding: 7px 0;
	color: var(--text-muted);
	font-size: 14px;
	text-decoration: none;
}

.cv-section-nav a:hover,
.cv-section-nav a:focus-visible {
	color: var(--text);
}

.cv-directory-link {
	margin: 16px 20px 0 0;
	border-top: 1px solid var(--border);
	padding-top: 16px;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.cv-contents {
	margin-bottom: 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

.cv-contents summary {
	padding: 16px 20px;
	cursor: pointer;
	font-weight: 600;
}

.cv-contents nav {
	padding: 0 20px 20px;
}

.cv-contents ol {
	margin: 0;
	padding-left: 22px;
}

.cv-contents li {
	margin-top: 8px;
}

.cv-contents a,
.cv-page .related a {
	color: var(--text-muted);
	text-underline-offset: 3px;
}

.cv-contents a:hover,
.cv-contents a:focus-visible,
.cv-page .related a:hover,
.cv-page .related a:focus-visible {
	color: var(--text);
}

.cv-contents .toc-entries {
	font-size: 14px;
}

.cv-company-index {
	padding: 2px 0;
}

.cv-company-index summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	font-weight: 600;
}

.cv-company-index summary::-webkit-details-marker {
	display: none;
}

.cv-company-index summary::before,
.cv-page .entry-toggle::before {
	content: '\203A';
	display: inline-block;
	width: 14px;
	color: var(--text-muted);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.cv-company-index[open] summary::before {
	content: '\2304';
}

.cv-company-index .toc-entries {
	margin-top: 4px;
}

.cv-page .cv-section {
	padding-top: 48px;
	padding-bottom: 48px;
}

.cv-page .cv-section > h2,
.cv-page .profile h2 {
	margin-top: 0;
}

.cv-page .company-group {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	scroll-margin-top: 16px;
}

.cv-page .company-heading {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}

.cv-page .dates {
	margin-left: auto;
	flex: 0 0 auto;
	color: var(--text-muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	white-space: nowrap;
}

.cv-page .entry {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	scroll-margin-top: 16px;
}

.cv-page .entry-toggle {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	gap: 8px;
	color: var(--text);
	text-decoration: none;
}

.cv-page .entry-heading {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.cv-page .entry-title {
	min-width: 0;
}

.cv-page .entry-title-full,
.cv-page .entry-detail {
	display: none;
}

.cv-page .entry:target {
	border-top-color: var(--text-muted);
}

.cv-page .entry:target .entry-title-compact {
	display: none;
}

.cv-page .entry:target .entry-title-full {
	display: inline;
}

.cv-page .entry:target .entry-detail {
	display: block;
}

.cv-page .entry-detail {
	padding-top: 14px;
}

.cv-page .entry:target .entry-toggle::before {
	content: '\2304';
}

.cv-page .entry-collapse {
	margin: 16px 0 0;
	font-size: 13px;
}

.cv-page .entry-collapse a {
	color: var(--text-muted);
}

.cv-page .ai-tag,
.cv-page .csr-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 3px;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
}

.cv-page .ai-tag {
	padding: 4px 5px;
	background: #b4463c;
}

.cv-page .entry-meta,
.cv-page .technologies,
.cv-page .related {
	margin: 8px 0 0;
	color: var(--text-muted);
	font-size: 14px;
}

.cv-page .technologies {
	font-style: italic;
}

.cv-page .bullets.tagged {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.cv-page .bullets.tagged li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 8px;
	color: var(--text-muted);
}

.cv-page .csr-tag {
	width: 20px;
	height: 20px;
	margin-top: 3px;
}

.cv-page .csr-tag-c {
	background: var(--accent);
}

.cv-page .csr-tag-s {
	background: #2e7d6b;
}

.cv-page .csr-tag-r {
	background: #b0772a;
}

.cv-page .csr-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

.cv-page .csr-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cv-page .education-item,
.cv-page .recommendation-item {
	margin-top: 24px;
}

.cv-page .education-item h3 {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	font-size: 16px;
}

.cv-page .education-item p,
.cv-page .course-list,
.cv-page .course-list p,
.cv-page #section-languages ul {
	color: var(--text-muted);
}

.cv-page .course-list,
.cv-page #section-languages ul {
	margin: 0;
	padding-left: 22px;
}

.cv-page .course-list li {
	margin-top: 18px;
}

.cv-page .course-list p {
	margin: 4px 0 0;
}

.cv-page blockquote {
	margin: 0;
	padding-left: 16px;
	border-left: 3px solid var(--accent);
	color: var(--text-muted);
	font-style: italic;
}

.cv-page .recommendation-attribution {
	margin: 10px 0 0;
	color: var(--text-muted);
	font-size: 14px;
}

@media (max-width: 600px) {
	.cv-contact {
		line-height: 1.8;
	}

	.cv-page .company-group {
		padding: 18px;
	}

	.cv-page .company-heading,
	.cv-page .entry-heading,
	.cv-page .education-item h3 {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.cv-page .dates {
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	.cv-document {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.cv-section-nav {
		position: static;
		margin-bottom: 24px;
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 0 0 16px;
	}

	.cv-section-nav p {
		margin-right: 0;
	}

	.cv-section-nav ol {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 16px;
		padding-right: 0;
	}

	.cv-section-nav a {
		padding: 4px 0;
	}

	.cv-directory-link {
		margin: 12px 0 0;
		padding-top: 12px;
	}
}

@media (max-width: 520px) {
	.footer-content {
		align-items: flex-start;
		flex-direction: column;
	}
}
