/* The shop displays collections as photo shelves. Repair cards share their
   typography, with separate links for asking about a fault and reading on. */
.department {
  padding-block: clamp(3rem, 6vw, 5.75rem);
  scroll-margin-top: var(--ux4g-padding-m);
}
.catalogue.department {
  background: var(--catalogue-ground, #f7f7f2);
}
.service-department.department {
  background: var(--shop-paper);
  border-block: 1px solid var(--shop-line);
}
.department .department-heading {
  align-items: end;
  gap: var(--ux4g-padding-l);
  margin-bottom: clamp(1.85rem, 3.5vw, 3.25rem);
}
.department-heading h2 {
  margin: 0;
  max-width: 25ch;
  color: var(--shop-ink);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.department-heading p {
  margin-top: .8rem;
  max-width: 60ch;
  font-size: clamp(.97rem, 1.2vw, 1.075rem);
}
.department-heading .textlink {
  flex-shrink: 0;
}
.department-shelf + .department-shelf {
  margin-top: clamp(2.25rem, 3.7vw, 3.75rem);
}
.department-shelf .shelf-title {
  padding-block: .8rem;
  margin: 0;
  border-top: 1px solid var(--shop-line);
  font-size: clamp(1.06rem, 1.4vw, 1.3rem);
  letter-spacing: -.025em;
  color: var(--shop-ink);
}
.department-grid {
  display: grid;
  gap: clamp(1rem, 1.55vw, 1.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.product-shelf {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-shelf:has(> :nth-child(3):last-child),
.service-shelf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.department-grid > li {
  min-width: 0;
}
.department-grid .department-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--shop-ink);
  text-decoration: none;
}
.department-card > img {
  width: 100%;
  aspect-ratio: 8 / 5;
  height: auto;
  object-fit: cover;
  border-radius: var(--ux4g-radius-md);
  background: var(--ux4g-bg-primary);
}
.department-card .item-title {
  color: var(--shop-ink);
  margin: .9rem 0 .25rem;
  font-size: clamp(1.08rem, 1.43vw, 1.4rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.product-shelf .item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.product-shelf .item-title .icon {
  width: .86em;
  height: .86em;
  color: var(--shop-accent);
}
.department-card .item-summary {
  margin: 0;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--shop-body);
}
.catalogue-link:is(:hover, :focus-visible) .item-title {
  text-decoration: underline;
  text-underline-offset: .16em;
}
.service-department .fault-picker {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(1.9rem, 3.4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.7rem);
  border-radius: var(--ux4g-radius-lg);
  background: var(--shop-night);
  color: var(--shop-mist);
}
.fault-picker h3 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  color: white;
  letter-spacing: -.04em;
}
.fault-picker p {
  margin-top: .7rem;
  max-width: 35ch;
  font-size: .95rem;
}
.fault-picker .fault-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 2vw, 2rem);
  margin: 0;
}
.fault-links a {
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 0;
  border: 0;
  border-block-start: 1px solid #688188;
  background: transparent;
  color: white;
  text-decoration: none;
  font-size: .96rem;
}
.fault-links a:is(:hover, :focus-visible) {
  text-decoration: underline;
  color: var(--shop-lime);
}
.fault-links a:focus-visible {
  outline-color: var(--shop-lime);
}
.fault-links .icon {
  width: .95rem;
  height: .95rem;
  color: var(--shop-lime);
}
.service-shelf {
  row-gap: clamp(1.7rem, 3.2vw, 3rem);
}
.service-shelf .service-feature {
  border-bottom: 1px solid var(--shop-line);
}
.service-shelf .item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ux4g-padding-m);
  margin-top: auto;
  padding: .5rem 0 .25rem;
}
.service-shelf .item-link {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--shop-accent);
  text-underline-offset: .22em;
}
.service-shelf .service-details {
  font-weight: 400;
  color: var(--shop-body);
}
.service-department .service-links .textlink::after {
  content: none;
}
.service-department .support-choices {
  gap: clamp(1rem, 3vw, 3rem);
}
.service-department .support-choices > div {
  padding: var(--ux4g-padding-xl);
  border: 0;
  border-radius: var(--ux4g-radius-md);
  background: var(--catalogue-ground, #f7f7f2);
}
@media (max-width: 60rem) {
  .product-shelf, .service-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department .department-heading { align-items: start; }
}
@media (max-width: 44rem) {
  .department .department-heading { display: grid; gap: .35rem; }
  .product-shelf:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-department .fault-picker { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .service-shelf { grid-template-columns: minmax(0, 1fr); }
  .service-shelf .service-feature {
    display: grid;
    grid-template-columns: minmax(6.5rem, 32%) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "image title" "image summary" "links links";
    gap: 0 1rem;
  }
  .service-shelf img { grid-area: image; }
  .service-shelf .item-title { grid-area: title; margin-top: 0; }
  .service-shelf .item-summary { grid-area: summary; }
  .service-shelf .item-actions { grid-area: links; }
}
@media (max-width: 32rem) {
  .department-grid { column-gap: .8rem; }
  .product-shelf .item-title { font-size: 1.02rem; }
  .product-shelf .item-title .icon { display: none; }
  .product-shelf .item-summary { font-size: .86rem; }
  .fault-picker .fault-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  .department { --catalogue-ground: #132328; }
}
@media (forced-colors: active) {
  .service-department .fault-picker { border: 1px solid CanvasText; }
}
