/* GENERATED COPY TARGET — edit this source file, not plan/docs-review/review.css. */
:root {
  color-scheme: light;
  --ink: #16233a;
  --muted: #607089;
  --line: #d9e0ea;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --accent: #2457d6;
  --accent-soft: #e8efff;
  --warning: #8b4a09;
  --warning-bg: #fff5df;
  --resolved: #47705c;
  --shadow: 0 18px 50px rgb(34 51 84 / 14%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.62;
}

button,
select,
textarea,
input {
  font: inherit;
}

button,
select {
  min-height: 2.25rem;
}

button {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0.38rem 0.72rem;
}

button:hover,
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 70%);
  outline-offset: 2px;
}

button:hover {
  border-color: var(--accent);
}

a {
  color: #174abf;
  text-underline-offset: 0.16em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91em;
  background: #eef2f8;
  border-radius: 0.25rem;
  padding: 0.08rem 0.28rem;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #111b2d;
  color: #f4f7fb;
  padding: 1rem;
}

pre code {
  background: transparent;
  padding: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.65rem 1rem;
}

.skip-link:focus {
  top: 0.5rem;
}

.review-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.1rem;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

.temporary-badge,
.stale-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.28rem 0.55rem;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-left: auto;
}

.locale-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
}

.locale-switch button {
  border: 0;
  border-radius: 0;
}

.locale-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.temporary-banner,
.review-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding: 0.58rem clamp(1rem, 3vw, 2.5rem);
}

.temporary-banner {
  border-bottom: 1px solid #efd9af;
  background: var(--warning-bg);
  color: #563112;
}

.temporary-banner #global-counts {
  margin-left: auto;
  font-weight: 700;
}

.review-meta {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
}

.review-meta .is-warning {
  color: var(--warning);
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3.5rem);
  width: min(100%, 100rem);
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem) 5rem;
}

.desktop-sidebar {
  position: sticky;
  top: 9rem;
  align-self: start;
  max-height: calc(100vh - 10rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  box-shadow: 0 8px 30px rgb(34 51 84 / 7%);
  padding: 0.75rem;
}

.nav-page + .nav-page {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.nav-page a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  border-radius: 0.45rem;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
  padding: 0.34rem 0.45rem;
}

.nav-page-link {
  font-weight: 750;
}

.nav-page ol {
  list-style: none;
  margin: 0.15rem 0 0 0.55rem;
  border-left: 1px solid var(--line);
  padding: 0 0 0 0.5rem;
}

.nav-page a:hover,
.nav-page a.is-active {
  background: var(--accent-soft);
  color: #103c9e;
}

.nav-count {
  flex: none;
  min-width: 1.35rem;
  border-radius: 999px;
  background: #edf1f7;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.06rem 0.35rem;
}

main {
  min-width: 0;
}

.review-page {
  width: min(100%, 58rem);
  margin: 0 auto 2rem;
}

.review-page[hidden],
.nav-locale[hidden] {
  display: none;
}

.page-intro,
.review-topic {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 8px 30px rgb(34 51 84 / 6%);
}

.page-intro {
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.page-intro h1 {
  margin-top: 0;
  line-height: 1.15;
}

.review-topic {
  margin: 0 0 1rem;
  overflow: clip;
}

.topic-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fbfdff, #f2f6ff);
  padding: 1rem clamp(1rem, 3vw, 1.7rem);
}

.topic-heading h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.topic-kicker {
  margin: 0 0 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topic-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topic-counts {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.topic-body {
  padding: 0.7rem clamp(1rem, 3vw, 1.7rem) 1.3rem;
}

.topic-body p {
  margin-block: 0.8rem;
}

.topic-body li + li {
  margin-top: 0.55rem;
}

.topic-body h2:first-child {
  display: none;
}

.topic-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.screenshot-trigger {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 0.7rem;
  background: #edf2f9;
  padding: 0.35rem;
}

.topic-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.topic-body th,
.topic-body td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}

.topic-body blockquote,
.annotation-card blockquote {
  margin: 0.8rem 0;
  border-left: 3px solid #9bb2ec;
  background: #f5f8ff;
  color: #32425c;
  padding: 0.55rem 0.85rem;
}

.annotations:not(:empty) {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  padding: 0.85rem clamp(1rem, 3vw, 1.7rem) 1.1rem;
}

.annotation-card {
  border: 1px solid #cad5e3;
  border-left: 4px solid #e0962f;
  border-radius: 0.55rem;
  background: var(--paper);
  padding: 0.75rem 0.85rem;
}

.annotation-card.status-resolved {
  border-left-color: var(--resolved);
  opacity: 0.84;
}

.annotation-meta,
.annotation-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.annotation-meta strong {
  color: var(--ink);
}

.annotation-card > p {
  white-space: pre-wrap;
}

.annotation-footer {
  justify-content: space-between;
}

.page-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}

.page-sequence a:last-child {
  text-align: right;
}

.drawer-toggle,
.drawer,
.drawer-overlay {
  display: none;
}

dialog {
  width: min(calc(100% - 2rem), 34rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  padding: 0;
}

dialog::backdrop {
  background: rgb(10 21 39 / 56%);
}

dialog form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

dialog h2,
dialog p {
  margin: 0;
}

dialog label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

dialog input,
dialog textarea,
dialog select {
  width: 100%;
  border: 1px solid #aab6c8;
  border-radius: 0.5rem;
  background: var(--paper);
  padding: 0.58rem 0.65rem;
  font-weight: 400;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.dialog-actions button[type="submit"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.form-error {
  color: #a32323;
  font-weight: 700;
}

.lightbox {
  width: min(calc(100% - 2rem), 92rem);
  max-height: calc(100vh - 2rem);
  background: #101827;
  padding: 0.75rem;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  margin: 0 auto;
}

.lightbox button {
  display: block;
  margin: 0 0 0.6rem auto;
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 11rem;
  }

  .review-header {
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
  }

  .drawer-toggle {
    display: inline-flex;
    align-items: center;
  }

  .temporary-badge,
  .filter-label {
    display: none;
  }

  .header-title {
    font-size: 0.94rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }

  #change-reviewer {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .temporary-banner,
  .review-meta {
    padding-inline: 0.75rem;
  }

  .temporary-banner #global-counts {
    width: 100%;
    margin: 0;
  }

  .layout {
    display: block;
    padding: 0.75rem 0.65rem 4rem;
  }

  .desktop-sidebar {
    display: none;
  }

  .drawer-overlay {
    display: block;
    position: fixed;
    z-index: 38;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgb(10 21 39 / 55%);
    padding: 0;
  }

  .drawer-overlay[hidden] {
    display: none;
  }

  .drawer {
    display: block;
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: min(88vw, 22rem);
    overflow-y: auto;
    transform: translateX(-105%);
    border-right: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 0.7rem;
    transition: transform 160ms ease-out;
  }

  .drawer.is-open {
    transform: translateX(0);
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 0.35rem 0.2rem 0.7rem;
  }

  body.drawer-open {
    overflow: hidden;
  }

  .review-page {
    width: 100%;
  }

  .page-intro,
  .review-topic {
    border-radius: 0.7rem;
  }

  .topic-heading {
    display: block;
  }

  .topic-actions {
    justify-content: flex-start;
    margin-top: 0.7rem;
  }

  .topic-body {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .drawer {
    transition: none;
  }
}

/* Public documentation styling layered on the shared documentation renderer. */
:root {
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #ffffff;
  --wash: #fafaf9;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --shadow: 0 18px 50px rgb(28 25 23 / 12%);
}

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

.review-header {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 92%);
}

.header-title {
  gap: 0.55rem;
}

.brand-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.header-section {
  color: var(--muted);
  font-weight: 400;
}

.header-controls > a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.header-controls > a:hover {
  color: var(--accent);
}

.desktop-sidebar,
.drawer {
  border-color: var(--line);
  background: var(--paper);
}

.nav-page a.is-active {
  background: var(--accent-soft);
  color: #3730a3;
}

.page-intro,
.review-topic {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgb(28 25 23 / 5%);
}

.topic-heading {
  border-bottom-color: var(--line);
  background: #fafaf9;
}

.topic-kicker {
  color: #78716c;
}

.topic-body a,
.page-sequence a {
  color: var(--accent);
}

.screenshot-trigger {
  border-color: var(--line);
  background: #f5f5f4;
}

@media (max-width: 800px) {
  .header-controls > a {
    display: none;
  }
}
