/* Cookie consent banner (consent.js). Same ink, lines, type and pill buttons as the landing. */
.txc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  box-sizing: border-box;
  max-width: 400px;
  padding: 20px;
  border: 1px solid #edeff2;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 12px 32px -8px rgba(16, 24, 40, 0.14),
    0 2px 6px rgba(16, 24, 40, 0.05);
  font-family:
    'IBM Plex Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: #1d2939;
}
.txc[hidden] {
  display: none;
}
@media (min-width: 600px) {
  .txc {
    left: 24px;
    right: auto;
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .txc {
    animation: txc-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
}
@keyframes txc-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
.txc-title {
  margin: 0 0 8px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7a5fe2;
}
.txc-text {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: #4f5154;
  text-wrap: pretty;
}
.txc-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.txc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font:
    400 15px/1 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.txc-btn:focus-visible {
  outline: 2px solid #7a5fe2;
  outline-offset: 2px;
}
.txc-btn-primary {
  background: #1d2939;
  border-color: #1d2939;
  color: #fff;
}
.txc-btn-primary:hover {
  background: #344054;
  border-color: #344054;
}
.txc-btn-default {
  background: #fff;
  border-color: #d0d5dd;
  color: #1d2939;
}
.txc-btn-default:hover {
  border-color: #1d2939;
  background: #f8f9fb;
}

/* The "Cookies" link in the footers: a button that looks like the legal links beside it. :where()
   keeps this reset at zero specificity, so the page's own colour classes still apply. */
:where([data-consent-open]) {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
[data-consent-open]:hover {
  text-decoration: underline;
}
[data-consent-open]:focus-visible {
  outline: 2px solid #7a5fe2;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark theme (html.dark on the landing, data-theme="dark" on the calculator): same surfaces as the
   page's dark cards. */
html.dark .txc,
html[data-theme='dark'] .txc {
  border-color: #2a3441;
  background: #1a212b;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  color: #f2f4f7;
}
html.dark .txc-title,
html[data-theme='dark'] .txc-title {
  color: #b9a9f5;
}
html.dark .txc-text,
html[data-theme='dark'] .txc-text {
  color: #98a2b3;
}
html.dark .txc-btn-primary,
html[data-theme='dark'] .txc-btn-primary {
  background: #f2f4f7;
  border-color: #f2f4f7;
  color: #0f141b;
}
html.dark .txc-btn-primary:hover,
html[data-theme='dark'] .txc-btn-primary:hover {
  background: #fff;
  border-color: #fff;
}
html.dark .txc-btn-default,
html[data-theme='dark'] .txc-btn-default {
  background: transparent;
  border-color: #2a3441;
  color: #f2f4f7;
}
html.dark .txc-btn-default:hover,
html[data-theme='dark'] .txc-btn-default:hover {
  border-color: #98a2b3;
  background: #232c38;
}
html.dark .txc-btn:focus-visible,
html.dark [data-consent-open]:focus-visible,
html[data-theme='dark'] .txc-btn:focus-visible,
html[data-theme='dark'] [data-consent-open]:focus-visible {
  outline-color: #b9a9f5;
}
