@font-face {
    font-family: 'Torus';
    src: url('Torus-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Torus-SemiBold';
    src: url('Torus-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Set color variables for easy theming */
:root {
    --state0-color: #4bbf6f; 
    --state1-color: #f0c933; 
    --state2-color: #e5544f; 
    --missing-color: rgba(255, 255, 255, 0.16); 
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Torus', sans-serif;
    font-size: 16px;
    background: #020024;
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(102, 9, 121, 1) 52%, rgba(130, 0, 121, 1) 100%);
    color: white;
    margin: auto;
    width: 90%;
    max-width: 1000px;
}

h1 {
    font-family: 'Torus-SemiBold', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-top: 20px;
}

.callout {
    background-color: rgba(255, 166, 32, 0.1);
    border-left: 4px solid rgb(255, 166, 32);
    color: rgb(255, 166, 32);
    padding: 10px 20px;
    margin: 20px 0;
    font-family: 'Torus', sans-serif;
    font-size: 14px;
}

.topbox {
    padding: 20px;
    margin: 10px 0;
    border: 1px solid white;
    border-radius: 9px;
}

.topbox h2 {
    font-family: 'Torus-SemiBold', sans-serif;
    font-size: 24px;
    margin: 0;
}

.lbox {
    display: grid;
    margin-top: 20px;
    grid-template-columns: 60% 40%;
}
.linkbutton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: none;
    border: 1px solid white;
    border-radius: 10px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Torus-SemiBold', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s;
}
.linkbutton:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.linkbutton:active {
    background-color: rgba(255, 255, 255, 0.2);
}

#versionid {
    font-family: 'Torus', sans-serif;
    font-size: 14px;
    color: #cccccccc;
}

.barcontainer {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.bartextcontainer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.bar {
  display: flex;
  width: 100%;
  min-height: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.markerlist > li {
  margin-top: 8px;
}

.marker {
  display: inline-flex;
  align-items: center; /* Centers text vertically */
  justify-content: center; /* Centers text horizontally */
  
  /* Adjust these to control the physical size */
  padding: 0 12px; 
  height: 24px;
  
  /* Now you can shrink the font independently */
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  
  border-radius: 999px;
  color: #020024 !important;
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.green {
  background: var(--state0-color);
}

.yellow {
  background: var(--state1-color);
}

.red {
  background: var(--state2-color);
}

.marker.missingattr {
  border: 1px solid var(--missing-color);
  background: rgb(35, 35, 35);
  color: #ff716c !important;
}

a {
  color: inherit;
  text-decoration: inherit; /* no underline */
}

summary {
  cursor: pointer;
  font-family: 'Torus-SemiBold', sans-serif;
}

.contenttable {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contenttable-row {
  display: grid;
  grid-template-columns: 2fr 1fr 4fr 2fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contenttable-row.header {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.contenttable-row.missing .contenttable-status {
  text-align: center;
}
.contenttable-key,
.contenttable-key button {
  background: none;
  border: none;
  color: #82f2ff;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contenttable-key:hover,
.contenttable-key button:hover {
  text-decoration: underline;
}

.contenttable-key button {
  display: inline-block;
  width: 100%;
  max-width: 100%;
}


.contenttable-key.missing-key {
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}

.contenttable-source,
.contenttable-note,
.contenttable-status {
  color: rgba(255, 255, 255, 0.85);
}

.contenttable-source {
    text-align: center;
}

.contenttable-status {
  text-align: center;
}

.contenttable-empty {
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.8);
}


@media (max-width: 768px) {
  .contenttable-row {
    grid-template-columns: 1fr;
  }
  .contenttable-status, .contenttable-source, .contenttable-note {
    text-align: left;
  }
}

.totop {
    display: flex;
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    background-color: #ffffff55;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    transition: background-color 0.3s;
    justify-content: center;
    align-items: center;
}
.totop:hover {
    background-color: #ffffff77;
}
.totop:active {
    background-color: #ffffffff;
}