:root {
  color-scheme: light;
  --ink: #20242a;
  --graphite: #343941;
  --muted: #66717d;
  --line: #d0d6df;
  --page: #e0e5eb;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --yellow: #ffc629;
  --yellow-dark: #dfa900;
  --teal: #27706f;
  --green: #5f9f42;
  --shadow: 0 18px 48px rgba(25, 29, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #343941 0, #343941 10px, transparent 10px),
    linear-gradient(135deg, rgba(255, 198, 41, 0.18), transparent 34%),
    linear-gradient(180deg, #eef2f6 0, var(--page) 100%),
    var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e9eef3;
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff 0, #f7f8fa 58%, rgba(255, 198, 41, 0.2) 100%);
}

.brand {
  width: 260px;
  flex: 0 1 260px;
}

.portal {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
  flex: 1;
}

.portal-intro {
  padding: 44px 34px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 198, 41, 0.3), rgba(255, 255, 255, 0.78) 62%),
    #fff8df;
}

.accent-line {
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 28px;
  border-radius: 4px;
  background: var(--yellow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: var(--graphite);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.access-list {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(225, 231, 238, 0.96)),
    #e8edf2;
}

.access-link {
  min-height: 104px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 20px;
  padding: 18px 20px 18px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--graphite);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.access-link:hover,
.access-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(39, 112, 111, 0.42);
  box-shadow: 0 12px 28px rgba(31, 36, 43, 0.1);
  outline: none;
}

.access-link.endemik-link {
  border-left-color: var(--yellow-dark);
  background: linear-gradient(90deg, rgba(255, 198, 41, 0.12), #ffffff 48%);
}

.access-link.qlikview-link {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(95, 159, 66, 0.075), #ffffff 46%);
}

.access-logo {
  width: 138px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(51, 57, 65, 0.1);
  background: #ffffff;
  overflow: hidden;
}

.access-logo img {
  width: 112px;
  max-height: 54px;
  object-fit: contain;
}

.access-logo.wide-logo img {
  width: 124px;
  max-height: 42px;
}

.access-copy {
  min-width: 0;
}

.access-copy strong {
  display: block;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.access-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 700;
  background: var(--surface-soft);
}

.footer {
  margin-top: auto;
  padding: 16px 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: var(--graphite);
}

.error-page .portal {
  grid-template-columns: 1fr;
}

.error-page .portal-intro {
  border-right: 0;
}

.return-link {
  max-width: 520px;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 24px, 720px);
    min-height: calc(100vh - 24px);
    margin: 12px auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .brand {
    width: 230px;
    flex-basis: auto;
  }

  .portal {
    grid-template-columns: 1fr;
  }

  .portal-intro {
    padding: 32px 22px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .accent-line {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 34px;
  }

  .access-list {
    gap: 12px;
    padding: 22px;
  }

  .access-link {
    min-height: 98px;
    grid-template-columns: 116px minmax(0, 1fr) 30px;
    gap: 14px;
    padding: 16px;
  }

  .access-logo {
    width: 116px;
    height: 58px;
  }

  .access-logo img {
    width: 98px;
    max-height: 48px;
  }

  .access-logo.wide-logo img {
    width: 106px;
    max-height: 36px;
  }

  .access-copy strong {
    font-size: 19px;
  }

  .footer {
    padding: 16px 22px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .topbar {
    min-height: 84px;
  }

  .brand {
    width: 208px;
  }

  h1 {
    font-size: 30px;
  }

  .portal-intro p:last-child {
    font-size: 15px;
  }

  .access-link {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 94px;
  }

  .access-logo {
    width: 96px;
    height: 56px;
  }

  .access-logo img {
    width: 82px;
    max-height: 46px;
  }

  .access-logo.wide-logo img {
    width: 88px;
    max-height: 32px;
  }

  .access-arrow {
    display: none;
  }

  .access-copy strong {
    font-size: 18px;
  }
}
