/* Rejection City: "All fixes" view. Tabs per place, before and after screens, numbered fixes with the reason. Scoped under .rc-all. */
.rc-all .rc-tabs { display: none; }
.js .rc-all .rc-tabs { display: flex; gap: 4px 24px; flex-wrap: wrap; margin: 0 0 8px; border-bottom: var(--stroke-hairline) solid var(--ink-700); }
.rc-all .rc-tabs__tab {
  min-height: 44px; padding: 8px 2px; margin: 0 0 -1px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-supporting); font: 500 16px/24px var(--font-body); cursor: pointer;
}
.rc-all .rc-tabs__tab:hover { color: var(--text-primary); }
.rc-all .rc-tabs__tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--text-primary); font-weight: 600; }
.rc-all .rc-tabs__tab:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; border-radius: var(--radius-sm); }

.rc-all .rc-fix { padding: 32px 0; border-top: var(--stroke-hairline) solid var(--ink-700); }
.js .rc-all .rc-fix { border-top: 0; }
.rc-all .rc-fix[hidden] { display: none; }
.rc-all .rc-fix__head { max-width: 720px; margin: 0 0 28px; }
.rc-all .rc-fix__title { margin: 0 0 8px; font: 600 var(--display-section)/var(--display-section-lh) var(--font-display); color: var(--text-primary); }
.rc-all .rc-fix__kind { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-supporting); }
.rc-all .rc-fix__moment { margin: 0; font-size: var(--text-body-l); line-height: var(--text-body-l-lh); color: var(--text-body); }

.rc-all .rc-fix__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.rc-all .rc-fix__screen { margin: 0; max-width: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rc-all .rc-fix__screen figcaption { color: var(--text-supporting); font-size: 15px; line-height: 22px; }
.rc-all .rc-fix__screen figcaption strong { color: var(--text-primary); font-weight: 600; }
.rc-all .rc-fix__screen .rc-device--phone { width: min(320px, 100%); }
.rc-all .rc-fix__screen .rc-device:not(.rc-device--phone) { width: 100%; }

.rc-all .rc-fix__why-title { margin: 0 0 8px; font: 600 var(--display-tab)/var(--display-tab-lh) var(--font-display); color: var(--text-primary); }
.rc-all .rc-why { list-style: none; margin: 0; padding: 0; }
.rc-all .rc-why__item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: var(--stroke-hairline) solid var(--ink-700); }
.rc-all .rc-why__item:first-child { border-top: 0; padding-top: 8px; }
.rc-all .rc-why__num { font: 600 var(--display-tab)/var(--display-tab-lh) var(--font-display); color: var(--text-accent); }
.rc-all .rc-why__body { display: grid; gap: 8px; min-width: 0; }
.rc-all .rc-why__body p { margin: 0; }
.rc-all .rc-why__fix { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.rc-all .rc-why__aim { justify-self: start; padding: 2px 10px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text-body); border: var(--stroke-hairline) solid var(--ink-600); border-radius: var(--radius-pill); }
.rc-all .rc-why__reason { font-size: 15px; line-height: 22px; color: var(--text-body); }
.rc-all .rc-why__reason strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 1099px) {
  .rc-all .rc-fix__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rc-all .rc-fix__why { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* Tabs wrap onto two lines instead of being cut off at the edge. */
  .js .rc-all .rc-tabs { gap: 0 20px; }
  .js .rc-all .rc-tabs__tab { white-space: nowrap; }
  /* Every device keeps its whole Figma shape and layout here, just smaller (the phone-only enlargements are undone). */
  .rc-all .rc-fix__screen .rc-device--atm .rc-screen { --px: calc(100cqw / 720); aspect-ratio: 720 / 480; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device--tablet .rc-screen.rc-bank { --px: calc(100cqw / 600); aspect-ratio: 600 / 840; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device--kiosk .rc-screen.rc-council { --px: calc(100cqw / 560); aspect-ratio: 560 / 820; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device, .rc-all .rc-fix__screen .rc-device:not(.rc-device--phone) { width: min(300px, 100%); margin: 0 auto; }
  .rc-all .rc-fix__screen .rc-device.rc-device--atm:not(.rc-device--phone) { width: 100%; }
  /* Phones in the list keep their whole shape, just smaller. */
  .rc-all .rc-fix__screen .rc-device--phone { width: min(230px, 100%); }
  /* Spacing as on the case study pages: 60px from the last fix to the next section. */
  .rc-all .rc-fix { padding-bottom: 0; }
  .rc-all .rc-all__title { font-size: var(--display-section); line-height: var(--display-section-lh); }
  .rc-all .rc-fix__screen figcaption { text-align: left; }
  .rc-all .rc-fix__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* "All fixes" is a section on the page, spaced like the case study sections. */
.rc-all { padding-top: var(--layout-section-gap); scroll-margin-top: 24px; }
.rc-all .rc-all__head { display: grid; gap: 16px; padding-top: 0; margin-bottom: var(--layout-block-gap); }
.rc-all .rc-all__head .section-header__text { max-width: 620px; }

/* --- All fixes page: header like the case study pages (title, subtitle, jump link) -------------------- */
.rc-fixes-page .rc-fixes-page__head { padding-top: 33px; margin-bottom: 37px; }
.rc-fixes-page .case-header__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--display-h2); line-height: var(--display-h2-lh); color: var(--text-primary); }
.rc-fixes-page .case-header__subtitle { margin: 6px 0 0; color: var(--grey-500); font-size: 16px; line-height: 24px; font-weight: 700; }
.rc-fixes-page .case-header__jumps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rc-fixes-page .jump-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink-850); color: var(--grey-400); font-size: 16px; line-height: 20px; font-weight: 700; text-decoration: none; }
.rc-fixes-page .jump-link:hover { color: var(--white); }
.rc-fixes-page .jump-link:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }
.rc-fixes-page .rc-all { padding-top: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
  .rc-fixes-page .rc-fixes-page__head { padding-top: 44px; margin-bottom: 58px; }
  .rc-fixes-page .case-header__subtitle { margin-top: 8px; }
}
@media (min-width: 1200px) {
  .rc-fixes-page .rc-fixes-page__head { padding-top: 68px; margin-bottom: 56px; }
  .rc-fixes-page .case-header__subtitle { margin-top: 4px; }
  .rc-fixes-page .case-header__jumps { margin-top: 29px; }
  .rc-fixes-page .jump-link { padding: 0; gap: 10px; background: none; color: var(--grey-450); }
}

/* Tablets: the same compact screens as on phones (only as tall as their content), a little bigger. */
@media (min-width: 768px) and (max-width: 1099px) {
  /* Every device keeps its whole Figma shape and layout on tablets too, a little bigger. */
  .rc-all .rc-fix__screen .rc-device--atm .rc-screen { --px: calc(100cqw / 720); aspect-ratio: 720 / 480; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device--tablet .rc-screen.rc-bank { --px: calc(100cqw / 600); aspect-ratio: 600 / 840; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device--kiosk .rc-screen.rc-council { --px: calc(100cqw / 560); aspect-ratio: 560 / 820; min-height: 0; }
  .rc-all .rc-fix__screen .rc-device, .rc-all .rc-fix__screen .rc-device:not(.rc-device--phone) { width: min(340px, 100%); margin: 0 auto; }
  .rc-all .rc-fix__screen .rc-device.rc-device--atm:not(.rc-device--phone) { width: 100%; }
  .rc-all .rc-fix__screen .rc-device--phone { width: min(280px, 100%); }
}
