@font-face {
  font-family: "Fago";
  src: url("/font/Fago-No-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fago";
  src: url("/font/Fago-No-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fago";
  src: url("/font/Fago-No-Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fago";
  src: url("/font/Fago-No-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Custom overrides to give the demo a branded feel */
body {
  font-family: "Fago", sans-serif;
  background-color: #1e4486;
  /* Local background image */
  /* The path is now absolute and points to the correct .jpg file */
  /* Using an absolute path and assuming the filename uses an underscore, like the logo. */
  background-image: url("/img/swissbit_background.webp"), linear-gradient(56deg,#1e4486,#00000069 37%,#1e4486);
  background-size: contain;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #212529;
  min-height: 100vh;
  margin: 0;
  padding-top: 68px;
  /* Space for fixed header */
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}

.container {
  max-width: 510px;
  margin: 102px auto 1.7rem 204px;
  padding: 1.7rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

.logo {
  max-width: 280px;
  padding: 30px;
}

h1 {
  font-weight: 600;
  color: #000;
  margin-top: -20px;
}

p {
  color: #6c757d;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: #777;
  font-size: 0.72rem;
  text-align: left;
}

.input-group {
  margin-bottom: 1.5rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  text-align: left;
}

input[type="text"] {
  font-size: 0.85rem;
  padding: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  /* Adjusted for better alignment */
  justify-content: flex-end;
  /* Aligns items to the right */
}

button,
.button {
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background-color: #009ee3;
  /* Swissbit Blue */
  color: white;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* Additions for <a> tags to behave like buttons */
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

button:hover,
.button:hover {
  background-color: #fff;
  color: #009ee3;
  border-color: #009ee3;
}

.advanced-toggle-container {
  text-align: right;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.link-button {
  background: none !important;
  border: none !important;
  color: #00599d;
  cursor: pointer;
  font-size: 11.9px;
  padding: 0;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
}

.link-button:hover {
  color: #009ee3 !important;
  border-color: transparent !important;
}

.tooltip-icon {
  display: inline-block;
  position: relative;
  cursor: help;
  margin-left: 8px;
  color: #8a8a8a;
  /* Dark grey for the icon */
  font-weight: bold;
}

.tooltip-icon .tooltip-text {
  visibility: hidden;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  /* Position the tooltip above the icon */
  left: 50%;
  margin-left: -140px;
  /* Use half of the width to center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: normal;
  font-size: 11.9px;
  /* Increased font size for better readability */
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-icon:focus {
  outline: 2px solid #009ee3;
  outline-offset: 2px;
}

.advanced-panel {
  display: none;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: left;
  background-color: #fafafa;
}

.advanced-panel.visible {
  display: block;
}

.advanced-panel h3 {
  font-size: 0.935rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.advanced-panel .form-group {
  margin-bottom: 1rem;
}

.advanced-panel .form-group:last-of-type {
  margin-bottom: 0;
}

.advanced-panel .advanced-select {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.765rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
}

.advanced-button-group {
  margin-top: 1rem;
  text-align: right;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.75rem;
}

.legal-links a {
  color: #00599d;
}

.legal-links a:hover {
  color: #009ee3;
}

/* Styles from profile.css, consolidated for use on both pages */
#profile-info {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
  /* Ensure content within this block is left-aligned */
}

.authenticator-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: auto;
  /* To contain floated elements if any */
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.remove-auth-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.remove-auth-btn:hover {
  background-color: #c0392b;
  color: white;
  /* Ensure text color remains white on hover */
  border-color: transparent;
  /* Override general button hover styles */
}

.authenticator-card p {
  margin: 5px 0;
  word-wrap: break-word;
  /* This ensures long credential IDs wrap correctly */
}

/* Status Message Styles */
.status-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid transparent;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.cred-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.cred-item:last-child {
  border-bottom: none;
}

.cred-item small {
  word-break: break-all;
}

/* Enterprise Registration-specific styles */
.browser-notice {
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid #90caf9;
  border-left: 4px solid #1976d2;
  border-radius: 4px;
  background: #eaf5ff;
  color: #174f78;
  text-align: left;
}

.browser-notice strong,
.browser-notice span {
  display: block;
}

.browser-notice span {
  margin-top: 0.25rem;
}

.result-card {
  display: none;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  background: #f6fff7;
}

.result-card.error {
  border-left-color: #e53935;
  background: #fff5f5;
}

.result-card.warning {
  border-left-color: #fb8c00;
  background: #fffaf3;
}

.result-card.development {
  border-left-color: #1976d2;
  background: #f3f9ff;
}

.result-card.visible {
  display: block;
}

.result-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.serial-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #222;
  font-variant-numeric: tabular-nums;
}

.result-card.error .serial-number,
.result-card.error p {
  font-size: 1rem;
  font-weight: 400;
  color: #c62828;
  letter-spacing: normal;
}

.result-meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
}

.result-meta span {
  margin-right: 1rem;
}

.registration-status-note {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 600;
}

.attestation-failure-hint {
  margin: 0.75rem 0 0;
  color: #e65100;
  text-align: left;
}

.attestation-failure-hint[hidden] {
  display: none;
}

.attestation-failure-info {
  flex: 0 0 auto;
  margin-left: 0;
  line-height: 1;
  vertical-align: baseline;
}

.attestation-failure-info .tooltip-text {
  width: 360px;
  margin-left: -180px;
}

.authenticator-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #dcebdc;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.authenticator-summary[hidden],
.authenticator-icon[hidden],
.certification-line[hidden] {
  display: none;
}

.authenticator-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.authenticator-name {
  margin-bottom: 0.35rem;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
}

.certification-line {
  display: flex;
  align-items: center;
}

.certification-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
}

.certification-badge[data-code="NOT_FIDO_CERTIFIED"] {
  background: #fff3cd;
  color: #7a5b00;
}

.certification-badge[data-code="UNKNOWN"] {
  background: #eceff1;
  color: #546e7a;
}

.certification-info .tooltip-text {
  width: 360px;
  margin-left: -180px;
}

.development-sample-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 0.75rem;
  font-weight: 600;
}

.development-sample-info .tooltip-text {
  width: 320px;
  margin-left: -160px;
}

.attestation-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
}

.attestation-badge.non-enterprise {
  background: var(--swissbit-orange);
  color: var(--swissbit-white);
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.cert-table th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-all;
}

.cert-table td:first-child {
  white-space: nowrap;
  color: #555;
  font-weight: 600;
  width: 35%;
  word-break: normal;
}

.cert-table em {
  color: #e53935;
  font-style: normal;
  font-size: 0.7rem;
}

.details-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #2e7d32;
  cursor: pointer;
}

.details-toggle:hover {
  text-decoration: underline;
}

/* Verification checks: cert-table row colouring by pass/fail
   Scoped to [data-passed] so it only affects the checks table */
.cert-table tr[data-passed="true"] td:first-child {
  color: #2e7d32;
  font-weight: 700;
}

.cert-table tr[data-passed="false"] td:first-child {
  color: #c62828;
  font-weight: 700;
}

.cert-table tr[data-passed="true"] td:nth-child(2) {
  font-weight: 600;
  color: #2e7d32;
}

.cert-table tr[data-passed="false"] td:nth-child(2) {
  font-weight: 600;
  color: #c62828;
}

.cert-table tr[data-passed] td:last-child {
  color: #777;
  font-size: 0.78rem;
}

/* Authenticator status reports */
.status-reports-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}

.status-report-item {
  margin-bottom: 0.35rem;
}

.status-report-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
}

@media (max-width: 780px) {
  .certification-info .tooltip-text,
  .development-sample-info .tooltip-text,
  .attestation-failure-info .tooltip-text {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 3rem));
    margin-left: 0;
  }
}

@supports (-moz-appearance: none) {
  .attestation-failure-info {
    transform: translateY(-2px);
  }
}

/* Swissbit 2025 design system */
:root {
  --swissbit-cyan: #009ee3;
  --swissbit-cyan-text: #0d61a2;
  --swissbit-cyan-dark: #0073a2;
  --swissbit-cyan-light: #a1daf9;
  --swissbit-cyan-lightest: #e3f2fd;
  --swissbit-blue-darkest: #1e4486;
  --swissbit-green: #77b42b;
  --swissbit-orange: #f39200;
  --swissbit-black: #000;
  --swissbit-white: #fff;
  --swissbit-gray-lightest: #f7f7fa;
  --swissbit-gray-lighter: #efeef4;
  --swissbit-gray-light: #e7e6ee;
  --swissbit-gray: #dfdee9;
  --swissbit-gray-dark: #aeadb9;
  --swissbit-gray-darker: #86868d;
  --swissbit-gray-darkest: #5b5b61;
  --swissbit-success: #114e0b;
  --swissbit-success-bg: #f4fbfd;
  --swissbit-warning: #5e5515;
  --swissbit-warning-bg: #fcf8d8;
  --swissbit-error: #a30000;
  --swissbit-error-bg: #ffefef;
  --swissbit-button-gradient: linear-gradient(
    90deg,
    var(--swissbit-blue-darkest),
    var(--swissbit-cyan) 59%,
    var(--swissbit-cyan-text)
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--swissbit-gray-lightest);
}

body {
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 5rem 0 3rem;
  background-color: var(--swissbit-gray-lightest);
  background-image:
    url("/img/swissbit_background.webp"),
    radial-gradient(circle at 8% 18%, rgb(161 218 249 / 42%), transparent 24rem),
    radial-gradient(circle at 94% 84%, rgb(0 158 227 / 12%), transparent 28rem);
  background-attachment: fixed;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: contain, auto, auto;
  color: var(--swissbit-black);
  font-family: "Fago", Arial, sans-serif;
  font-size: 1rem;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  position: relative;
  width: min(100% - 3rem, 48rem);
  max-width: none;
  margin: 4rem auto 0 204px;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: visible;
  border-radius: 0.25rem 0.25rem 0.875rem;
  background: var(--swissbit-white);
  box-shadow: 0 1.5rem 4rem rgb(46 55 71 / 12%);
  text-align: left;
  font-size: 1rem;
}

.container::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.375rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: var(--swissbit-button-gradient);
  content: "";
}

.demo-page .demo-container {
  width: min(100% - 3rem, 52rem);
  max-width: none;
}

.page-kicker {
  margin: 0 0 0.75rem;
  color: var(--swissbit-cyan-text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 12em;
  margin: 0;
  color: var(--swissbit-black);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.04rem;
  line-height: 1.1;
}

p {
  color: var(--swissbit-gray-darkest);
}

.page-intro {
  max-width: 42rem;
  margin: 1.25rem 0 2.5rem;
  color: var(--swissbit-gray-darkest);
  font-size: 1.125rem;
  line-height: 1.45;
}

.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--swissbit-black);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

input[type="text"],
.advanced-panel .advanced-select {
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0.1rem solid var(--swissbit-black);
  border-radius: 0.2rem;
  outline: none;
  background: rgb(255 255 255 / 72%);
  color: var(--swissbit-black);
  font: inherit;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

input[type="text"]::placeholder {
  color: var(--swissbit-gray-darker);
  opacity: 1;
}

input[type="text"]:hover,
.advanced-panel .advanced-select:hover {
  background: var(--swissbit-white);
  box-shadow: 0 0 0.625rem rgb(0 0 0 / 15%);
}

input[type="text"]:focus,
.advanced-panel .advanced-select:focus {
  border-color: var(--swissbit-cyan);
  box-shadow: 0 0 0 0.2rem rgb(0 158 227 / 18%);
}

.field-hint {
  margin: 0.5rem 0 0;
  color: var(--swissbit-gray-darkest);
  font-size: 0.875rem;
  line-height: 1.45;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.625rem 1.5rem 0.7rem;
  border: 0;
  border-radius: 0.25rem 0.25rem 0.625rem;
  background-color: var(--swissbit-cyan-text);
  background-image: var(--swissbit-button-gradient);
  color: var(--swissbit-white);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01rem;
  line-height: 1.25;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition:
    box-shadow 180ms ease,
    transform 100ms ease;
}

button:hover,
.button:hover {
  border-color: transparent;
  background-color: var(--swissbit-cyan-text);
  color: var(--swissbit-white);
  box-shadow: 0.2rem 0.125rem 1.25rem rgb(13 97 162 / 50%);
}

button:active,
.button:active {
  transform: translate(0.125rem, 0.125rem);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.tooltip-icon:focus-visible {
  outline: 0.125rem solid #2d62ff;
  outline-offset: 0.125rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.demo-page #loginBtn {
  border: 0.15rem solid var(--swissbit-black);
  background: transparent;
  color: var(--swissbit-black);
}

.demo-page #loginBtn:hover {
  background: rgb(0 0 0 / 9%);
  box-shadow: 0.2rem 0.2rem 0.95rem rgb(0 0 0 / 25%);
}

.advanced-toggle-container {
  margin: 1.25rem 0 0;
  text-align: left;
}

.link-button {
  position: relative;
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--swissbit-cyan-text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.link-button:hover {
  background: none;
  color: var(--swissbit-cyan-dark);
  box-shadow: none;
  text-decoration: none;
}

.link-button::after,
.legal-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.12em;
  left: 0;
  height: 0.125rem;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.link-button:hover::after,
.legal-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.advanced-panel {
  margin: 1.5rem 0 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 0;
  border-radius: 0.25rem 0.25rem 0.625rem;
  background: var(--swissbit-gray-lighter);
  text-align: left;
}

.advanced-panel h3 {
  margin: 0 0 1.5rem;
  color: var(--swissbit-black);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.advanced-panel .form-group {
  margin-bottom: 1.5rem;
}

.advanced-panel hr {
  border-color: var(--swissbit-gray-dark);
}

.optional-label {
  color: var(--swissbit-gray-darkest);
}

.tooltip-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  border: 0.1rem solid currentcolor;
  border-radius: 50%;
  color: var(--swissbit-cyan-text);
  font-size: 0;
  line-height: 1;
  text-align: center;
  vertical-align: 0.05em;
}

.tooltip-icon::before {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 0.85rem;
  content: "i";
}

.tooltip-icon .tooltip-text {
  bottom: calc(100% + 0.75rem);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem 0.25rem 0.625rem;
  background: var(--swissbit-black);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 25%);
  color: var(--swissbit-white);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.browser-notice,
.result-card {
  border: 0;
  border-left: 0.35rem solid var(--swissbit-cyan);
  border-radius: 0.25rem 0.25rem 0.625rem;
  background: var(--swissbit-cyan-lightest);
}

.browser-notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  color: var(--swissbit-cyan-text);
}

.result-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left-color: var(--swissbit-cyan);
  background: var(--swissbit-success-bg);
  text-align: left;
}

.result-card.error,
.demo-page #resultCard.security-error {
  border-left-color: var(--swissbit-error);
  background: var(--swissbit-error-bg);
}

.result-card.warning,
.demo-page #resultCard.uncertified,
.demo-page #resultCard.validation-warning {
  border-left-color: #d9b600;
  background: var(--swissbit-warning-bg);
}

.result-card.development,
.demo-page #resultCard.development,
.demo-page #resultCard.informational {
  border-left-color: var(--swissbit-cyan);
  background: var(--swissbit-cyan-lightest);
}

.result-card h3 {
  margin: 0 0 0.75rem;
  color: var(--swissbit-black);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.serial-number {
  color: var(--swissbit-black);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
}

.authenticator-summary {
  border-color: var(--swissbit-gray);
  border-radius: 0.25rem 0.25rem 0.625rem;
  background: var(--swissbit-white);
}

.authenticator-name {
  color: var(--swissbit-black);
  font-weight: 600;
}

.certification-badge,
.attestation-badge,
.status-report-badge {
  border-radius: 0.2rem;
  background: var(--swissbit-green);
  color: var(--swissbit-white);
}

.development-sample-badge {
  background: var(--swissbit-cyan-lightest);
  color: var(--swissbit-cyan-text);
}

.cert-table th {
  background: var(--swissbit-gray-light);
  color: var(--swissbit-black);
}

.cert-table td {
  border-bottom-color: var(--swissbit-gray);
}

.legal-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--swissbit-gray);
  font-size: 0.875rem;
}

.legal-links a {
  position: relative;
  color: var(--swissbit-cyan-text);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.legal-links a:hover {
  color: var(--swissbit-cyan-dark);
  text-decoration: none;
}

@media (max-width: 780px) {
  body {
    padding-top: 4.5rem;
  }

  .container,
  .demo-page .demo-container {
    width: min(100% - 2rem, 52rem);
    margin: 2rem auto 0;
    padding: 2rem 1.5rem;
  }

  .page-intro {
    margin-bottom: 2rem;
  }

  .algorithm-picker {
    grid-template-columns: 1fr;
  }

  .demo-page .algorithm-controls {
    flex-flow: row wrap;
  }
}

@media (max-width: 540px) {
  body {
    padding-top: 8.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .page-intro {
    font-size: 1rem;
  }

  .button-group,
  .button-group button {
    width: 100%;
  }

  .tooltip-icon .tooltip-text {
    right: -1rem;
    left: auto;
    width: min(17.5rem, calc(100vw - 4rem));
    margin-left: 0;
  }

  .cert-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
