/* Results and Systems in the new site's look (26 Oct 2026): the homepage's dark header and footer, deep plum
   heroes, cream pages, white rounded cards, lime accents and pill buttons. Loaded after styles.css on the
   Results and Systems pages (and their project and system pages), which keep their own layouts. */

body.inner {
  --chalk: #f4f1e8;
  --paper: #ffffff;
  --ink: #37152e;
  --aubergine: #5c2a4f;
  --mauve: #5f4d5a;
  --rule: rgba(55, 21, 46, 0.14);
  --soft-rule: rgba(55, 21, 46, 0.1);
  --wash: rgba(200, 213, 59, 0.22);
  --night: #2a0f23;
  --plum-mid: #4a1d3e;
  --cream: #f4f1e8;
  --lime: #c8d53b;
  --lime-hi: #e3ec7a;
  --header-h: 77px;
  background: var(--chalk);
  color: var(--ink);
}

/* the header: as on the homepage */
.inner .top {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(244, 241, 232, 0.06);
  background: rgba(42, 15, 35, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.inner .top-inner {
  display: flex;
  max-width: 1240px;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.inner .top-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.875rem;
  color: var(--cream);
  text-decoration: none;
}

.inner .top-brand img {
  display: block;
  width: auto;
  height: 34px;
}

.inner .top-brand span {
  border-left: 1px solid rgba(244, 241, 232, 0.25);
  padding-left: 0.875rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  white-space: nowrap;
}

.inner .top-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inner .top-list a:not(.pill) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.inner .top-list a:not(.pill):hover,
.inner .top-list a[aria-current] {
  color: var(--lime);
}

.inner .top .menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 1.1rem;
  text-transform: none;
}

.inner .top .menu-toggle::after {
  display: none;
}

.inner .pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.inner .pill:hover {
  transform: translateY(-2px);
  background: var(--lime-hi);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(200, 213, 59, 0.35);
}

@media (min-width: 58.01rem) {
  .inner .top-nav[hidden] {
    display: block;
  }
}

@media (max-width: 58rem) {
  .inner .top-inner {
    flex-wrap: wrap;
  }

  .inner .top .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .inner .top-nav {
    flex-basis: 100%;
  }

  .inner .top-nav[hidden] {
    display: none;
  }

  .inner .top-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(244, 241, 232, 0.16);
    padding: 0.5rem 0 1rem;
  }

  .inner .top-list a:not(.pill) {
    width: 100%;
    font-size: 1.05rem;
  }

  .inner .top-list .pill {
    width: 100%;
    margin-top: 0.75rem;
  }
}

@media (max-width: 40rem) {
  .inner {
    --header-h: 69px;
  }

  .inner .top-brand img {
    height: 28px;
  }

  .inner .top-brand span {
    display: none;
  }
}

/* type and buttons */
.inner main h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.inner .eyebrow {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.inner .eyebrow::before {
  display: none;
}

.inner .button {
  min-height: 48px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  padding: 0.9rem 1.6rem;
  text-transform: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.inner .button::after {
  display: none;
}

.inner .button:hover {
  transform: translateY(-2px);
}

/* heroes: deep plum, cream type, lime accents */
.inner .work-cover,
.inner .systems-hero,
.inner .case-study-hero,
.inner .system-detail-hero,
.inner .hero,
.inner .people-hero,
.inner .policy-hero,
.inner .notes-hero {
  --ink: #f4f1e8;
  --mauve: rgba(244, 241, 232, 0.78);
  --aubergine: #c8d53b;
  --rule: rgba(244, 241, 232, 0.18);
  border-bottom: 0;
  background: radial-gradient(ellipse 80% 90% at 70% 0%, var(--plum-mid) 0%, var(--night) 70%);
  color: var(--cream);
}

.inner .work-cover h1 em,
.inner .systems-hero h1 em,
.inner .case-study-hero h1 em,
.inner .system-detail-hero h1 em,
.inner .hero h1 em,
.inner .people-hero h1 em,
.inner .policy-hero h1 em,
.inner .notes-hero h1 em {
  color: var(--lime);
}

.inner .work-cover a:not(.button),
.inner .systems-hero a:not(.button),
.inner .case-study-hero a:not(.button),
.inner .system-detail-hero a:not(.button),
.inner .hero a:not(.button),
.inner .people-hero a:not(.button),
.inner .policy-hero a:not(.button),
.inner .notes-hero a:not(.button) {
  color: var(--cream);
}

.inner .work-cover .button,
.inner .systems-hero .button,
.inner .case-study-hero .button,
.inner .system-detail-hero .button,
.inner .hero .button,
.inner .people-hero .button,
.inner .policy-hero .button,
.inner .notes-hero .button {
  background: var(--lime);
  color: #37152e;
}

.inner .work-cover .button:hover,
.inner .systems-hero .button:hover,
.inner .case-study-hero .button:hover,
.inner .system-detail-hero .button:hover,
.inner .hero .button:hover,
.inner .people-hero .button:hover,
.inner .policy-hero .button:hover,
.inner .notes-hero .button:hover {
  background: var(--lime-hi);
  color: #37152e;
  box-shadow: 0 14px 40px rgba(200, 213, 59, 0.35);
}

.inner .work-record-guide,
.inner .relationship-key,
.inner .system-detail-summary {
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 28px;
  background: rgba(244, 241, 232, 0.06);
  padding: 1.5rem clamp(1.25rem, 2.5vw, 2rem);
}

.inner .work-record-guide-head {
  border-bottom-color: rgba(244, 241, 232, 0.18);
}

.inner .work-guide-result::after {
  background: var(--lime);
}

/* "Jump to": five tiles in the homepage card style, each with a large number and an arrow down */
.inner .systems-index {
  display: block;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border: 0;
}

.inner .systems-index > p {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.inner .systems-index ol {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.inner .systems-index li {
  border-left: 0;
}

.inner .systems-index a {
  position: relative;
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(244, 241, 232, 0.1), rgba(244, 241, 232, 0.03));
  color: var(--cream);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 1.25rem 1.25rem 1.2rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, background 0.25s ease;
}

.inner .systems-index a span {
  color: var(--lime);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.inner .systems-index a::after {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.24);
  border-radius: 50%;
  color: var(--lime);
  content: "\2193";
  font-size: 1rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.inner .systems-index a:hover,
.inner .systems-index a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lime);
  background: rgba(200, 213, 59, 0.08);
  text-decoration: none;
}

.inner .systems-index a:hover::after,
.inner .systems-index a:focus-visible::after {
  border-color: var(--lime);
  background: var(--lime);
  color: #37152e;
}

@media (max-width: 70rem) {
  .inner .systems-index ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .inner .systems-index ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .inner .systems-index a {
    min-height: 4rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.75rem 3.75rem 0.75rem 1.1rem;
    border-radius: 18px;
  }

  .inner .systems-index a span {
    font-size: 1.75rem;
  }

  .inner .systems-index a::after {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* text links: sentence case with an arrow, like the homepage (were small capitals with a dash) */
.inner .hero-link,
.inner .supporting-door-link,
.inner .work-record-link,
.inner .system-official-link,
.inner .missing-record-link,
.inner .case-systems a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-transform: none;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}

.inner .hero-link::after,
.inner .supporting-door-link::after,
.inner .work-record-link::after,
.inner .system-official-link::after,
.inner .missing-record-link::after,
.inner .case-systems a::after {
  width: auto;
  height: auto;
  background: none;
  content: "\2192";
  text-decoration: none;
}

.inner .system-detail-back,
.inner .case-study-back,
.inner .note-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.inner .system-detail-back::before,
.inner .case-study-back::before,
.inner .note-back::before {
  width: auto;
  height: auto;
  background: none;
  content: "\2190";
}

/* the closing call to action: two buttons side by side, wrapping cleanly */
.inner .cta .cta-actions,
.inner.people-page .cta .hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* a system's logo, centred on its white tile */
.inner .system-detail-logo {
  min-height: 5.5rem;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.inner .cta .hero-link {
  min-height: 48px;
  border: 1px solid rgba(55, 21, 46, 0.35);
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.inner .cta .hero-link:hover {
  border-color: #37152e;
  background: rgba(55, 21, 46, 0.06);
}

.inner .case-study-result {
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 28px;
  background: rgba(244, 241, 232, 0.07);
  color: var(--cream);
}

.inner .case-study-result > p {
  color: rgba(244, 241, 232, 0.78);
}

.inner .case-study-client-logo,
.inner .system-detail-logo {
  border-radius: 16px;
  background: #ffffff;
}

/* dark bands */
.inner .connection-record,
.inner .system-role-band,
.inner .case-operating-record {
  --rule: rgba(244, 241, 232, 0.72);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--plum-mid) 0%, var(--night) 72%);
  color: var(--cream);
}

.inner .case-record-grid {
  gap: 1rem;
  border: 0;
}

.inner .case-record-grid > div {
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 22px;
  background: rgba(244, 241, 232, 0.05);
}

/* results: each project as a white card */
.inner .work-folio-section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--chalk);
}

.inner .work-folio {
  display: grid;
  gap: 1.5rem;
  border-top: 0;
}

.inner .work-record {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.1);
}

.inner .work-record-client {
  border-right-color: var(--rule);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.inner .work-record-story {
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.inner .work-record-fields {
  border-top-color: var(--rule);
}

.inner .work-evidence {
  border-top: 0;
  background: var(--chalk);
}

.inner .work-evidence-copy {
  border-top-color: var(--rule);
}

/* systems: each group's list as a white card, labels as pills */
.inner .systems-group,
.inner .systems-group-paper {
  border-bottom: 0;
  background: var(--chalk);
}

.inner .systems-group-paper {
  background: #ebe6da;
}

.inner .system-ledger {
  border-top: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.08);
  padding: 0.5rem clamp(1.25rem, 3vw, 2.25rem);
}

.inner .system-entry:last-child {
  border-bottom: 0;
}

.inner .relationship-labels span {
  border-radius: 999px;
  border-color: var(--rule);
  background: var(--chalk);
  padding: 0.35rem 0.75rem;
}

.inner .systems-breadth {
  border-bottom: 0;
  background: #ffffff;
}

/* project and system detail pages */
.inner .case-study-facts {
  border-bottom: 0;
  padding-block: 2rem 0;
}

.inner .case-study-facts dl {
  gap: 1rem;
  border-left: 0;
}

.inner .case-study-facts dl > div {
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(55, 21, 46, 0.08);
}

.inner .case-chapter-paper {
  background: #ffffff;
}

.inner .case-chapter-copy,
.inner .case-systems-grid > div:last-child {
  border-top-color: var(--rule);
}

.inner .case-evidence {
  border-bottom: 0;
  background: #ffffff;
}

.inner .case-evidence ul {
  border-top-color: var(--rule);
}

.inner .case-evidence aside {
  border-left: 0;
  border-radius: 22px;
  background: var(--wash);
}

.inner .project-records {
  background: var(--chalk);
}

.inner .project-record,
.inner .project-record:last-child {
  margin-top: 1.25rem;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.08);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.inner .project-record-grid {
  border-top-color: var(--rule);
}

.inner .record-status {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

/* the closing call to action: lime, as on the homepage */
.inner .cta {
  --ink: #37152e;
  background: var(--lime);
  color: var(--ink);
}

.inner .cta::before,
.inner .cta::after {
  display: none;
}

.inner .cta .eyebrow,
.inner .cta .cta-copy,
.inner .cta .hero-link {
  color: var(--ink);
}

.inner .cta .button {
  background: var(--ink);
  color: var(--cream);
}

.inner .cta .button:hover {
  background: var(--night);
  box-shadow: 0 14px 40px rgba(55, 21, 46, 0.3);
}

/* look-pass fixes */
.inner .hu-sheet {
  --ink: #37152e;
  --mauve: #5f4d5a;
  --aubergine: #5c2a4f;
  --rule: rgba(55, 21, 46, 0.14);
}

.inner .hu-sheet-card {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
}

.inner .hu-sheet figcaption {
  color: rgba(244, 241, 232, 0.75);
}

.inner .hu-sheet-total {
  border-radius: 18px;
  background: var(--night);
}

.inner .cta .button {
  white-space: nowrap;
}

.inner.people-page .leader-grid {
  gap: 1.25rem;
  border: 0;
}

.inner.people-page .leader {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.1);
}

.inner.people-page .leader-portrait {
  border: 0;
}

.inner .missing-register {
  --rule: rgba(244, 241, 232, 0.72);
  overflow: hidden;
  border-radius: 28px;
}

/* the footer: as on the homepage */
.inner .foot {
  background: var(--night);
  color: rgba(244, 241, 232, 0.72);
  font-size: 0.875rem;
}

.inner .foot-inner {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.inner .foot-brand img {
  display: block;
  width: auto;
  height: 30px;
}

.inner .foot-statement {
  margin: 1rem 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.inner .foot-meta {
  margin: 0.75rem 0 0;
}

.inner .foot-group p {
  margin: 0 0 0.5rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inner .foot-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inner .foot-group a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: rgba(244, 241, 232, 0.72);
  text-decoration: none;
}

.inner .foot-group a:hover,
.inner .foot-group a[aria-current] {
  color: var(--lime);
}

@media (max-width: 70rem) {
  .inner .foot-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inner .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .inner .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner .work-record-client {
    border-right: 0;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
  }

  .inner .work-record-story {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner .pill,
  .inner .button {
    transition: none;
  }
}
