@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* Force body to fill full height */
html {
    height: 100% !important;
}

body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    background-color: #ffffff !important; /* or whatever your original bg was */
}


body > .container {
    flex: 1;
}

.components-uptime-link {
    overflow: visible;
}
body.dark-mode {
    background-color: #161616 !important;
}
.pilot-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #170032;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

body.dark-mode .pilot-banner {
    background: #5839A8;
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.pilot-banner strong {
    font-weight: 700;
}

.pilot-banner-spacer {
    height: 56px;
}

.pilot-blink {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: #D4DAFF;
    box-shadow: 0 0 0 rgba(212, 218, 255, 0.6);
    animation: pilot-blink 1.1s infinite ease-in-out;
    vertical-align: middle;
}

body.dark-mode .pilot-blink {
    background: #cdb8ff;
    box-shadow: 0 0 0 rgba(205, 184, 255, 0.6);
}

@keyframes pilot-blink {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(212, 218, 255, 0.6);
    }
    50% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(212, 218, 255, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(212, 218, 255, 0.6);
    }
}

#logo {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #39195C;
    background-color: none !Important;
}

a[href="/"] {
    background-color: transparent !important;
}


body.dark-mode #logo path {
    fill: white;
}

.component-inner-container.main-group,
.component-inner-container.main-group * {
    pointer-events: auto !important;
    cursor: pointer;
}


/* === DEKORATIVE ILLUSTRASJONER === */
.illustrasjon {
    position: absolute;
    z-index: 10;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
    overflow: visible;
    display: none;
}


.illustrasjon-venstre path {
    color: #CFD4F9;
    opacity: 0.3;
}

.illustrasjon-hoyre path {
    color: #CFD4F9;
    opacity: 0.3;
}

body.dark-mode .illustrasjon-venstre path,
body.dark-mode .illustrasjon-hoyre path {
    color: #CFD4F9;
    opacity: 0.1;

}

/*
body.dark-mode .illustrasjon-venstre {
  filter: blur(10px);
} */
/* === TOOLTIP OVERFLOW FIX === */
.components-container,
.component-container,
.component-container.is-group,
.component-container.is-group.open,
.component-container.border-color.is-group,
.component-inner-container,
.component-inner-container.main-group,
.child-components-container {
    overflow: visible !important;
}

/* Tooltip z-index & visibility */
.tooltipster-base,
.tooltipster-sidetip,
.tooltipster-show {
    z-index: 999999 !important;
    overflow: visible !important;
}

.tooltip,
.tooltip .tooltip-inner,
.tooltipster-base,
.tooltipster-sidetip {
    pointer-events: none !important;
}
/* Prevent the button from toggling tooltip on click */
[data-js-hook="tooltip"],
.icon-indicator.tooltipstered {
    pointer-events: auto !important;
    cursor: default !important;
}

[data-js-hook="tooltip"]:focus,
[data-js-hook="tooltip"]:active {
    outline: none !important;
    pointer-events: none !important;
}


.tooltip {
    z-index: 999999 !important;
    overflow: visible !important;
}

/* Tooltip inner styling */
.tooltip .tooltip-inner {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    z-index: 999999 !important;
    position: relative !important;
}
.tooltip-inner {
    max-width: 100% !important;
    white-space: normal !important;  /* Allow text to wrap */
    word-wrap: break-word !important;
    text-align: left !important;
    padding: 8px 12px !important;
}

body.dark-mode .tooltip .tooltip-inner {
    background-color: #170032 !important;
    color: #D4DAFF !important;
}


.illustrasjon-venstre {
    top: 100px;
    left: -200px;
}

.illustrasjon-hoyre {
    top: 600px;
    right: -300px;
    overflow: visible;

}

/* === MOBIL: Skjul pÃ¥ smÃ¥ skjermer === */
@media (max-width: 1600px) {
    .illustrasjon {
        display: none;
    }
}

@media (max-width: 768px) {
    .illustrasjon {
        display: hidden;
        width: 80px;
        height: 80px;
        z-index: 10;
    }

    .illustrasjon-venstre {
        width: 100px;
        height: 100px;
        top: 10px;
        left: -50px;

    }

    .illustrasjon-hoyre {
        top: 30px;
        right: 0px;
    }
}

/* === GLOBAL: FONTER & LOGO === */
.logo {
    width: 150px;
    height: 32px;
    flex-shrink: 0;
}

/* === MAINTENANCE CONTAINER === */

.custom-maintenance-box {
    width: 100%;
    padding: 20px;
    background-color: white;
    border: 1px solid #c5d1f0;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #4d4d4d;
}

.scheduled-maintenances-container {
    padding: 20px;
    background-color: #ECF5FF;
    border: 1px solid #c5d1f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* === LAYOUT: CONTAINERS === */
.container-header {
    position: relative;
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none !important;
    padding: 50px 50px;
}

.container-header .container-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-header-container {
    margin-bottom: 0 !important;
}

.container {
    background-color: #F4F2F1;
    padding: 50px;
    border-radius: 50px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-top: 40px !important;
}

.container > * {
    max-width: 1200px;
    margin: 0 auto;
}

/* === HEADER === */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buttons-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === KNAPPER === */
#show-updates-dropdown {
    background: #170032 !important;
    color: #D4DAFF !important;
    padding: 10px 30px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/*
#show-updates-dropdown::after {
  content: 'Abonner pÃ¥ oppdateringer';
} */

#show-updates-dropdown:hover {
    background: #2F0F62 !important;
    color: #D4DAFF !important;
}

.website-btn {
    background: #170032;
    color: #D4DAFF;
    padding: 10px 30px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.website-btn:hover {
    background: #2F0F62;
    color: white;
}

.components-uptime-link {
    overflow: visible;
}

.icon {
    color: white !important;
    fill: white !important;
}

.website-btn .icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.website-btn:hover .icon {
    transform: translateX(4px);
}

.page-footer a[href="/"]:hover {
    background-color: black !important;
    color: #D4DAFF !important;
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(230, 0, 0, 0.2);
}

a[href$="/history"] {
    display: inline-flex;
    background-color: #35155D;
    color: #D4DAFF;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
}

a[href$="/history"]:hover,
a.history-footer-link:hover {
    background-color: black !important;
    color: #D4DAFF !important;
}

.current-status-arrow {
    padding-right: 4px;
}

#theme-toggle {
    border-radius: 100%;
    width: 14px;
    height: 14px;
    padding: 20px !important;
    transition: 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(15deg);
}

.website-btn .icon2 {
    display: inline-block;
    transition: transform 0.2s ease;
}

.website-btn:hover .icon2 {
    transform: rotate(15deg);
}

.website-btn .icon {
    display: inline-flex;
    align-items: center;
}

.website-btn svg {
    width: 20px;
    height: 20px;
}

body.status-history a[href="/history"] {
    display: none !important;
}


/* === STATUSBAR === */
.page-status {
    padding: 20px 50px !important;
    border-radius: 10px !important;
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    margin-bottom: 40px !important;
}

.page-status.status-none {
    border: 2px solid #28a45a !important;
}

.page-status.status-minor {
    border: 2px solid #ffd333;
}

.page-status.status-major {
    border: 2px solid #f58224;
}

.page-status.status-critical {
    border: 2px solid #e60000;
}

@media (max-width: 600px) {
    .page-status {
        margin: auto !important;
        margin-bottom: 40px !important;
        margin-top: 20px !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        padding: 10px 15px !important;
        border-radius: 10px !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        text-align: center;
        font-weight: 600;

    }

    .text-section {
        padding: 0 20px !important;
        text-align: justify;
    }
}

.page-status h2.status {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* Dark mode support (if body has dark-mode class) */
body.dark-mode .page-status {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.status {
    margin-bottom: 0 !important;
}

.pulsating-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    margin-bottom: 3px;
    border-radius: 50%;
    background-color: #c2f0c2;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2.5s infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
        background-color: #28a745;
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
        background-color: #7cf59d; /* lighter green pulse */
        filter: brightness(1.2);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        background-color: #28a745;
        filter: brightness(1);
    }
}

/* === CUSTOM STATUSBAR === */
.status-bar {
    width: 100%;
    padding: 25px 24px;
    margin-top: 40px;
    text-align: center;
    font-weight: 400;
    font-size: 32px !important;
    color: white !important;
    position: relative;
    border-radius: 10px;
}

.status-bar.operational {
    background-color: #21874A !important;
}

.status-bar.degraded {
    background-color: #FFC700 !important;
}

.status-bar.major-outage {
    background-color: #BF0001 !important;
}

.status-bar.maintenance {
    background-color: #FFC700 !important;
}

.status-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
}

.status-text {
    font-size: 15px;
    letter-spacing: 0.3px;
    color: white;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}


.maintenance-icon-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-wrench-icon {
    flex-shrink: 0;
    vertical-align: middle;
    transform: translateY(-1px);
}

.layout-content.status.status-index .components-section .component-statuses-legend {
    overflow: visible !important;
}

.component-statuses-legend {
    margin-top: 56px !important;
    padding-top: 24px !important;
}

.status-icon.operational {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;

}

.status-icon.issue {
    background-color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

.legend-item {
    font-size: 15px !important;
}

.icon-indicator {
    font-size: 18px !important;
}


/* === INNHOLD === */
.components-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    justify-content: start;
    align-items: start;
}

.shared-partial.uptime-90-days-wrapper {
    display: none !important;
}

.component-container {
    padding: 25px;
    width: 90% !important;
}

.component-container.border-color.is-group {
    margin: 8px auto;
    background-color: #ffffff;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.component-inner-container.main-group {
    cursor: default;
    pointer-events: none;
}

.component-inner-container.main-group * {
    cursor: default;
    pointer-events: none;
}

.component-container .component-inner-container.main-group.status-green::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #28a745;
}

.component-container .component-inner-container.main-group.status-red::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #DC3545;
}

/* === INCIDENTS === */
.unresolved-incident.impact-minor {
    border-radius: 20px;
}

.incident-title {
    border-radius: 20px 20px 0 0;
}

.text-section {
    margin-bottom: 20px !important;
}

.updates {
    background-color: white;
    border-radius: 0 0 20px 20px;
    padding: 50px !important;
}


/* === FOOTER === */
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.vedlikehold-text {
    margin: auto;
}

/* === Custom Component Design === */

/* Fjern status-stripen pÃ¥ siden */
.component-inner-container.main-group::before {
    display: none !important;
}

.component-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.component-inner-container {
    background: white;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    margin: 0 !important;
}

/*
.component-inner-container:hover {
  background-color: #f2f2f2;
} */

.component-inner-container.main-group {
    padding-left: 0px !important;
}

.child-components-container {
    padding-left: 0 !important;
    display: none !important;
}

.component-container.is-group.open .child-components-container {
    display: block !important;
}

/* Remove top border from the first one */
.component-inner-container:first-child {
    border-top: none;
}

/* Round top corners on first */
.component-inner-container:first-child {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* Round bottom corners on last */
.component-inner-container:last-child {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.main-group {
    background: #ffffff;
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    /* Generell padding */
    .custom-header,
    .header-content,
    .status-bar,
    .page-status {
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin: 0;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .text-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .component-inner-container.main-group .icon-indicator {
        display: none !important;
    }

    .component-inner-container,
    .component-inner-container.main-group {
        padding-left: 20px !important;
    }

    .child-components-container {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }

    .status-bar {
        margin-top: 20px;
    }

    .custom-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    /* Header layout */
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .logo {
        height: 28px;
        margin: 0 auto;

    }

    #theme-toggle {
        padding: 8px !important;
        width: 40px;
        height: 40px;
        border-radius: 100%;
        font-size: 20px;
        line-height: 1;
    }

    /* Andre linje: knappene side om side */
    .buttons-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    /* Container padding */
    .container {
        padding: 20px 20px 30px;
        width: 100%;
        border-radius: 20px;
    }

    /* Statusbar */
    .status-bar {
        padding: 16px 20px;
        font-size: 20px !important;
    }

    .status-text {
        font-size: 14px;
    }

    .powered-by {
        font-size: 10px;
    }

    .subscribe-btn,
    .website-btn,
    #show-updates-dropdown {
        padding: 10px 35px !important;
        font-size: 13px !important;
    }

    /* Statuskortene */
    .components-container {
        flex-direction: column !important;
        gap: 5px;
    }


    .component-inner-container .icon-indicator {
        display: inline-block !important;
        margin-right: 6px;
    }

    /* Skjuler teksten "Operational", "Degraded" osv pÃ¥ mobil */
    .component-inner-container .component-status {
        display: none !important;
    }

    .component-inner-container {
        flex-direction: row !important;
        align-items: center !important;
    }

    .status-text,
    .component-status-text {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        text-indent: 0 !important;
    }

    .component-statuses-legend {
        display: flex !important;
        justify-content: center;
        align-items: baseline;
        align-content: flex-start;
        flex-wrap: wrap;
        align-self: stretch;
        gap: 10px;
        margin-top: 20px;
        justify-content: center;
    }

    .component-statuses-legend .legend-item {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #333;
    }

    .icon-indicator {
        margin-bottom: 3px;
    }

}

.grouped-items-selector {
    left: auto !important;
}

/* Default: show moon, hide sun */
#theme-toggle .icon-sun {
    display: none;
}

#theme-toggle .icon-moon {
    display: inline-flex;
    align-items: center;
}

/* When dark mode active: show sun, hide moon */
#theme-toggle.is-dark .icon-sun {
    display: inline-flex;
}

#theme-toggle.is-dark .icon-moon {
    display: none;
}


@media (max-width: 480px) {
    .subscribe-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* === DARK MODE === */
body.dark-mode {
    background-color: #1A1A1A;
    color: #e0e0e0;
}

body.dark-mode .container-header,
body.dark-mode .custom-header,
body.dark-mode .header-content,
body.dark-mode .updates {
    background-color: #1A1A1A;
}

body.dark-mode .container {
    background-color: #262626;

}


body.dark-mode .logo path,
body.dark-mode .icon path {
    fill: #fff;
}

body.dark-mode .status-text,
body.dark-mode .vedlikehold-text,
body.dark-mode .footer-container,
body.dark-mode .component-inner-container,
body.dark-mode .custom-header-container,
body.dark-mode .component-container,
body.dark-mode .name,
body.dark-mode .component-inner-container.main-group,
body.dark-mode .child-components-container {
    color: #ffffff !important;
}


body.dark-mode .color-secondary,
body.dark-mode .text-section {
    color: #cccccc;
}

body.dark-mode .modal-content {
    color: black;
}

body.dark-mode .component-inner-container.status-green.main-group .name::before {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body.dark-mode .subscribe-btn,
body.dark-mode .website-btn {
    background-color: #5839A8;
    color: #D4DAFF;
}

body.dark-mode .website-btn:hover,
body.dark-mode .subscribe-btn:hover {
    background-color: #3C2178;
}

body.dark-mode #show-updates-dropdown {
    background: #5839A8 !important;
    color: #D4DAFF !important;
    border: none !important;
}

body.dark-mode #show-updates-dropdown:hover {
    background: #3C2178 !important;
}

body.dark-mode .updates-dropdown {
    color: black !important;
}

body.dark-mode .status-bar.operational {
    background-color: #21874A !important;
}

body.dark-mode .status-bar.degraded {
    background-color: #FFC700 !important;
}

body.dark-mode .status-bar.major-outage {
    background-color: #BF0001 !important;
}

body.dark-mode .status-bar.maintenance {
    background-color: #FFC700 !important;
}

body.dark-mode .status-icon.operational {
    background-color: #00C851;
}

body.dark-mode .status-icon.issue {
    background-color: #FFA500;
    animation: pulse 2s infinite;
}

body.dark-mode .status-bar.degraded .status-icon {
    background-color: #FFA500;
}

body.dark-mode .status-bar.major-outage .status-icon {
    background-color: #FF4444;
}

body.dark-mode .status-bar.maintenance .status-icon {
    background-color: #33b5e5;
}

/* === DARK MODE: Custom Component Design === */

body.dark-mode .component-inner-container {
    background: #2E2F36 !important;
    border-top: 1px solid #3a3b42 !important;
    color: #ffffff !important;
}

body.dark-mode .component-inner-container:first-child {
    border-top: none !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

body.dark-mode .component-inner-container:last-child {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

body.dark-mode .main-group {
    background: #2E2F36;
}

body.dark-mode .component-inner-container .name {
    color: #ffffff !important;
}

body.dark-mode .legend-item {
    color: white !important;
}

body.dark-mode .scheduled-maintenances-container,
body.dark-mode .scheduled-incidents-container {
    background-color: #2E2F36;
    border: 1px solid #3a3b42;
    color: #ffffff;
}

body.dark-mode .incident-title a {
    color: white !important;
}

/*
body.dark-mode .component-inner-container:hover {
  background-color: #3b3b45  !important;
} */

body.dark-mode .component-inner-container:not(.main-group) {
    border: 1px solid #3a3b42;
    border-top: none;
    background: #2E2F36 !important;
}

body.dark-mode .component-inner-container:not(.main-group):first-child {
    border-top: none !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

body.dark-mode .component-inner-container:not(.main-group):last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/*
body.dark-mode .component-inner-container:not(.main-group):hover {
  background-color: #3b3b45  !important;
} */

body.dark-mode .custom-maintenance-box {
    background-color: #2E2F36;
    border: 1px solid #3a3b42;
    color: #ffffff;
}


/* === HISTORY === */
body.dark-mode .message.incident-body.color-primary,
body.dark-mode .row.update-row,
body.dark-mode .update-title,
body.dark-mode .update-container,
body.dark-mode .update-body {
    color: #bfbfbf !important;
}

body.dark-mode a[href$="/history"] {
    background-color: #5839A8 !important;
    color: #D4DAFF !important;
    border-color: #9911ee !important;
}

body.dark-mode a[href$="/history"]:hover,
body.dark-mode a.history-footer-link:hover {
    background-color: #3C2178 !important;
    color: #D4DAFF !important;
    border-color: #9911ee !important;
}


button:focus {
    outline: none;
}


.availability-time-line-graphic {
    display: none;
}

/* === SPØRSMÅLSTEGN-IKON (tooltip-knapp ved siden av komponentnavn) === */
.tooltip-base {
    background: transparent;
    border: 1px solid #8B7AAE;
    color: #5E5079;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}


body.dark-mode .tooltip-base {
    border-color: #D6D0F1;
    color: #D6D0F1 !important;
}

/* === KOMPONENTGRUPPER === */

/* Alle grupper: hvit bakgrunn, diskret ramme */
.component-container.is-group {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    margin-bottom: 8px;
}

/* Åpen gruppe: litt mørkere grå ramme, behold avrunding */
.component-container.is-group.open {
    border: 1px solid #cccccc !important;
    border-radius: 12px !important;
}

.component-container.border-color.is-group.open {
    border-radius: 12px !important;
}

body.dark-mode .component-container.is-group {
    background: #2E2F36 !important;
    border: 1px solid #3a3b42 !important;
}

body.dark-mode .component-container.is-group.open {
    border: 1px solid #555 !important;
}

/* Gruppe-header: hvit, ingen ekstra bakgrunn */
.component-inner-container.main-group {
    background: #ffffff !important;
    padding: 14px 20px !important;
}

body.dark-mode .component-inner-container.main-group {
    background: #2E2F36 !important;
}

/* Tooltip-popup alltid over alt */
.tooltipster-base,
.tooltipster-sidetip,
.tooltipster-show {
    z-index: 999999 !important;
}

/* Sørg for at ingenting i headeren lager ny stacking context over tooltip */
.container-header {
    z-index: auto !important;
    isolation: auto !important;
}

.pilot-banner-spacer {
    z-index: auto !important;
}

/* === DARK MODE: Tet-tokens === */
body.dark-mode {
    background-color: #161616;
    color: #D6D0F1;
}

body.dark-mode .container-header,
body.dark-mode .custom-header,
body.dark-mode .header-content {
    background-color: #161616 !important;
}

body.dark-mode .container {
    background-color: #202126 !important;
}

body.dark-mode .component-inner-container {
    background: #2E2F36 !important;
    border-top: 1px solid #3a3b42 !important;
    color: #D6D0F1 !important;
}

body.dark-mode .component-inner-container .name {
    color: #ffffff !important;
}

body.dark-mode .website-btn,
body.dark-mode .subscribe-btn,
body.dark-mode #show-updates-dropdown {
    background-color: #403573 !important;
    color: #D6D0F1 !important;
    border: none !important;
}

body.dark-mode .website-btn:hover,
body.dark-mode .subscribe-btn:hover,
body.dark-mode #show-updates-dropdown:hover {
    background-color: #733DE6 !important;
    color: #ffffff !important;
}

/* =============================================
   TET Digital Footer
   ============================================= */

:root {
    --tet-bg: #1A112C;
    --tet-text: #D4DAFF;
    --tet-heading: #A89ED4;
    --tet-accent: #D4DAFF;
}

.page-footer,
.footer-container,
body > footer,
.powered-by {
    display: none !important;
}

.tet-footer {
    flex-shrink: 0 !important;
    background-color: var(--tet-bg) !important;
    box-shadow: 0 500px 0 500px var(--tet-bg) !important;
    color: var(--tet-text);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 48px 40px;
    box-sizing: border-box;
    margin-top: 48px !important;
}

.tet-footer__inner {
    max-width: 800px !important; /* Controls how close to center they sit */
    margin: 0 auto !important; /* Centers the whole inner block */
    display: flex !important;
    flex-direction: column !important;
    gap: 48px !important;
}

.tet-footer__top {
    display: flex !important;
    justify-content: space-between !important; /* Logo left, contact right */
    align-items: center !important;
    gap: 64px !important;
}


.tet-footer__logo {
    color: var(--tet-accent);
    text-decoration: none;
}

.tet-footer__logo svg {
    width: 95px;
    height: auto;
}

.tet-footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.tet-footer__col {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tet-footer__col-heading {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tet-heading);
    font-size: 14px;
    font-weight: 500;
}

.tet-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tet-footer__list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--tet-text);
}

.tet-footer__list a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.tet-footer__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}

.tet-footer__list a:hover::after {
    transform: scaleX(1);
}

.tet-footer__shape {
    background: var(--tet-accent);
    display: inline-block;
}

.tet-footer__shape--square {
    width: 10px;
    height: 10px;
}

.tet-footer__shape--line {
    width: 10px;
    height: 2px;
}

.tet-footer__shape--circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tet-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tet-footer__deco {
    background: var(--tet-accent);
}

.tet-footer__deco--square {
    width: 28px;
    height: 28px;
}

.tet-footer__deco--line {
    width: 28px;
    height: 4px;
}

.tet-footer__deco--circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .tet-footer {
        padding: 40px 24px 32px;
        margin-top: 32px;
    }

    .tet-footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .tet-footer__cols {
        flex-direction: column;
        gap: 24px;
    }

    .tet-footer__inner {
        gap: 40px;
    }

    .tet-footer__logo svg {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .tet-footer {
        padding: 40px 24px 32px;
        margin-top: auto; /* ← was 32px */
    }
}

@media (min-width: 769px) and (max-width: 1280px) {
    .tet-footer {
        margin-top: auto; /* ← was 40px */
        padding: 48px 48px 40px;
    }
}

@media (min-width: 1281px) and (max-width: 1920px) {
    .tet-footer {
        margin-top: auto; /* ← was 32px */
        padding: 40px 48px 32px;
    }
}

@media (min-width: 1921px) {
    .tet-footer {
        margin-top: auto; /* ← was 24px */
        padding: 32px 48px 24px;
    }
}