header .relative:hover > .absolute,
header .relative:focus-within > .absolute {
  display: block !important;
}

.cookie-banner[hidden],
.modal[hidden],
#mobile-nav[hidden] {
  display: none !important;
}

.iconify {
  display: inline-block;
  vertical-align: -0.125em;
}

.iconify svg {
  display: block;
  height: 100%;
  width: 100%;
}

.iconify[data-icon-ready="true"] {
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.prose h1:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  row-gap: 0.5rem;
}

.prose li {
  padding-left: 0.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.prose th {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #111827;
}

.prose td {
  border-bottom: 1px solid #f3f4f6;
  padding: 1rem 1.5rem;
}

.prose tr:hover {
  background: #f9fafb;
}

.prose pre {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.18);
}

.prose pre code {
  font-size: 0.875rem;
}

.prose hr {
  margin: 3rem 0;
  border-color: #e5e7eb;
}

.prose img + em {
  display: block;
  margin: -1rem 0 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #4b5563;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  padding: 16px;
}

.cookie-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.cookie-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.cookie-panel p {
  color: #475569;
  margin: 8px 0 14px;
}

.cookie-panel label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-panel input {
  width: auto;
}

.cookie-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.cookie-panel button,
.modal button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.button-primary {
  background: #2563eb;
  color: #fff;
}

.button-secondary {
  background: #0f172a;
  color: #fff;
}

.button-ghost {
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.form-message {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-message.ok {
  background: #dcfce7;
  color: #166534;
}

.form-message.bad {
  background: #fee2e2;
  color: #991b1b;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.25);
}

.modal-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-panel p {
  margin-top: 8px;
  color: #475569;
}

.modal-panel input {
  margin-top: 16px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cookie-panel {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    align-items: start;
  }
}
