/*!
 * Grensepakke brand colours (2026-10-24, DEV): navy primary + red accent, taken from the new logo.
 * Navy #10244D (white text 15.2:1), red #DC1428 (white text 5.0:1, AA). Loaded last in public + admin heads.
 * Dark mode: lighter navy tints for links/text, lighter red #ff6b78 for red text (6.7:1 on #0e1417).
 */
:root{
  --gp-navy:#10244d; --gp-navy-hover:#0b1a3a; --gp-navy-link:#122e67; --gp-navy-tint:#edf2fc;
  --gp-red:#dc1428; --gp-red-hover:#b8101f; --gp-red-text:#c8102e;
  --bs-primary:#10244d; --bs-primary-rgb:16,36,77;
  --bs-link-color:#122e67; --bs-link-color-rgb:18,46,103; --bs-link-hover-color:#0b1a3a; --bs-link-hover-color-rgb:11,26,58;
  --bs-primary-text-emphasis:#0b1a3a; --bs-primary-bg-subtle:#dfe6f5; --bs-primary-border-subtle:#b7c5e6;
  --bs-danger:#dc1428; --bs-danger-rgb:220,20,40;
}
h1,h2,h3,.h1,.h2,.h3{color:var(--gp-navy)}
.btn-primary{--bs-btn-bg:#10244d;--bs-btn-border-color:#10244d;--bs-btn-hover-bg:#0b1a3a;--bs-btn-hover-border-color:#0b1a3a;--bs-btn-active-bg:#081430;--bs-btn-active-border-color:#081430;--bs-btn-disabled-bg:#10244d;--bs-btn-disabled-border-color:#10244d;--bs-btn-focus-shadow-rgb:16,36,77;--bs-btn-color:#fff;--bs-btn-hover-color:#fff}
.btn-outline-primary{--bs-btn-color:#10244d;--bs-btn-border-color:#10244d;--bs-btn-hover-bg:#10244d;--bs-btn-hover-border-color:#10244d;--bs-btn-active-bg:#10244d;--bs-btn-active-border-color:#10244d;--bs-btn-hover-color:#fff;--bs-btn-focus-shadow-rgb:16,36,77}
.btn-link{--bs-btn-color:#122e67;--bs-btn-hover-color:#0b1a3a}
.text-primary{color:#10244d!important}.bg-primary{background-color:#10244d!important}.border-primary{border-color:#10244d!important}
.link-primary{color:#122e67!important}
.nav-pills{--bs-nav-pills-link-active-bg:#10244d}.nav-link{--bs-nav-link-color:#122e67;--bs-nav-link-hover-color:#0b1a3a}
.pagination{--bs-pagination-color:#122e67;--bs-pagination-active-bg:#10244d;--bs-pagination-active-border-color:#10244d}
.form-check-input:checked{background-color:#10244d;border-color:#10244d}
.form-control:focus,.form-select:focus{border-color:#7f95c6;box-shadow:0 0 0 .25rem rgba(16,36,77,.25)}
.dropdown-menu{--bs-dropdown-link-active-bg:#10244d}
.progress,.progress-stacked{--bs-progress-bar-bg:#10244d}
/* Red accent: key CTAs, highlights, badges */
.gp-hero6-btn,.btn-primary.btn-lg.rounded-pill,.mp-pay-all,.btn-primary.btn-lg.w-100,.gp-pay-btn,.btn-accent{--bs-btn-bg:#dc1428;--bs-btn-border-color:#dc1428;--bs-btn-hover-bg:#b8101f;--bs-btn-hover-border-color:#b8101f;--bs-btn-active-bg:#9e0d1a;--bs-btn-active-border-color:#9e0d1a;--bs-btn-focus-shadow-rgb:220,20,40;--bs-btn-color:#fff;--bs-btn-hover-color:#fff;background-color:#dc1428!important;border-color:#dc1428!important;color:#fff!important}
.gp-hero6-btn:hover,.btn-primary.btn-lg.rounded-pill:hover,.mp-pay-all:hover,.btn-primary.btn-lg.w-100:hover,.btn-accent:hover{background-color:#b8101f!important;border-color:#b8101f!important}
.badge.bg-primary:not(.gp-hours-badge),.badge.bg-danger{background-color:#dc1428!important;color:#fff!important}
.gp-hours-badge.bg-primary{background-color:#10244d!important}
.text-accent,.gp-highlight{color:#c8102e!important}
mark,.mark{background-color:#fde3e6;color:#10244d}

/* Dark mode (same two scopes as dark.css) */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) h1,:root:not([data-theme="light"]) h2,:root:not([data-theme="light"]) h3,:root:not([data-theme="light"]) .h1,:root:not([data-theme="light"]) .h2,:root:not([data-theme="light"]) .h3{color:#d9e2f5}
  :root:not([data-theme="light"]){--bs-link-color:#abc0ea;--bs-link-hover-color:#cedaf3;--bs-primary-text-emphasis:#abc0ea;--bs-primary-bg-subtle:#0b152b;--bs-primary-border-subtle:#203f80}
  :root:not([data-theme="light"]) .text-primary{color:#abc0ea!important}
  :root:not([data-theme="light"]) .btn-outline-primary{--bs-btn-color:#abc0ea;--bs-btn-border-color:#7294dc;--bs-btn-hover-bg:#1d3a74;--bs-btn-hover-border-color:#7294dc;color:#abc0ea}
  :root:not([data-theme="light"]) .text-accent,:root:not([data-theme="light"]) .gp-highlight,:root:not([data-theme="light"]) .text-danger{color:#ff6b78!important}
  :root:not([data-theme="light"]) .badge.bg-info{background-color:#9db4e8!important;color:#060d1a!important}
  :root:not([data-theme="light"]) mark{background-color:#5a1a22;color:#fff}
}
:root[data-theme="dark"] h1,:root[data-theme="dark"] h2,:root[data-theme="dark"] h3,:root[data-theme="dark"] .h1,:root[data-theme="dark"] .h2,:root[data-theme="dark"] .h3{color:#d9e2f5}
:root[data-theme="dark"]{--bs-link-color:#abc0ea;--bs-link-hover-color:#cedaf3;--bs-primary-text-emphasis:#abc0ea;--bs-primary-bg-subtle:#0b152b;--bs-primary-border-subtle:#203f80}
:root[data-theme="dark"] .text-primary{color:#abc0ea!important}
:root[data-theme="dark"] .btn-outline-primary{--bs-btn-color:#abc0ea;--bs-btn-border-color:#7294dc;--bs-btn-hover-bg:#1d3a74;--bs-btn-hover-border-color:#7294dc;color:#abc0ea}
:root[data-theme="dark"] .text-accent,:root[data-theme="dark"] .gp-highlight,:root[data-theme="dark"] .text-danger{color:#ff6b78!important}
:root[data-theme="dark"] .badge.bg-info{background-color:#9db4e8!important;color:#060d1a!important}
:root[data-theme="dark"] mark{background-color:#5a1a22;color:#fff}
/* ===== Backgrounds (2026-10-24 d, DEV) ===== */
:root{--gp-hero6-bg:linear-gradient(180deg,#ffffff 0%,#edf2fc 100%);--gp-hero6-arc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q720 -60 1440 300' fill='none' stroke='%2310244d' stroke-opacity='0.045' stroke-width='38'/%3E%3Cpath d='M120 318 Q720 20 1320 318' fill='none' stroke='%23dc1428' stroke-opacity='0.22' stroke-width='5'/%3E%3C/svg%3E");--gp-hero-arc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q720 -60 1440 300' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='38'/%3E%3Cpath d='M120 318 Q720 20 1320 318' fill='none' stroke='%23dc1428' stroke-opacity='0.7' stroke-width='5'/%3E%3C/svg%3E");--gp-hero-ov:linear-gradient(135deg,rgba(16,36,77,.90),rgba(16,36,77,.66));--gp-alt-bg:#edf2fc;--gp-foot-bg:#10244d;--gp-card-shadow:0 2px 10px rgba(16,36,77,.08);--gp-card-border:rgba(16,36,77,.12)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--gp-hero6-bg:linear-gradient(180deg,#161b26 0%,#0f1b35 100%);--gp-hero6-arc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q720 -60 1440 300' fill='none' stroke='%23abc0ea' stroke-opacity='0.05' stroke-width='38'/%3E%3Cpath d='M120 318 Q720 20 1320 318' fill='none' stroke='%23ff6b78' stroke-opacity='0.25' stroke-width='5'/%3E%3C/svg%3E");--gp-hero-ov:linear-gradient(135deg,rgba(11,21,43,.92),rgba(29,58,116,.80));--gp-alt-bg:#131a29;--gp-foot-bg:#0b152b;--gp-card-shadow:0 2px 12px rgba(0,0,0,.45);--gp-card-border:#2a3550}}
:root[data-theme="dark"]{--gp-hero6-bg:linear-gradient(180deg,#161b26 0%,#0f1b35 100%);--gp-hero6-arc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q720 -60 1440 300' fill='none' stroke='%23abc0ea' stroke-opacity='0.05' stroke-width='38'/%3E%3Cpath d='M120 318 Q720 20 1320 318' fill='none' stroke='%23ff6b78' stroke-opacity='0.25' stroke-width='5'/%3E%3C/svg%3E");--gp-hero-ov:linear-gradient(135deg,rgba(11,21,43,.92),rgba(29,58,116,.80));--gp-alt-bg:#131a29;--gp-foot-bg:#0b152b;--gp-card-shadow:0 2px 12px rgba(0,0,0,.45);--gp-card-border:#2a3550}
/* one red line: only under the menu bar */
.navbar{border-bottom:0!important}
.navbar:has(.navbar-collapse){border-bottom:3px solid #dc1428!important}
/* Home hero: soft navy gradient + logo arc */
html:root:not(#gpx) body .gp-hero6{background:var(--gp-hero6-arc) center bottom/100% 38% no-repeat,var(--gp-hero6-bg)!important;border-bottom:0!important}
/* Inner page banner band */
html:root:not(#gpx) body .hero-bg{background:var(--gp-hero-arc) center bottom/100% 55% no-repeat,var(--gp-hero-ov),url('../img/hero.webp') center/cover no-repeat!important;color:#fff}
.hero-bg h1,.hero-bg h2,.hero-bg .h1,.hero-bg p,.hero-bg .lead{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)}
/* Alternating sections */
.gp-home-features,.gp-home-register,.gp-alt-section{background:var(--gp-alt-bg)!important}
/* Cards */
.card,.gp-feature-card,.gp-gk-tier-card,.gp-hero6-trust li{border-color:var(--gp-card-border)!important;box-shadow:var(--gp-card-shadow)}
/* Footer: navy, light text, thin red line following the arc */
html:root body footer.border-footer{background-color:var(--gp-foot-bg)!important;border-top-color:var(--gp-foot-bg)!important;box-shadow:0 -3px 0 #dc1428;color:#e6ecf7!important}
html:root body footer.border-footer :is(p,span,small,div,li,.text-muted,h2,h3,h4,h5,h6){color:#d3dcee!important}
html:root body footer.border-footer a,html:root body footer.border-footer .footer-links a,html:root body footer.border-footer a.text-muted{color:#ffffff!important}
html:root body footer.border-footer a:hover{color:#ffb3ba!important}
html:root body footer.border-footer .footer-contact-link{color:#fff!important;background-color:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.35)!important}
html:root body footer.border-footer .footer-sep{color:#7f95c6!important}
/* ===== Home hero on navy (2026-10-24 e, DEV) ===== */
html:root:not(#gpx) body .gp-hero6{background:var(--gp-hero-arc) center bottom/100% 42% no-repeat,var(--gp-hero-ov),url('../img/hero.webp') center/cover no-repeat!important;color:#fff;padding-bottom:2.2rem!important}
html:root:not(#gpx) body .gp-hero6 :is(.gp-hero6-title,.gp-hero6-sub,.gp-hero6-login){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.3)}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-sub{color:#e6ecf7!important}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-login{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-login a{display:inline-block;color:#fff!important;border:2px solid rgba(255,255,255,.85);border-radius:50rem;padding:.3rem 1.1rem;text-decoration:none;text-shadow:none}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-login a:hover,html:root:not(#gpx) body .gp-hero6 .gp-hero6-login a:focus-visible{background:#fff;color:#10244d!important}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-btn{box-shadow:0 4px 14px rgba(0,0,0,.3)}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-trust li{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.28)!important;color:#fff!important;box-shadow:none;backdrop-filter:blur(2px)}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-trust i,html:root:not(#gpx) body .gp-hero6 .gp-hero6-google a{color:#fff!important}
html:root:not(#gpx) body .gp-hero6 .gp-hero6-google a:hover{background:rgba(255,255,255,.14)!important}
@media (max-width:575.98px){html:root:not(#gpx) body .gp-hero6{padding-top:1.4rem!important}html:root:not(#gpx) body .gp-hero6 .gp-hero6-btn{width:100%;min-width:0}}
/* "Bestill fra EU" band: fixed backgrounds are ignored/janky on touch devices -> scroll there */
@media (max-width:991.98px),(hover:none){.almost-footer-bg{background-attachment:scroll!important}}
.almost-footer-bg{background-image:linear-gradient(rgba(16,36,77,.45),rgba(16,36,77,.72)),url('../img/svinesund.webp')!important}
.almost-footer-bg :is(h1,h2,h3,p){text-shadow:0 2px 6px rgba(0,0,0,.45)}
.almost-footer-bg,.almost-footer-bg :is(h1,h2,h3,h4,p,.display-1,.display-2,.display-3,.display-4,.lead){color:#fff!important}
/* Footer: straight top (no arc), thin straight red line (2026-10-24 h) */
html:root:not(#gpx) body footer.border-footer{border-radius:0!important;border-top:3px solid #dc1428!important;box-shadow:none!important}
