/* EDPB digest: scoped styles, matches the site's navy/blue palette and the
   Practical Privacy accordion pattern. */

#edpb-digest { margin: 0; }

.ed-intro p { margin-bottom: 1em; }
.ed-privacy { color: rgba(255,255,255,0.55); font-size: 0.9em; }

/* Filter bar. The template styles inputs and selects already; only layout here. */
.ed-filters {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 0.75em 1em;
	align-items: end;
	margin: 1.5em 0 1em 0;
	padding: 1em 1.25em;
	border: solid 1px rgba(255,255,255,0.1);
	border-radius: 0.5em;
	background: rgba(255,255,255,0.02);
}
.ed-filters label {
	display: block;
	font-size: 0.8em;
	color: rgba(255,255,255,0.55);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.ed-filters input, .ed-filters select { margin-top: 0.4em; }
.ed-count {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.9em;
	color: #7fb2e5;
}

.ed-index-label { color: rgba(255,255,255,0.55); font-size: 0.9em; margin: 1.5em 0 0.5em 0; }
.ed-index {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
	gap: 0.4em 1.5em;
	margin: 0 0 2em 0;
	padding: 1em 1.25em;
	border: solid 1px rgba(255,255,255,0.1);
	border-radius: 0.5em;
	background: rgba(255,255,255,0.02);
	list-style: none;
}
.ed-index li { list-style: none; font-size: 0.9em; }
.ed-index a { color: #7fb2e5; border-bottom: none; }
.ed-index a:hover { color: #fff; }
.ed-n { color: rgba(255,255,255,0.45); font-size: 0.85em; margin-left: 0.3em; }

.ed-groups { display: flex; flex-direction: column; gap: 0.75em; }

.ed-group {
	border: solid 1px rgba(255,255,255,0.15);
	border-radius: 0.5em;
	background: rgba(255,255,255,0.03);
	overflow: hidden;
}
.ed-group summary {
	list-style: none;
	cursor: pointer;
	padding: 1em 1.25em;
	font-weight: bold;
	color: #fff;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75em;
	position: relative;
	padding-right: 3em;
}
.ed-group summary::-webkit-details-marker { display: none; }
.ed-group summary::after {
	content: '\f107';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	right: 1.25em;
	top: 1.1em;
	color: rgba(255,255,255,0.4);
	transition: transform 0.2s ease;
}
.ed-group[open] summary::after { transform: rotate(180deg); }
.ed-group summary:hover { background: rgba(255,255,255,0.04); }
.ed-group-count { font-weight: normal; font-size: 0.8em; color: rgba(255,255,255,0.5); white-space: nowrap; }

.ed-group-body { padding: 0 1.25em 0.5em 1.25em; }

.ed-entry {
	padding: 0.9em 0 1em 0;
	border-top: solid 1px rgba(255,255,255,0.08);
}
.ed-entry[hidden] { display: none; }
.ed-title {
	font-size: 0.95em;
	margin: 0 0 0.35em 0;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
}
.ed-title a { color: #fff; border-bottom: dotted 1px rgba(255,255,255,0.3); }
.ed-title a:hover { color: #7fb2e5; border-bottom-color: #7fb2e5; }
.ed-meta {
	margin: 0 0 0.5em 0;
	font-size: 0.8em;
	color: rgba(255,255,255,0.5);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 0.6em;
	align-items: center;
}
.ed-chip {
	display: inline-block;
	padding: 0.1em 0.6em;
	border-radius: 1em;
	border: solid 1px rgba(255,255,255,0.15);
	font-size: 0.85em;
	line-height: 1.6;
}
.ed-chip-written { border-color: rgba(127,178,229,0.5); color: #7fb2e5; }
.ed-chip-status { border-color: rgba(255,200,120,0.4); color: #f2c98a; }
.ed-chip-topic { color: rgba(255,255,255,0.6); }
.ed-take {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.6;
	color: rgba(255,255,255,0.72);
}
.ed-tier-oneliner .ed-take { color: rgba(255,255,255,0.55); }

@media (max-width: 736px) {
	#edpb-digest { margin-top: 3em; padding-top: 2em; }
	.ed-filters { grid-template-columns: 1fr; }
	.ed-index { grid-template-columns: 1fr; }
	.ed-group summary { flex-direction: column; align-items: flex-start; gap: 0.25em; }
}

/* Layout: full-width head band, then side contents plus entries. */
#edpb-digest { max-width: none; margin: 0; }
.ed-head { max-width: none; }
.ed-main { min-width: 0; }
@media (min-width: 1101px) {
	.ed-cols { display: grid; grid-template-columns: 19em minmax(0, 1fr); gap: 0 2.5em; align-items: start; margin-top: 1.5em; }
	.ed-toc { position: sticky; top: 5em; max-height: calc(100vh - 6em); overflow-y: auto; overscroll-behavior: contain; }
	.ed-toc-fab, .ed-toc-close, .ed-toc-backdrop { display: none; }
}
.ed-jump { display: flex; flex-wrap: wrap; gap: 0.4em 0.6em; align-items: center; margin: 0 0 1.5em 0; padding: 0.75em 1em; border: solid 1px rgba(255,255,255,0.1); border-radius: 0.5em; background: rgba(255,255,255,0.02); font-size: 0.85em; }
.ed-jump-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85em; color: rgba(255,255,255,0.5); margin-right: 0.4em; }
.ed-jump a { display: inline-block; padding: 0.25em 0.8em; border: solid 1px rgba(255,255,255,0.15); border-radius: 1em; color: rgba(255,255,255,0.85); border-bottom: solid 1px rgba(255,255,255,0.15); }
.ed-jump a:hover { border-color: #7fb2e5; color: #fff; background: rgba(127,178,229,0.1); }
.ed-top { position: fixed; right: 1.25em; bottom: 1.25em; z-index: 1050; height: auto; line-height: 1.4; padding: 0.6em 1em; font-size: 0.8em; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2em; background: rgba(66,103,166,0.95); border: 0 !important; box-shadow: 0 0.3em 1em rgba(0,0,0,0.4); white-space: nowrap; }
.ed-top::after { display: none; }
.ed-top[hidden] { display: none; }
.ed-part { font-size: 1.1em; margin: 1.5em 0 0.25em 0; text-transform: none; letter-spacing: 0; color: #fff; }
.ed-part[hidden] { display: none; }
.ed-groups > .ed-part:first-child { margin-top: 0; }
#ed-filters, .ed-part, .ed-group, .ed-entry { scroll-margin-top: 5em; }
.ed-entry:target { box-shadow: inset 3px 0 0 #7fb2e5; }
.ed-entry[hidden] { display: none; }

/* Count line, results box, explainer */
.ed-count { grid-column: 1 / -1; margin: 0; font-size: 0.9em; color: #7fb2e5; display: flex; flex-wrap: wrap; gap: 0.5em 1em; align-items: center; }
.ed-clear { height: auto; line-height: 1.4; padding: 0.2em 0.9em; font-size: 0.8em; letter-spacing: 0.05em; border-radius: 1em; }
.ed-clear[hidden] { display: none; }
.ed-first { background: #4267a6; border-color: #4267a6 !important; }
.ed-results { grid-column: 1 / -1; margin: 0; padding: 0.75em 1em; border: solid 1px rgba(127,178,229,0.35); border-radius: 0.4em; background: rgba(127,178,229,0.06); }
.ed-results[hidden] { display: none; }
.ed-results-label { margin: 0 0 0.4em 0; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.ed-results-list { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 2em; font-size: 0.9em; }
.ed-results-list li { margin: 0 0 0.25em 0; break-inside: avoid; }
.ed-results-list a { color: #fff; border-bottom: dotted 1px rgba(255,255,255,0.3); }
.ed-results-list a:hover { color: #7fb2e5; border-bottom-color: #7fb2e5; }
.ed-results-group { display: block; font-size: 0.8em; color: rgba(255,255,255,0.45); }
.ed-howto { grid-column: 1 / -1; margin: 0; font-size: 0.85em; }
.ed-howto summary { cursor: pointer; color: #7fb2e5; list-style: none; }
.ed-howto summary::-webkit-details-marker { display: none; }
.ed-howto summary::before { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 0.5em; display: inline-block; transition: transform 0.15s ease; }
.ed-howto[open] summary::before { transform: rotate(90deg); }
.ed-howto ul { margin: 0.75em 0 0 0; padding-left: 1.25em; }
.ed-howto li { margin-bottom: 0.4em; color: rgba(255,255,255,0.7); line-height: 1.5; }
.ed-howto strong { color: #fff; }

/* Side contents */
.ed-toc { font-size: 0.85em; border: solid 1px rgba(255,255,255,0.12); border-radius: 0.5em; background: rgba(255,255,255,0.03); padding: 0.75em 0 1em 0; scrollbar-width: thin; }
.ed-toc button {
	height: auto; line-height: 1.35; padding: 0; margin: 0; font-size: 1em; font-weight: normal; letter-spacing: 0; text-transform: none;
	white-space: normal; text-align: left; border: 0 !important; border-radius: 0; box-shadow: none; background: none; color: rgba(255,255,255,0.8) !important;
}
.ed-toc button::after { display: none; }
.ed-toc-head { display: flex; gap: 0.5em; padding: 0 0.75em 0.6em 0.75em; }
.ed-toc-search {
	flex: 1; display: flex !important; align-items: center; gap: 0.6em; padding: 0.55em 0.8em !important;
	border: solid 1px rgba(255,255,255,0.15) !important; border-radius: 0.4em !important; color: rgba(255,255,255,0.6) !important; background: rgba(255,255,255,0.04) !important;
}
.ed-toc-search:hover { border-color: rgba(127,178,229,0.6) !important; color: #fff !important; }
.ed-toc-search span { flex: 1; }
.ed-toc-search kbd { font-family: inherit; font-size: 0.75em; padding: 0.1em 0.45em; border: solid 1px rgba(255,255,255,0.2); border-radius: 0.3em; color: rgba(255,255,255,0.5); }
.ed-toc-close { padding: 0.4em 0.7em !important; border: solid 1px rgba(255,255,255,0.15) !important; border-radius: 0.4em !important; }
.ed-toc-overview { display: flex; align-items: center; gap: 0.6em; margin: 0 0.75em; padding: 0.5em 0.8em; border-radius: 0.4em; color: rgba(255,255,255,0.85); border-bottom: none; font-weight: bold; }
.ed-toc-overview:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ed-toc-overview.is-active { background: rgba(127,178,229,0.15); color: #fff; }
.ed-toc-views { display: flex; margin: 0.6em 0.75em 0.5em 0.75em; border: solid 1px rgba(255,255,255,0.15); border-radius: 0.4em; overflow: hidden; }
.ed-toc-view { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 0.5em; padding: 0.45em 0.5em !important; color: rgba(255,255,255,0.6) !important; }
.ed-toc-view + .ed-toc-view { border-left: solid 1px rgba(255,255,255,0.15) !important; }
.ed-toc-view.is-on { background: rgba(127,178,229,0.18); color: #fff !important; }
.ed-toc-items { padding: 0 0.35em; }
.ed-toc-items[hidden] { display: none; }
.ed-toc-block { margin: 0.1em 0; }
.ed-toc-ch, .ed-toc-sec { display: flex !important; width: 100%; align-items: center; gap: 0.5em; padding: 0.5em 0.6em !important; border-radius: 0.4em !important; }
.ed-toc-ch:hover, .ed-toc-sec:hover { background: rgba(255,255,255,0.05); color: #fff !important; }
.ed-toc-sec { padding-left: 1.1em !important; }
.ed-toc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1em; }
.ed-toc-id { display: flex; justify-content: space-between; gap: 0.5em; align-items: baseline; }
.ed-toc-label { font-weight: bold; color: #fff; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.08em; }
.ed-toc-seclabel { color: rgba(255,255,255,0.7); text-transform: none; letter-spacing: 0; }
.ed-toc-range { font-size: 0.8em; color: #7fb2e5; white-space: nowrap; }
.ed-toc-title { font-size: 0.92em; color: rgba(255,255,255,0.65); line-height: 1.3; }
.ed-toc-arrow { flex: none; font-size: 0.75em; color: rgba(255,255,255,0.4); transition: transform 0.15s ease; }
[aria-expanded="true"] > .ed-toc-arrow { transform: rotate(90deg); }
.ed-toc-sub { padding: 0.1em 0 0.3em 0.6em; }
.ed-toc-sub[hidden] { display: none; }
.ed-toc-sub .ed-toc-sub { padding-left: 0.9em; }
.ed-toc-item { display: flex; align-items: flex-start; gap: 0.3em; }
.ed-toc-item:hover { background: rgba(255,255,255,0.04); border-radius: 0.3em; }
.ed-toc-link { flex: 1; min-width: 0; display: block; padding: 0.3em 0.5em; color: rgba(255,255,255,0.72); border-bottom: none; font-size: 0.92em; line-height: 1.35; border-left: solid 2px transparent; border-radius: 0.3em; }
.ed-toc-link:hover { color: #fff; }
.ed-toc-link.is-active { color: #fff; border-left-color: #7fb2e5; background: rgba(127,178,229,0.12); }
.ed-toc-link.is-hidden { color: rgba(255,255,255,0.3); }
.ed-toc-link.is-hidden::after { content: ' (filtered out)'; font-size: 0.8em; }
.ed-toc-group { font-weight: bold; color: #7fb2e5; }
.ed-toc-actions { flex: none; display: none; gap: 0.1em; padding-top: 0.25em; }
.ed-toc-item:hover .ed-toc-actions, .ed-toc-item:focus-within .ed-toc-actions { display: flex; }
.ed-toc-actions a, .ed-toc-actions button { padding: 0.15em 0.35em !important; color: rgba(255,255,255,0.45) !important; border-bottom: none; font-size: 0.85em; border-radius: 0.3em !important; }
.ed-toc-actions a:hover, .ed-toc-actions button:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.ed-toc-copy.is-done { color: #9fe0a8 !important; }
#ed-toc-flat .ed-toc-link { font-size: 0.88em; }

/* Mobile drawer and floating buttons, below 1101px */
@media (max-width: 1100px) {
	.ed-toc { position: fixed; top: 0; left: 0; bottom: 0; width: min(22em, 88vw); z-index: 1100; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform 0.2s ease; background: #24304f; box-shadow: 0 0 2em rgba(0,0,0,0.5); padding-top: 1em; }
	.ed-toc.is-open { transform: none; }
	body.ed-toc-drawer { overflow: hidden; }
	.ed-toc-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(0,0,0,0.45); }
	.ed-toc-backdrop[hidden] { display: none; }
	.ed-toc-close { display: inline-flex !important; align-items: center; gap: 0.4em; }
	.ed-top { bottom: 4.6em; }
	.ed-toc-fab {
		position: fixed; right: 1.25em; bottom: 1.25em; z-index: 1050; height: auto; line-height: 1.4; padding: 0.7em 1.2em; font-size: 0.85em;
		letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2em; background: #4267a6; border: 0 !important; box-shadow: 0 0.3em 1em rgba(0,0,0,0.4); white-space: nowrap;
	}
	.ed-toc-fab::after { display: none; }
}
@media (max-width: 736px) { .ed-results-list { columns: 1; } }
