/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #3a3a3a;
    background: #f5f6f8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { max-width: 100%; }

/* === Layout shell === */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === Sidebar === */
.sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #e8eaed;
    transition: width 0.2s ease, min-width 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.sidebar.collapsed {
    width: 68px;
    min-width: 68px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 8px;
    gap: 8px;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 0 8px;
}

.sidebar-logo-link { display: flex; align-items: center; flex: 1; min-width: 0; }
.sidebar-logo { height: 20px; width: auto; }

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #9D9D9D;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.toggle-btn:hover { background: #f0f2f5; color: #3a3a3a; }

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar.collapsed .sidebar-nav { padding: 8px 0; align-items: center; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 9px;
    width: 46px;
}

.sidebar-link:hover { background: #f0f2f5; color: #3a3a3a; }

.sidebar-link.active { background: #eef3f6; color: #4a7080; }

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #9D9D9D;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.sidebar-link:hover .sidebar-icon { color: #6b6b6b; }
.sidebar-link.active .sidebar-icon { background: #7F97A5; color: #ffffff; }

.icon { width: 20px; height: 20px; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e8eaed;
}
.sidebar.collapsed .sidebar-footer { padding: 12px; display: flex; justify-content: center; }

.sidebar-user { display: flex; align-items: center; gap: 10px; }

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7F97A5, #5e7a88);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username { font-size: 13px; font-weight: 500; color: #3a3a3a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-role { font-size: 11px; color: #9D9D9D; text-transform: capitalize; }

.logout-form { margin-top: 8px; padding: 0 2px; }
.logout-btn { font-size: 12px; color: #9D9D9D; transition: color 0.15s; padding: 0; }
.logout-btn:hover { color: #F78B2A; }

/* === Main content === */
.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

.main-body {
    flex: 1 0 auto;
    padding: 56px 36px 32px;
}

/* === Footer === */
.site-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    padding: 14px 36px;
    background: #fff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 12px;
    color: #9d9d9d;
}

.footer-inner a {
    color: #9d9d9d;
}

.footer-inner a:hover {
    color: #3a3a3a;
}

.footer-sep {
    color: #d1d5db;
}

/* === Page header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #2a2a2a;
    outline: none;
}

.page-subtitle {
    font-size: 14px;
    color: #9D9D9D;
    margin-top: 8px;
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9D9D9D;
    margin-bottom: 4px;
    width: 100%;
}
.breadcrumb a { color: #7F97A5; }
.breadcrumb a:hover { text-decoration: underline; }

/* === City grid (Produkter) === */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.city-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.city-card:hover { border-color: #7F97A5; box-shadow: 0 2px 12px rgba(127,151,165,0.15); transform: translateY(-1px); }

.city-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7F97A5;
}
.city-card-icon svg { width: 22px; height: 22px; }

.city-card-body { flex: 1; min-width: 0; }
.city-card-name { font-size: 15px; font-weight: 600; color: #2a2a2a; }
.city-card-desc { font-size: 12px; color: #9D9D9D; margin-top: 2px; }

.city-card-arrow { font-size:16px; color:#c8cdd3; flex-shrink:0; }
.city-card:hover .city-card-arrow { color: #7F97A5; }

/* === Year folders === */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px 20px;
}

.year-folder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f6;
    border: 1px solid #cddae0;
    border-radius: 0 10px 10px 10px;
    padding: 28px 16px 24px;
    text-decoration: none;
    color: #4a7080;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.15s ease;
    margin-top: 14px;
}

.year-folder::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -1px;
    width: 48%;
    height: 14px;
    background: #eef3f6;
    border: 1px solid #cddae0;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.year-folder:hover {
    background: #dce7ed;
    border-color: #7F97A5;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(127, 151, 165, 0.2);
}

.year-folder:hover::before {
    background: #dce7ed;
    border-color: #7F97A5;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #7F97A5;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.15s ease;
    text-decoration: none;
}
.btn-primary:hover { background: #6b8290; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f0f2f5;
    color: #3a3a3a;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.15s ease;
    text-decoration: none;
}
.btn-secondary:hover { background: #e2e5ea; }
.landing-hero-ctas .btn-secondary { background: #dde1e6; color: #2a2a2a; }
.landing-hero-ctas .btn-secondary:hover { background: #cdd2d8; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #9D9D9D;
    transition: all 0.15s;
}
.btn-icon:hover { background: #f0f2f5; color: #3a3a3a; }
.btn-icon.danger:hover { background: #fef2f2; color: #dc2626; }
.btn-icon svg { width: 16px; height: 16px; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #5a5a5a; margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d4d8dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #3a3a3a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-input:focus { border-color: #7F97A5; box-shadow: 0 0 0 3px rgba(127,151,165,0.12); }
.form-input:disabled { background: #f5f6f8; color: #9D9D9D; }
.form-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.checkbox-label input { accent-color: #7F97A5; width: 15px; height: 15px; }

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title { font-size: 18px; font-weight: 700; color: #2a2a2a; margin-bottom: 20px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* === Tables === */
.user-table-wrap {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}

.user-table { width: 100%; border-collapse: collapse; }
.user-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9D9D9D;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
}
.user-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f0f2f5; }
.user-table tr:last-child td { border-bottom: none; }
.user-table tr:hover td { background: #fafbfc; }

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.role-badge.admin { background: #eef3f6; color: #4a7080; }
.role-badge.user { background: #f0f2f5; color: #6b6b6b; }

/* === Landing page (redesign) === */
@keyframes asPinDrop { 0% { opacity:0; transform:translateY(-10px); } 100% { opacity:1; transform:translateY(0); } }
@keyframes asFade { from { opacity:0; } to { opacity:1; } }
@keyframes asPop { from { opacity:0; transform:translateY(8px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.as-pin { transform-box:fill-box; transform-origin:center bottom; animation:asPinDrop .4s cubic-bezier(0.16,1,0.3,1) backwards; }
.as-link-row:hover .as-arrow { transform:translateX(4px); }

.landing-shell { min-height:100vh; display:flex; flex-direction:column; background:linear-gradient(135deg,#eef3f6 0%,#f5f6f8 50%,#e8edf0 100%); }
.landing-topbar { display:flex; align-items:center; justify-content:space-between; padding:16px 36px; border-bottom:1px solid #e8eaed; background:#ffffff; position:sticky; top:0; z-index:10; }
.landing-logo-link { display:flex; align-items:center; }
.landing-logo { height:20px; width:auto; }
.landing-main { flex:1 0 auto; }

.btn-login { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; background:#F78B2A; color:#ffffff; font-size:13px; font-weight:600; border-radius:8px; transition:background .15s; text-decoration:none; }
.btn-login:hover { background:#e07a1f; }

.landing-hero { padding:80px 36px 40px; max-width:760px; margin:0 auto; text-align:center; }
.landing-eyebrow { display:inline-block; font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:#7F97A5; background:#ffffff; border:1px solid #e8eaed; padding:6px 14px; border-radius:999px; margin-bottom:24px; }
.landing-hero-title { font-size:40px; font-weight:700; color:#2a2a2a; margin-bottom:18px; line-height:1.2; letter-spacing:-0.01em; }
.landing-hero-sub { font-size:17px; color:#6b6b6b; line-height:1.6; max-width:560px; margin:0 auto 32px; }
.landing-hero-ctas { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.landing-hero-ctas .btn-login { padding:11px 24px; font-size:14px; border-radius:10px; }


.landing-section { padding:24px 36px 56px; max-width:860px; margin:0 auto; }
.landing-section-title { font-size:22px; font-weight:700; color:#2a2a2a; margin-bottom:8px; }
.landing-section-sub { font-size:14px; color:#6b6b6b; margin-bottom:28px; max-width:560px; }

/* Neste rapport */
.landing-next-report { padding: 0 36px 40px; max-width: 860px; margin: 0 auto; }
.next-report-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #f0a85e 0%, #F9BC84 100%);
    border-radius: 16px;
    padding: 24px 28px;
}
.next-report-left { display: flex; flex-direction: column; gap: 6px; }
.next-report-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.next-report-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F78B2A;
    box-shadow: 0 0 0 3px rgba(247,139,42,0.25);
    flex-shrink: 0;
}
.next-report-date {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.next-report-products {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}
.next-report-cta { flex-shrink: 0; }

.product-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.product-card { background:#ffffff; border:1px solid #e8eaed; border-radius:14px; padding:26px; transition:all .18s cubic-bezier(0.16,1,0.3,1); }
.product-card:hover { border-color:#7F97A5; box-shadow:0 6px 22px rgba(127,151,165,0.18); transform:translateY(-2px); }
.product-card--clickable { cursor:pointer; display:flex; flex-direction:column; }
.product-card-icon { width:46px; height:46px; border-radius:12px; background:#eef3f6; display:flex; align-items:center; justify-content:center; color:#7F97A5; margin-bottom:16px; font-size:22px; }
.product-card-name { font-size:15px; font-weight:600; color:#2a2a2a; margin-bottom:8px; }
.product-card-desc { font-size:13px; color:#9d9d9d; line-height:1.55; margin-bottom:16px; }
.product-card-link { margin-top:auto; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#7F97A5; transition:gap .15s; }
.product-card-link:hover { gap:10px; }
.product-card-link .as-arrow { transition:transform .15s; }

/* Om oss — to-kolonne layout */
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.about-eyebrow { font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#7F97A5; margin-bottom:12px; }
.about-heading { font-size:26px; font-weight:700; color:#2a2a2a; line-height:1.25; margin-bottom:20px; letter-spacing:-0.01em; }
.about-text-col p { font-size:15px; color:#555; line-height:1.7; margin-bottom:14px; }
.about-team-col { display:flex; flex-direction:column; gap:12px; }
.about-team-card { display:flex; align-items:center; gap:14px; background:#ffffff; border:1px solid #e8eaed; border-radius:12px; padding:16px 18px; text-align:left; }
.about-team-avatar { width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,#7F97A5,#5e7a88); color:#ffffff; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:600; flex-shrink:0; overflow:hidden; }
.about-team-avatar img { width:100%; height:100%; object-fit:cover; }
.about-team-card .team-info { text-align: left; align-items: flex-start; }
.about-team-card .team-name { text-align: left; }
.about-team-card .team-title { text-align: left; }
.about-team-card .team-email { text-align: left; }

.about-section { max-width:720px; margin-bottom:36px; }
.about-section p { font-size:15px; color:#555; line-height:1.7; margin-bottom:14px; }

.landing-section--cta { padding-bottom:72px; }
.login-cta { background:#eef3f6; border-radius:16px; padding:48px 40px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; }
.login-cta-title { font-size:22px; font-weight:700; color:#2a2a2a; }
.login-cta-sub { font-size:15px; color:#6b6b6b; max-width:460px; line-height:1.6; }
.login-cta-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:6px; }
.login-cta-actions .btn-login { padding:11px 24px; font-size:14px; border-radius:10px; }

.map-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; z-index:500; padding:20px; animation:asFade .15s ease; }
.map-modal { background:#ffffff; border-radius:18px; width:100%; max-width:700px; max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,0.18); animation:asPop .25s cubic-bezier(0.16,1,0.3,1); }
.map-modal-header { display:flex; align-items:flex-start; justify-content:space-between; padding:28px 28px 0; }
.map-modal-eyebrow { font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:#7F97A5; margin-bottom:8px; }
.map-modal-title { font-size:20px; font-weight:700; color:#2a2a2a; }
.map-modal-sub { font-size:13px; color:#9d9d9d; margin-top:6px; max-width:380px; line-height:1.5; }
.map-modal-close { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; color:#9d9d9d; flex-shrink:0; border:none; background:none; cursor:pointer; }
.map-modal-close:hover { background:#f0f2f5; }
.map-modal-body { display:flex; flex-wrap:wrap; gap:24px; align-items:center; padding:20px 28px 32px; }
.map-col { flex:1 1 240px; display:flex; justify-content:center; min-width:220px; }
.norge-kart-wrap { position:relative; display:inline-block; }
.norge-kart { width:100%; max-width:280px; height:auto; }
@keyframes asMapPinDrop { from { opacity:0; transform:translateX(-50%) translateY(calc(-100% - 10px)); } to { opacity:1; transform:translateX(-50%) translateY(-100%); } }
.as-map-pin { position:absolute; font-size:22px; line-height:1; transform:translateX(-50%) translateY(-100%); animation:asMapPinDrop .4s cubic-bezier(0.16,1,0.3,1) backwards; }
.map-legend { flex:1 1 220px; min-width:200px; display:flex; flex-direction:column; gap:2px; }
.map-legend-item { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px; }
.map-legend-item--active { background:#f8f9fb; }
.map-city { font-size:14px; font-weight:600; color:#2a2a2a; }
.map-region { font-size:12px; color:#9d9d9d; }

.landing-products-link { display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:600; color:#7F97A5; transition:gap .15s; }
.landing-products-link:hover { gap:12px; color:#4a7080; }
.landing-products-link .as-arrow { transition:transform .15s; }

/* VareProdukter-kort (beholdes for /vare-produkter) */
.landing-products { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.landing-product-card { background:#ffffff; border:1px solid #e8eaed; border-radius:14px; padding:24px; display:flex; flex-direction:column; gap:10px; }
.landing-product-icon { width:44px; height:44px; border-radius:12px; background:#eef3f6; display:flex; align-items:center; justify-content:center; color:#7F97A5; flex-shrink:0; font-size:22px; }
.landing-product-icon svg { width:22px; height:22px; }
.landing-product-name { font-size:15px; font-weight:600; color:#2a2a2a; }
.landing-product-desc { font-size:13px; color:#9D9D9D; line-height:1.5; }
.landing-links { display:flex; flex-direction:column; gap:14px; }

/* === Bestill prisrapport === */
.bestill-layout { display: flex; flex-direction: column; gap: 24px; }
.bestill-map-wrap { display: flex; flex-direction: column; gap: 10px; }
.bestill-hint { font-size: 13px; color: #9D9D9D; }
.bestill-hint--ok { color: #4a7080; }
.bestill-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.bestill-success { display: flex; align-items: flex-start; gap: 16px; background: #eef3f6; border-radius: 14px; padding: 24px; max-width: 540px; }
.bestill-success svg { width: 28px; height: 28px; color: #4a7080; flex-shrink: 0; margin-top: 2px; }
.bestill-success strong { font-size: 15px; color: #2a2a2a; }
.bestill-success p { font-size: 13px; color: #6b6b6b; margin-top: 4px; }

/* === Admin grid === */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.admin-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.admin-card:hover { border-color: #7F97A5; box-shadow: 0 2px 12px rgba(127,151,165,0.15); transform: translateY(-1px); }
.admin-card svg { width: 28px; height: 28px; color: #7F97A5; }
.admin-card h3 { font-size: 15px; font-weight: 600; color: #2a2a2a; }
.admin-card p { font-size: 13px; color: #9D9D9D; }

/* === File upload area === */
.upload-zone {
    border: 2px dashed #d4d8dd;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    background: #fafbfc;
    margin-bottom: 24px;
}
.upload-zone:hover { border-color: #7F97A5; background: #eef3f6; }
.upload-zone p { color: #9D9D9D; font-size: 14px; margin-top: 8px; }

/* === Login page === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef3f6 0%, #f5f6f8 50%, #e8edf0 100%);
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9D9D9D;
    margin-bottom: 20px;
    transition: color 0.15s;
}
.login-back-link:hover { color: #3a3a3a; }
.login-back-link svg { width: 15px; height: 15px; }

.login-logo-wrap { text-align: center; margin-bottom: 28px; }
.login-logo { height: 28px; width: auto; }

.login-title {
    font-size: 20px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 24px;
    text-align: center;
}

.login-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-btn {
    width: 100%;
    padding: 11px;
    background: #F78B2A;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}
.login-btn:hover { background: #e07a1f; }

/* === Publiseringskalender === */
.htl-wrap {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.htl-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e8eaed;
    background: #fff;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: all 0.15s;
    cursor: pointer;
}
.htl-arrow:hover:not(:disabled) { border-color: #7F97A5; color: #4a7080; }
.htl-arrow:disabled { opacity: 0.25; cursor: default; }
.htl-arrow svg { width: 16px; height: 16px; }

.htl-viewport { flex: 1; overflow: hidden; }

.htl-track { display: block; will-change: transform; width: max-content; }

.htl-nodes-row {
    display: flex;
    align-items: center;
    position: relative;
    height: 36px;
    width: max-content;
}

.htl-line-bg {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    background: #7F97A5;
    transform: translateY(-50%);
}

.htl-node-wrap {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.htl-node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cddae0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.htl-node.node-past { background: #7F97A5; border-color: #7F97A5; color: #fff; }
.htl-node.node-past svg { width: 10px; height: 10px; }
.htl-node.node-next {
    width: 22px; height: 22px;
    background: #fff;
    border-color: #4a7080;
    border-width: 3px;
    box-shadow: 0 0 0 5px rgba(74,112,128,0.15);
}
.htl-node.node-future { background: #fff; border-color: #cddae0; }

.htl-cards-row { display: flex; margin-top: 16px; }

.htl-card {
    width: 320px;
    flex-shrink: 0;
    padding: 0 20px 0 0;
}

.htl-card-period {
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 10px;
}
.htl-card.card-past .htl-card-period { color: #9d9d9d; }
.htl-card.card-next .htl-card-period { color: #2a2a2a; }

.htl-tags { display: flex; flex-direction: column; gap: 5px; }

.htl-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
    background: #f0f2f5;
    color: #3a3a3a;
}
.htl-tag.tag-blue, .htl-tag.tag-green, .htl-tag.tag-orange { background: #f0f2f5; color: #3a3a3a; }
.htl-card.card-past .htl-tag { opacity: 0.45; }

.htl-tag-period { font-size: 11px; font-weight: 400; opacity: 0.6; }

.htl-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 28px;
}
.htl-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: #e8eaed;
    border: none;
    padding: 0;
    transition: all 0.2s;
    cursor: pointer;
}
.htl-dot.active { background: #3a3a3a; width: 18px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge.published { background: #dcfce7; color: #15803d; }
.status-badge.upcoming { background: #fef9c3; color: #854d0e; }
.status-badge.draft { background: #f0f2f5; color: #6b6b6b; }

/* === File browser === */
.file-list { display: flex; flex-direction: column; gap: 8px; }

.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    transition: border-color 0.15s;
    min-width: 0;
}
.file-card:hover { border-color: #c0c8cd; }
.file-info { flex: 1; min-width: 0; overflow: hidden; }
.file-meta { font-size: 12px; color: #9D9D9D; white-space: nowrap; }
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #7F97A5;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.download-btn:hover { color: #2a2a2a; }
.download-btn svg { width: 14px; height: 14px; }

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    transition: border-color 0.15s;
}
.file-item:hover { border-color: #c0c8cd; }

.file-icon { color: #7F97A5; flex-shrink: 0; }
.file-icon svg { width: 22px; height: 22px; }
.file-name { flex: 1; font-size: 14px; font-weight: 500; color: #2a2a2a; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: #9D9D9D; flex-shrink: 0; }
.file-date { font-size: 12px; color: #9D9D9D; flex-shrink: 0; }
.file-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* === Back link === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9D9D9D;
    transition: color 0.15s;
}
.back-link:hover { color: #3a3a3a; }
.back-link svg { width: 16px; height: 16px; }

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9D9D9D;
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }


/* === Blazor error UI === */
#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 13px;
    display: none;
    z-index: 999;
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin-left: 8px; }

/* === Om oss – about section === */
.about-section {
    max-width: 720px;
    margin-bottom: 40px;
}

.about-heading {
    font-size: 16px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 16px;
}

.about-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ============================================================
   Landingsside v2 — design handoff
   ============================================================ */

@keyframes asPinDrop { 0% { opacity:0; transform:translateY(-10px); } 100% { opacity:1; transform:translateY(0); } }
@keyframes asFade    { from { opacity:0; } to { opacity:1; } }
@keyframes asPop     { from { opacity:0; transform:translateY(8px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }

.as-pin  { transform-box:fill-box; transform-origin:center bottom; animation:asPinDrop .4s cubic-bezier(0.16,1,0.3,1) backwards; }
.as-arrow { transition:transform .15s; }
.as-link-row:hover .as-arrow { transform:translateX(4px); }

.landing-shell { min-height:100vh; display:flex; flex-direction:column; background:#ffffff; font-family:'Red Hat Text',system-ui,sans-serif; }
.landing-main  { flex:1 0 auto; }

.landing-topbar { display:flex; align-items:center; justify-content:space-between; padding:14px 40px; border-bottom:1px solid #E6E3E9; background:#ffffff; position:sticky; top:0; z-index:10; }
.landing-logo-link { display:flex; align-items:center; }
.landing-logo { height:20px; width:auto; }

.btn-orange     { display:inline-flex; align-items:center; gap:6px; padding:9px 20px; background:#F78B2A; color:#ffffff; font-family:'Red Hat Text',sans-serif; font-size:14px; font-weight:600; border-radius:8px; text-decoration:none; transition:background .15s; }
.btn-orange:hover { background:#e07818; }
.btn-orange--sm { padding:7px 16px; font-size:12px; border-radius:7px; }
.btn-ghost      { display:inline-flex; align-items:center; gap:8px; padding:12px 26px; background:rgba(255,255,255,0.12); color:#ffffff; border:1px solid rgba(255,255,255,0.4); font-family:'Red Hat Text',sans-serif; font-size:15px; font-weight:600; border-radius:8px; text-decoration:none; }
.btn-white      { display:inline-flex; align-items:center; gap:6px; padding:12px 28px; background:#ffffff; color:#1a2a32; font-family:'Red Hat Text',sans-serif; font-size:15px; font-weight:700; border-radius:8px; text-decoration:none; }
.btn-ghost-white { display:inline-flex; align-items:center; gap:8px; padding:12px 16px; color:rgba(255,255,255,0.82); font-family:'Red Hat Text',sans-serif; font-size:15px; font-weight:600; text-decoration:none; }
.btn-ghost-white:hover .as-arrow { transform:translateX(4px); }

.landing-hero { position:relative; min-height:520px; display:flex; align-items:flex-end; overflow:hidden; }
.landing-hero-bg { position:absolute; inset:0; background-image:url(/images/oslo_nettsiden.jpg); background-size:cover; background-position:center 10%; background-color:#1a2a32; }
.landing-hero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.20) 60%, rgba(0,0,0,0.45) 100%); }
.landing-hero-content { position:relative; width:100%; max-width:860px; margin:0 auto; padding:64px 40px 72px; }
.landing-eyebrow { display:inline-flex; align-items:center; gap:8px; font-family:'Red Hat Text',sans-serif; font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:#ffffff; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.3); padding:6px 14px; border-radius:999px; margin-bottom:24px; }
.landing-hero-title { font-family:'Red Hat Display',sans-serif; font-size:52px; font-weight:800; color:#ffffff; line-height:1.1; letter-spacing:-0.02em; margin-bottom:20px; max-width:620px; }
.landing-hero-sub { font-family:'Red Hat Text',sans-serif; font-size:18px; color:rgba(255,255,255,0.82); line-height:1.55; max-width:520px; margin-bottom:36px; }
.landing-hero-ctas { display:flex; gap:12px; flex-wrap:wrap; }

.landing-stats { border-bottom:1px solid #E6E3E9; background:#ffffff; }
.stats-grid { max-width:860px; margin:0 auto; padding:0 40px; display:grid; grid-template-columns:repeat(3,1fr); }
.stat-cell { padding:32px 24px; text-align:center; }
.stat-cell--border { border-right:1px solid #E6E3E9; }
.stat-number { font-family:'Red Hat Display',sans-serif; font-size:36px; font-weight:800; color:#F78B2A; line-height:1; }
.stat-label  { font-family:'Red Hat Text',sans-serif; font-size:13px; color:#8B8792; margin-top:6px; }

.landing-section { padding:32px 40px; max-width:860px; margin:0 auto; }
.landing-section--grey { background:#F9F9F8; border-top:1px solid #E6E3E9; border-bottom:1px solid #E6E3E9; padding:64px 40px; max-width:none; }
.landing-section--grey > * { max-width:860px; margin-left:auto; margin-right:auto; }
.section-eyebrow { font-family:'Red Hat Text',sans-serif; font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:#F78B2A; margin-bottom:10px; }
.section-title   { font-family:'Red Hat Display',sans-serif; font-size:30px; font-weight:700; color:#2A2930; margin-bottom:10px; line-height:1.2; }
.section-sub     { font-family:'Red Hat Text',sans-serif; font-size:15px; color:#5B5763; margin-bottom:32px; max-width:540px; line-height:1.6; }

.rapport-banner { position:relative; overflow:hidden; background:linear-gradient(110deg,#0a1520 0%,#1a2a35 55%,#2e4050 100%); border-radius:14px; padding:28px 28px 28px 32px; box-shadow:0 4px 24px rgba(10,21,32,0.32); display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.rapport-eyebrow { display:inline-flex; align-items:center; gap:6px; font-family:'Red Hat Text',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:#ffd4a8; margin-bottom:10px; }
.rapport-title   { font-family:'Red Hat Display',sans-serif; font-size:22px; font-weight:700; color:#ffffff; line-height:1.2; margin-bottom:10px; }
.rapport-markets { display:flex; flex-wrap:wrap; gap:6px; }
.rapport-chip    { font-size:11px; font-weight:500; color:rgba(255,255,255,0.6); background:rgba(255,255,255,0.1); padding:3px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.15); }
.rapport-banner-left { flex:1; min-width:0; }
.rapport-date-box { display:flex; flex-direction:column; align-items:center; gap:10px; flex-shrink:0; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:16px 24px; text-align:center; }
.rapport-date-label { font-family:'Red Hat Text',sans-serif; font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); }
.rapport-date  { font-family:'Red Hat Display',sans-serif; font-size:30px; font-weight:700; color:#ffffff; line-height:1; }
.rapport-year  { font-family:'Red Hat Text',sans-serif; font-size:12px; color:rgba(255,255,255,0.45); margin-top:-4px; }

.product-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.product-card  { background:#ffffff; border:1px solid #E6E3E9; border-radius:12px; padding:28px; box-shadow:0 1px 3px rgba(40,38,46,0.08); transition:all .18s cubic-bezier(0.16,1,0.3,1); }
.product-card:hover { border-color:#7F97A5; box-shadow:0 6px 22px rgba(127,151,165,0.18); transform:translateY(-2px); }
.product-card--clickable { cursor:pointer; display:flex; flex-direction:column; }
.product-card-icon { width:48px; height:48px; border-radius:10px; background:#eef4f7; display:flex; align-items:center; justify-content:center; color:#7F97A5; margin-bottom:18px; font-size:22px; }
.product-card-icon--orange { background:#fff4eb; color:#F78B2A; }
.product-card-name { font-family:'Red Hat Display',sans-serif; font-size:17px; font-weight:600; color:#2A2930; margin-bottom:8px; }
.product-card-desc { font-family:'Red Hat Text',sans-serif; font-size:13px; color:#8B8792; line-height:1.6; margin-bottom:20px; flex:1; }
.product-card-link { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#F78B2A; margin-top:auto; }
.product-card-link:hover .as-arrow { transform:translateX(4px); }

.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.about-text p { font-family:'Red Hat Text',sans-serif; font-size:15px; color:#5B5763; line-height:1.7; margin-bottom:14px; }
.team-cards { display:flex; flex-direction:column; gap:12px; }
.team-card  { display:flex; align-items:center; gap:16px; background:#ffffff; border:1px solid #E6E3E9; border-radius:12px; padding:18px 20px; box-shadow:0 1px 2px rgba(40,38,46,0.06); }
.team-avatar { width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; background:#eef4f7; display:flex; align-items:center; justify-content:center; font-family:'Red Hat Display',sans-serif; font-size:20px; font-weight:700; color:#7F97A5; }
.team-avatar img { width:100%; height:100%; object-fit:cover; }
.team-info  { display:flex; flex-direction:column; gap:2px; }
.team-name  { font-family:'Red Hat Text',sans-serif; font-size:15px; font-weight:600; color:#2A2930; }
.team-title { font-family:'Red Hat Text',sans-serif; font-size:12px; color:#8B8792; margin-top:2px; }
.team-email { font-family:'Red Hat Text',sans-serif; font-size:12px; color:#F78B2A; text-decoration:underline; text-underline-offset:2px; margin-top:4px; display:block; }

.landing-cta { background:#1a2a32; padding:72px 40px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; }
.landing-cta-title   { font-family:'Red Hat Display',sans-serif; font-size:32px; font-weight:700; color:#ffffff; line-height:1.2; }
.landing-cta-sub     { font-family:'Red Hat Text',sans-serif; font-size:16px; color:rgba(255,255,255,0.72); max-width:440px; line-height:1.6; }
.landing-cta-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:8px; }

.map-overlay { position:fixed; inset:0; background:rgba(42,41,48,0.55); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; z-index:500; padding:20px; animation:asFade .15s ease; }
.map-modal   { background:#ffffff; border-radius:16px; width:100%; max-width:700px; max-height:90vh; overflow:auto; box-shadow:0 12px 32px rgba(40,38,46,0.18); animation:asPop .25s cubic-bezier(0.16,1,0.3,1); }
.map-modal-header { display:flex; align-items:flex-start; justify-content:space-between; padding:28px 28px 0; }
.map-modal-eyebrow { font-family:'Red Hat Text',sans-serif; font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:#F78B2A; margin-bottom:8px; }
.map-modal-title { font-family:'Red Hat Display',sans-serif; font-size:22px; font-weight:700; color:#2A2930; }
.map-modal-sub   { font-family:'Red Hat Text',sans-serif; font-size:13px; color:#8B8792; margin-top:6px; max-width:380px; line-height:1.5; }
.map-modal-close { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; color:#8B8792; background:none; border:none; cursor:pointer; flex-shrink:0; }
.map-modal-close:hover { background:#f5f5f5; }
.map-modal-body  { display:flex; flex-wrap:wrap; gap:24px; align-items:center; padding:20px 28px 32px; }
.map-col   { flex:1 1 240px; display:flex; justify-content:center; min-width:220px; }
.norge-kart-wrap { position:relative; display:inline-block; }
.norge-kart { width:100%; max-width:260px; height:auto; }
.as-map-pin { position:absolute; font-size:22px; line-height:1; transform:translateX(-50%) translateY(-100%); animation:asMapPinDrop .4s cubic-bezier(0.16,1,0.3,1) backwards; }
.map-legend { flex:1 1 220px; min-width:200px; display:flex; flex-direction:column; gap:2px; }
.map-legend-item { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px; }
.map-legend-item--active { background:#fff4eb; }
.map-city   { font-family:'Red Hat Text',sans-serif; font-size:14px; font-weight:600; color:#2A2930; }
.map-region { font-family:'Red Hat Text',sans-serif; font-size:12px; color:#8B8792; }
.map-login-link { display:inline-flex; align-items:center; gap:6px; margin-top:14px; padding:0 12px; font-family:'Red Hat Text',sans-serif; font-size:13px; font-weight:600; color:#F78B2A; text-decoration:underline; text-underline-offset:2px; }

/* --- Landing v2 layout overrides --- */

/* Topbar: fixed, frosted-glass overlay over hero */
.landing-topbar { position:fixed; top:0; left:0; right:0; background:rgba(255,255,255,0.97); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-bottom:1px solid rgba(230,227,233,0.7); z-index:100; }

/* Grey/steel button for topbar (overrides btn-orange where used as btn-steel) */
.btn-steel { display:inline-flex; align-items:center; gap:6px; padding:9px 20px; background:#5F7A85; color:#ffffff; font-family:'Red Hat Text',sans-serif; font-size:14px; font-weight:600; border-radius:8px; text-decoration:none; transition:background .15s; }
.btn-steel:hover { background:#4a6470; }

/* Hero: full viewport, reset all legacy constraints */
.landing-hero { min-height:100vh; max-width:none !important; margin:0 !important; padding:0 !important; text-align:left !important; }

/* Hero content: left-aligned with top padding to clear fixed topbar */
.landing-hero-content { padding:calc(48px + 80px) 80px 80px !important; margin:0 !important; max-width:none !important; }

/* Remove focus ring on hero title (Blazor SPA navigation focuses it) */
.landing-hero-title { outline:none !important; }

/* Reset old centering on hero sub-text and CTAs */
.landing-hero-sub  { margin:0 0 36px !important; }
.landing-hero-ctas { justify-content:flex-start !important; }

