/* Portal i Transparencës */
.rtsh-tp {
	--tp-red: #cb1212;
	--tp-red-dark: #9e0d0d;
	--tp-ink: #1c1e23;
	--tp-muted: #666b73;
	--tp-line: #e6e6e8;
	--tp-soft: #f5f5f6;
	--tp-card: #fff;
	padding: 28px 0 48px;
	color: var(--tp-ink);
}
.rtsh-tp a { color: inherit; }

/* Hero */
.tp-hero {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	padding: 44px 48px 36px;
	color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, #e2231a 0%, var(--tp-red) 45%, var(--tp-red-dark) 100%);
}
.tp-hero::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	border: 46px solid rgba(255, 255, 255, 0.07);
}
.tp-eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.tp-title { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; color: #fff; }
.tp-lead { margin: 12px 0 24px; max-width: 640px; font-size: 17px; line-height: 1.55; opacity: .92; }
.tp-search { position: relative; max-width: 720px; margin: 0; z-index: 1; }
.tp-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--tp-muted); font-size: 18px; }
.tp-search input {
	width: 100%;
	box-sizing: border-box;
	height: 58px;
	padding: 0 20px 0 54px;
	border: 0;
	border-radius: 999px;
	font-size: 17px;
	color: var(--tp-ink);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.tp-search input:focus { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.tp-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; opacity: .92; position: relative; z-index: 1; }
.tp-stats strong { font-weight: 800; }

/* Blocks */
.tp-h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.tp-block { margin-top: 32px; }
.tp-home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tp-side .tp-block:first-child { margin-top: 32px; }

/* Cards */
.tp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tp-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	min-height: 150px;
	box-sizing: border-box;
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	background: var(--tp-card);
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tp-card:hover, .tp-card:focus-visible { border-color: var(--tp-red); box-shadow: 0 8px 24px rgba(203, 18, 18, .12); transform: translateY(-2px); }
.tp-card-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(203, 18, 18, .09);
	color: var(--tp-red);
	font-size: 19px;
}
.tp-card-title { font-weight: 700; line-height: 1.35; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-meta { margin-top: auto; font-size: 13px; color: var(--tp-muted); }

/* Document lists */
.tp-doclist { list-style: none; margin: 0; padding: 0; }
.tp-doclist li { padding: 12px 0; border-bottom: 1px solid var(--tp-line); }
.tp-doclist li:last-child { border-bottom: 0; }
.tp-doclist li > a { font-weight: 600; text-decoration: none; line-height: 1.4; }
.tp-doclist li > a:hover { color: var(--tp-red); text-decoration: underline; }
.tp-doc-meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--tp-muted); }
.tp-doc-meta a { color: var(--tp-red); text-decoration: none; }
.tp-doc-meta a:hover { text-decoration: underline; }
.tp-latest, .tp-help { padding: 20px 22px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-card); }
.tp-help { background: var(--tp-soft); }
.tp-help p { margin: 0 0 10px; color: var(--tp-muted); line-height: 1.5; }
.tp-help ul { margin: 0; padding-left: 18px; }
.tp-help li { margin: 6px 0; }
.tp-help a { color: var(--tp-red); font-weight: 600; }
.tp-help .tp-h2 i { color: var(--tp-red); }

.tp-results { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-card); }
.tp-results mark { background: #ffe8a3; color: inherit; padding: 0 1px; }
.tp-count { font-weight: 600; color: var(--tp-muted); font-size: 15px; }
.tp-empty { color: var(--tp-muted); }

.tp-about { border: 1px solid var(--tp-line); border-radius: 12px; padding: 0 22px; background: var(--tp-card); }
.tp-about summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; }
.tp-about[open] summary { border-bottom: 1px solid var(--tp-line); }
.tp-about .tp-content { padding: 16px 0 6px; line-height: 1.65; }

/* Section view */
.tp-breadcrumb { font-size: 14px; color: var(--tp-muted); margin-bottom: 18px; }
.tp-breadcrumb a { color: var(--tp-red); text-decoration: none; }
.tp-breadcrumb a:hover { text-decoration: underline; }
.tp-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tp-nav { position: sticky; top: calc(100px + var(--rtsh-admin-offset, 0px)); }
.tp-nav-select { display: none; }
.tp-nav-list { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-card); max-height: calc(100vh - 140px); overflow: auto; }
.tp-nav-list a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.35; }
.tp-nav-list a i { width: 18px; margin-top: 2px; color: var(--tp-muted); text-align: center; flex: none; }
.tp-nav-list a:hover { background: var(--tp-soft); }
.tp-nav-list li.is-active a { background: var(--tp-red); color: #fff; font-weight: 700; }
.tp-nav-list li.is-active a i { color: #fff; }
.tp-nav-list li:first-child a { font-weight: 700; border-bottom: 1px solid var(--tp-line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

.tp-main { border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-card); padding: 28px 32px; min-width: 0; }
.tp-main-head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--tp-line); }
.tp-main-head .tp-card-icon { width: 54px; height: 54px; font-size: 23px; }
.tp-main-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
.tp-main-meta { margin: 6px 0 0; color: var(--tp-muted); font-size: 14px; }
.tp-content { line-height: 1.65; overflow-wrap: anywhere; }
.tp-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tp-content td, .tp-content th { border: 1px solid var(--tp-line); padding: 6px 8px; }
.tp-content .njoftime-list { padding: 0 !important; }

.tp-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tp-line); }
.tp-pager a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; text-decoration: none; font-weight: 700; line-height: 1.35; }
.tp-pager a span { font-size: 12.5px; font-weight: 600; color: var(--tp-red); text-transform: uppercase; letter-spacing: .03em; }
.tp-pager a:hover { color: var(--tp-red); }
.tp-next { margin-left: auto; text-align: right; }

/* Responsive */
@media (max-width: 1100px) {
	.tp-home { grid-template-columns: 1fr; gap: 0; }
	.tp-detail { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.rtsh-tp { padding-top: 16px; }
	.tp-hero { padding: 28px 20px 24px; border-radius: 12px; }
	.tp-title { font-size: 28px; }
	.tp-lead { font-size: 15.5px; margin-bottom: 18px; }
	.tp-search input { height: 52px; font-size: 16px; }
	.tp-cards { grid-template-columns: 1fr; gap: 10px; }
	.tp-card { flex-direction: row; align-items: center; min-height: 0; padding: 14px; }
	.tp-card-title { -webkit-line-clamp: 2; }
	.tp-card-meta { display: none; }
	.tp-detail { grid-template-columns: 1fr; gap: 14px; }
	.tp-nav { position: static; }
	.tp-nav-list { display: none; }
	.tp-nav-select { display: block; }
	.tp-nav-select select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--tp-line); border-radius: 10px; background: var(--tp-card); font-size: 15px; font-weight: 600; color: var(--tp-ink); }
	.tp-main { padding: 20px 18px; }
	.tp-main-title { font-size: 21px; }
	.tp-main-head .tp-card-icon { width: 44px; height: 44px; font-size: 19px; }
	.tp-pager { flex-direction: column; }
	.tp-pager a { max-width: 100%; }
}

/* Dark mode (theme toggle) */
html.rtsh-dark .rtsh-tp { --tp-ink: #e6e6e8; --tp-muted: #9a9ea6; --tp-line: #2c2f36; --tp-soft: #22252b; --tp-card: #1c1e23; }
html.rtsh-dark .tp-search input { background: #fff; color: #1c1e23; }
html.rtsh-dark .tp-results mark { background: #6b5200; }

/* The theme styles every <section> (padding: 15px 0); keep the portal's own spacing. */
.rtsh-tp section.tp-block, .rtsh-tp section.tp-results { padding-top: 0; padding-bottom: 0; }
.rtsh-tp section.tp-latest, .rtsh-tp section.tp-help, .rtsh-tp section.tp-results { padding: 20px 22px; }

/* Mobile rubric dropdown (button + panel) */
.tp-nav-toggle { display: none; }
.tp-chev { transition: transform .2s ease; color: var(--tp-muted); }
@media (max-width: 767px) {
	.rtsh-tp.tp-js .tp-nav-select { display: none; }
	.rtsh-tp.tp-js .tp-nav { position: relative; top: auto; z-index: 20; }
	.rtsh-tp.tp-js .tp-nav-toggle[hidden] { display: none; }
	.rtsh-tp.tp-js .tp-nav-toggle {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		padding: 10px 14px 10px 10px;
		border: 1px solid var(--tp-line);
		border-radius: 14px;
		background: var(--tp-card);
		color: var(--tp-ink);
		text-align: left;
		font: inherit;
		cursor: pointer;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
		transition: border-color .15s, box-shadow .15s;
	}
	.rtsh-tp.tp-js .tp-nav-toggle:focus-visible { outline: 2px solid var(--tp-red); outline-offset: 2px; }
	.rtsh-tp.tp-js .tp-nav.is-open .tp-nav-toggle { border-color: var(--tp-red); box-shadow: 0 6px 20px rgba(203, 18, 18, .15); }
	.tp-nav-toggle .tp-card-icon { width: 40px; height: 40px; font-size: 17px; }
	.tp-nav-toggle-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
	.tp-nav-toggle-text small { font-size: 11.5px; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
	.tp-nav-toggle-text strong { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.tp-nav.is-open .tp-chev { transform: rotate(180deg); color: var(--tp-red); }

	.rtsh-tp.tp-js .tp-nav-list {
		display: block;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		max-height: min(65vh, 520px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 6px;
		border: 1px solid var(--tp-line);
		border-radius: 14px;
		background: var(--tp-card);
		box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px) scale(.98);
		transform-origin: top center;
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.rtsh-tp.tp-js .tp-nav.is-open .tp-nav-list {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s ease, transform .18s ease;
	}
	.rtsh-tp.tp-js .tp-nav-list a { padding: 11px 12px; font-size: 14.5px; border-radius: 10px; }
	.rtsh-tp.tp-js .tp-nav-list li + li a { border-top: 1px solid transparent; }
	.rtsh-tp.tp-js .tp-nav-list li:first-child a { border-radius: 10px; border-bottom: 1px solid var(--tp-line); margin-bottom: 4px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.rtsh-tp.tp-js .tp-nav-list, .tp-chev { transition: none !important; }
}

/* "Çfarë është Programi i Transparencës?" — styled disclosure */
.tp-about summary { list-style: none; display: flex; align-items: center; gap: 12px; }
.tp-about summary::-webkit-details-marker { display: none; }
.tp-about summary::before {
	content: "\f05a";
	font: var(--fa-font-solid, 900 1em "Font Awesome 7 Free");
	font-weight: 900;
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(203, 18, 18, .09);
	color: var(--tp-red);
	flex: none;
}
.tp-about summary::after {
	content: "";
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--tp-muted);
	border-bottom: 2px solid var(--tp-muted);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s ease;
}
.tp-about[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--tp-red); }
.tp-about summary:hover { color: var(--tp-red); }
.tp-about[open] .tp-content { animation: tp-fade .25s ease; }
@keyframes tp-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
