:root {
  --brand: #0070b7;
  --brand-bright: #0094db;
  --canvas: #f4f7f9;
  --page-wash: #f5f9fd;
  --sidebar: #f8f9fa;
  --border-ghost: #ececed;
  --on-surface: #1a1a1a;
  --on-surface-variant: #6b7280;
  --sidebar-width: 16rem;
  --header-height: 3rem;
  --radius: 0.625rem;
}

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

html {
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--on-surface);
  background: var(--canvas);
}

.app {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

/* —— Sidebar —— */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 30;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 40%);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none;
  }
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100dvh;
  border-right: 1px solid var(--border-ghost);
  background: var(--sidebar);
  box-shadow: 0 4px 24px rgb(0 0 0 / 6%);
  transform: translate3d(0, 0, 0);
  transition:
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .sidebar {
    position: static;
    z-index: auto;
    flex-shrink: 0;
    height: 100%;
    box-shadow: none;
    transform: none;
  }

  body:not(.sidebar-open) .sidebar {
    width: 0;
    overflow: hidden;
    border-right-width: 0;
  }
}

@media (max-width: 1023px) {
  body:not(.sidebar-open) .sidebar {
    transform: translate3d(-100%, 0, 0);
  }
}

.sidebar-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-ghost);
  background: #fff;
}

.sidebar-logo {
  display: block;
  width: auto;
  max-width: 12.5rem;
  height: 2.25rem;
  object-fit: contain;
}

.sidebar-close-mobile {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-ghost);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--on-surface-variant);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.sidebar-close-mobile:hover {
  border-color: rgb(0 112 183 / 20%);
  background: #f8fbfe;
  color: var(--brand);
}

@media (min-width: 1024px) {
  .sidebar-close-mobile {
    display: none;
  }
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 0.75rem;
}

.sidebar-footer-divider {
  height: 1px;
  margin: 0 0.125rem 0.5rem;
  background: repeating-linear-gradient(
    to right,
    rgb(209 213 219) 0,
    rgb(209 213 219) 1px,
    transparent 1px,
    transparent 6px
  );
}

.nav-section + .nav-section {
  margin-top: 1rem;
}

.nav-section-label {
  margin: 0 0 0.375rem;
  padding: 0 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.625rem 0.5rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-surface-variant);
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-item:hover {
  background: rgb(0 0 0 / 4%);
  color: #374151;
}

.nav-item.is-active {
  background: rgb(0 112 183 / 8%);
  font-weight: 600;
  color: var(--brand);
}

.nav-item-muted .nav-label {
  font-size: 13px;
}

.nav-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 1.25rem;
  border-radius: 999px 0 0 999px;
  background: var(--brand);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s;
}

.nav-item.is-active .nav-indicator {
  opacity: 1;
}

.nav-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--on-surface-variant);
  box-shadow:
    0 0 0 1px #e8eaed,
    0 1px 2px rgb(0 0 0 / 4%);
}

.nav-icon svg {
  width: 1rem;
  height: 1rem;
}

.nav-item.is-active .nav-icon {
  color: var(--brand);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Main —— */

.main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.app-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-height);
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-ghost);
  background: #fff;
}

.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-ghost);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.header-menu-btn:hover {
  border-color: rgb(0 112 183 / 20%);
  background: #f8fbfe;
}

.menu-icon {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--on-surface-variant);
  transition: transform 0.2s;
}

.menu-icon::before {
  top: 3px;
  box-shadow: 0 5px 0 var(--on-surface-variant);
}

.menu-icon::after {
  bottom: 3px;
}

.header-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.header-breadcrumb a {
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.15s;
}

.header-breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #d1d5db;
  user-select: none;
}

.breadcrumb-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--on-surface);
  font-weight: 600;
}

.content-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  padding: 1.25rem 0.75rem 2rem;
  background: var(--canvas);
  background-image:
    radial-gradient(ellipse 100% 50% at 50% -20%, rgb(0 112 183 / 7%), transparent 50%),
    linear-gradient(180deg, rgb(255 255 255 / 40%) 0%, transparent 12rem);
}

@media (min-width: 640px) {
  .content-scroll {
    padding: 1.5rem 1rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .content-scroll {
    padding: 1.75rem 1.25rem 3rem;
  }
}

.doc-page {
  width: 100%;
  max-width: min(72rem, 100%);
  margin: 0;
}

@media (min-width: 1024px) {
  .doc-page {
    max-width: min(68rem, calc(100vw - var(--sidebar-width) - 2.5rem));
  }
}

.doc-loading-state {
  padding: 3rem 0;
  text-align: center;
}

.doc-loading {
  margin: 0;
  font-size: 14px;
  color: var(--on-surface-variant);
  animation: doc-pulse 1.2s ease-in-out infinite;
}

@keyframes doc-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* —— Page hero —— */

.doc-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(0 112 183 / 10%);
  background: linear-gradient(180deg, rgb(255 255 255 / 85%) 0%, transparent 100%);
}

.doc-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.doc-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--on-surface);
}

.doc-hero-lead {
  margin: 0.875rem 0 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #4b5563;
}

.doc-body {
  min-height: 2rem;
}

/* —— Pager —— */

.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-ghost);
}

.doc-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 46%;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.doc-pager-link:hover {
  color: var(--brand);
}

.doc-pager-link:hover .doc-pager-label {
  color: var(--brand);
}

.doc-pager-link--next {
  margin-left: auto;
  text-align: right;
}

.doc-pager-direction {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.doc-pager-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  transition: color 0.15s;
}

.doc-pager-spacer {
  flex: 1;
}

/* —— Handbook prose —— */

.prose .page-heading {
  display: none;
}

.prose .lead,
.prose .menu-line {
  display: none;
}

.doc-error {
  margin: 0;
  padding: 1rem 0;
  color: #b91c1c;
}

.prose .glossary-strip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgb(0 112 183 / 12%);
  background: linear-gradient(135deg, #f8fbfe 0%, rgb(255 255 255 / 90%) 100%);
}

.prose .glossary-strip .glossary-line {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.prose .doc-section {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgb(0 0 0 / 6%);
}

.prose .doc-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.prose .phase-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 540px) {
  .prose .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .prose .phase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.prose .phase-card {
  padding: 1rem 1.125rem;
  border: 1px solid rgb(0 112 183 / 14%);
  border-radius: calc(var(--radius) + 2px);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 1px 2px rgb(0 112 183 / 6%);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.prose .phase-card:hover {
  border-color: rgb(0 112 183 / 28%);
  box-shadow: 0 8px 24px rgb(0 112 183 / 10%);
  transform: translateY(-1px);
}

.prose .phase-card .section-heading-phase {
  margin: 0 0 0.75rem;
  padding: 0;
  background: transparent;
  font-size: 11px;
}

.prose .phase-card .link-list {
  margin: 0;
}

.prose .phase-card .link-list li {
  padding: 0.25rem 0;
}

.prose .section-heading {
  margin: 0 0 0.875rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
  color: var(--on-surface);
}

.prose .doc-section > .section-heading {
  margin-bottom: 1rem;
}

.prose .section-heading-phase {
  margin-top: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  background: rgb(0 112 183 / 6%);
  color: var(--brand-deep, #004d7a);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  scroll-margin-top: 5rem;
}

.prose p {
  margin: 0 0 0.875rem;
}

.prose strong {
  font-weight: 600;
  color: var(--on-surface);
}

.prose .bullet-list,
.prose .link-list,
.prose .numbered-list,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose .link-list {
  list-style: none;
  padding-left: 0;
}

.prose .link-list li {
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}

.prose .link-list li:hover {
  background: rgb(0 112 183 / 5%);
}

.prose .link-list a {
  text-decoration: none;
  font-weight: 500;
}

.prose .link-list a:hover {
  text-decoration: underline;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.prose .table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.prose table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.prose th,
.prose td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border-ghost);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--page-wash);
  font-weight: 600;
  white-space: nowrap;
}

.prose tbody tr:nth-child(even) {
  background: rgb(248 249 250 / 80%);
}

.prose code {
  padding: 0.125rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--page-wash);
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.prose .code-block,
.prose pre {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--brand-bright);
}

.prose .prose-divider,
.prose hr {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid var(--border-ghost);
}

.prose .screenshot,
.prose .screenshot-frame {
  margin: 1.25rem 0;
  padding: 0;
  border: 1px solid rgb(0 112 183 / 12%);
  border-radius: calc(var(--radius) + 2px);
  background: #fafbfc;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 4%),
    0 12px 32px rgb(0 112 183 / 8%);
}

.prose .screenshot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}

.prose .screenshot figcaption,
.prose .screenshot-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border-ghost);
  font-size: 12px;
  line-height: 1.4;
  color: var(--on-surface-variant);
}

.prose .screenshot-hint {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.85;
}

.prose img:not(.screenshot img) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius);
  cursor: zoom-in;
}

.prose .image-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius);
  background: var(--page-wash);
  font-size: 13px;
  color: var(--on-surface-variant);
}

.prose .image-placeholder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.prose .image-placeholder p {
  margin: 0;
}

.prose .callout,
.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.65rem 0.875rem;
  border-left: 3px solid var(--brand-soft, #7ec4eb);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--page-wash);
  color: var(--on-surface-variant);
}

.prose blockquote p,
.prose .callout p {
  margin: 0;
}

/* —— Callouts —— */

.prose .callout {
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-ghost);
  background: var(--page-wash);
  position: relative;
}

.prose .callout::before {
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  width: 1.25rem;
  height: 1.25rem;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.9;
}

.prose .callout-summary {
  border-color: rgb(0 112 183 / 20%);
  background: linear-gradient(135deg, #f8fbfe 0%, #f4f7f9 100%);
}

.prose .callout-summary::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230070b7' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2z'/%3E%3C/svg%3E");
}

.prose .callout-flow {
  border-color: rgb(0 112 183 / 18%);
  background: #fff;
}

.prose .callout-flow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230070b7' stroke-width='2'%3E%3Cpath d='M13 5l7 7-7 7M5 5l7 7-7 7'/%3E%3C/svg%3E");
}

.prose .callout-tip {
  border-color: rgb(245 158 11 / 35%);
  background: #fffbeb;
}

.prose .callout-tip::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E");
}

.prose .callout-note,
.prose .callout-see {
  border-color: var(--border-ghost);
}

.prose .callout-note::before,
.prose .callout-see::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4m0-4h.01'/%3E%3C/svg%3E");
}

.prose .callout-title {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.prose .callout-list {
  margin: 0;
  padding-left: 1.1rem;
}

.prose .callout-list li {
  margin-bottom: 0.25rem;
}

.prose .callout-body,
.prose .callout-flow-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.prose .path-step {
  display: inline;
}

.prose .path-step strong {
  color: var(--brand-deep, #004d7a);
}

.prose .path-arrow {
  display: inline-block;
  margin: 0 0.35rem;
  color: var(--brand);
  font-weight: 600;
}

.prose .step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.prose .step-list li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 2rem;
  counter-increment: step;
}

.prose .step-list li::before {
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgb(0 112 183 / 10%);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  content: counter(step);
}

.prose .screenshot--tall {
  max-height: min(32rem, 55vh);
  overflow: hidden;
  position: relative;
}

.prose .screenshot--tall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, rgb(250 251 252 / 95%));
  pointer-events: none;
}

.prose .screenshot--tall img {
  max-height: min(28rem, 52vh);
  width: 100%;
  object-fit: contain;
  object-position: top center;
}

.prose .screenshot--tall .screenshot-hint::after {
  content: " · tall page";
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* —— Lightbox —— */

.image-lightbox {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 75%);
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .sidebar-overlay {
    transition: none;
  }
}
