/* Stensul by role. The page hero, frame grid, panel head, story cards, form
   hero and demo band are shared; this file adds the role links, the
   before/after frame, the numbers row and the Ivory Tint ground. */

.br-page { --ic-line: currentColor; }

/* Light sections alternate white and Ivory Tint. */
.br-ivory {
  background: var(--kit-ivory-tint);
  border-top: 1px solid var(--kit-ivory-medium);
}

/* ---------- Role links: five cells, two columns on tablets, one row from 1024 ---------- */
@media (min-width: 600px) {
  .br-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-roles > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .br-roles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .br-roles > li:last-child { grid-column: auto; }
}

.br-roles > li { padding: 0; }
.br-role-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease;
}
@media (min-width: 1024px) { .br-role-link { padding: 32px 24px; } }
.br-role-link:hover { background: var(--kit-ivory-tint); }
.br-role-link:focus-visible { outline: 2px solid var(--kit-teal-medium); outline-offset: -2px; }

.br-role-icon { width: 48px; height: 48px; }
.br-roles h3 { margin-top: 20px; }
.br-roles h3 + p { margin-bottom: 0; }
.br-role-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--type-body);
  color: var(--kit-teal-medium);
}

/* ---------- One role: intro, panel head, before/after frame, buttons ---------- */
.br-role .section-intro + .panel-head { margin-top: 0; }
.br-role { scroll-margin-top: 64px; }
#book-audit { scroll-margin-top: 64px; }

/* Collage | what breaks | with Stensul from 1280. From 600: collage and
   what breaks side by side, with Stensul across the row below. Phones:
   stacked, the collage square. */
.br-compare > * { background: var(--kit-white); }
.br-col { display: flex; flex-direction: column; padding: 24px; }
@media (min-width: 1024px) { .br-col { padding: 32px; } }

.br-art { position: relative; }
.br-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

@media (min-width: 600px) {
  .br-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-compare > :last-child { grid-column: 1 / -1; }
  .br-art img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .br-art::before { content: ""; display: block; padding-top: 100%; }
}
@media (min-width: 1280px) {
  .br-compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .br-compare > :last-child { grid-column: auto; }
}

.br-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.br-list li {
  position: relative;
  padding-left: 28px;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}
.br-list--works li { color: var(--kit-text-strong); }

/* A grey cross for what breaks, a teal tick for what works. */
.br-list li::before,
.br-list--breaks li::after {
  content: "";
  position: absolute;
}
.br-list--breaks li::before,
.br-list--breaks li::after {
  top: .75em;
  left: 2px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--kit-text-subtle);
  transform: rotate(45deg);
}
.br-list--breaks li::after { transform: rotate(-45deg); }
.br-list--works li::before {
  top: .45em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--kit-teal-medium);
  border-bottom: 2px solid var(--kit-teal-medium);
  transform: rotate(-45deg);
}

.br-compare .story-stats { padding-top: 28px; }

.br-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}
.br-text-link {
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--kit-teal-medium);
  text-decoration: none;
}
.br-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Workflow audit form (the shared form hero, mid-page) ---------- */
.br-audit .hero-title { font-size: var(--type-h2); line-height: var(--type-h2-lh); }
.br-audit-link {
  color: var(--kit-text-on-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.br-audit .form-card-title { margin: 0; }
/* Form #2953's height, reserved while the form script loads. */
.br-form-wrap { --form-min-height: 380px; }

/* ---------- Company-wide numbers ---------- */
.br-numbers { margin: 0; }
.br-numbers > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  background: var(--kit-white);
}
@media (min-width: 1024px) { .br-numbers > div { padding: 32px; } }
.br-numbers dt {
  font-size: var(--type-h2);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-ls);
  font-weight: 500;
  color: var(--kit-teal-medium);
}
.br-numbers dd {
  margin: 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* Two story frames, one after the other. */
.br-page .story-frame + .story-frame { margin-top: 24px; }
