/* Local review only. Load after page-specific review styles.
   Palette source: the current app's roundedTheme.css. Opaque fills keep
   the website's black canvas from showing through its functional panels.
   Photographs, tablet hardware, the embedded app and light articles are untouched. */
:root {
  --review-graphite-panel: #19191c;
  --review-graphite-control: #202023;
  --review-graphite-hover: #27272b;
  --review-graphite-edge: #303034;
  --review-graphite-hairline: rgb(231 233 234 / .07);
}

/* Solid panels share one density instead of fading towards the page black. */
main .card,
.home-pillars .path-item,
.journal-start-panel {
  background: var(--review-graphite-panel);
  box-shadow: inset 0 0 0 1px var(--review-graphite-hairline);
}
.home-pillars .path-item:hover {
  background: var(--review-graphite-control);
}
main .trade-card {
  border-color: var(--review-graphite-edge);
  box-shadow: none;
}

/* Preserve the native select chevron; change its fill, not its background image. */
.field select,
.archive-search-field input,
.question-search input {
  background-color: var(--review-graphite-control);
  border-color: var(--review-graphite-edge);
  box-shadow: inset 0 0 0 1px var(--review-graphite-hairline);
  color: var(--text);
}
.field select:hover,
.archive-search-field input:hover,
.question-search input:hover {
  background-color: var(--review-graphite-hover);
}
.archive-search-field input::placeholder,
.question-search input::placeholder {
  color: var(--muted);
}
.journal-model-tags span {
  background: var(--review-graphite-control);
  color: var(--text-dim);
}

/* Questions are quiet graphite rows. Topic navigation keeps its fine underline. */
.question-grid,
.compact-questions #questions-list {
  border-top: 0;
  gap: 10px 24px;
}
.stack > .question,
.question-grid > .question,
.compact-questions #questions-list .question {
  background: var(--review-graphite-panel);
  border: 0;
  border-radius: 10px;
  padding-inline: 18px;
  box-shadow: inset 0 0 0 1px var(--review-graphite-hairline);
}
.stack > .question:hover,
.question-grid > .question:hover,
.compact-questions #questions-list .question:hover {
  background: var(--review-graphite-control);
  color: var(--text);
}

/* Retain rose-gold primary actions and the white reading surface of articles. */
body:not(:has(.recorded-article-page)) .button-secondary,
.journal-start-choice button,
.journal-demo-dialog:not(.front-tablet-inline) .demo-nav button {
  background: var(--review-graphite-control);
  color: var(--text-dim);
  box-shadow: inset 0 0 0 1px var(--review-graphite-hairline);
}
body:not(:has(.recorded-article-page)) .button-secondary:hover:not(:disabled),
.journal-start-choice button:hover,
.journal-demo-dialog:not(.front-tablet-inline) .demo-nav button:hover {
  background: var(--review-graphite-hover);
  color: var(--text);
}
.journal-start-choice button[aria-pressed="true"],
.journal-demo-dialog:not(.front-tablet-inline) .demo-nav button.active {
  background: var(--review-graphite-hover);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgb(205 170 150 / .22);
}

/* Viewer chrome only: do not paint over the inline tablet or its screen. */
.screen-dialog-bar,
.journal-demo-dialog:not(.front-tablet-inline) > .journal-demo-dialog-header {
  background: var(--review-graphite-panel);
  border-bottom: 1px solid var(--review-graphite-edge);
}

@media (max-width: 760px) {
  .site-header .site-nav.open {
    background: var(--review-graphite-panel);
    border-bottom-color: var(--review-graphite-edge);
  }
  .question-grid,
  .compact-questions #questions-list {
    gap: 8px;
  }
  .stack > .question,
  .question-grid > .question,
  .compact-questions #questions-list .question {
    padding-inline: 15px;
  }
}
