/* DeSpiegel Co-onderzoekersportaal
 * Brand: deep green with yellow highlights, no cream backgrounds.
 * Override the variables in the theme stylesheet if the exact brand values differ. */

.dsp-portaal {
	--dsp-green: #0f5a3c;
	--dsp-green-dark: #093d29;
	--dsp-green-soft: #e6f1ec;
	--dsp-yellow: #f6c445;
	--dsp-yellow-soft: #fdf1cc;
	--dsp-ink: #18241f;
	--dsp-muted: #5d6b65;
	--dsp-line: #d9e3de;
	--dsp-radius: 14px;
	--dsp-shadow: 0 1px 2px rgba(9, 61, 41, .06), 0 6px 20px rgba(9, 61, 41, .06);
	color: var(--dsp-ink);
	font-size: 16px;
	line-height: 1.55;
	max-width: 1120px;
	margin: 0 auto;
}
.dsp-portaal *, .dsp-portaal *::before, .dsp-portaal *::after { box-sizing: border-box; }
.dsp-portaal h2, .dsp-portaal h3, .dsp-portaal h4 { margin: 0 0 .6em; line-height: 1.2; }
.dsp-portaal h3 { font-size: 1.15rem; color: var(--dsp-green-dark); }
.dsp-portaal h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dsp-muted); margin-top: 1.2em; }
.dsp-muted { color: var(--dsp-muted); }
.dsp-back { color: var(--dsp-green); text-decoration: none; font-weight: 600; }

/* Cards & layout */
.dsp-card { background: #fff; border: 1px solid var(--dsp-line); border-radius: var(--dsp-radius); padding: 24px; box-shadow: var(--dsp-shadow); margin-bottom: 20px; }
.dsp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .dsp-grid { grid-template-columns: 1fr; } }

/* Notices */
.dsp-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: var(--dsp-green-soft); border-left: 4px solid var(--dsp-green); }
.dsp-notice--err { background: #fdecea; border-color: #b3261e; }

/* Avatar */
.dsp-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--dsp-green-soft); color: var(--dsp-green); font-weight: 700; }
.dsp-avatar--lg { width: 112px; height: 112px; font-size: 2.2rem; }
.dsp-avatar--md { width: 80px; height: 80px; font-size: 1.6rem; }
.dsp-avatar--xs { width: 32px; height: 32px; font-size: .8rem; }

/* Hero */
.dsp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--dsp-green-dark), var(--dsp-green)); color: #fff; border-radius: calc(var(--dsp-radius) + 4px); padding: 32px; margin-bottom: 20px; position: relative; overflow: hidden; }
.dsp-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--dsp-yellow); opacity: .12; }
.dsp-hero__id { display: flex; gap: 20px; align-items: center; }
.dsp-hero .dsp-avatar { border: 4px solid var(--dsp-yellow); background: #fff; }
.dsp-hero__name { color: #fff; font-size: 1.9rem; margin: .25em 0 .35em !important; }
@media (max-width: 860px) { .dsp-hero { grid-template-columns: 1fr; padding: 24px; } }

.dsp-level-pill { display: inline-block; background: var(--dsp-yellow); color: var(--dsp-green-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.dsp-level-pill--soft { background: var(--dsp-yellow-soft); }

/* Progress */
.dsp-progress__head { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: 8px; }
.dsp-progress__head strong { font-size: 1.4rem; color: var(--dsp-yellow); }
.dsp-progress { display: block; height: 14px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.dsp-progress__bar { display: block; height: 100%; background: var(--dsp-yellow); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.dsp-progress__foot { margin: 8px 0 0; font-size: .95rem; opacity: .9; }
.dsp-progress--thin { height: 6px; background: var(--dsp-green-soft); margin-top: 10px; width: 100%; }

/* Stats */
.dsp-stats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dsp-stats li { background: #fff; border: 1px solid var(--dsp-line); border-radius: var(--dsp-radius); padding: 16px 18px; box-shadow: var(--dsp-shadow); }
.dsp-stats strong { display: block; font-size: 2rem; color: var(--dsp-green); line-height: 1.1; }
.dsp-stats span { color: var(--dsp-muted); font-size: .9rem; }
@media (max-width: 640px) { .dsp-stats { grid-template-columns: repeat(2, 1fr); } }

/* Tabs */
.dsp-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--dsp-line); margin-bottom: 20px; flex-wrap: wrap; }
.dsp-tab { padding: 10px 16px; text-decoration: none; color: var(--dsp-muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dsp-tab:hover { color: var(--dsp-green); }
.dsp-tab.is-active { color: var(--dsp-green-dark); border-color: var(--dsp-yellow); }

/* Chips */
.dsp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dsp-chips li { background: var(--dsp-green-soft); color: var(--dsp-green-dark); padding: 3px 10px; border-radius: 999px; font-size: .85rem; }
.dsp-chips--light li { background: rgba(255,255,255,.15); color: #fff; }

/* Learning path */
.dsp-path { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.dsp-path__step { flex: 1; text-align: center; position: relative; padding-top: 4px; }
.dsp-path__step::before { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; background: var(--dsp-line); z-index: 0; }
.dsp-path__step:first-child::before { display: none; }
.dsp-path__step.is-done::before, .dsp-path__step.is-current::before { background: var(--dsp-green); }
.dsp-path__dot { position: relative; z-index: 1; display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; background: #fff; border: 3px solid var(--dsp-line); color: var(--dsp-muted); }
.dsp-path__step.is-done .dsp-path__dot { background: var(--dsp-green); border-color: var(--dsp-green); color: #fff; }
.dsp-path__step.is-current .dsp-path__dot { background: var(--dsp-yellow); border-color: var(--dsp-green); color: var(--dsp-green-dark); box-shadow: 0 0 0 5px rgba(246,196,69,.3); }
.dsp-path__label { display: block; font-weight: 600; font-size: .85rem; margin-top: 6px; }
.dsp-path__min { display: block; font-size: .75rem; color: var(--dsp-muted); }

/* Badges */
.dsp-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dsp-badge { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px dashed var(--dsp-line); color: var(--dsp-muted); }
.dsp-badge__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: #f1f4f2; margin-bottom: 6px; }
.dsp-badge__label { display: block; font-weight: 600; font-size: .88rem; }
.dsp-badge__desc { display: block; font-size: .75rem; margin-top: 2px; }
.dsp-badge.is-earned { border: 1px solid var(--dsp-yellow); background: var(--dsp-yellow-soft); color: var(--dsp-green-dark); }
.dsp-badge.is-earned .dsp-badge__icon { background: var(--dsp-green); color: var(--dsp-yellow); }

/* Timeline */
.dsp-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--dsp-green-soft); }
.dsp-timeline__item { position: relative; padding: 0 56px 18px 0; display: flex; flex-direction: column; }
.dsp-timeline__item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--dsp-green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--dsp-green); }
.dsp-timeline__item.is-training::before { background: var(--dsp-yellow); }
.dsp-timeline__date { font-size: .8rem; color: var(--dsp-muted); }
.dsp-timeline__type { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dsp-green); font-weight: 700; }
.dsp-timeline__note { font-size: .88rem; color: var(--dsp-muted); }
.dsp-timeline__pts { position: absolute; right: 0; top: 2px; background: var(--dsp-green-soft); color: var(--dsp-green); font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 999px; }

/* Gallery */
.dsp-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.dsp-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; transition: transform .25s; }
.dsp-gallery__item a:hover img { transform: scale(1.03); }
.dsp-gallery__caption { display: block; font-size: .85rem; margin-top: 6px; }
.dsp-gallery__item form { display: block; margin-top: 2px; }
.dsp-status { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin: 4px 6px 0 0; font-weight: 600; }
.dsp-status--pending { background: var(--dsp-yellow-soft); color: #7a5a00; }
.dsp-status--members { background: var(--dsp-green-soft); color: var(--dsp-green); }
.dsp-status--public { background: var(--dsp-green); color: #fff; }
.dsp-link-btn { background: none; border: 0; padding: 0; color: #b3261e; font-size: .8rem; cursor: pointer; text-decoration: underline; }

/* Lightbox */
.dsp-lightbox { position: fixed; inset: 0; background: rgba(9,30,20,.9); display: flex; align-items: center; justify-content: center; z-index: 99999; cursor: zoom-out; padding: 24px; }
.dsp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Forms */
.dsp-form { display: grid; gap: 14px; max-width: 620px; }
.dsp-form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.dsp-form input[type=text], .dsp-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--dsp-line); border-radius: 8px; font: inherit; font-weight: 400; }
.dsp-form input:focus, .dsp-form textarea:focus { outline: 2px solid var(--dsp-yellow); border-color: var(--dsp-green); }
.dsp-form small { font-weight: 400; color: var(--dsp-muted); }
.dsp-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; }
.dsp-check input { margin-top: 4px; }
.dsp-btn { justify-self: start; background: var(--dsp-green); color: #fff; border: 0; border-radius: 999px; padding: 11px 24px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s, transform .2s; }
.dsp-btn:hover { background: var(--dsp-green-dark); transform: translateY(-1px); }
.dsp-photo-field { display: flex; gap: 16px; align-items: center; }
.dsp-drop { border: 2px dashed var(--dsp-line); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; font-weight: 400 !important; }
.dsp-drop:hover { border-color: var(--dsp-green); }
.dsp-drop input { justify-self: center; }
.dsp-drop__preview { max-height: 180px; margin: 10px auto 0; border-radius: 8px; }

/* Login */
.dsp-login { max-width: 460px; margin: 0 auto; }
.dsp-login input[type=text], .dsp-login input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid var(--dsp-line); border-radius: 8px; }
.dsp-login input[type=submit] { background: var(--dsp-green); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; }

/* Directory */
.dsp-filter { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.dsp-filter__search { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--dsp-line); border-radius: 999px; font: inherit; }
.dsp-filter__level { padding: 10px 14px; border: 1px solid var(--dsp-line); border-radius: 999px; font: inherit; background: #fff; }
.dsp-directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.dsp-person a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 18px; background: #fff; border: 1px solid var(--dsp-line); border-radius: var(--dsp-radius); box-shadow: var(--dsp-shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; height: 100%; }
.dsp-person a:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(9,61,41,.12); }
.dsp-person .dsp-avatar { border: 3px solid var(--dsp-yellow); }
.dsp-person__name { font-size: 1.05rem; color: var(--dsp-green-dark); }
.dsp-person__langs { font-size: .85rem; color: var(--dsp-muted); }
.dsp-person[hidden] { display: none; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
	.dsp-portaal .dsp-card, .dsp-portaal .dsp-stats li, .dsp-portaal .dsp-person { animation: dsp-rise .5s both; }
	.dsp-portaal .dsp-stats li:nth-child(2) { animation-delay: .06s; }
	.dsp-portaal .dsp-stats li:nth-child(3) { animation-delay: .12s; }
	.dsp-portaal .dsp-stats li:nth-child(4) { animation-delay: .18s; }
	.dsp-badge.is-earned .dsp-badge__icon { animation: dsp-pop .5s .3s both; }
}
@keyframes dsp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dsp-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Partner lock & registration */
.dsp-lock { display: flex; gap: 16px; align-items: flex-start; background: var(--dsp-yellow-soft); border: 1px solid var(--dsp-yellow); border-radius: var(--dsp-radius); padding: 22px 24px; margin-bottom: 20px; color: var(--dsp-green-dark); }
.dsp-lock p { margin: .4em 0 0; }
.dsp-lock__icon { flex: none; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--dsp-green); color: var(--dsp-yellow); }
.dsp-lock__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px !important; }
.dsp-lock__login { color: var(--dsp-green); font-weight: 600; }
.dsp-lock--compact { background: rgba(255,255,255,.1); border-color: rgba(246,196,69,.6); color: #fff; margin: 0; }
.dsp-lock--compact .dsp-lock__icon { background: var(--dsp-yellow); color: var(--dsp-green-dark); }
.dsp-lock--compact .dsp-lock__login { color: var(--dsp-yellow); }
.dsp-btn--yellow { background: var(--dsp-yellow); color: var(--dsp-green-dark); text-decoration: none; display: inline-block; }
.dsp-btn--yellow:hover { background: #ffd666; color: var(--dsp-green-dark); }
.dsp-partner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.dsp-partner__intro h2 { font-size: 2rem; color: var(--dsp-green-dark); margin-top: .5em !important; }
.dsp-partner__list { padding-left: 1.2em; }
.dsp-partner__list li { margin-bottom: 6px; }
.dsp-partner__list li::marker { color: var(--dsp-green); }
.dsp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dsp-form input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--dsp-line); border-radius: 8px; font: inherit; font-weight: 400; }
.dsp-small { font-size: .9rem; margin: 0; }
.dsp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .dsp-partner, .dsp-form__row { grid-template-columns: 1fr; } }
.dsp-form a, .dsp-notice a { color: var(--dsp-green); font-weight: 600; }
