:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #20211e;
  background: #f4f4f2;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f4f4f2;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.hub-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 18px;
  border-bottom: 1px solid #dededb;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(14px);
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.hub-brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b8d959;
  border-radius: 4px;
  background: #161713;
  color: #c9f06b;
  font-size: 12px;
  font-weight: 800;
}

.hub-nav,
.hub-nav div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-nav a,
.hub-nav button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #d8d8d5;
  border-radius: 4px;
  background: #fff;
  color: #54544f;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.hub-nav button.is-active {
  border-color: #20211e;
  background: #20211e;
  color: #fff;
}

.hub-main {
  width: 100%;
}

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 32px;
  padding: 44px max(20px, 4vw) 34px;
  border-bottom: 1px solid #dededb;
  background: #fff;
}

.hub-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  color: #777771;
  font-size: 12px;
}

.hub-breadcrumbs a {
  text-decoration: none;
}

.hub-eyebrow {
  margin: 0 0 8px;
  color: #607d20;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-intro h1 {
  max-width: 880px;
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hub-description {
  max-width: 820px;
  margin: 17px 0 0;
  color: #555550;
  font-size: 16px;
  line-height: 1.7;
}

.hub-summary {
  align-self: end;
  padding-left: 22px;
  border-left: 1px solid #dededb;
}

.hub-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 18px;
  margin: 0;
}

.hub-summary dt {
  color: #777771;
  font-size: 12px;
}

.hub-summary dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.hub-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px max(20px, 4vw);
  border-bottom: 1px solid #dededb;
  background: #fafaf8;
}

.hub-related a {
  padding: 6px 9px;
  border: 1px solid #dededb;
  border-radius: 4px;
  background: #fff;
  color: #5f5f59;
  font-size: 12px;
  text-decoration: none;
}

.hub-gallery-section {
  padding: 22px 5px 46px;
}

.hub-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(15px, 4vw) 16px;
}

.hub-gallery-head h2 {
  margin: 0;
  font-size: 20px;
}

.hub-gallery-head p {
  margin: 0;
  color: #777771;
  font-size: 12px;
}

.hub-gallery {
  column-count: 6;
  column-gap: 4px;
}

.hub-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 4px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 4px;
  background: #e7e7e3;
}

.hub-card img {
  display: block;
  width: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: filter 160ms ease, transform 160ms ease;
}

.hub-card span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 7px;
  border-radius: 3px;
  background: rgba(22, 23, 20, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 160ms ease;
}

.hub-card:hover img,
.hub-card:focus-visible img {
  filter: saturate(1.04);
  transform: scale(1.01);
}

.hub-card:hover span,
.hub-card:focus-visible span {
  opacity: 1;
}

.hub-footer {
  padding: 18px max(20px, 4vw) 30px;
  border-top: 1px solid #dededb;
  color: #777771;
  font-size: 12px;
}

@media (max-width: 1500px) {
  .hub-gallery {
    column-count: 5;
  }
}

@media (max-width: 1120px) {
  .hub-gallery {
    column-count: 4;
  }
}

@media (max-width: 820px) {
  .hub-intro {
    display: block;
    padding-top: 30px;
  }

  .hub-intro h1 {
    font-size: 34px;
  }

  .hub-summary {
    margin-top: 26px;
    padding: 18px 0 0;
    border-top: 1px solid #dededb;
    border-left: 0;
  }

  .hub-gallery {
    column-count: 3;
  }
}

@media (max-width: 560px) {
  .hub-header {
    padding-inline: 9px;
  }

  .hub-brand strong {
    display: none;
  }

  .hub-intro {
    padding: 24px 16px;
  }

  .hub-intro h1 {
    font-size: 29px;
  }

  .hub-description {
    font-size: 14px;
  }

  .hub-related {
    padding-inline: 10px;
  }

  .hub-gallery-section {
    padding-top: 18px;
  }

  .hub-gallery {
    column-count: 2;
    column-gap: 3px;
  }

  .hub-card {
    margin-bottom: 3px;
  }

  .hub-card span {
    display: none;
  }
}
