/* Document library. Uses the Club Site Starter colors when that theme is active, with its own fallbacks under any other theme. */
.rkfc-docs { max-width: 860px; margin: 0 auto; }
.rkfc-docs [hidden] { display: none !important; }
.rkfc-docs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rkfc-docs-search { margin: 0 0 18px; }
.rkfc-docs-search-input { width: 100%; padding: 10px 14px; font-size: 1rem; border: 1px solid #cfd6d0; border-radius: 8px; box-sizing: border-box; }

.rkfc-docs-year { border: 1px solid var(--csst-event-line, #dfe5e0); border-radius: 10px; margin: 0 0 12px; background: var(--csst-event-bg, #fff); }
.rkfc-docs-year > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--csst-event-link, var(--csst-primary, #2d5f3e));
}
.rkfc-docs-year > summary::-webkit-details-marker { display: none; }
.rkfc-docs-year > summary::before { content: "▸"; display: inline-block; transition: transform 0.15s ease; }
.rkfc-docs-year[open] > summary::before { transform: rotate(90deg); }
.rkfc-docs-year-count { font-size: 0.8rem; font-weight: 600; background: var(--csst-event-chip, var(--csst-bg-tint, #f4f7f3)); color: var(--csst-event-muted, #4a5a50); border-radius: 999px; padding: 2px 10px; }

.rkfc-docs-month-group { padding: 0 18px 8px; }
.rkfc-docs-month { margin: 14px 0 6px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--csst-event-muted, #5b6b61); }

.rkfc-docs-list { list-style: none; margin: 0; padding: 0; }
.rkfc-docs-list--flat { padding: 0 18px 8px; }
.rkfc-docs-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--csst-event-line, #eef1ee);
}
.rkfc-docs-item:first-child { border-top: 0; }
.rkfc-docs-icon { flex: 0 0 auto; color: var(--csst-accent, #c0392b); margin-top: 2px; }
.rkfc-docs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rkfc-docs-title { font-weight: 600; color: var(--csst-event-link, var(--csst-primary, #2d5f3e)); text-decoration: none; overflow-wrap: anywhere; }
.rkfc-docs-title:hover, .rkfc-docs-title:focus { text-decoration: underline; }
.rkfc-docs-cat { font-size: 0.78rem; color: var(--csst-event-muted, #5b6b61); }
.rkfc-docs-desc { font-size: 0.9rem; color: var(--csst-event-muted, #4a5a50); }
.rkfc-docs-meta { flex: 0 0 auto; font-size: 0.85rem; color: var(--csst-event-muted, #5b6b61); white-space: nowrap; }
.rkfc-docs-empty, .rkfc-docs-none-match { color: #5b6b61; font-style: italic; }

@media (max-width: 600px) {
	.rkfc-docs-item { flex-wrap: wrap; }
	.rkfc-docs-meta { flex-basis: 100%; padding-left: 40px; white-space: normal; }
}
