/* SUNDE IBK – kun forsiden. Felles hero, nyheter, kamper og sponsor har egne filer. */
.sunde-home [hidden] { display: none !important; }
.sunde-home .home-content { position: relative; overflow: hidden; background: var(--sunde-bg, #131313); }
.sunde-home .home-content::before {
    content: ''; position: absolute; top: 120px; right: -180px;
    width: clamp(560px, 65vw, 1100px); height: 1200px;
    background: url('../../assets/images/sundebukk.webp') center top / contain no-repeat;
    opacity: .045; filter: grayscale(1); pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 65%, transparent);
}
.sunde-home .home-section { position: relative; padding: 80px 0; }
.sunde-home .home-section + .home-section { padding-top: 12px; }
.sunde-home .home-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 30px; }
.sunde-home .home-heading h2 { margin: 12px 0 0; color: var(--sunde-text); font: 700 clamp(30px, 3.4vw, 44px)/1.1 'Outfit', sans-serif; letter-spacing: -.035em; text-transform: none; }
.sunde-home .home-heading > span { color: var(--sunde-muted); font-size: 13px; }
.sunde-home .home-match-list.is-collapsed .nestekamp-card:nth-child(n+7) { display: none; }
.sunde-home #home-kamper { scroll-margin-top: 100px; }
.sunde-home .home-match-actions { display: flex; justify-content: center; margin-top: 26px; }
.sunde-home .home-outline-button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--sunde-border); border-radius: 5px; background: var(--sunde-panel); color: var(--sunde-accent); font: 600 14px/1.5 'Outfit', sans-serif; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.sunde-home .home-outline-button:hover { border-color: var(--sunde-accent); background: #242424; color: var(--sunde-accent); }
.sunde-home .home-news-actions { margin-top: 28px; }
.sunde-home .home-news-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sunde-accent); font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.sunde-home .home-spirit { padding: 42px 0 100px; }
.sunde-home .home-spirit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sunde-home .home-spirit-title { margin: 23px 0 27px; color: var(--sunde-text); font: 800 clamp(42px, 5.3vw, 76px)/.99 'Outfit', sans-serif; letter-spacing: -.055em; text-transform: none; }
.sunde-home .home-rotator { display: grid; overflow: hidden; padding: .04em 0 .12em; color: var(--sunde-accent); }
.sunde-home .home-rotator > span { grid-area: 1 / 1; display: block; white-space: nowrap; visibility: hidden; opacity: 0; transform: translateY(100%); transition: opacity .4s ease, transform .4s ease; }
.sunde-home .home-rotator > .is-active { visibility: visible; opacity: 1; transform: translateY(0); }
.sunde-home .home-rotator > .is-leaving { visibility: visible; opacity: 0; transform: translateY(-100%); }
.sunde-home .home-spirit-ending { display: block; }
.sunde-home .home-spirit-copy > p { max-width: 520px; margin: 0 0 26px; color: var(--sunde-muted); font-size: 16px; line-height: 1.8; }
.sunde-home .home-shortcuts { display: grid; gap: 14px; min-width: 0; }
.sunde-home .home-shortcut { display: flex; align-items: center; gap: 18px; padding: 24px; min-height: 100px; border: 1px solid var(--sunde-border); border-radius: 7px; background: var(--sunde-panel); color: var(--sunde-text); text-decoration: none; transition: border-color .2s, background .2s; }
.sunde-home .home-shortcut:hover { border-color: var(--sunde-accent); background: #242424; }
.sunde-home .home-shortcut-icon { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; background: rgba(230,191,63,.1); color: var(--sunde-accent); font-size: 20px; }
.sunde-home .home-shortcut-copy { flex: 1; min-width: 0; }
.sunde-home .home-shortcut-copy strong { display: block; margin-bottom: 5px; color: var(--sunde-text); font-size: 18px; font-weight: 650; line-height: 1.3; }
.sunde-home .home-shortcut-copy > span { display: block; color: var(--sunde-muted); font-size: 12px; line-height: 1.5; }
.sunde-home .home-shortcut > i { color: var(--sunde-accent); font-size: 13px; }
.sunde-home .home-connect { padding: 26px 24px 24px; background: var(--sunde-panel); border: 1px solid var(--sunde-border); border-radius: 7px; }
.sunde-home .home-connect h3 { margin: 0 0 9px; color: var(--sunde-text); font: 650 18px/1.4 'Outfit', sans-serif; letter-spacing: -.015em; text-transform: none; }
.sunde-home .home-connect p { margin: 0 0 26px; color: var(--sunde-muted); font-size: 12px; line-height: 1.6; }
.sunde-home .home-connect-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sunde-home .home-connect-links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 8px; border: 1px solid var(--sunde-border); border-radius: 5px; background: #262626; color: var(--sunde-text); font-size: 11px; font-weight: 600; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; transition: border-color .2s; }
.sunde-home .home-connect-links a:hover { border-color: var(--sunde-accent); }
.sunde-home .home-connect-links i { color: var(--sunde-accent); font-size: 15px; flex-shrink: 0; }
.sunde-home .home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sunde-home .home-content a:focus-visible, .sunde-home .home-content button:focus-visible { outline: 2px solid var(--sunde-accent); outline-offset: 4px; }
/* Vis første cover også hvis JavaScript eller Owl ikke er tilgjengelig. */
.sunde-home .hero-carousel:not(.owl-loaded) { display: block; }
.sunde-home .hero-carousel:not(.owl-loaded) > .hero-slide:not(:first-child) { display: none; }
.sunde-home .hero .owl-dots .owl-dot span { background: rgba(255,255,255,.35); }
.sunde-home .hero .owl-dots .owl-dot.active span { background: var(--sunde-accent); }
body.sunde-home .modal-backdrop { background: rgba(0,0,0,.8) !important; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
body.sunde-home .modal-backdrop.show { opacity: 1 !important; }
@media (max-width: 991.98px) {
    .sunde-home .home-spirit-grid { grid-template-columns: 1fr; gap: 40px; }
    .sunde-home .home-spirit-title { font-size: clamp(48px, 8vw, 68px); }
    .sunde-home .home-spirit-copy > p { max-width: 600px; }
}
@media (max-width: 767.98px) {
    .sunde-home .home-section { padding: 48px 0; }
    .sunde-home .home-section + .home-section { padding-top: 8px; }
    .sunde-home .home-heading { margin-bottom: 24px; }
    .sunde-home .home-spirit { padding-bottom: 60px; }
    .sunde-home .home-spirit-title { font-size: clamp(38px, 9.8vw, 60px); margin-top: 20px; }
    .sunde-home .home-spirit-copy > p { font-size: 15px; }
    .sunde-home .home-shortcut { padding: 20px; gap: 15px; }
    .sunde-home .home-connect { padding: 24px 20px 20px; }
    .sunde-home .home-content::before { top: 120px; right: -170px; width: 520px; height: 900px; opacity: .025; }
}
@media (max-width: 420px) {
    .sunde-home .home-connect-links { grid-template-columns: 1fr; }
    .sunde-home .home-connect-links a { justify-content: flex-start; padding: 12px 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .sunde-home .hero .animated { animation-duration: 0s !important; }
    .sunde-home .home-rotator > span, .sunde-home .home-shortcut, .sunde-home .home-connect-links a, .sunde-home .home-outline-button { transition: none; }
}

/* Medlemsknappen gjelder kun forsidens cover – hero.css er felles og beholdes. */
.sunde-home .hero .hero-copy .home-hero-actions { margin: 0; padding-top: 18px; }
.sunde-home .hero .hero-copy p + .home-hero-actions { padding-top: 32px; }
.sunde-home .home-hero-member { min-height: 52px; padding: 15px 26px; font-size: 14px; font-weight: 800; }
.sunde-home .home-hero-actions a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 767.98px) {
    .sunde-home .hero .hero-copy .home-hero-actions { padding-top: 16px; }
    .sunde-home .hero .hero-copy p + .home-hero-actions { padding-top: 26px; }
}
