/* Sunde IBK – dokumentarkiv. Krever global.css og hero.css. */
.dok-section { position: relative; overflow: hidden; padding: 88px 0 100px; color: var(--sunde-text); }
.dok-section::before { content: ''; position: absolute; top: 80px; right: -160px; width: clamp(520px,65vw,1050px); height: 1100px; background: url('../../assets/images/sundebukk.webp') center top / contain no-repeat; opacity: .045; filter: grayscale(1); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 70%,transparent); mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 70%,transparent); pointer-events: none; }
.dok-section > .container { position: relative; }
.dok-section .dok-heading { margin: 14px 0 12px; color: var(--sunde-text); font-size: clamp(32px,4vw,48px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.dok-accordion { margin-top: 36px; }
.dok-group summary:focus-visible, .dok-link:focus-visible { outline: 2px solid var(--sunde-accent); outline-offset: 3px; }

.dok-accordion { display: grid; gap: 10px; }

.dok-group { border: 1px solid var(--sunde-border); border-radius: 6px; background: var(--sunde-bg-2); overflow: hidden; }

.dok-group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; color: var(--sunde-text); cursor: pointer; list-style: none; transition: background .2s; }

.dok-group summary::-webkit-details-marker { display: none; }

.dok-group summary::marker { content: ''; }

.dok-group summary:hover { background: #202020; }

.dok-group__title { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; line-height: 1.4; }


.dok-group__toggle { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }

.dok-group__toggle::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--sunde-accent); border-bottom: 2px solid var(--sunde-accent); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }

.dok-group[open] > summary { color: #131313; background: var(--sunde-accent); border-bottom: 1px solid var(--sunde-accent); }


.dok-group[open] .dok-group__toggle { border-color: rgba(0,0,0,.25); }

.dok-group[open] .dok-group__toggle::before { border-color: #131313; transform: translateY(2px) rotate(225deg); }

.dok-group[open] summary:focus-visible { outline-color: #131313; }



.dok-section .dok-ingress { color: var(--sunde-muted); max-width: 680px; margin: 0; line-height: 1.7; }
.dok-group__content { padding: 26px 28px; }
.dok-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dok-row { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--sunde-border); }
.dok-row:first-child { padding-top: 0; }
.dok-row:last-child { padding-bottom: 0; border-bottom: 0; }
.dok-row__info { flex: 1; min-width: 0; }
.dok-section .dok-row__name { margin: 0 0 7px; color: var(--sunde-text); font-size: 17px; font-weight: 600; line-height: 1.5; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.dok-row__date { color: var(--sunde-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dok-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 12px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--sunde-accent); border-radius: 5px; background: var(--sunde-accent); color: #131313; font-size: 14px; font-weight: 600; text-decoration: none; }
.dok-link:hover { color: #131313; background: #f0cf64; border-color: #f0cf64; text-decoration: none; }
.dok-link i { font-size: 12px; }
.dok-section .dok-message { color: var(--sunde-muted); margin: 0; font-size: 14px; line-height: 1.7; }
.dok-aarsmote .dok-message { margin-bottom: 20px; }
.dok-unavailable { color: var(--sunde-muted); font-size: 13px; }
@media (max-width: 767.98px) {
    .dok-section { padding: 48px 0 60px; }
    .dok-section::before { top: 200px; right: -160px; width: 500px; height: 750px; opacity: .025; }
    .dok-section .dok-heading { font-size: 34px; }
    .dok-accordion { margin-top: 24px; }
    .dok-group summary { padding: 19px 20px; }
    .dok-group__title { font-size: 17px; }
    .dok-group__content { padding: 24px 20px; }
    .dok-row { flex-direction: column; align-items: stretch; gap: 14px; }
    .dok-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .dok-group summary, .dok-group__toggle::before { transition: none; }
}
