/* =========================================================
   Të dhënat e hapura — akshi-dpt
   Ndjek stilin e temës: e kuqja #ce2127, kuti të bardha me
   kënde 14px, nënvizim i kuq nën tituj, mënyra me kontrast të lartë.
   ========================================================= */

.od-page {
	--od-red: #ce2127;
	--od-ink: #1b1f24;
	--od-muted: #5f6670;
	--od-line: #e6e8eb;
	--od-soft: #f6f7f9;
	--od-card: #ffffff;
	--od-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
	color: var(--od-ink);
	font-variant-numeric: tabular-nums;
}

/* Hyrja */
.od-intro { max-width: 820px; margin: 8px 0 28px; }
.od-lead { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--od-muted); }

/* Përmbajtja (lidhjet te dataset-et) */
.od-toc {
	margin: 0 0 8px; padding: 20px 24px;
	background: var(--od-card); border: 1px solid var(--od-line);
	border-radius: 14px; box-shadow: var(--od-shadow);
}
.od-toc ol { margin: 0; padding-left: 20px; columns: 2 320px; column-gap: 40px; }
.od-toc li { margin: 5px 0; break-inside: avoid; }
.od-toc li::marker { color: var(--od-red); font-weight: 700; }
.od-toc a { color: var(--od-ink); text-decoration: none; font-weight: 500; }
.od-toc a:hover, .od-toc a:focus-visible { color: var(--od-red); }

/* Dataset — kuti e bardhë */
.od-dataset {
	margin-top: 28px; padding: 28px;
	background: var(--od-card); border: 1px solid var(--od-line);
	border-radius: 14px; box-shadow: var(--od-shadow);
	scroll-margin-top: 120px;
}
.od-dataset__head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.od-dataset__info { min-width: 0; }

.od-dataset h2 {
	position: relative; margin: 0 0 18px; padding-bottom: 12px;
	font-size: 22px; font-weight: 700; line-height: 1.3; color: #000;
}
.od-dataset h2::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 65px; height: 3px; background: var(--od-red); border-radius: 10px;
}
.od-desc { margin: 0 0 10px; max-width: 700px; line-height: 1.6; color: var(--od-muted); }
.od-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; color: var(--od-muted); }
.od-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--od-red); opacity: .55; }

/* Butonat JSON / CSV */
.od-actions { display: flex; gap: 8px; flex-shrink: 0; }
.od-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 76px; padding: 9px 16px; border-radius: 8px;
	font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
	background: #fff; color: var(--od-red); border: 1px solid var(--od-red);
	transition: background-color .15s, color .15s;
}
.od-btn::before {
	content: ""; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 12v2h12v-2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 12v2h12v-2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.od-btn:hover, .od-btn:focus-visible { background: var(--od-red); color: #fff; }
.od-btn:focus-visible { outline: 3px solid rgba(206, 33, 39, .3); outline-offset: 2px; }

/* Tabelat */
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.od-table-wrap { overflow-x: auto; border: 1px solid var(--od-line); border-radius: 10px; }
.od-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.od-table caption {
	caption-side: top; padding: 12px 16px; text-align: left; font-weight: 700; color: #000;
	background: var(--od-soft); border-bottom: 1px solid var(--od-line);
}
.od-table th, .od-table td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--od-line); }
.od-table thead th {
	background: var(--od-soft); font-size: 13px; font-weight: 700; color: var(--od-muted);
	border-bottom: 2px solid var(--od-line);
}
.od-table tbody th { font-weight: 600; color: #000; }
.od-table tbody tr:last-child > * { border-bottom: 0; }
.od-table tbody tr:hover { background: #fdf6f6; }
.od-table tfoot > tr > * { font-weight: 700; color: #000; background: var(--od-soft); border-top: 2px solid var(--od-red); border-bottom: 0; }
.od-table .od-num { text-align: right; white-space: nowrap; }
.od-table tbody tr.od-group > th {
	padding: 9px 16px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	color: var(--od-red); background: var(--od-soft); border-left: 3px solid var(--od-red);
}
.od-table tbody tr.od-group:hover { background: transparent; }
.od-muted { color: var(--od-muted); }
.od-nowrap { white-space: nowrap; }

.od-badge {
	display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap;
	background: var(--od-soft); color: var(--od-muted); border: 1px solid var(--od-line);
}
.od-badge--yes { background: #fdecec; color: #a3181d; border-color: #f4c6c7; }

.od-note { margin: 14px 0 0; font-size: 14px; font-style: italic; color: var(--od-muted); }
.od-error { padding: 16px 20px; background: #fdecec; color: #a3181d; border-radius: 14px; }

/* Celular */
@media (max-width: 767.98px) {
	.od-dataset { padding: 20px 16px; border-radius: 12px; }
	.od-dataset__head { flex-direction: column; gap: 16px; }
	.od-actions { width: 100%; }
	.od-btn { flex: 1; }
	.od-grid { grid-template-columns: 1fr; }
	.od-table { font-size: 14px; }
	.od-table th, .od-table td { padding: 8px 12px; }
	.od-table thead th.od-num { white-space: normal; }
}

/* Mënyra me kontrast të lartë e temës */
.accessibility__contrast .od-page { --od-red: #ffff00; --od-ink: #fff; --od-muted: #fff; --od-line: #fff; --od-soft: #000; --od-card: #000; --od-shadow: none; }
.accessibility__contrast .od-dataset h2,
.accessibility__contrast .od-table tbody th,
.accessibility__contrast .od-table caption,
.accessibility__contrast .od-table tfoot > tr > *,
.accessibility__contrast .od-toc a { color: #fff; }
.accessibility__contrast .od-btn { background: #000; color: #ffff00; border-color: #ffff00; }
.accessibility__contrast .od-btn:hover, .accessibility__contrast .od-btn:focus-visible { background: #ffff00; color: #000; }
.accessibility__contrast .od-table tbody tr:hover { background: #222; }
.accessibility__contrast .od-table tbody tr.od-group > th { color: #ffff00; background: #000; border-left-color: #ffff00; }
.accessibility__contrast .od-badge, .accessibility__contrast .od-badge--yes { background: #000; color: #ffff00; border-color: #ffff00; }

@media print {
	.od-actions, .od-toc { display: none; }
	.od-dataset { box-shadow: none; break-inside: avoid-page; }
}
