/* Report cards. Desktop layout is the base. Phone layout is only in the max-width block. */
.rc-skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-120%);
  background: #fff;
  color: #092c46;
  padding: 8px 12px;
}
.rc-skip:focus { transform: none; z-index: 30; }
.rc-page {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
  color: #092c46;
  font: 16px/1.5 "Atkinson Hyperlegible Next","Helvetica Neue",Arial,sans-serif;
}
.rc-page * { box-sizing: border-box; }
.rc-page h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
.rc-page h2 { font-size: 20px; margin: 0 0 8px; }
.rc-page h3 { font-size: 16px; margin: 0; }
.rc-lede, .rc-hint, .rc-gps, .rc-note, .rc-fit { margin: 0; }
.rc-lede { max-width: 68ch; }
.rc-hint, .rc-gps, .rc-note { color: #53636a; font-size: 15px; }
.rc-note[data-duplicate] { color: #092c46; font-weight: 600; }
.rc-fit { font-weight: 600; }
.rc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.rc-rail {
  position: sticky;
  top: 16px;
  padding: 16px;
  border: 1px solid #cbd0cb;
  border-radius: 12px;
  background: #fff;
}
.rc-rail ol { margin: 8px 0 12px; padding-left: 20px; }
.rc-rail a { color: #0759b5; }
.rc-drop {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed #83959d;
  border-radius: 12px;
}
.rc-drop.dragging { background: #e9eeeb; border-color: #092c46; }
.rc-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #092c46;
  color: #fff;
  cursor: pointer;
}
.rc-file input { width: 100%; min-width: 0; max-width: 100%; color: #fff; }
.rc-file input::file-selector-button {
  min-height: 44px;
  font: inherit;
  color: #092c46;
  background: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
.rc-notes { margin-top: 16px; }
.rc-notes summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rc-notes textarea,
.rc-fields textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  margin: 8px 0;
  padding: 10px;
  font: inherit;
  font-weight: 400;
  color: #092c46;
  border: 1px solid #83959d;
  border-radius: 8px;
  background: #fff;
}
.rc-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rc-suggestions p { margin: 0; color: #53636a; }
#rc-count, #rc-status { margin: 12px 0 0; }
#rc-status:empty { display: none; }
.rc-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
  margin: 20px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #cbd0cb;
  border-radius: 12px;
}
.rc-form { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.rc-fields { display: contents; }
.rc-fields > li { grid-column: 2; display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.rc-fields > li[data-step="photo"] { display: contents; }
.rc-photo-copy { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
.rc-photo, .rc-photo-missing {
  grid-column: 1;
  grid-row: 2 / span 16;
  position: sticky;
  top: 16px;
  align-self: start;
  width: 100%;
  min-height: 420px;
  max-height: 72vh;
  object-fit: contain;
  background: #e9eeeb;
  border-radius: 8px;
}
.rc-photo-missing { display: flex; align-items: center; padding: 16px; color: #53636a; }
.rc-fields { list-style: none; margin: 0; padding: 0; }
.rc-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.rc-fields input,
.rc-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  color: #092c46;
  background: #fff;
  border: 1px solid #83959d;
  border-radius: 8px;
}
.rc-address-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid #092c46;
  border-radius: 8px;
}
.rc-address { width: 100%; overflow-wrap: anywhere; text-align: left; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-btn {
  font: inherit;
  color: #092c46;
  background: #fff;
  border: 1px solid #83959d;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
}
.rc-btn.primary { background: #092c46; color: #fff; border-color: #092c46; }
.rc-btn[aria-pressed="true"] { border-color: #092c46; box-shadow: inset 0 0 0 2px #092c46; }
.rc-remove { grid-column: 2; justify-self: start; }
.rc-btn:focus-visible,
.rc-fields input:focus-visible,
.rc-fields select:focus-visible,
.rc-fields textarea:focus-visible,
.rc-file:focus-within {
  outline: 3px solid #c70043;
  outline-offset: 3px;
}
.rc-card.is-selected { outline: 2px solid #092c46; outline-offset: 2px; }
.rc-copies { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; }
.rc-copy { margin: 0; min-width: 0; max-width: 100%; }
.rc-copy .rc-photo { width: min(100%, 280px); max-height: 220px; object-fit: contain; }
.rc-saved { margin: 8px 0 0; padding-left: 18px; }
.rc-saved li { margin: 8px 0; overflow-wrap: anywhere; }
.rc-foot { margin-top: 12px; }
.rc-foot a { color: #0759b5; }
.crew-panel.rc-page { width: auto; margin: 0; padding: 0; }

@media (max-width: 850px) {
  .rc-page { width: calc(100% - 24px); padding-top: 16px; }
  .crew-panel.rc-page { width: auto; padding-top: 0; }
  .rc-page h1 { font-size: 28px; }
  .rc-layout { display: block; }
  .rc-rail { position: static; margin-top: 20px; }
  .rc-card { display: flex; flex-direction: column; }
  .rc-fields { display: flex; flex-direction: column; }
  .rc-fields > li,
  .rc-photo-copy,
  .rc-remove,
  .rc-form { grid-column: auto; }
  .rc-fields > li[data-step="photo"] { display: contents; }
  .rc-photo, .rc-photo-missing {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
    max-height: 46vh;
    width: 100%;
  }
  .rc-drop, .rc-layout, .rc-card, .rc-file { max-width: 100%; }
  .rc-file input {
    min-height: 44px;
    height: 44px;
  }
  .rc-file,
  .rc-file input::file-selector-button,
  .rc-notes summary,
  .rc-btn,
  .rc-fields input,
  .rc-fields select,
  .rc-fields textarea,
  .rc-rail a {
    min-height: 44px;
    min-width: 44px;
  }
  .rc-rail a,
  .rc-foot a,
  .rc-page a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 4px; box-sizing: border-box; }
  .rc-actions, .rc-address-block { width: 100%; }
  .rc-btn { overflow-wrap: anywhere; }
}
