/* Copy Review shell. Loaded after each page's mock CSS.
   The side panel sits in its own white card beside the mockup, so nobody
   mistakes an instruction for website copy. */
@font-face {
  font-family: "Onest";
  src: url(/assets/fonts/onest.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --cr-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cr-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cr-ink: #26221d;
  --cr-muted: #5c554b;
  --cr-line: #e2dace;
  --cr-paper: #faf7f2;
  --cr-teal: #0c3944;
  --cr-teal-soft: #e3eef0;
  --cr-cerise: #9b084f;
  --cr-ok: #0b6e2f;
  --cr-warn: #8a4b00;
  --cr-err: #b3261e;
  --cr-gutter: 20px;
  --cr-rail-w: clamp(340px, 27vw, 460px);
}
body.cr {
  background: var(--cr-paper);
  margin: 0;
  overflow-x: hidden;
}
.cr [hidden] {
  display: none !important;
}

/* ---------- header bar on the start page and the inbox ---------- */
.cr-top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--cr-gutter);
  background: var(--cr-ink);
  color: #fff;
  font: 14px/1.3 var(--cr-ui);
}
.cr-brand {
  font: 600 13px/1.2 var(--cr-mono);
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.cr-brand span {
  color: #c9c1b4;
}
.cr-top-spacer {
  flex: 1;
}
.cr-top :focus-visible,
.cr-rail :focus-visible,
.cr-chip :focus-visible,
.cr-pop :focus-visible,
.cr-leave :focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}

/* ---------- two columns: mockup | rail ---------- */
.cr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1240px) var(--cr-rail-w);
  justify-content: center;
  column-gap: var(--cr-gutter);
  padding: 16px var(--cr-gutter) 0;
}
.cr .cr-mock .stage {
  max-width: none;
  margin: 0;
  padding: 0 0 56px;
}
.cr .cr-mock .sheet {
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  margin-bottom: 0 !important;
}
.cr .cr-mock .band,
.cr .cr-mock .frame {
  grid-column: 1;
}

/* ---------- sections in the mockup ---------- */
.cr [data-review-section] {
  position: relative;
  scroll-margin-top: 24px;
}
body.cr [data-review-section] {
  cursor: pointer;
}
body.cr [data-review-section]:hover {
  box-shadow: inset 0 0 0 2px rgba(12, 57, 68, 0.35);
}
body.cr [data-review-section].cr-active {
  box-shadow:
    inset 0 0 0 3px var(--cr-teal),
    inset 0 0 0 9999px rgba(12, 57, 68, 0.035);
}
.cr-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  align-items: stretch;
  max-width: min(320px, 60%);
  font: 600 12px/1.25 var(--cr-ui);
  cursor: default;
}
.cr-chip-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 11px;
  border: 1px solid var(--cr-teal);
  border-radius: 999px;
  background: #fff;
  color: var(--cr-teal);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(12, 57, 68, 0.8);
}
.cr-chip-main:hover {
  background: var(--cr-teal-soft);
}
.cr-chip.has-draft .cr-chip-main {
  background: #fff7e3;
  border-color: #c98a12;
  color: #5d3a00;
}
.cr-chip.is-sent .cr-chip-main {
  background: #e9f5ec;
  border-color: var(--cr-ok);
  color: #0a4d22;
}
/* The section being written in has the outline; its chip comes back, in
   yellow, once the comment is closed. */
.cr-chip.is-active {
  display: none;
}
.cr-chip-icon {
  flex: none;
  font-size: 13px;
}
.cr-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-info {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 5px;
  align-self: center;
  border-radius: 50%;
  border: 1px solid var(--cr-cerise);
  background: #fff;
  color: var(--cr-cerise);
  font:
    700 13px/1 Georgia,
    serif;
  font-style: italic;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.cr-info[aria-expanded="true"] {
  background: var(--cr-cerise);
  color: #fff;
}

/* Mock contact form is display only. */
.cr .cform input,
.cr .cform textarea {
  pointer-events: none;
  background: #fbfbfa;
}

/* ---------- the rail ---------- */
.cr-rail {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -48px rgba(38, 34, 29, 0.7);
  font: 15px/1.55 var(--cr-ui);
  color: var(--cr-ink);
  overflow: hidden;
}
.cr-loading {
  padding: 20px;
  color: var(--cr-muted);
}
.cr-rail-head {
  flex: none;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--cr-line);
}
.cr-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-rail h2 {
  margin: 0;
  font: 700 20px/1.25 var(--cr-ui);
  letter-spacing: -0.015em;
  flex: 1;
  min-width: 0;
}
.cr-close {
  flex: none;
  border: 1px solid var(--cr-teal);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font: 600 13px/1 var(--cr-ui);
  cursor: pointer;
  color: var(--cr-teal);
}
.cr-close:hover {
  background: var(--cr-teal-soft);
}
.cr-showsec {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid #efd29a;
  background: #fff7e3;
  color: #5d3a00;
  border-radius: 999px;
  padding: 7px 12px;
  font: 600 13px/1.3 var(--cr-ui);
  cursor: pointer;
}
.cr-showsec:hover {
  background: #fdefc8;
}
.cr-rail-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cr-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.cr-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cr-steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cr-teal);
  color: #fff;
  font: 700 14px/28px var(--cr-ui);
  text-align: center;
}
.cr-steps b {
  font-weight: 650;
}
.cr-small {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--cr-muted);
}
.cr-page-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cr-teal-soft);
  color: var(--cr-teal);
  font-size: 14px;
}
.cr-prompt {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cr-teal-soft);
  color: var(--cr-teal);
  font-size: 14px;
  line-height: 1.5;
}
.cr-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px dashed currentColor;
  font: 600 11px/1.5 var(--cr-ui);
  vertical-align: 1px;
  opacity: 0.8;
}
.cr-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-weight: 650;
  font-size: 13.5px;
  margin: 0 0 -6px;
}
.cr-field-label button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cr-field-label button {
  border: 1px solid var(--cr-line);
  background: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font: 600 12px var(--cr-ui);
  cursor: pointer;
  color: var(--cr-ink);
}
.cr-comment {
  flex: 1 0 170px;
  min-height: 170px;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  border: 1px solid #cfc7ba;
  border-radius: 10px;
  padding: 10px 12px;
  font: 14.5px/1.55 var(--cr-ui);
  color: var(--cr-ink);
  background: #fff;
}
.cr-comment:focus {
  outline: 3px solid rgba(12, 57, 68, 0.25);
  border-color: var(--cr-teal);
}
.cr-count {
  margin: -6px 0 0;
  font-size: 12px;
  color: var(--cr-muted);
  text-align: right;
}
.cr-count.is-near {
  color: var(--cr-warn);
  font-weight: 650;
}
.cr-images {
  border: 1px dashed #cfc7ba;
  border-radius: 10px;
  padding: 10px 12px;
}
.cr-images.is-drop {
  border-color: var(--cr-teal);
  background: var(--cr-teal-soft);
}
.cr-images-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-btn {
  border: 1px solid var(--cr-teal);
  background: #fff;
  color: var(--cr-teal);
  border-radius: 8px;
  padding: 7px 12px;
  font: 650 13px/1 var(--cr-ui);
  cursor: pointer;
  white-space: nowrap;
}
.cr-btn:hover {
  background: var(--cr-teal-soft);
}
.cr-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cr-image-prompt {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--cr-teal);
}
.cr-images-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--cr-muted);
}
.cr-thumbs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cr-thumbs li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  background: #fff;
}
.cr-thumbs .cr-thumb {
  width: 52px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  background: #eee9e0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.cr-thumbs .cr-fname {
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-thumbs .cr-fmeta {
  font-size: 11.5px;
  color: var(--cr-muted);
}
.cr-thumbs .is-missing .cr-fmeta,
.cr-thumbs .is-error .cr-fmeta {
  color: var(--cr-err);
  font-weight: 600;
}
.cr-thumbs .is-memory .cr-fmeta {
  color: var(--cr-warn);
}
.cr-thumbs button {
  border: 0;
  background: none;
  color: var(--cr-cerise);
  font: 600 12px var(--cr-ui);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.cr-banner {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  background: #fff7e3;
  color: #4d3000;
  border: 1px solid #efd29a;
}
.cr-banner.is-error {
  background: #fdecea;
  color: #6b1510;
  border-color: #f2b8b2;
}
.cr-banner p {
  margin: 0 0 6px;
}
.cr-banner .cr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- rail footer: name, status, send ---------- */
.cr-rail-foot {
  flex: none;
  border-top: 1px solid var(--cr-line);
  padding: 10px 18px 12px;
  background: #fdfcfa;
  display: grid;
  gap: 7px;
}
.cr-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.cr-name label {
  font-weight: 650;
  font-size: 13.5px;
}
.cr-name input {
  min-width: 0;
  border: 1px solid #cfc7ba;
  border-radius: 8px;
  padding: 7px 10px;
  font: 14px var(--cr-ui);
}
.cr-name input[aria-invalid="true"] {
  border-color: var(--cr-err);
  outline: 2px solid rgba(179, 38, 30, 0.2);
}
.cr-status {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cr-muted);
  white-space: pre-line;
}
.cr-status.is-ok {
  color: var(--cr-ok);
}
.cr-status.is-warn {
  color: var(--cr-warn);
}
.cr-status.is-error {
  color: var(--cr-err);
  font-weight: 600;
}
.cr-send {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--cr-teal);
  color: #fff;
  font: 700 14.5px/1 var(--cr-ui);
  cursor: pointer;
}
.cr-send:hover {
  background: #134d5b;
}
.cr-send:disabled {
  opacity: 0.55;
  cursor: default;
}
.cr-send.is-sent:disabled {
  background: var(--cr-ok);
  opacity: 1;
}
.cr-turnstile:empty {
  display: none;
}
.cr-local {
  font-size: 12px;
  text-align: center;
}
.cr-local button {
  border: 0;
  background: none;
  color: var(--cr-teal);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ---------- information popover ---------- */
.cr-pop {
  position: fixed;
  z-index: 80;
  width: 320px;
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cr-ink);
  color: #fff;
  font: 14px/1.5 var(--cr-ui);
  box-shadow: 0 24px 46px -22px rgba(38, 34, 29, 0.85);
}
.cr-pop p {
  margin: 0;
}
.cr-pop p + p {
  margin-top: 8px;
}
.cr-pop a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cr-pop-h {
  font: 700 15px/1.3 var(--cr-ui) !important;
  margin-bottom: 10px !important;
}
.cr-pop-part + .cr-pop-part {
  margin-top: 10px;
}
.cr-pop-k {
  font-weight: 650;
  color: #f2b84b;
}
.cr-pop ul {
  margin: 2px 0 0;
  padding-left: 18px;
}

/* ---------- toast for unbuilt destinations ---------- */
.cr-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cr-ink);
  color: #fff;
  font: 14px/1.45 var(--cr-ui);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.cr-toast a {
  color: #fff;
}

/* ---------- leaving with unsent feedback ---------- */
.cr-leave {
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  color: var(--cr-ink);
  font: 15px/1.5 var(--cr-ui);
  box-shadow: 0 30px 60px -30px rgba(38, 34, 29, 0.7);
}
.cr-leave::backdrop {
  background: rgba(38, 34, 29, 0.45);
}
.cr-leave h2 {
  margin: 0 0 8px;
  font: 700 19px/1.3 var(--cr-ui);
}
.cr-leave p {
  margin: 0 0 18px;
  color: var(--cr-muted);
}
.cr-leave-actions {
  display: grid;
  gap: 8px;
}
.cr-leave .cr-btn {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14.5px;
}

/* ---------- desktop only: the mock's own notice covers small screens ---------- */
@media screen and (max-width: 1099px) {
  .cr-top,
  .cr-layout {
    display: none;
  }
}
@media screen and (min-width: 1100px) {
  .cr .mobwarn {
    display: none !important;
  }
  body.cr {
    overflow: visible;
    overflow-x: hidden;
  }
}
@media screen and (max-width: 1279px) {
  :root {
    --cr-gutter: 16px;
    --cr-rail-w: 340px;
  }
  .cr-brand span {
    display: none;
  }
}

/* Method rows: the pill is the link in the review copy. */
.cr .mband > a.pill {
  text-decoration: none;
}
.cr .mband > a.pill:hover {
  background: #134d5b;
}

@media screen and (max-height: 820px) {
  .cr-local {
    display: none;
  }
  .cr-comment {
    flex-basis: 130px;
    min-height: 130px;
  }
  .cr-rail-head {
    padding: 12px 16px 10px;
  }
  .cr-rail-body {
    padding: 12px 16px;
    gap: 10px;
  }
  .cr-prompt {
    padding: 8px 10px;
    font-size: 13.5px;
  }
}
