/* SPDX-License-Identifier: AGPL-3.0-only
   24x7ICT white-label theme for the NIS2 Quickscan.
   Builds on tokens.css, wizard.css and dxfferent-theme.css. */

:root,
[data-theme="dark"] {
  --bg-canvas: #20211c;
  --bg-elevated: #292a25;
  --bg-muted: #34362f;
  --bg-overlay: rgba(32, 33, 28, 0.9);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.25);
  --fg-highlighted: #ffffff;
  --fg-default: #eeeeeb;
  --fg-muted: #c1c2bc;
  --fg-dimmed: #96988f;
  --fg-inverse: #20211c;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 9px;
  --radius-xl: 12px;
}

[data-theme="light"] {
  --bg-canvas: #f6f6f3;
  --bg-elevated: #ffffff;
  --bg-muted: #eceee6;
  --bg-overlay: rgba(246, 246, 243, 0.92);
  --border-default: rgba(32, 33, 28, 0.13);
  --border-strong: rgba(32, 33, 28, 0.28);
  --fg-highlighted: #20211c;
  --fg-default: #32332d;
  --fg-muted: #5f6159;
  --fg-dimmed: #7b7d74;
  --fg-inverse: #ffffff;
}

body {
  background: var(--bg-canvas);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.app {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
}

/* White navigation bar, matching the public 24x7ICT site. */
.rail {
  min-height: 126px;
  padding: 12px clamp(22px, 5vw, 76px);
  background: #ffffff;
  color: #20211c;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(430px, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  overflow: visible;
  border-bottom: 1px solid rgba(32, 33, 28, 0.12);
  box-shadow: 0 6px 20px rgba(32, 33, 28, 0.08);
  z-index: 10;
}

.rail::before {
  content: "24x7 ICT  ·  JOUW ICT-PARTNER";
  position: absolute;
  inset: 0 0 auto;
  height: 25px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #20211c;
  color: #a5c35c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rail::after {
  display: none;
}

.rail-brand {
  margin-top: 22px;
  gap: 18px;
}

.rail-brand.has-logo .rail-mark {
  width: 174px;
  height: 86px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.rail-brand.has-logo .rail-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.rail-brand.has-logo .bn {
  display: none;
}

.rail-brand.has-logo .bs {
  display: block;
  padding-left: 18px;
  border-left: 1px solid rgba(32, 33, 28, 0.18);
  color: #55574f;
  opacity: 1;
  line-height: 1.45;
  letter-spacing: 0.12em;
}

.rail-mid {
  display: none;
}

.rail-prog {
  margin: 22px 0 0;
  display: flex;
  justify-content: center;
  gap: 1px;
}

.rail-step {
  min-width: 0;
  padding: 10px 9px 8px;
  gap: 8px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  color: #20211c;
  opacity: 0.55;
  font-size: 12.5px;
  white-space: nowrap;
}

.rail-step .n {
  width: 24px;
  height: 24px;
  border-color: rgba(32, 33, 28, 0.35);
  color: #20211c;
}

.rail-step.done,
.rail-step.on {
  opacity: 1;
}

.rail-step.done .n,
.rail-step.on .n {
  background: var(--accent);
  color: #20211c;
  border-color: var(--accent);
}

.rail-step.on {
  background: transparent;
  border-bottom-color: var(--accent);
}

.rail-foot {
  grid-column: 1 / -1;
  margin: -7px 0 0;
  padding-top: 5px;
  border-top: 1px solid rgba(32, 33, 28, 0.08);
  color: #777970;
  opacity: 0.82;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  text-align: right;
  font-size: 9px;
  line-height: 1.2;
}

.rail-foot a {
  color: #536a25;
}

.main {
  background:
    linear-gradient(135deg, rgba(165, 195, 92, 0.045), transparent 34%),
    var(--bg-canvas);
}

.main-inner {
  max-width: 1080px;
  padding: 66px 48px 128px;
}

.step-h,
.rail-title,
.verdict-hero-title {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.025em;
}

.step-h {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
}

.intro-title {
  max-width: 20ch;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.05;
}

.eyebrow,
.sec-h,
.rep-annot,
.attribution p {
  font-family: var(--font-sans);
}

.eyebrow {
  letter-spacing: 0.12em;
}

.sec-h::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

.intro-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.intro-point {
  min-height: 172px;
  padding: 22px;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}

.intro-point .t {
  font-size: 16px;
}

.intro-point .d {
  font-size: 14px;
}

.iconbadge {
  background: rgba(165, 195, 92, 0.12);
  border: 1px solid rgba(165, 195, 92, 0.22);
}

.btn {
  border-radius: 2px;
}

.btn-primary {
  color: #20211c;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-left: 30px;
  padding-right: 30px;
}

.btn-outline {
  border-color: rgba(165, 195, 92, 0.45);
}

.topbar {
  top: 20px;
  right: clamp(22px, 4vw, 56px);
}

.icon-btn {
  border-color: rgba(165, 195, 92, 0.28);
}

@media (max-width: 1180px) {
  .rail {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 16px;
  }

  .rail-step {
    font-size: 0;
    padding-inline: 6px;
  }

}

@media (max-width: 860px) {
  .app {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .rail {
    min-height: 0;
    padding: 29px 20px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 5px 12px;
  }

  .rail::before {
    height: 21px;
    padding: 0 20px;
    font-size: 8px;
  }

  .rail-brand {
    margin-top: 0;
  }

  .rail-brand.has-logo .rail-mark {
    width: 126px;
    height: 62px;
  }

  .rail-brand.has-logo .bs {
    display: none;
  }

  .rail-foot {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    padding-top: 4px;
    max-width: none;
    justify-content: flex-end;
    text-align: right;
    align-items: center;
  }

  .rail-foot .rail-support {
    display: none;
  }

  .rail-prog {
    grid-column: 1 / -1;
    margin: 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rail-step {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }

  .main-inner {
    padding: 48px 22px 120px;
  }

  .intro-points {
    grid-template-columns: 1fr;
  }

  .intro-point {
    min-height: 0;
    flex-direction: row;
  }
}

@media (max-width: 520px) {
  .rail-foot {
    display: flex;
    gap: 8px;
    font-size: 8px;
  }

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

  .intro-title {
    font-size: 38px;
  }

  .intro-cta {
    align-items: stretch;
  }

  .intro-cta .btn {
    justify-content: center;
    width: 100%;
  }

  .footnav {
    gap: 12px;
    padding: 10px 16px;
  }

  .footnav .count {
    display: none;
  }

  .footnav .btn {
    min-width: 154px;
    margin-left: auto;
    justify-content: center;
    white-space: nowrap;
  }
}

@media print {
  .rail {
    min-height: 0;
    box-shadow: none;
  }

  .rail::before {
    display: none;
  }

  .rail-brand.has-logo .rail-mark {
    width: 42mm;
    height: 20mm;
  }
}
