/*
Theme Name: Brynäs Stockholm
Theme URI: https://brynasstockholm.se/
Author: Supporterklubben Brynäs Stockholm (Alexander Sköld)
Description: Officiellt WordPress-tema för Supporterklubben Brynäs Stockholm.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brynas-stockholm
*/

:root{
  --black:#080808;--black-2:#141414;--yellow:#ffc400;--yellow-2:#ffd84f;--red:#d71920;--red-dark:#a80f16;
  --white:#fff;--paper:#f4f1e8;--muted:#6b6b6b;--line:#dedbd2;--max:1200px;--radius:18px;
  --shadow:0 20px 60px rgba(0,0,0,.14)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--black);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}.container{width:min(calc(100% - 36px),var(--max));margin-inline:auto}

.notice-bar{background:var(--red);color:#fff;font-weight:900;text-align:center;padding:9px 12px;font-size:.88rem;letter-spacing:.02em}.site-header{position:sticky;top:0;z-index:100;background:rgba(8,8,8,.97);backdrop-filter:blur(12px);color:#fff}.header-stripe,.footer-stripe{height:5px;background:linear-gradient(90deg,var(--yellow) 0 52%,var(--red) 52% 100%)}.header-inner{min-height:82px;display:flex;align-items:center;gap:28px}.site-branding{display:inline-flex;align-items:center;gap:10px;color:#fff;min-width:max-content}.site-branding .custom-logo-link{display:flex}.site-branding .custom-logo{max-height:58px;width:auto}.brand-mark{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);border:4px solid #fff;box-shadow:0 0 0 3px var(--red)}.brand-mark span{font-family:Georgia,serif;color:#111;font-size:29px;font-weight:900;line-height:1}.brand-copy{display:flex;flex-direction:column;line-height:.82}.brand-copy strong{font-size:1.22rem;letter-spacing:.05em}.brand-copy em{font-style:normal;color:var(--yellow);font-weight:900;font-size:.82rem;letter-spacing:.19em;margin-top:7px}.primary-nav{margin-left:auto}.primary-nav ul{display:flex;align-items:center;gap:25px;list-style:none;padding:0;margin:0}.primary-nav a{font-weight:850;font-size:.92rem;text-transform:uppercase;letter-spacing:.04em}.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--yellow)}.header-cta{background:var(--yellow);color:#111;padding:11px 17px;border-radius:10px;font-weight:950;text-transform:uppercase;font-size:.82rem;letter-spacing:.05em}.menu-toggle{display:none;margin-left:auto;background:none;border:0;width:44px;height:44px;padding:9px;cursor:pointer}.menu-toggle>span:not(.screen-reader-text){display:block;height:3px;background:#fff;margin:5px 0;border-radius:3px}

.hero-v2{position:relative;background:var(--yellow);overflow:hidden}.hero-v2:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 15%,rgba(255,255,255,.34),transparent 27%),repeating-linear-gradient(125deg,transparent 0 70px,rgba(0,0,0,.025) 70px 72px)}.hero-ribbon{position:relative;z-index:2;background:#111;color:#fff;padding:10px;text-align:center;font-size:.74rem;font-weight:950;letter-spacing:.16em}.hero-ribbon span{color:var(--red);padding:0 10px}.hero-grid-v2{position:relative;z-index:2;display:grid;grid-template-columns:1.12fr .88fr;min-height:650px;align-items:stretch}.hero-copy{padding:78px 48px 68px 0;display:flex;flex-direction:column;justify-content:center}.eyebrow,.kicker{display:inline-block;font-weight:950;text-transform:uppercase;letter-spacing:.13em;font-size:.76rem}.eyebrow.dark{background:#111;color:#fff;padding:8px 11px;border-radius:7px;width:max-content}.hero-copy h1{font-size:clamp(3.3rem,7vw,7rem);line-height:1;letter-spacing:-.055em;margin:20px 0 24px;max-width:760px;text-transform:uppercase}.hero-copy p{font-size:1.17rem;max-width:690px;margin:0 0 26px;font-weight:650}.actions{display:flex;gap:11px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:0 20px;border-radius:10px;font-weight:950;text-transform:uppercase;letter-spacing:.045em;border:2px solid transparent;transition:.18s ease;font-size:.86rem}.btn:hover{transform:translateY(-2px)}.btn-black{background:#111;color:#fff}.btn-red{background:var(--red);color:#fff}.btn-red:hover{background:var(--red-dark)}.hero-stats{display:flex;gap:33px;margin-top:42px;padding-top:24px;border-top:2px solid rgba(0,0,0,.16)}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font-size:1.02rem;text-transform:uppercase}.hero-stats span{font-size:.76rem;font-weight:700;color:#493d00}.hero-visual{position:relative;background:#111;display:grid;place-items:center;clip-path:polygon(17% 0,100% 0,100% 100%,0 100%);margin-right:calc((100vw - min(calc(100vw - 36px),var(--max)))/-2);padding-left:10%}.crest-lockup{position:relative;z-index:3;text-align:center;color:#fff;transform:rotate(-2deg)}.crest-ring{width:min(32vw,320px);aspect-ratio:1;border-radius:50%;border:18px solid var(--yellow);padding:15px;box-shadow:0 0 0 8px var(--red),0 30px 70px rgba(0,0,0,.35);background:#111}.crest-inner{width:100%;height:100%;border-radius:50%;border:7px solid #fff;display:grid;place-items:center;position:relative;background:radial-gradient(circle,var(--black-2),#000)}.crest-inner b{font:900 clamp(6rem,13vw,10rem)/1 Georgia,serif;color:var(--yellow)}.crest-inner small{position:absolute;bottom:13%;font-weight:950;letter-spacing:.24em;color:#fff}.crest-name{margin-top:25px}.crest-name strong{display:block;font-size:clamp(2.1rem,4vw,4.1rem);line-height:.9;letter-spacing:.04em}.crest-name span{display:block;color:var(--yellow);font-weight:950;letter-spacing:.34em;margin-top:10px}.diagonal-red{position:absolute;width:170%;height:65px;background:var(--red);transform:rotate(-30deg);top:12%;left:-30%;opacity:.95}.diagonal-black{position:absolute;width:160%;height:14px;background:var(--yellow);transform:rotate(-30deg);bottom:17%;left:-20%}

.next-section{background:#fff;padding:0 0 54px}.next-label{display:inline-block;background:var(--red);color:#fff;font-weight:950;font-size:.76rem;letter-spacing:.13em;padding:9px 13px;transform:translateY(-1px)}.next-trip-card{display:grid;grid-template-columns:150px 1.3fr .85fr auto;gap:28px;align-items:center;padding:31px 0;border-bottom:1px solid #ddd}.next-date{border-right:1px solid #ddd;padding-right:25px}.next-date span{font-weight:950;font-size:1.15rem;text-transform:uppercase;display:block}.next-date strong{font-size:2rem;line-height:1;color:var(--red)}.next-main h2{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.2;margin:7px 0 9px;}.next-main p{margin:0;color:#555}.status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em;background:green}.status-oppen{background:#dff5d8;color:#195f0c}.status-fa_platser{background:#fff0c2;color:#775400}.status-fullbokad{background:#ffd8da;color:#8b1116}.status-info_kommer{background:#e5e5e5;color:#444}.status.mini{font-size:.61rem;padding:5px 8px}.trip-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.trip-facts div{display:flex;flex-direction:column}.trip-facts small,.trip-detail-grid small{font-size:.69rem;color:#777;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.trip-facts strong{font-size:.93rem}.next-actions{display:flex;flex-direction:column;gap:8px}.empty{grid-template-columns:1fr}

.section{padding:78px 0}.section-black{background:#0a0a0a;color:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:31px}.section-head h2{font-size:clamp(2.5rem,5vw,4.8rem);line-height:.9;margin:8px 0 0;text-transform:uppercase;letter-spacing:-.045em}.kicker{color:var(--red)}.section-black .kicker{color:var(--yellow)}.text-link{font-weight:950;border-bottom:3px solid var(--red);padding-bottom:2px}.text-link.light{border-color:var(--yellow)}.trip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.trip-card-v2{background:#171717;border:1px solid #292929;padding:26px;border-radius:15px;min-height:310px;display:flex;flex-direction:column;position:relative;overflow:hidden}.trip-card-v2:after{content:"";position:absolute;width:110px;height:110px;border:20px solid rgba(255,196,0,.055);border-radius:50%;right:-45px;bottom:-45px}.trip-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.trip-date-v2{color:var(--yellow);font-size:.79rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.trip-card-v2 h3{font-size:1.55rem;line-height:1.4;text-transform:uppercase;margin:30px 0 11px;max-width:90%}.trip-card-v2 p{color:#bdbdbd;margin:0}.trip-card-v2>a{margin-top:auto;padding-top:24px;color:var(--yellow);font-weight:950;position:relative;z-index:2}

.membership-band{background:var(--red);color:#fff;padding:66px 0;border-top:8px solid var(--yellow)}.membership-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.membership-grid h2{font-size:clamp(3rem,6vw,6rem);line-height:.9;text-transform:uppercase;letter-spacing:-.05em;margin:10px 0 0}.membership-grid p{font-size:1.15rem;font-weight:650;max-width:560px}.dark-text{color:#111}.news-section{background:var(--paper)}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.news-card{background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 9px 30px rgba(0,0,0,.07)}.news-image{aspect-ratio:16/9;background:#111;display:grid;place-items:center;overflow:hidden}.news-image img{width:100%;height:100%;object-fit:cover}.news-placeholder{font:900 6rem/1 Georgia,serif;color:var(--yellow)}.news-body{padding:23px}.news-meta{color:var(--red);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.news-body h3{font-size:1.34rem;line-height:1.12;margin:8px 0 10px}.news-body p{color:#626262}.supporter-values{background:var(--yellow);padding:52px 0}.values-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.value{border-left:5px solid #111;padding-left:20px}.value b{color:var(--red);font-size:.78rem;letter-spacing:.12em}.value h3{font-size:1.4rem;text-transform:uppercase;margin:6px 0}.value p{margin:0;max-width:300px}

.page-hero{background:var(--yellow);padding:72px 0}.page-hero.compact{padding:58px 0;border-bottom:8px solid var(--red)}.page-hero h1{font-size:clamp(2.4rem,5.6vw,4.8rem);line-height:1;text-transform:uppercase;letter-spacing:-.05em;margin:7px 0 15px}.page-hero p{font-size:1.1rem;font-weight:650}.content-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;padding:54px 0}.entry-card{background:#fff;padding:34px;border-radius:16px;box-shadow:0 10px 34px rgba(0,0,0,.07)}.entry-header h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1;text-transform:uppercase}.entry-meta{color:#777}.entry-content{font-size:1.04rem}.entry-content h2,.entry-content h3{line-height:1.15;margin-top:1.7em}.entry-content a{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}.entry-content table{width:100%;border-collapse:collapse}.entry-content td,.entry-content th{padding:10px;border-bottom:1px solid #ddd;text-align:left}.trip-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:25px}.trip-detail-grid div{background:#f2f0e9;padding:14px;border-radius:10px}.trip-detail-grid strong{display:block;margin-top:3px}.widget{background:#fff;border-radius:14px;padding:22px;margin-bottom:17px}.widget-title{margin-top:0;text-transform:uppercase}.archive-trip-section{padding-top:55px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pagination{margin-top:30px}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.page-numbers{padding:8px 12px;background:#fff;color:#111;border-radius:8px}.page-numbers.current{background:var(--yellow);font-weight:950}

.site-footer{background:#080808;color:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px;padding:48px 0 34px}.footer-logo{margin-bottom:18px}.footer-brand p{color:#aaa;max-width:380px}.site-footer h3{color:var(--yellow);text-transform:uppercase;font-size:.9rem;letter-spacing:.08em}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin:7px 0}.site-footer a:hover{color:var(--yellow)}.footer-bottom{border-top:1px solid #262626;padding:18px 0 26px;color:#8e8e8e;font-size:.86rem}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:980px){.header-cta{display:none}.menu-toggle{display:block}.primary-nav{display:none;position:absolute;left:0;right:0;top:87px;background:#090909;padding:22px}.primary-nav.open{display:block}.primary-nav ul{flex-direction:column;align-items:flex-start}.hero-grid-v2{grid-template-columns:1fr;min-height:0}.hero-copy{padding:65px 0}.hero-visual{min-height:460px;clip-path:none;margin:0 calc((100vw - min(calc(100vw - 36px),var(--max)))/-2);padding:50px}.crest-ring{width:280px}.next-trip-card{grid-template-columns:130px 1fr}.trip-facts,.next-actions{grid-column:2}.next-actions{flex-direction:row}.trip-grid,.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.membership-grid,.content-wrap,.footer-grid{grid-template-columns:1fr}.values-grid{grid-template-columns:1fr 1fr}.sidebar{display:none}}
@media(max-width:650px){.container{width:min(calc(100% - 26px),var(--max))}.header-inner{min-height:74px}.brand-mark{width:42px;height:42px}.brand-copy strong{font-size:1rem}.brand-copy em{font-size:.69rem}.primary-nav{top:79px}.hero-copy h1{font-size:clamp(3.1rem,17vw,5rem)}.hero-copy{padding:48px 0}.hero-stats{gap:17px;flex-wrap:wrap}.hero-visual{min-height:390px}.crest-ring{width:235px;border-width:13px}.crest-name span{letter-spacing:.2em}.next-trip-card{grid-template-columns:1fr;gap:17px}.next-date{border:0;border-bottom:1px solid #ddd;padding:0 0 14px}.trip-facts,.next-actions{grid-column:auto}.next-actions{flex-wrap:wrap}.trip-grid,.news-grid,.values-grid,.trip-detail-grid{grid-template-columns:1fr}.section{padding:58px 0}.section-head{align-items:flex-start;flex-direction:column}.membership-grid{gap:28px}.page-hero.compact{padding:45px 0}.entry-card{padding:23px}}

/* V2.1 backend compatibility + actual club logo */
.built-in-logo{display:block;width:auto;max-width:240px;object-fit:contain}.footer-built-in-logo{max-height:120px}.past-head{margin-top:70px}.past-trips{opacity:.82}
/* Existing trip booking template styled inside V2 without changing its backend fields/logic. */
.single-trips #content>.row{width:min(calc(100% - 40px),1180px);margin:55px auto;display:grid;grid-template-columns:minmax(0,1fr);gap:30px}.single-trips #content>.row>.span4{display:none}.single-trips #content>.row>.span8{background:#fff;border-radius:18px;padding:clamp(24px,4vw,48px);box-shadow:0 20px 60px rgba(0,0,0,.1)}.single-trips .page-header h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1;text-transform:uppercase;margin:0 0 28px}.single-trips .post_content{font-size:1.05rem}.single-trips .post_content strong{color:#111}.single-trips form{margin-top:40px;border-top:5px solid var(--yellow);padding-top:28px}.single-trips fieldset{border:0;padding:0;margin:0}.single-trips legend{font-size:2rem;font-weight:950;text-transform:uppercase;margin-bottom:25px}.single-trips .control-group{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;margin-bottom:18px;align-items:start}.single-trips .control-label{font-weight:850;padding-top:11px}.single-trips input,.single-trips select,.single-trips textarea{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:10px;padding:12px 14px;font:inherit;background:#fff}.single-trips textarea{min-height:130px;resize:vertical}.single-trips .help-inline{display:block;color:var(--red);font-weight:800;margin-top:5px}.single-trips .btn-primary{border:0;background:var(--red);color:#fff;border-radius:10px;padding:13px 22px;font-weight:950;text-transform:uppercase;cursor:pointer}.single-trips .notification{background:var(--yellow);color:#111;padding:25px;border-radius:14px;font-weight:700}@media(max-width:720px){.built-in-logo{max-width:180px}.single-trips #content>.row{width:min(calc(100% - 26px),1180px);margin:28px auto}.single-trips #content>.row>.span8{padding:22px}.single-trips .control-group{grid-template-columns:1fr;gap:5px}.single-trips .control-label{padding-top:0}}

/* V2.2 – dedicated full-width News archive. Homepage news section remains unchanged. */
.news-page-hero .kicker{color:var(--red)}
.news-archive{background:var(--paper);padding:54px 0 76px}
.news-list{width:100%;border-top:1px solid #d7d3c8}
.news-list-item{margin:0;border-bottom:1px solid #d7d3c8}
.news-list-link{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr) auto;gap:30px;align-items:center;width:100%;padding:26px 0;transition:transform .18s ease,background-color .18s ease}
.news-list-link:hover{transform:translateX(5px)}
.news-list-thumb{aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:#111}
.news-list-thumb img{width:100%;height:100%;object-fit:cover}
.news-list-content{min-width:0}
.news-list-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px;color:var(--red);font-size:.73rem;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.news-list-content h2{margin:0;font-size:clamp(1.55rem,2.7vw,2.45rem);line-height:1.02;letter-spacing:-.025em;text-transform:uppercase}
.news-list-excerpt{max-width:850px;margin-top:10px;color:#555;font-size:1rem}
.news-list-excerpt p{margin:0}
.news-list-arrow{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--black);color:var(--yellow);font-size:1.25rem;font-weight:950;transition:background-color .18s ease,color .18s ease}
.news-list-link:hover .news-list-arrow{background:var(--red);color:#fff}
.news-pagination{margin-top:34px}
.news-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.news-pagination .page-numbers{background:#fff;border:1px solid #ddd8cc}
.news-pagination .page-numbers.current{background:var(--yellow);border-color:var(--yellow)}
.news-empty{padding:40px 0}
.news-empty h2{font-size:2rem;text-transform:uppercase;margin:0 0 8px}
.news-empty p{margin:0;color:#555}

@media(max-width:760px){
  .news-archive{padding:34px 0 58px}
  .news-list-link{grid-template-columns:110px minmax(0,1fr);gap:16px;padding:20px 0;transform:none!important}
  .news-list-arrow{display:none}
  .news-list-content h2{font-size:1.32rem}
  .news-list-excerpt{font-size:.94rem;margin-top:7px}
  .news-list-meta{font-size:.66rem;margin-bottom:6px}
}
@media(max-width:520px){
  .news-list-link{grid-template-columns:1fr;gap:13px}
  .news-list-thumb{aspect-ratio:16/9}
}


/* V2 news archive: full body-width list, not card-width content */
.news-archive .container{max-width:var(--max);width:min(calc(100% - 36px),var(--max))}
.news-list{width:100%;max-width:none}
.news-list-item{width:100%;max-width:none;background:transparent;border-radius:0;box-shadow:none}
.news-list-link{width:100%;max-width:none;box-sizing:border-box}
.news-list-link:not(.has-thumbnail){grid-template-columns:minmax(0,1fr) auto}
.news-list-link.has-thumbnail{grid-template-columns:220px minmax(0,1fr) auto}
.news-list-content{width:100%;max-width:none}
.news-list-excerpt{max-width:none;width:100%}

@media(max-width:760px){
  .news-list-link.has-thumbnail{grid-template-columns:110px minmax(0,1fr)}
  .news-list-link:not(.has-thumbnail){grid-template-columns:1fr}
}
@media(max-width:520px){
  .news-list-link.has-thumbnail{grid-template-columns:1fr}
}


/* Dedicated Nyheter page: simple full-width rows */
.news-archive .container{width:min(calc(100% - 36px),var(--max));max-width:var(--max)}
.news-archive .news-list{display:block;width:100%;max-width:none}
.news-archive .news-list-item{display:block;width:100%;max-width:none;margin:0;padding:0;background:none;border-radius:0;box-shadow:none}
.news-archive .news-list-link,
.news-archive .news-list-link.has-thumbnail,
.news-archive .news-list-link:not(.has-thumbnail){
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    width:100%;
    max-width:none;
    padding:30px 0;
    gap:32px;
    background:none;
    border-radius:0;
    box-shadow:none;
}
.news-archive .news-list-content,
.news-archive .news-list-excerpt{width:100%;max-width:none}
@media(max-width:650px){
    .news-archive .news-list-link,
    .news-archive .news-list-link.has-thumbnail,
    .news-archive .news-list-link:not(.has-thumbnail){grid-template-columns:1fr;padding:23px 0}
}


/* Nyheter: full-width list rows — intentionally not CSS grid */
.news-archive .news-list-link,
.news-archive .news-list-link.has-thumbnail,
.news-archive .news-list-link:not(.has-thumbnail){
    display:block;
    width:100%;
    max-width:none;
    padding:30px 0;
    box-sizing:border-box;
}
.news-archive .news-list-content{
    display:block;
    width:100%;
    max-width:none;
}
.news-archive .news-list-excerpt{
    width:100%;
    max-width:none;
}
.news-archive .news-list-arrow{
    display:none;
}


/* Nyheter: keep full-width content and position the arrow independently */
.news-archive .news-list-link,
.news-archive .news-list-link.has-thumbnail,
.news-archive .news-list-link:not(.has-thumbnail){
    position:relative;
    display:block;
    width:100%;
    max-width:none;
    padding:30px 70px 30px 0;
    box-sizing:border-box;
}
.news-archive .news-list-content,
.news-archive .news-list-excerpt{
    width:100%;
    max-width:none;
}
.news-archive .news-list-arrow{
    display:grid;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    place-items:center;
}
.news-archive .news-list-link:hover .news-list-arrow{
    transform:translateY(-50%);
}

@media(max-width:650px){
    .news-archive .news-list-link,
    .news-archive .news-list-link.has-thumbnail,
    .news-archive .news-list-link:not(.has-thumbnail){
        padding:23px 56px 23px 0;
    }
}


/* Nyheter archive: year filter sidebar + paginated full-width list */
.news-archive-layout{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:52px;
    align-items:start;
}
.news-year-sidebar{
    min-width:0;
}
.news-filter-box{
    position:sticky;
    top:110px;
    border-top:5px solid var(--yellow);
    padding-top:18px;
}
.news-filter-box h2{
    margin:5px 0 18px;
    font-size:1.35rem;
    line-height:1;
    text-transform:uppercase;
}
.news-year-nav{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.news-year-nav a{
    display:block;
    padding:10px 12px;
    border-left:3px solid transparent;
    font-weight:850;
    text-decoration:none;
}
.news-year-nav a:hover{
    background:#fff;
    border-left-color:var(--red);
}
.news-year-nav a.is-active{
    background:var(--black);
    color:var(--yellow);
    border-left-color:var(--red);
}
.news-results{
    min-width:0;
    width:100%;
}
.news-results-heading{
    padding:0 0 20px;
    border-bottom:1px solid #d7d3c8;
}
.news-results-heading h2{
    margin:3px 0 0;
    font-size:2rem;
}
.news-results .news-list{
    width:100%;
    max-width:none;
}
.news-results .news-list-link{
    position:relative;
    display:block;
    width:100%;
    max-width:none;
    padding:30px 70px 30px 0;
    box-sizing:border-box;
}
.news-results .news-list-content,
.news-results .news-list-excerpt{
    width:100%;
    max-width:none;
}
.news-results .news-list-arrow{
    display:grid;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    place-items:center;
}
.news-results .news-list-link:hover .news-list-arrow{
    transform:translateY(-50%);
}
.news-pagination{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:34px;
}
.news-pagination .page-numbers{
    display:grid;
    place-items:center;
    min-width:42px;
    height:42px;
    padding:0 12px;
    border:1px solid #d7d3c8;
    background:#fff;
    font-weight:900;
    text-decoration:none;
}
.news-pagination .page-numbers:hover{
    border-color:var(--red);
}
.news-pagination .page-numbers.current{
    background:var(--yellow);
    border-color:var(--yellow);
    color:var(--black);
}

@media(max-width:800px){
    .news-archive-layout{
        grid-template-columns:1fr;
        gap:30px;
    }
    .news-filter-box{
        position:static;
    }
    .news-year-nav{
        flex-direction:row;
        flex-wrap:wrap;
        gap:6px;
    }
    .news-year-nav a{
        border-left:0;
        border-bottom:3px solid transparent;
    }
    .news-year-nav a.is-active{
        border-left:0;
        border-bottom-color:var(--red);
    }
}
@media(max-width:650px){
    .news-results .news-list-link{
        padding:23px 56px 23px 0;
    }
}


/* Enhanced Nyheter year filter */
.news-filter-box{
    position:sticky;
    top:110px;
    padding:22px;
    background:#111;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    border-top:6px solid var(--yellow);
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.14);
}
.news-filter-box .kicker{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:7px;
    color:var(--yellow);
}
.news-filter-box .kicker:before{
    content:"";
    display:block;
    width:18px;
    height:3px;
    background:var(--red);
}
.news-filter-box h2{
    margin:3px 0 18px;
    color:#fff;
    font-size:1.25rem;
    line-height:1.05;
    text-transform:uppercase;
}
.news-year-nav{
    display:flex;
    flex-direction:column;
    gap:7px;
}
.news-year-nav a{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:44px;
    padding:10px 13px;
    color:#fff;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.09);
    border-radius:8px;
    font-size:.94rem;
    font-weight:900;
    line-height:1;
    text-decoration:none;
    transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.news-year-nav a:after{
    content:"→";
    color:var(--yellow);
    font-size:1rem;
    opacity:.8;
}
.news-year-nav a:hover{
    background:rgba(255,255,255,.12);
    border-color:var(--yellow);
    color:#fff;
    transform:translateX(3px);
}
.news-year-nav a.is-active{
    background:var(--yellow);
    border-color:var(--yellow);
    color:#111;
}
.news-year-nav a.is-active:after{
    color:var(--red);
}
.news-year-nav a:focus-visible{
    outline:3px solid var(--red);
    outline-offset:2px;
}

@media(max-width:800px){
    .news-filter-box{
        position:static;
        padding:18px;
    }
    .news-year-nav{
        flex-direction:row;
        flex-wrap:wrap;
        gap:8px;
    }
    .news-year-nav a{
        min-height:40px;
        padding:9px 12px;
    }
    .news-year-nav a:after{
        display:none;
    }
    .news-year-nav a:hover{
        transform:none;
    }
}


/* Nyheter year filter — compact pagination-style labels */
.news-filter-box{
    background:transparent;
    color:var(--black);
    border:0;
    border-top:4px solid var(--yellow);
    border-radius:0;
    box-shadow:none;
    padding:18px 0 0;
}
.news-filter-box .kicker{
    color:var(--red);
}
.news-filter-box h2{
    color:var(--black);
    margin-bottom:14px;
}
.news-year-nav{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
}
.news-year-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:58px;
    min-height:40px;
    padding:0 12px;
    background:#fff;
    color:var(--black);
    border:1px solid #d7d3c8;
    border-radius:0;
    font-size:.9rem;
    font-weight:900;
    line-height:1;
    box-shadow:none;
    transform:none;
}
.news-year-nav a:after{
    display:none;
}
.news-year-nav a:first-child{
    min-width:auto;
    padding-left:14px;
    padding-right:14px;
}
.news-year-nav a:hover{
    background:#fff;
    color:var(--black);
    border-color:var(--red);
    transform:none;
}
.news-year-nav a.is-active{
    background:var(--yellow);
    color:var(--black);
    border-color:var(--yellow);
}
.news-year-nav a.is-active:hover{
    background:var(--yellow);
    border-color:var(--yellow);
}

@media(max-width:800px){
    .news-filter-box{
        padding:16px 0 0;
    }
}


/* ==========================================================
   V2 homepage header/hero — based on supplied visual reference
   ========================================================== */
.site-header{
  background:#080a0a;
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.header-stripe{
  display:block;
  height:5px;
  background:linear-gradient(90deg,var(--yellow) 0 52%,var(--red) 52% 100%);
}
.header-inner{min-height:92px}
.primary-nav a{
  position:relative;
  color:#fff;
  text-transform:none;
  letter-spacing:0;
  font-size:.94rem;
  font-weight:700;
}
.primary-nav a:hover,
.primary-nav .current-menu-item>a{color:var(--yellow)}
.primary-nav .current-menu-item>a:after,
.primary-nav a:hover:after{
  content:"";
  position:absolute;
  left:0;right:0;
  bottom:-12px;
  height:2px;
  background:var(--yellow);
}
.header-cta{
  border-radius:3px;
  padding:14px 24px;
  background:var(--yellow);
  color:#111;
}

.hero-v2.hero-reference{
  position:relative;
  min-height:640px;
  overflow:hidden;
  background:#080a0a url("assets/images/hero-supporters-bg.png") center center / cover no-repeat;
  color:#fff;
}
.hero-v2.hero-reference:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,0,0,.24) 0%,rgba(0,0,0,.12) 43%,rgba(0,0,0,.05) 67%,rgba(0,0,0,.12) 100%),
    linear-gradient(0deg,rgba(0,0,0,.25),transparent 32%);
}
.hero-v2.hero-reference:after{display:none}
.hero-reference .hero-grid-v2{
  position:relative;
  z-index:1;
  display:block;
  min-height:640px;
}
.hero-reference .hero-copy{
  width:min(58%,760px);
  min-height:640px;
  padding:78px 0 62px;
  justify-content:center;
}
.hero-reference .eyebrow.dark{
  padding:0;
  border-radius:0;
  background:transparent;
  color:var(--yellow);
  font-size:.84rem;
  letter-spacing:.20em;
}
.hero-reference .hero-copy h1{
  max-width:720px;
  margin:22px 0 22px;
  color:#fff;
  font-size:clamp(3.4rem,4.4vw,4.5rem);
  line-height:1.1;
  letter-spacing:-.035em;
  text-shadow:0 4px 24px rgba(0,0,0,.35);
  color:#fff;
}
.hero-reference .hero-title-main{color:#fff}
.hero-reference .hero-title-stockholm{display:block;color:var(--yellow)}
.hero-reference .hero-copy p{
  max-width:650px;
  margin:0 0 30px;
  color:#f4f4f4;
  font-size:1.22rem;
  font-weight:500;
}
.hero-reference .actions{gap:20px}
.hero-reference .btn{
  min-width:180px;
  min-height:58px;
  border-radius:3px;
}
.hero-reference .btn-black{
  background:rgba(8,8,8,.58);
  border-color:#fff;
}
.hero-reference .hero-stats{
  gap:0;
  margin-top:42px;
  padding-top:0;
  border-top:0;
}
.hero-reference .hero-stats div{
  min-width:165px;
  padding:0 34px;
  border-left:1px solid rgba(255,255,255,.30);
}
.hero-reference .hero-stats div:first-child{
  padding-left:0;
  border-left:0;
}
.hero-reference .hero-stats strong{
  color:#fff;
  font-size:1.42rem;
  line-height:1.05;
}
.hero-reference .hero-stats span{
  max-width:145px;
  margin-top:7px;
  color:#d7d7d7;
  font-size:.83rem;
  font-weight:500;
}

@media(max-width:900px){
  .hero-v2.hero-reference{
    background-position:58% center;
  }
  .hero-reference .hero-copy{
    width:min(76%,720px);
  }
}
@media(max-width:650px){
  .header-inner{min-height:76px}
  .hero-v2.hero-reference{
    min-height:620px;
    background-position:42% center;
  }
  .hero-v2.hero-reference:before{
    background:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.32));
  }
  .hero-reference .hero-grid-v2,
  .hero-reference .hero-copy{min-height:620px}
  .hero-reference .hero-copy{
    width:100%;
    padding:54px 0 45px;
  }
  .hero-reference .hero-copy h1{
    font-size:clamp(2.85rem,12.5vw,4rem);
  }
  .hero-reference .hero-copy p{font-size:1.05rem}
  .hero-reference .hero-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0;
  }
  .hero-reference .hero-stats div{
    min-width:0;
    padding:0 12px;
  }
  .hero-reference .hero-stats strong{font-size:1rem}
  .hero-reference .hero-stats span{font-size:.68rem}
}


/* Header navigation: current page uses the same treatment as hover */
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_parent > a,
.primary-nav .current_page_ancestor > a{
  color:var(--yellow);
}

.primary-nav .current-menu-item > a:after,
.primary-nav .current-menu-parent > a:after,
.primary-nav .current-menu-ancestor > a:after,
.primary-nav .current_page_item > a:after,
.primary-nav .current_page_parent > a:after,
.primary-nav .current_page_ancestor > a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--yellow);
}


/* Keep Nyheter selected on the news index and individual news posts */
.blog .primary-nav .menu-item-object-page.current_page_parent > a,
.single-post .primary-nav .menu-item-object-page.current_page_parent > a{
  color:var(--yellow);
}
.blog .primary-nav .menu-item-object-page.current_page_parent > a:after,
.single-post .primary-nav .menu-item-object-page.current_page_parent > a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--yellow);
}

/* Bli medlem: full-width content and trip-booking-style form */
.page-id-0 {} /* harmless placeholder; slug-based selectors below are used when available */
body.page .standard-page-content:has(#membership-form){
  display:block;
  width:min(calc(100% - 36px),var(--max));
}
body.page .standard-page-content:has(#membership-form) .entry-card{
  width:100%;
  max-width:none;
}
body.page .standard-page-content:has(#membership-form) .sidebar{
  display:none;
}

.membership-form{
  margin-top:40px;
  border-top:5px solid var(--yellow);
  padding-top:28px;
}
.membership-form fieldset{
  border:0;
  padding:0;
  margin:0;
}
.membership-form legend{
  width:auto;
  margin:0 0 25px;
  padding:0;
  border:0;
  font-size:2rem;
  font-weight:950;
  text-transform:uppercase;
}
.membership-form .control-group{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:20px;
  margin-bottom:18px;
  align-items:start;
}
.membership-form .control-label{
  margin:0;
  padding-top:11px;
  font-weight:850;
}
.membership-form .controls input,
.membership-form .controls select,
.membership-form .controls textarea{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  border:1px solid #ccc;
  border-radius:10px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
}
.membership-form .controls textarea{
  min-height:130px;
  resize:vertical;
}
.membership-form .controls input:focus,
.membership-form .controls select:focus,
.membership-form .controls textarea:focus{
  outline:2px solid var(--yellow);
  outline-offset:1px;
  border-color:#111;
}
.membership-form .help-inline{
  display:block;
  color:var(--red);
  font-weight:800;
  margin-top:5px;
}
.membership-form .btn-primary{
  border:0;
  background:var(--red);
  color:#fff;
  border-radius:10px;
  padding:13px 22px;
  font-weight:950;
  text-transform:uppercase;
  cursor:pointer;
}
.membership-notification{
  background:var(--yellow);
  color:#111;
  padding:25px;
  border-radius:14px;
  font-weight:700;
  border-left:0;
}

@media(max-width:720px){
  body.page .standard-page-content:has(#membership-form){
    width:min(calc(100% - 26px),var(--max));
  }
  .membership-form .control-group{
    grid-template-columns:1fr;
    gap:5px;
  }
  .membership-form .control-label{
    padding-top:0;
  }
}

/* Nyheter: keep the menu item active on the news index and individual news posts */
body.blog .primary-nav .current_page_parent > a,
body.single-post .primary-nav .current_page_parent > a,
body.blog .primary-nav .menu-item-object-page.current_page_parent > a,
body.single-post .primary-nav .menu-item-object-page.current_page_parent > a{
  color:var(--yellow);
}

body.blog .primary-nav .current_page_parent > a:after,
body.single-post .primary-nav .current_page_parent > a:after,
body.blog .primary-nav .menu-item-object-page.current_page_parent > a:after,
body.single-post .primary-nav .menu-item-object-page.current_page_parent > a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--yellow);
}

/* Mobile navigation: open below the complete header so it never covers the logo */
@media(max-width:980px){
  .site-header{
    position:sticky;
  }
  .header-inner{
    position:relative;
  }
  .primary-nav{
    top:100%;
  }
}

@media(max-width:650px){
  .primary-nav{
    top:100%;
  }
}

/* Mobile Bli medlem CTA inside the navigation drawer */
.mobile-header-cta{
  display:none;
}

@media(max-width:980px){
  .primary-nav .mobile-header-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin-top:22px;
    min-height:48px;
    padding:12px 18px;
    background:var(--yellow);
    color:#111;
    border-radius:3px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.05em;
  }

  .primary-nav .mobile-header-cta:hover{
    color:#111;
    background:var(--yellow-2);
  }

  .primary-nav .mobile-header-cta:after{
    display:none;
  }
}

