@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Ubuntu:wght@500;700&display=swap");

:root {
  --cyan: #0da7e3;
  --cyan-deep: #00a3ef;
  --orange: #f28500;
  --ink: #2c3338;
  --muted: #555;
  --line: #d8dee3;
  --paper: #f7fafc;
  --white: #fff;
  --header-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", "Trebuchet MS", tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #fff 0%, var(--cyan-deep) 50%, #fff 100%) 1;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.7rem 1.75rem 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 7.5rem;
  height: auto;
}

.brand-text {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  width: 100%;
  font-family: Ubuntu, "Source Sans 3", sans-serif;
  font-size: clamp(0.88rem, calc((min(100vw, 80rem) - 14rem) / 31), 2.35rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.22;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.menu-toggle img {
  width: 1.4rem;
  display: block;
}

.site-nav {
  flex: 1 1 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  width: 100%;
}

.site-nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.site-nav a {
  display: block;
  font-family: Ubuntu, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--cyan);
  text-decoration: none;
  white-space: normal;
  line-height: 1.25;
  padding: 0.4rem 0.35rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange);
  text-shadow: 0 0 8px rgba(242, 133, 0, 0.35);
}

#translate {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: center;
}

main {
  min-height: calc(100vh - 8rem);
  padding: 1.75rem 0 3rem;
}

.section.group {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.col {
  min-width: 0;
}

.col.span_1_of_7,
.col.span_1_of_10,
.col.span_1_of_8,
.col.span_1_of_4 {
  display: none;
}

.col.span_2_of_7,
.col.span_2_of_4 {
  grid-column: span 4;
}

.col.span_3_of_7,
.col.span_3_of_3 {
  grid-column: span 8;
}

.col.span_5_of_7,
.col.span_5_of_5,
.col.span_7_of_7,
.col.span_2_of_2,
.col.span_8_of_10,
.col.span_6_of_8 {
  grid-column: 1 / -1;
}

.col.span_1_of_5 {
  grid-column: span 2;
}

.col.span_1_of_2 {
  grid-column: span 6;
}

.section_content {
  text-align: justify;
  hyphens: auto;
}

.translations-note {
  text-align: center;
  margin: 0 auto 1.25rem;
}

.section_title {
  text-align: center;
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3a4146;
  margin: 0 0 1rem;
}

.section_content > img,
.section_content img[alt] {
  display: block;
  margin: 0 auto 1.25rem;
  border-radius: 6px;
}

#about img,
#validity img,
#administration img {
  width: 100%;
  border: 1px solid var(--line);
}

#forms img {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  border: 1px solid #111;
  background: var(--white);
}

#forms img:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.button_formstat {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid #aaa;
  border-radius: 3px;
  font-weight: 700;
  background: linear-gradient(#fff, #dedede);
}

.button_formstat a {
  color: var(--cyan);
  text-decoration: none;
}

.page-download {
  text-align: center;
  margin: 2.5rem auto 1.25rem;
}

.page-download a {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cyan);
  text-decoration: none;
}

.page-download a:hover {
  color: var(--orange);
  text-shadow: 0 0 8px rgba(242, 133, 0, 0.35);
}

.cta-row {
  margin: 0 0 1rem;
}

.language {
  display: block;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #aaa;
  border-radius: 3px;
  font-weight: 700;
  background: linear-gradient(#fff, #dedede);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.ad-slot--anchor {
  pointer-events: none;
}

.ad-slot--anchor ins.adsbygoogle {
  pointer-events: auto;
}

.language .code {
  font-size: 1.35em;
  color: var(--muted);
}

.language.open {
  color: #fff;
  text-shadow: 0 0 8px var(--orange);
  background: linear-gradient(#406a9b, #fff);
  color: #16324f;
}

.doclinks {
  display: block;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #aaa;
  border-radius: 3px;
  background: #eee;
  font-weight: 700;
}

#table1,
#table3,
#table4 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--white);
}

#table1 th,
#table1 td,
#table3 th,
#table3 td,
#table4 th,
#table4 td {
  border: 1px solid #aaa;
  padding: 0.35rem 0.4rem;
  text-align: center;
}

#table1 td.author,
#table1 th.author {
  text-align: left;
}

#table1 tr:nth-child(even),
#table3 tr.dark,
#table3 tr:nth-child(even) {
  background: #f4f8fb;
}

#table2 {
  width: 100%;
  border: 1px solid #bbb;
  border-top: 10px solid #ccc;
  font-size: 0.85rem;
  background: var(--paper);
}

#table2 td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

#event-table {
  width: 100%;
  border-collapse: collapse;
}

#event-table th,
#event-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

#event-table tbody tr:hover {
  background: #ccecfb;
}

#event-table td:nth-child(2) {
  width: 3.5rem;
  text-align: center;
  white-space: nowrap;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  line-height: 0;
}

.ref-link svg {
  width: 1.45rem;
  height: 1.45rem;
}

.ref-link:hover,
.ref-link:focus-visible {
  color: var(--cyan-deep);
}

.refs-tools {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0 1.25rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.refs-tools input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.severity-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
}

.severity-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.severity-row span {
  font-weight: 700;
  font-size: 0.9rem;
}

.bar-track {
  display: flex;
  height: 1.35rem;
  background: #eef3f6;
  border-radius: 999px;
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  opacity: 0.95;
}

.severity-axis-row {
  align-items: start;
}

.severity-axis-row > span {
  font-weight: 400;
}

.severity-axis {
  position: relative;
  height: 1.6rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--ink);
}

.severity-axis i,
.severity-axis b {
  position: absolute;
  top: 0;
  width: 1px;
  height: 0.4rem;
  background: var(--ink);
  transform: translateX(-50%);
}

.severity-axis b {
  font-weight: 600;
  font-size: 0.75rem;
  width: auto;
  height: auto;
  background: none;
  line-height: 1;
  margin-top: 0.45rem;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.legend b {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.35rem;
  border-radius: 2px;
}

.questions {
  text-align: left;
  margin: 1rem 0;
}

.questions h3 {
  margin: 0 0 0.6rem;
}

.exclusive-pair {
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  padding: 0.75rem 1rem 0.25rem;
  margin: 0.5rem 0 1.25rem;
  box-shadow: inset 0 0 0 3px var(--white);
}

label.container {
  display: block;
  position: relative;
  padding: 0.2rem 0 0.55rem 2.1rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
}

label.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0.15rem;
  left: 0;
  height: 1.35rem;
  width: 1.35rem;
  background: #eee;
  border-radius: 50%;
}

label.container:hover input ~ .checkmark {
  background: #ccc;
}

label.container input:checked ~ .checkmark {
  background: var(--cyan-deep);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  top: 0.4rem;
  left: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
}

label.container input:checked ~ .checkmark::after {
  display: block;
}

.event_name {
  display: inline-block;
  padding: 0.55rem 1.6rem;
  border-radius: 22px;
  color: #002060;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font: inherit;
  background: radial-gradient(ellipse farthest-corner at center, #fff 0%, var(--cyan-deep) 100%);
}

.event_name:hover,
.event_select {
  box-shadow: 0 0 9px var(--orange);
}

.form-title {
  margin: 0;
}

.form-kicker {
  margin: 0.25rem 0 0;
  font-style: italic;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.redirect-card {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.nomobile {
  display: none;
}

.chart-note {
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .col.span_2_of_7,
  .col.span_3_of_7,
  .col.span_1_of_2,
  .col.span_1_of_5,
  .col.span_2_of_4 {
    grid-column: 1 / -1;
  }

  .section_content {
    text-align: left;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.25rem 0 0.75rem;
  }

  .site-nav li {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
  }

  .site-nav a {
    padding: 0.45rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.25rem 0 0.75rem;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
  }

  .brand-text {
    font-size: clamp(0.72rem, 3.2vw, 0.95rem);
  }
}

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  margin: 1rem auto;
  max-width: 72rem;
  padding: 0 1.25rem;
  background: linear-gradient(180deg, #f4f8fb, #fff);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.ad-slot--sidebar {
  min-height: 250px;
  margin: 0 0 1.25rem;
  padding: 0.5rem;
}

.ad-slot--inarticle {
  min-height: 120px;
  margin: 1.25rem 0;
}

.ad-slot--anchor {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
}

.highcharts-figure {
  margin: 0 auto 1.5rem;
  max-width: 72rem;
  padding: 0 1.25rem;
}

.severity-chart {
  min-height: 420px;
  width: 100%;
}

.score-highlight {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.scorer-results {
  text-align: center;
  margin: 1.5rem auto 1rem;
  max-width: 40rem;
}

#ids-form .col:has(#generateRisk),
#ids-form .col:has(#score) {
  grid-column: 1 / -1;
  text-align: center;
  justify-self: center;
  width: 100%;
}

#generateRisk {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

#score,
#riskLevelLabel,
#score-note,
#emptyInputs,
#risk_assessment h3 {
  text-align: center;
}

.scorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.scorer-toolbar select {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.scorer-hero h2 {
  margin: 0 0 0.35rem;
}

.exclusive-label {
  text-align: center;
  color: var(--muted);
}

[dir="rtl"] .questions,
[dir="rtl"] label.container {
  text-align: right;
}

[dir="rtl"] label.container {
  padding: 0.2rem 2.1rem 0.55rem 0;
}

[dir="rtl"] .checkmark {
  left: auto;
  right: 0;
}
