/*
 * REDD+ content styles, loaded on every page by template "001  Main [18]".
 *
 * 1. REDD+ colours that are not part of the frontend UIkit build (layout/uikit/dist/css/uikit.reddstyles.min.css).
 * Same values as the style set "REDD+ colours" in the UIkit Theme Builder (redd_portal:theme-colors).
 * Ocean, Special and REDD+ Light come from the frontend UIkit build.
 */
.uk-card-pale-green, .uk-background-pale-green { background-color: #e8f5f3; }
.uk-card-pale-azure, .uk-background-pale-azure { background-color: #e9eefc; }
.uk-card-pale-ocean, .uk-background-pale-ocean { background-color: #e6e6f2; }
.uk-card-sand, .uk-background-sand { background-color: #f5efe3; }
.uk-card-pale-green, .uk-card-pale-azure, .uk-card-pale-ocean, .uk-card-sand { color: #1a1a1c; }
.uk-card-pale-green .uk-card-title, .uk-card-pale-azure .uk-card-title, .uk-card-pale-ocean .uk-card-title, .uk-card-sand .uk-card-title { color: #1a1a1c; }
.uk-text-ocean, .uk-text-ocean:hover { color: #191970 !important; }
.uk-text-special, .uk-text-special:hover { color: #188250 !important; }

/* 2. Note box (module "Standard Content", Redd\Portal\Note) */
.redd-note { display: flex; gap: 14px; margin: 24px 0; padding: 18px 22px; border-left: 5px solid #4169e2; border-radius: 0 4px 4px 0; background: #e9eefc; color: #1a1a1c; }
.redd-note__icon { flex: none; margin-top: 1px; color: #2c4fb8; }
.redd-note__body { flex: 1; min-width: 0; }
.redd-note__body > :last-child, .redd-note__body .module-content > :last-child { margin-bottom: 0; }
.redd-note__title { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; line-height: 1.4; color: #1a1a1c; }
.redd-note--tip { border-left-color: #22a091; background: #e8f5f3; }
.redd-note--tip .redd-note__icon { color: #17766b; }
.redd-note--important { border-left-color: #b86e00; background: #fdf3e1; }
.redd-note--important .redd-note__icon { color: #8a4b00; }
.redd-note--warning { border-left-color: #a3262c; background: #fcedea; }
.redd-note--warning .redd-note__icon { color: #a3262c; }
@media (max-width: 639px) { .redd-note { flex-direction: column; gap: 8px; padding: 14px 16px; } }

/* 3. Table of contents (module "Table of Contents", Redd\Portal\Toc) */
.redd-toc { margin: 0 0 24px; padding: 16px 20px; border-left: 4px solid #22a091; background: #f5f7f6; }
.redd-toc__title { margin: 0 0 8px; font-weight: 700; color: #1a1a1c; }
.redd-toc__list { margin: 0; padding: 0; list-style: none; }
.redd-toc__item { margin: 0; }
.redd-toc__item + .redd-toc__item { margin-top: 4px; }
.redd-toc__item a { display: inline-block; padding: 2px 0; text-decoration: none; }
.redd-toc__item a:hover, .redd-toc__item a:focus-visible { text-decoration: underline; }
.redd-toc__item--h3 { padding-left: 18px; font-size: .95em; }
.redd-toc__item.uk-active > a { font-weight: 700; color: #1a1a1c; }
.redd-toc--numbered .redd-toc__list { counter-reset: toc; }
.redd-toc--numbered .redd-toc__item--h2 { counter-increment: toc; }
.redd-toc--numbered .redd-toc__item--h2 > a::before { content: counter(toc) ". "; }
.redd-toc--columns .redd-toc__list { columns: 2 260px; column-gap: 32px; }
.redd-toc--columns .redd-toc__item { break-inside: avoid; }
.redd-toc--pills { padding: 0; border: 0; background: none; }
.redd-toc--pills .redd-toc__list { display: flex; flex-wrap: wrap; gap: 8px; }
.redd-toc--pills .redd-toc__item { margin: 0; }
.redd-toc--pills .redd-toc__item--h3 { display: none; }
.redd-toc--pills .redd-toc__item a { padding: 6px 14px; border: 1px solid #17766b; border-radius: 500px; color: #17766b; }
.redd-toc--pills .redd-toc__item a:hover, .redd-toc--pills .redd-toc__item.uk-active > a { background: #17766b; color: #fff; text-decoration: none; }

/* 4. Downloads from the media pool (module "Downloads", Redd\Portal\MediaDownloads); cards use fragment redd/downloads.php */
.redd-files-list > li { margin-top: 0; }
.redd-files { display: flex; align-items: center; gap: 12px; padding: 2px 0; color: inherit; text-decoration: none; }
.redd-files:hover, .redd-files:focus-visible { color: inherit; text-decoration: none; }
.redd-files:hover .redd-files__title, .redd-files:focus-visible .redd-files__title { text-decoration: underline; }
.redd-files__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; background: #f4f6f5; color: #17766b; }
.redd-files__text { min-width: 0; overflow-wrap: anywhere; }
.redd-files__title { font-weight: 600; }
.redd-files__meta { white-space: nowrap; }
.redd-files__desc { display: block; margin-top: 2px; font-size: .9em; }
.redd-files-list--compact .redd-files { align-items: flex-start; gap: 8px; padding: 0; }
.redd-files-list--compact .redd-files__icon { width: auto; height: auto; background: none; padding-top: 2px; }
.redd-files-list--compact .redd-files__title { font-weight: inherit; }
.redd-files-list--compact .redd-files__meta { display: block; }
.redd-files-grid { list-style: none; padding: 0; }
.redd-files-tile { display: block; height: 100%; color: inherit; text-decoration: none; }
.redd-files-tile:hover, .redd-files-tile:focus-visible { color: inherit; text-decoration: none; }
.redd-files-tile__media { display: flex; align-items: center; justify-content: center; height: 180px; overflow: hidden; background: #f4f6f5; }
.redd-files-tile__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.redd-files-tile__img.redd-files__placeholder { color: #5a6b60; }
.redd-files-tile__title { font-weight: 600; }
.redd-files-tile:hover .redd-files-tile__title, .redd-files-tile:focus-visible .redd-files-tile__title { text-decoration: underline; }
.redd-files-table th[scope="row"] { font-weight: 600; font-size: inherit; text-transform: none; color: inherit; vertical-align: middle; }

/* Weltkarte: Legende (Knopf + Overlay, REDD+ Settings → Map) */
.redd-map-legend { position: absolute; z-index: 1001; top: 56px; left: 15px; min-width: 220px; max-width: calc(100% - 30px); padding: 14px 40px 12px 16px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); color: #333; }
.redd-map-legend[hidden] { display: none; }
.redd-map-legend__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.redd-map-legend__list { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.redd-map-legend__list li { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.redd-map-legend__swatch { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2); background: var(--swatch, #ccc); }
.redd-map-legend__close { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: #555; cursor: pointer; }
.redd-map-legend__close:hover, .redd-map-legend__close:focus-visible { background: #f0f0f0; color: #111; }
@media (prefers-color-scheme: dark) { .redd-map-legend { background: #1f2a2a; color: #eee; } .redd-map-legend__close { color: #ccc; } .redd-map-legend__close:hover { background: #2c3a3a; } }
