/* =====================================================================
   FrontLine Cards — renderer stylesheet
   Eén bron voor scherm én print. Alle maten in mm conform de A6-specificatie.
   Kaart: A6 105 × 148 mm | header 14mm | zijstrook | 2 gaten ⌀5mm | boorzone 17mm
   ===================================================================== */

.flc-card, .flc-card * { box-sizing: border-box; margin: 0; padding: 0; }

.flc-card {
	--flc-accent: #D92B3A; /* wordt per kaart gezet door de renderer */
	width: 105mm;
	height: 148mm;
	background: #fff;
	color: #111;
	font-family: 'Inter', sans-serif;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	/* Hufterproof tegen thema-styling: kaart erft nooit uitlijning of regelafstand */
	text-align: left;
	line-height: 1.4;
	letter-spacing: normal;
}

/* Schermweergave: afgeronde hoeken, schaduw, boorgat-indicator */
.flc-card--screen {
	border-radius: 5mm;
	box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.flc-card--screen .flc-hole {
	position: absolute;
	left: 7.5mm; top: 7.5mm;
	width: 5mm; height: 5mm;
	border-radius: 50%;
	background: #f3f4f6;
	border: 1px dashed #9ca3af;
	z-index: 5;
}
/* Achterkant gespiegeld: beide gaten rechts, centrum 10mm van de rand. */
.flc-card--back .flc-hole { left: auto; right: 7.5mm; }
.flc-card--print .flc-hole { display: none; }

/* ------------------------------------------------------------------ */
/* Header met snijveilige bovenruimte voor titel, ondertitel en icoon. */
.flc-header {
	height: 14mm;
	flex: 0 0 14mm;
	background: var(--flc-accent);
	color: #fff;
	display: flex;
	align-items: center;
	padding: 3mm 8mm;
	gap: 2.5mm;
}
.flc-header .flc-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 900;
	font-size: 14pt;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
	min-width: 0;
}
.flc-header .flc-subtitle {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 6.5pt;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .9;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.flc-header .flc-titlewrap { flex: 1 1 auto; min-width: 0; }
.flc-header .flc-icon {
	width: 5.5mm; height: 5.5mm;
	flex: 0 0 auto;
}
.flc-header .flc-icon svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------------ */
/* Doorlopende boorzone: 17mm links voor, rechts achter.
   De andere zijde heeft 6mm snijmarge. */
.flc-content {
	flex: 1 1 auto;
	min-height: 0;
	padding: 4mm 6mm 5mm 17mm;
	overflow: hidden;
	position: relative;
}
.flc-content--back { padding-left: 6mm; padding-right: 17mm; }
.flc-blocks { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 4mm; }
.flc-block { width: 100%; margin-bottom: 1.8mm; }
.flc-block--half { width: calc(50% - 2mm); }

/* Blok: stap-rij */
.flc-step { display: flex; gap: 2.2mm; align-items: flex-start; padding-bottom: 1.4mm; border-bottom: 0.2mm solid #e5e7eb; }
.flc-step > div:last-child { flex: 1 1 auto; min-width: 0; }
.flc-block:last-child .flc-step { border-bottom: none; }
.flc-step .flc-step-letter {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 900;
	font-size: 13pt;
	line-height: 1;
	color: var(--flc-accent);
	min-width: 6mm;
	text-align: center;
	padding-top: .3mm;
}
.flc-step .flc-step-title { font-weight: 700; font-size: 8.5pt; line-height: 1.3; margin-bottom: .4mm; }
.flc-step .flc-step-text  { white-space: pre-line; font-weight: 400; font-size: 8.5pt; line-height: 1.4; color: #333; }

/* Blok: sectiekop */
.flc-section {
	display: flex; align-items: center; gap: 1.5mm;
	font-weight: 800; font-size: 6.5pt; letter-spacing: .08em;
	text-transform: uppercase; color: var(--flc-accent);
	margin-top: 1mm;
}
.flc-section::after { content: ''; flex: 1; height: 0.3mm; background: var(--flc-accent); opacity: .35; }

/* Blok: term/waarde-rijen */
.flc-termvalue { font-size: 8.5pt; line-height: 1.4; }
.flc-termvalue .flc-tv-row { display: flex; gap: 2mm; padding: .5mm 0; border-bottom: 0.2mm dotted #d1d5db; }
.flc-termvalue .flc-tv-row:last-child { border-bottom: none; }
.flc-termvalue .flc-tv-term { font-weight: 700; flex: 0 0 38%; }
.flc-termvalue .flc-tv-value { flex: 1; color: #333; }

/* Blok: checklist */
.flc-checklist { font-size: 8.5pt; line-height: 1.4; }
.flc-checklist .flc-check-row { display: flex; gap: 1.8mm; align-items: flex-start; padding: .6mm 0; }
.flc-checklist .flc-check-box {
	width: 3mm; height: 3mm; flex: 0 0 auto;
	border: 0.35mm solid #111; border-radius: 0.6mm; margin-top: .3mm;
}

/* Blok: tabel */
.flc-table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.3; }
.flc-table th {
	background: var(--flc-accent); color: #fff;
	font-weight: 700; text-align: left;
	padding: .8mm 1.5mm; font-size: 6.5pt;
}
.flc-table td { padding: .8mm 1.5mm; border-bottom: 0.2mm solid #e5e7eb; vertical-align: top; }
.flc-table tr:nth-child(even) td { background: #f8f9fa; }

/* Blok: afbeelding — vaste hoogte in mm (gezet inline door flc-renderer.js;
   breedte volgt uit de blokbreedte, 82mm vol / 39mm half), zodat een upload
   op de aangegeven maat exact 1:1 print (bijv. een gekalibreerde meetafbeelding). object-fit:contain voorkomt vervorming bij een afwijkende
   beeldverhouding — dan blijft de afbeelding proportioneel en ontstaat er
   witruimte. Controleer de effectieve maat van de beeldinhoud. */
.flc-image { width: 100%; overflow: hidden; border-radius: 1mm; }
.flc-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.flc-image-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	text-align: center; line-height: 1.3;
	border: 0.3mm dashed #9ca3af; border-radius: 1mm;
	color: #6b7280; font-size: 6.5pt;
	background: #f8f9fa;
}
.flc-image-caption { font-size: 6.5pt; color: #666; font-style: italic; margin-top: .8mm; text-align: center; }

/* Blok: keypoint */
.flc-keypoint {
	background: #f1f5f9;
	border-left: 1mm solid var(--flc-accent);
	border-radius: 0 1mm 1mm 0;
	padding: 1.6mm 2mm;
	font-size: 8pt; line-height: 1.4;
}
.flc-keypoint .flc-keypoint-title { font-weight: 800; font-size: 6.5pt; text-transform: uppercase; letter-spacing: .05em; color: var(--flc-accent); margin-bottom: .6mm; }

/* Blok: vrije tekst */
.flc-text { white-space: pre-line; font-size: 8.5pt; line-height: 1.45; color: #222; }

/* Voetnoot "Ook relevant voor" (achterkant) */
.flc-alsofor { font-size: 6.5pt; font-style: italic; color: #666; margin-top: 1mm; }

/* ------------------------------------------------------------------ */
/* Merk, versie en QR staan in de boorzone, tussen de twee gaten.
   QR inclusief 2mm witte rustzone; geen onderbalk meer. */
.flc-rail { position: absolute; top: 40mm; left: 2mm; width: 15mm; height: 68mm; color: #333; text-align: center; }
.flc-card--back .flc-rail { left: auto; right: 2mm; }
.flc-rail .flc-qr { width: 15mm; height: 15mm; padding: 2mm; background: #fff; }
.flc-qr img, .flc-qr canvas { width: 100%!important; height: 100%!important; display: block; }
.flc-rail-copy { position: absolute; top: 44mm; left: 7.5mm; width: 45mm; transform: translate(-50%,-50%) rotate(-90deg); white-space: nowrap; }
.flc-card--back .flc-rail-copy { transform: translate(-50%,-50%) rotate(90deg); }
.flc-rail-brand { font-family: 'Roboto Condensed', sans-serif; font-size: 7pt; font-weight: 900; letter-spacing: .04em; }
.flc-rail-version { font-size: 6pt; margin-top: .5mm; }
.flc-rail-theme { font-size: 5.5pt; text-transform: uppercase; margin-top: .5mm; }

/* ------------------------------------------------------------------ */
/* Overflow-indicator (alleen scherm/editor): rode zone waar inhoud    */
/* buiten het kaartformaat valt                                        */
.flc-card--overflow::after {
	content: 'PAST NIET — herverdeel of splits de kaart';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: rgba(217,43,58,.92);
	color: #fff;
	font-size: 8pt; font-weight: 800; text-align: center;
	padding: 1.5mm 0;
	z-index: 10;
}

/* ------------------------------------------------------------------ */
/* Embed op de site: voor- en achterkant naast elkaar                  */
.flc-embed { display: flex; flex-wrap: wrap; gap: 8mm; justify-content: center; padding: 4mm 0; }

/* Bestelsectie — eigen call-to-action-blok direct onder de kaart, in de
   accentkleur van déze kaart (--flc-accent, inline gezet per kaart). */
.flc-order-section {
	max-width: 420px; margin: 0 auto 24px; padding: 20px 24px;
	text-align: center; font-family: 'Inter', sans-serif;
	background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px;
}
.flc-order-section h3 {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	font-size: 14px; margin: 0 0 14px; color: #111;
}
.flc-order-section .flc-order-btn {
	display: inline-block; background: var(--flc-accent, #D92B3A) !important;
	color: #fff !important; padding: 12px 32px; border-radius: 6px;
	font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px;
	text-decoration: none; border: none; cursor: pointer; line-height: 1.2;
}
.flc-order-section .flc-order-btn:hover { opacity: .88; }

/* ------------------------------------------------------------------ */
/* Publieke pagina-aanvullingen (web-only, geen onderdeel van de       */
/* fysieke kaart): verdieping, gerelateerde kaarten, feedbackformulier */
/* en — altijd als laatste — de bronvermelding.                        */
.flc-extras { max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; font-family: 'Inter', sans-serif; }
.flc-extras-section { margin-top: 28px; }
.flc-extras-section h3 {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	font-size: 14px; margin: 0 0 10px; padding-bottom: 6px;
	border-bottom: 2px solid #e5e7eb;
}
.flc-extras-section ul { list-style: none; margin: 0; padding: 0; }
.flc-extras-section li { padding: 6px 0; border-bottom: 1px solid #f0f0f1; font-size: 14px; }
.flc-extras-section li:last-child { border-bottom: none; }
.flc-extras-kind { color: #888; font-size: 12px; margin-left: 6px; }
.flc-extras-section.flc-sources { opacity: .85; }
.flc-extras-section.flc-sources h3 { font-size: 12px; }
.flc-extras-section.flc-sources li { font-size: 12px; }

.flc-extras-section.flc-authors { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flc-authors-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.flc-author { display: inline-flex; align-items: center; gap: 8px; color: #555; text-decoration: none; font-size: 13px; }
a.flc-author:hover { text-decoration: underline; }
.flc-author-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ------------------------------------------------------------------ */
/* PRINT: pagina van 111×154mm = kaart + 3mm bleed rondom.              */
/* De kaart zelf blijft exact 105×148mm; accentstroken lopen af via     */
/* aparte bleed-lagen achter de kaart.                                 */
.flc-print-page {
	width: 111mm;
	height: 154mm;
	position: relative;
	background: #fff;
	overflow: hidden;
	break-after: page;
	page-break-after: always;
	break-inside: avoid;
}
.flc-print-page:last-child { break-after: auto; page-break-after: auto; }
.flc-print-page .flc-bleed-top {
	position: absolute; top: 0; left: 0; right: 0;
	height: 17mm; /* 3mm bleed + 14mm header */
}
.flc-print-page .flc-card {
	position: absolute;
	top: 3mm; left: 3mm;
	border-radius: 0; /* rechthoekige afloop; 5mm rondhoeken zijn fysieke afwerking */
	box-shadow: none;
}

@media print {
	@page { size: 111mm 154mm; margin: 0; }
	body { margin: 0; }
	.flc-no-print { display: none !important; }
	.flc-print-page { margin: 0; }
	body, .flc-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Toolbar op de print-pagina (niet mee geprint) */
.flc-print-toolbar {
	position: sticky; top: 0; z-index: 100;
	background: #111; color: #fff;
	padding: 12px 20px;
	font-family: 'Inter', sans-serif; font-size: 13px;
	display: flex; align-items: center; gap: 16px;
	flex-wrap: wrap;
}
.flc-print-toolbar button {
	background: #D92B3A; color: #fff; border: 0;
	padding: 8px 18px; border-radius: 4px;
	font-weight: 700; cursor: pointer; font-size: 13px;
}
.flc-print-toolbar button:disabled { opacity: .5; cursor: not-allowed; }
.flc-print-help { padding: 12px 20px; background: #fff; color: #333; font: 13px/1.5 'Inter', sans-serif; }

/* Real action lists: hanging indent keeps each action visually distinct. */
.flc-step-items { margin: 0; padding: 0 0 0 3.4mm; font-size: 8.5pt; line-height: 1.4; color: #333; }
.flc-step-items li { padding-left: .2mm; margin: 0 0 .5mm; white-space: pre-line; }
.flc-step-items li:last-child { margin-bottom: 0; }
.flc-step-text + .flc-step-items { margin-top: .6mm; }

/* Optional full-width action layout; existing step cards keep their spacing. */
.flc-step--stacked { display:grid; grid-template-columns:6mm 1fr; gap:0 1mm; padding-bottom:1mm; }
.flc-step--stacked > div:last-child { display:contents; }
.flc-step--stacked .flc-step-letter { grid-column:1; grid-row:1; min-width:0; text-align:left; align-self:center; padding:0; font-size:12pt; }
.flc-step--stacked .flc-step-title { grid-column:2; grid-row:1; align-self:center; background:color-mix(in srgb,var(--flc-accent) 8%,white); padding:.35mm 0; margin:0; font-size:9pt; line-height:1.25; }
.flc-step--stacked .flc-step-text { grid-column:1 / -1; margin-top:1mm; }
.flc-step--stacked .flc-step-items { grid-column:1 / -1; min-width:0; width:100%; list-style:none; padding:0; margin-top:1mm; font-size:8.5pt; line-height:1.25; }
.flc-step--stacked .flc-step-items li { position:relative; padding-left:2.8mm; margin-bottom:.15mm; }
.flc-step--stacked .flc-step-items li::before { content:'•'; position:absolute; left:.4mm; color:var(--flc-accent); }
.flc-step--stacked .flc-step-items li:last-child { margin-bottom:0; }
.flc-block:has(> .flc-step--stacked) { margin-bottom:1.5mm; }
.flc-block:last-child:has(> .flc-step--stacked) { margin-bottom:0; }
.flc-block:last-child .flc-step--stacked { padding-bottom:0; }
