/* References and partners.
   Scoped under .ref-* so nothing here can leak into the rest of the site.
   Type scale and colour are inherited from the site stylesheet on purpose:
   override the custom properties below rather than editing these rules. */

.ref-index,
.ref-detail,
.ref-partners {
  --ref-rule: rgba(0, 0, 0, 0.14);
  --ref-rule-strong: rgba(0, 0, 0, 0.45);
  --ref-quiet: rgba(0, 0, 0, 0.6);
  --ref-measure: 34rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.ref-index__head h1,
.ref-detail__head h1,
.ref-partners h1 {
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.ref-index__lede {
  max-width: var(--ref-measure);
  margin: 0 0 2.5rem;
  color: var(--ref-quiet);
}

/* Feature block */

.ref-feature {
  margin: 0 0 3rem;
}

.ref-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ref-feature h2 {
  margin: 1rem 0 0.25rem;
}

.ref-feature a {
  text-decoration: none;
  color: inherit;
}

.ref-feature a:hover h2 {
  text-decoration: underline;
}

.ref-meta {
  margin: 0 0 0.75rem;
  color: var(--ref-quiet);
  font-size: 0.875rem;
}

/* Filters */

.ref-filters {
  margin: 0 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ref-rule);
  border-bottom: 1px solid var(--ref-rule);
}

.ref-filters fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.ref-filters__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ref-filters label {
  font-size: 0.8125rem;
  color: var(--ref-quiet);
}

.ref-filters select,
.ref-filters button {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--ref-rule-strong);
  background: transparent;
  color: inherit;
}

.ref-filters button {
  cursor: pointer;
}

.ref-filters__clear {
  font-size: 0.8125rem;
}

/* The list */

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ref-rule-strong);
}

.ref-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ref-rule);
}

.ref-row__link {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.ref-row__name {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.ref-row__link:hover .ref-row__name {
  text-decoration: underline;
}

.ref-row__detail {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ref-quiet);
}

.ref-row__place::before {
  content: " · ";
}

.ref-row__year {
  flex: 0 0 auto;
  font-size: 0.875rem;
  color: var(--ref-quiet);
  font-variant-numeric: tabular-nums;
}

.ref-empty {
  padding: 2rem 0;
  color: var(--ref-quiet);
}

.ref-pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 0;
  font-size: 0.875rem;
}

.ref-index__foot {
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ref-rule);
}

/* Detail page */

.ref-detail__hero {
  margin: 0 0 2rem;
}

.ref-detail__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ref-detail__dept {
  margin: 0;
  color: var(--ref-quiet);
}

.ref-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--ref-rule-strong);
  border-bottom: 1px solid var(--ref-rule-strong);
}

.ref-specs dt {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--ref-quiet);
}

.ref-specs dd {
  margin: 0;
  font-size: 0.9375rem;
}

.ref-detail__body {
  max-width: var(--ref-measure);
}

.ref-config {
  max-width: var(--ref-measure);
  margin: 2rem 0;
}

.ref-config h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.ref-config__media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.ref-config__figure,
.ref-config__video {
  margin: 0;
}

.ref-config__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ref-config__figure figcaption,
.ref-config__video figcaption {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--ref-quiet);
}

.ref-config__credit {
  display: block;
}

.ref-config__video {
  margin: 1rem 0;
}

.ref-config__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.ref-config__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ref-config__partner {
  font-size: 0.875rem;
  color: var(--ref-quiet);
}

.ref-related {
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ref-rule);
}

.ref-related ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
}

/* Partners */

.ref-partner-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.ref-partner {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--ref-rule-strong);
}

.ref-partner__name {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
}

.ref-partner__role,
.ref-partner__where,
.ref-partner__lang {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--ref-quiet);
}

.ref-partner__contact {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.875rem;
}

/* Homepage wall.
   Self-contained: the include sits outside .ref-index, so it declares its own
   custom properties. Pick a look with the `variant` include parameter:
     grid   — quiet editorial grid, greyscale logos that colour on hover
     band   — full-bleed violet band with white tiles (heir of the old strip)
     ledger — ruled ledger rows: logo, name, city and country */

.ref-wall {
  --ref-rule: rgba(0, 0, 0, 0.14);
  --ref-rule-strong: rgba(0, 0, 0, 0.45);
  --ref-quiet: rgba(0, 0, 0, 0.6);
  --ref-accent: #7c4b8c;
  --ref-wall-max: 1350px;
  --ref-wall-logo: 3rem;
  margin: 4rem 0;
}

.ref-wall__inner {
  max-width: var(--ref-wall-max);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.ref-wall__heading {
  margin: 0;
  line-height: 1.2;
}

.ref-wall__grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
}

.ref-wall__item a {
  display: flex;
  text-decoration: none;
  color: inherit;
  font-weight: normal;
}

.ref-wall__item a:hover {
  color: var(--ref-accent);
}

.ref-wall__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--ref-wall-logo);
  object-fit: contain;
}

.ref-wall__name {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.ref-wall__place {
  display: block;
  font-size: 0.75rem;
  color: var(--ref-quiet);
}

.ref-wall__more {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

/* grid: hairline rule, eyebrow heading, greyscale logos, name underneath */

.ref-wall--grid .ref-wall__inner {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ref-rule-strong);
}

.ref-wall--grid .ref-wall__heading {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--ref-quiet);
}

.ref-wall--grid .ref-wall__grid {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.ref-wall--grid .ref-wall__item a {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.ref-wall--grid .ref-wall__item img {
  filter: grayscale(1);
  opacity: 0.65;
}

.ref-wall--grid .ref-wall__item a:hover img,
.ref-wall--grid .ref-wall__item a:focus-visible img {
  filter: none;
  opacity: 1;
}

.ref-wall--grid .ref-wall__name {
  color: var(--ref-quiet);
}

.ref-wall--grid .ref-wall__item a:hover .ref-wall__name {
  color: inherit;
}

/* band: full-bleed, violet rules top and bottom, white tiles on the site grey */

.ref-wall--band {
  background: #f6f6f6;
  border-top: 0.75rem solid var(--ref-accent);
  border-bottom: 0.75rem solid var(--ref-accent);
  padding: 2.5rem 0 3rem;
}

.ref-wall--band .ref-wall__heading {
  text-align: center;
  font-size: 1.75rem;
  color: var(--ref-accent);
}

.ref-wall--band .ref-wall__grid {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ref-wall--band .ref-wall__item a {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--ref-rule);
  text-align: center;
}

.ref-wall--band .ref-wall__item a:hover {
  border-color: var(--ref-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ref-wall--band .ref-wall__item img {
  height: 3.5rem;
}

.ref-wall--band .ref-wall__name {
  color: var(--ref-quiet);
}

.ref-wall--band .ref-wall__more {
  text-align: center;
  margin-top: 2rem;
}

/* ledger: 1px-gap grid on a hairline ground gives every cell its dividers */

.ref-wall--ledger .ref-wall__heading {
  font-size: 1.5rem;
}

.ref-wall--ledger .ref-wall__grid {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1px;
  background: var(--ref-rule);
  border-top: 1px solid var(--ref-rule-strong);
  border-bottom: 1px solid var(--ref-rule-strong);
}

.ref-wall--ledger .ref-wall__item {
  background: #fff;
}

.ref-wall--ledger .ref-wall__item a {
  align-items: center;
  gap: 1rem;
  height: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
}

.ref-wall--ledger .ref-wall__item a:hover {
  background: #f6f6f6;
}

.ref-wall--ledger .ref-wall__item img {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 2.5rem;
}

.ref-wall--ledger .ref-wall__name {
  font-size: 0.9375rem;
  font-weight: bold;
}

.ref-wall--ledger .ref-wall__place {
  margin-top: 0.125rem;
}

@media (prefers-reduced-motion: no-preference) {
  .ref-row__link,
  .ref-wall__item a,
  .ref-wall__item img {
    transition: opacity 120ms ease-out, filter 120ms ease-out,
      color 120ms ease-out, border-color 120ms ease-out,
      background-color 120ms ease-out;
  }
}

:where(.ref-index, .ref-detail, .ref-partners, .ref-wall) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Press releases about this reference */

.ref-news {
  max-width: var(--ref-measure);
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ref-rule);
}

.ref-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-news li {
  padding: 0.3rem 0;
}

.ref-news time {
  display: inline-block;
  min-width: 3.5rem;
  color: var(--ref-quiet);
  font-variant-numeric: tabular-nums;
}

/* Reference links embedded in other pages (news article, product page) */

.ref-links {
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ref-rule, #ddd);
}

.ref-links__heading {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.ref-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-links__item {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ref-rule, #ddd);
}

.ref-links__item a {
  font-weight: 600;
}

.ref-links__meta {
  display: block;
  font-size: 0.875rem;
  color: var(--ref-quiet, #666);
}

.ref-links__more {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}
