@import url("./design-components.css");

.catalogue-notice {
  margin: 0 0 18px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--jtl-line);
  color: var(--jtl-catalog-muted);
  font-size: var(--jtl-text-label);
}

:root, :host {
  font: var(--jtl-text-body)/1.55 var(--jtl-font-catalog);
  --paper: var(--jtl-paper);
  --ink: var(--jtl-catalog-ink);
  --muted: var(--jtl-catalog-muted);
  --rule: var(--jtl-line);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

body {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a,
button,
input,
select {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--jtl-catalog-focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 1rem;
  background: white;
  padding: .7rem;
  transform: translateY(-110%);
}

.skip:focus-visible {
  transform: none;
}

.platform-header {
  position: relative;
  z-index: 4;
  min-height: 76px;
  padding: 12px clamp(16px,2.1vw,40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 23px;
  font-weight: 690;
  letter-spacing: -.06em;
}

.brand svg {
  width: 20px;
  height: 24px;
}

.platform-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #ecece7;
  border-radius: 9px;
}

.platform-header nav a {
  font-size: 14px;
  padding: 7px clamp(10px,1.4vw,24px);
  border-radius: 6px;
}

.platform-header nav a:hover,
.platform-header nav a[aria-current] {
  background: #fff;
}

.workspace-link,
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 570;
  min-height: 42px;
}

.workspace-link,
.action.primary {
  background: var(--ink);
  color: white;
}

.workspace-link {
  justify-self: end;
}

.action.secondary {
  border: 1px solid #cacbc4;
}

.action:hover,
.workspace-link:hover {
  opacity: .82;
}

.mobile-menu {
  display: none;
}

.frame {
  width: min(88%,1340px);
  margin: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(320px,28vw,480px);
  display: flex;
  align-items: center;
  margin: 0 6px;
  background: #121412;
  color: white;
  border-radius: 10px;
}

.hero>img {
  position: absolute;
  right: 0;
  top: 0;
  width: 63%;
  z-index: -2;
  object-position: 50% 48%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#171815 3%,#171815 38%,#171815dc 44%,#17181566 64%,#17181517 85%);
}

.hero-copy {
  padding: 46px 0;
  max-width: 600px;
}

.hero h1,
.section-hero h1,
.item-heading h1 {
  font-size: var(--jtl-catalog-title);
  line-height: 1.12;
  font-weight: 570;
  letter-spacing: -.055em;
}

.hero .intro {
  font-size: clamp(14px,1.15vw,19px);
  color: #eeeeea;
  line-height: 1.65;
  margin: 16px 0 24px;
}

.search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%,480px);
  background: white;
  border: 1px solid #d9d9d1;
  border-radius: 11px;
  padding: 5px 6px 5px 15px;
  color: #242523;
  min-width: 0;
}

.search svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #585b55;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  height: 38px;
  font-size: 15px;
}

.search:focus-within {
  outline: 2px solid #8a71ba;
  outline-offset: 2px;
}

.search input:focus-visible {
  outline: 0;
}

.search button {
  background: #242523;
  border: 0;
  color: white;
  font-size: 14px;
  border-radius: 7px;
  padding: 6px 15px;
  white-space: nowrap;
  min-height: 36px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title h2,
.index-heading h2,
.detail h2 {
  font-size: clamp(22px,2.3vw,34px);
  font-weight: 560;
  letter-spacing: -.04em;
}

.section-title p,
.small,
.meta,
.result-count {
  font-size: 14px;
  color: var(--muted);
}

.exhibitions {
  margin: 56px auto 68px;
}

.collections {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px 16px;
}

.collection {
  display: block;
  min-width: 0;
}

.collection .cover {
  aspect-ratio: 1.92;
  border-radius: 10px;
  background: #eae9e2;
  overflow: hidden;
}

.collection img,
.record .media img {
  transition: transform var(--jtl-motion-image);
}

.collection:hover img,
.record:hover .media img {
  transform: scale(1.03);
}

.collection .heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  gap: 8px;
}

.collection strong {
  font-size: clamp(20px,1.7vw,28px);
  font-weight: 570;
  letter-spacing: -.04em;
}

.collection .heading span {
  color: #53564d;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.collection p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}

.context a:hover {
  color: var(--ink);
}

.section-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #eae9e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  min-height: clamp(215px,20vw,315px);
  padding: 32px clamp(22px,4vw,70px);
}

.section-hero>img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 49%;
  z-index: -2;
}

.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#eae9e2 28%,#eae9e2 40%,#eae9e2e8 50%,#eae9e234 75%,transparent);
}

.section-hero h1 {
  font-size: clamp(33px,4vw,62px);
}

.section-hero p {
  margin-top: 12px;
  color: #42463d;
  max-width: 30em;
  line-height: 1.65;
}

.section-hero .hero-text {
  max-width: 53%;
}

.scope {
  display: block;
  font-size: 13px;
  color: #54584f;
  margin-bottom: 8px;
}

.library-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 19px 2px;
  border-bottom: 1px solid var(--rule);
}

.library-tabs a {
  white-space: nowrap;
  display: block;
  font-size: 14px;
  border-radius: 24px;
  padding: 7px 13px;
}

.library-tabs a:hover {
  background: #e9e9e3;
}

.library-tabs [aria-current] {
  background: #282a25;
  color: white;
}

.library-tabs [aria-current]:hover {
  background: #282a25;
}

.index {
  margin-bottom: 70px;
}

.index-heading,
.filterbar,
.pager,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.index-heading {
  margin: 30px 0 18px;
}

.filterbar {
  margin-bottom: 16px;
  justify-content: flex-start;
}

.filterbar .search {
  width: min(100%,400px);
}

.filterbar .jtl-select-label {
  max-width: min(100%, 20rem);
}
.filterbar .jtl-select-label > span:first-child {
  font-size: 13px;
}
.filterbar:has(.jtl-select-label) {
  align-items: end;
}

.result-count {
  margin-left: auto;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 22px 14px;
}

.record {
  min-width: 0;
  display: block;
}

.record .media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.68;
  background: #eaeae3;
  border-radius: 9px;
  overflow: hidden;
}

.record .media.contain img {
  object-fit: contain;
  padding: 12px;
}

/* 正投影须在四边留白；SVG 的固有比例不能反过来撑高网格行。 */
.record .media.contain,
.collection .shape-cover,
.shape-plate .item-visual {
  position: relative;
  background: var(--jtl-white);
  border: 1px solid var(--rule);
}

.record .media.contain { aspect-ratio: 1.48; }
.record .media.contain img,
.collection .shape-cover img,
.shape-plate .item-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: clamp(12px, 1.6vw, 24px);
  object-fit: contain;
  transform: none;
}

.section-hero.shape-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(12px, 4vw, 64px);
  min-height: 0;
  padding-block: clamp(16px, 2vw, 32px);
  background: var(--jtl-white);
  border: 1px solid var(--rule);
}
.shape-hero::after { display: none; }
.section-hero.shape-hero .hero-text { max-width: 32em; }
.shape-hero figure { margin: 0; min-width: 0; text-align: center; }
.shape-hero figure img { height: clamp(100px, 12vw, 172px); object-fit: contain; }
.shape-hero figcaption, .shape-plate figcaption {
  font-size: var(--jtl-text-caption);
  color: var(--muted);
}
.shape-hero figcaption { margin-top: var(--jtl-space-1); }
.shape-plate { min-width: 0; margin: 0; }
.shape-plate .item-visual {
  min-height: 0;
  aspect-ratio: 1.28;
}
.shape-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--jtl-space-2);
  margin-top: var(--jtl-space-2);
}
@media (max-width: 700px) {
  .section-hero.shape-hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); }
  .record .media.contain { aspect-ratio: 1.24; }
  .shape-plate .jtl-filter { min-height: var(--jtl-control-touch); }
}

.record .media .swatch {
  width: 100%;
  height: 100%;
}

.record h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 575;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.record .meta {
  font-size: 13px;
  margin-top: 7px;
}

.record .record-note {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

.record-grid .text-card {
  border-top: 1px solid var(--rule);
  padding: 13px 4px 10px;
  min-height: 100px;
}

.text-card .meta {
  margin-top: 0;
}

.record:hover h3 { opacity: .78; }

.result-list {
  border-top: 1px solid var(--rule);
}

.result-list .record {
  display: grid;
  grid-template-columns: minmax(140px,1.05fr) minmax(100px,.5fr) minmax(110px,1.6fr) 26px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  padding: 15px 5px;
}

.result-list .record>* {
  margin: 0;
}

.result-list .record h3 {
  margin: 0;
}

.result-list .record .jtl-icon {
  justify-self: end;
}

.empty {
  padding: 40px 16px;
  background: #ededE7;
  text-align: center;
  border-radius: 10px;
}

.empty p {
  margin-bottom: 10px;
}

.empty a { font-weight: 600; }

.pager {
  justify-content: center;
  margin: 30px auto 0;
}

.pager a {
  border: 1px solid var(--rule);
  border-radius: 26px;
  font-size: 14px;
  padding: 8px 18px;
}

.pager span {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.detail {
  margin: 15px auto 65px;
}

.item-heading h1 {
  font-size: clamp(32px,3.9vw,64px);
  overflow-wrap: anywhere;
}

.item-heading>p {
  color: var(--muted);
  margin-top: 10px;
}

.item-visual {
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 250px;
  background: #e8e9e3;
}

.item-visual img {
  max-height: 550px;
  object-fit: contain;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
  align-items: start;
  gap: clamp(20px,4vw,66px);
  margin-top: 30px;
}

.detail-layout.text-only {
  display: block;
  max-width: 900px;
}

.detail .jtl-source { margin-block: 8px 0; }

.detail .facts {
  display: grid;
  grid-template-columns: minmax(90px,.33fr) 1fr;
  gap: 0;
  margin-top: 8px;
}

.facts dt,
.facts dd {
  border-top: 1px solid var(--rule);
  padding: 11px 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.facts dt {
  color: var(--muted);
  padding-right: 12px;
}

.actions {
  margin-top: 24px;
  justify-content: flex-start;
}

.shape-plate + div > .actions:first-child {
  margin: 0 0 var(--jtl-space-6);
  gap: var(--jtl-space-2);
}
@media (max-width: 700px) {
  .shape-plate + div .action { min-height: var(--jtl-control-touch); }
}

.detail .related {
  margin-top: 40px;
}

.related>a {
  display: inline-block;
  font-weight: 550;
  margin: 10px 20px 0 0;
}

.platform-footer {
  background: #242523;
  color: #e6e7e1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 26px max(6%,20px);
  font-size: 14px;
}

.platform-footer a:first-child {
  margin-right: auto;
  font-weight: 600;
}

.platform-footer a:hover {
  opacity: .8;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width:920px) {
  .frame {
    width: 92%;
  }

  .collections {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .record-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .hero>img {
    width: 68%;
  }

  .section-hero .hero-text {
    max-width: 59%;
  }
}

@media (max-width:700px) {
  .platform-header {
    min-height: 62px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
  }

  .mobile-menu {
    display: block;
    grid-column: 1;
    grid-row: 1;
    background: transparent;
    border: 0;
    font-size: 19px;
    width: 35px;
    height: 36px;
  }

  .platform-header nav {
    display: none;
    position: absolute;
    top: 54px;
    inset-inline: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #f4f4ef;
    box-shadow: 0 8px 24px #0002;
    padding: 6px;
  }

  .platform-header nav.open {
    display: flex;
  }

  .platform-header nav a {
    padding: 10px 12px;
  }

  .workspace-link {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 12px;
  }

  .frame {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 290px;
    margin: 0 4px;
  }

  .hero>img {
    width: 90%;
  }

  .hero::after {
    background: linear-gradient(90deg,#151613f7,#151613c9 38%,#15161328),linear-gradient(0deg,#171815d0,transparent 82%);
  }

  .hero-copy {
    padding: 30px 7px;
  }

  .hero .intro {
    max-width: 19em;
  }

  .exhibitions {
    margin: 32px auto 42px;
  }

  .collections {
    gap: 21px 10px;
  }

  .collection .cover {
    aspect-ratio: 1.5;
  }

  .collection .heading {
    display: block;
    margin-top: 6px;
  }

  .collection .heading span {
    display: block;
  }

  .collection p {
    font-size: 13px;
  }

  .section-title {
    margin-bottom: 14px;
  }

  .context {
    padding: 13px 0;
  }

  .section-hero {
    min-height: 190px;
    padding: 23px 16px;
  }

  .section-hero .hero-text {
    max-width: 68%;
  }

  .section-hero p {
    font-size: 14px;
  }

  .section-hero::after {
    background: linear-gradient(90deg,#eae9e2 14%,#eae9e2 35%,#eae9e2d9 63%,#eae9e220);
  }

  .section-hero>img {
    width: 59%;
  }

  .library-tabs {
    padding: 12px 0;
    gap: 2px;
  }

  .library-tabs a {
    padding: 7px 10px;
  }

  .record-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px 10px;
  }

  .filterbar {
    align-items: center;
    gap: 9px;
  }

  .filterbar .search {
    width: 100%;
  }

  .result-count {
    font-size: 13px;
  }

  .result-list .record {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 5px 12px;
  }

  .result-list .record-note {
    grid-column: 1/-1;
  }

  .result-list .jtl-icon {
    display: none;
  }

  .index-heading {
    margin-top: 22px;
  }

  .record h3 {
    font-size: 16px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .item-visual img {
    max-height: 360px;
  }

  .platform-footer {
    gap: 16px;
  }

  .platform-footer a:first-child {
    flex-basis: 100%;
  }

  .search {
    gap: 7px;
  }

  .search button {
    padding: 6px 11px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 16px;
}

.type-tabs a {
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 14px;
  border: 1px solid var(--rule);
}

.type-tabs a[aria-current] {
  background: var(--ink);
  color: white;
}

.return-link {
  display: inline-block;
  font-weight: 550;
  margin: 28px 0 0;
}

.child-directory {
  max-width: 920px;
}

.child-directory details {
  border-top: 1px solid var(--rule);
}

.child-directory summary {
  font-weight: 550;
  cursor: pointer;
  padding: 13px 4px;
}

.child-directory .facts {
  margin: 0 0 15px 18px;
}

.child-study {
  display: inline-block;
  margin: 0 0 18px 18px;
  font-weight: 550;
}

.guide-links {
  margin: 8px 0 28px;
  padding: 15px 0;
  border-block: 1px solid var(--rule);
}

.guide-links h2 {
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 560;
  color: var(--muted);
}

.guide-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px clamp(16px,3vw,44px);
}

.guide-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 8px;
  min-height: 50px;
}

.guide-links b {font-size: 16px; font-weight: 570;}
.guide-links small {grid-column: 1; color: var(--muted); font-size: 13px;}
.guide-links a .jtl-icon { grid-column: 2; grid-row: 1 / 3; align-self: center;}
.guide-links a:hover b {opacity:.78;}

@media (max-width: 720px) {
  .guide-links ul {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 14px;}
  .guide-links b {font-size: 14px;}
  .guide-links small {font-size: 12px;}
  .guide-links a .jtl-icon {display: none;}
  .guide-links a {grid-template-columns: 1fr;}
}

.brand-type {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
}

.brand-type b {
  font-size: 20px;
  line-height: 1;
}

.brand-type small {
  font-size: 9px;
  letter-spacing: .05em;
  line-height: 1.1;
  font-weight: 530;
}

.catalogue-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  text-underline-offset: 4px;
}
.catalogue-login:hover { color: var(--muted); }

.collection .cover { position: relative; }
.collection-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 12px;
  background: #fafaf6f5;
  color: #272822;
}
.work-grid .media { aspect-ratio: 1.22; }
.work-grid + .guide-links { margin-top: 48px; }
.research-entry { margin: 28px 0; scroll-margin-top: 80px; }
.research-entry h2 { font-size: 22px; font-weight: 570; }
.research-entry p { margin-top: 4px; color: var(--muted); }
.research-entry .return-link { margin-top: 8px; }
@media (max-width:700px) {
  .collection-icon { width: 34px; height: 34px; padding: 6px; left: 7px; bottom: 7px; border-radius: 9px; }
}

/* The member catalogue inherits the personal workspace surround; its content
   keeps the same cards, form controls and source attribution as the public view. */
:host { display: block; min-width: 0; background: transparent; }
:host .hero { min-height: 200px; margin: 0; color: var(--ink); background: none; }
:host .hero::after, :host .hero > img { display: none; }
:host .hero-copy { padding: 20px 0 8px; }
:host .hero h1, :host .section-hero h1 { font-size: clamp(30px,3.1vw,46px); }
:host .hero .intro { color: var(--muted); margin: 9px 0 15px; }
:host .section-hero { min-height: 160px; }
:host .exhibitions { margin-top: 24px; }
:host .frame { width: min(calc(100% - 40px), 1150px); }
:host .library-tabs { scrollbar-width: thin; }
:host #resource-filter, :host #research, :host #catalogue { scroll-margin-block-start: 76px; }
@media (max-width:700px) {
  :host .frame { width: calc(100% - 32px); }
  :host .hero { min-height: 0; }
}

/* Keep the screen reading and the colour code next to the selected swatch. */
.color-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 7px 0;
  color: var(--jtl-catalog-muted);
  font: 500 12px/1.5 ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.library-color-plate .color-legend {
  justify-content: flex-start;
  gap: 8px 18px;
  padding-block: 12px;
  border-bottom: 1px solid var(--jtl-line);
}

/* A plate and its caption share a column, so even narrow crops retain their attribution. */
main > .asset-directory:first-child:has(.asset-masthead) { margin-top: var(--jtl-space-4); }
.asset-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(186px, 15.5vw, 228px);
  overflow: hidden;
  background: #f0eee8;
  border-radius: var(--jtl-radius-hero);
}
.asset-intro {
  align-self: center;
  padding: clamp(24px, 3.2vw, 48px);
}
.asset-masthead h1 {
  margin: 0;
  font: 570 clamp(34px, 3.7vw, 60px)/1.08 var(--jtl-font-catalog);
  letter-spacing: -.05em;
}
.asset-description {
  max-width: 29em;
  margin-top: var(--jtl-space-4);
  color: #4f514c;
  line-height: 1.65;
  text-wrap: pretty;
}
.asset-plate {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  min-width: 0;
  background: var(--jtl-white);
}
.asset-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  contain: size;
}
.asset-art img { width: 100%; height: 100%; }
.asset-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .75em;
  padding: 6px 12px;
  background: #eeece5;
  color: var(--muted);
  font-size: var(--jtl-text-caption);
  line-height: 1.45;
}
.asset-plate figcaption > :first-child { color: var(--ink); }
.asset-plate[data-kind="overview"] img { object-position: 50% 58%; }
.asset-plate[data-kind="pattern"] img { object-position: 50% 56%; }
.asset-plate[data-kind="culture"] .asset-art {
  display: grid;
  grid-template: minmax(0, 1fr) / repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #eeece5;
}
.asset-plate[data-kind="culture"] img {
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #dbd9d2;
}
.asset-plate[data-kind="shape"] .asset-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 14px 5%;
}
.asset-plate[data-kind="shape"] img {
  width: 24%;
  height: 94%;
  object-fit: contain;
}
.asset-plate[data-kind="color"] .asset-art { display: flex; }
.asset-chip { flex: 1; position: relative; }
.asset-chip span {
  position: absolute;
  top: 16px;
  left: 12px;
  border-radius: var(--jtl-radius-pill);
  background: #fffffff0;
  padding: 1px 8px;
  color: var(--ink);
  font-size: var(--jtl-text-caption);
}
.asset-directory .library-tabs {
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  padding: 16px 0;
}
.asset-directory .library-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--jtl-control-regular);
  padding: 5px 14px;
  border-radius: var(--jtl-radius-pill);
}
.asset-directory .library-tabs .jtl-icon {
  width: var(--jtl-icon-regular);
  height: var(--jtl-icon-regular);
}
.asset-directory .index-heading { margin: 24px 0 14px; gap: 4px 12px; }
.asset-directory .index-heading h2 {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.35;
}
.asset-directory .result-count { font-variant-numeric: tabular-nums; }
.asset-directory .filterbar { margin-bottom: var(--jtl-space-6); align-items: end; }
.asset-search-group { width: min(100%, 420px); min-width: 0; }
.asset-search-label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 550;
}
.asset-directory .search {
  width: 100%;
  border-radius: var(--jtl-radius-pill);
  padding: 3px 4px 3px 14px;
  min-height: 46px;
}
.asset-directory .search button, .asset-directory .jtl-select {
  border-radius: var(--jtl-radius-pill);
}
.asset-directory .search button { min-height: 36px; padding: 4px 16px; }
.asset-directory .jtl-select { min-height: 46px; padding-inline-start: 16px; }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.asset-directory .record .media, .record-citation {
  aspect-ratio: 3 / 2;
  border-radius: var(--jtl-radius-card);
}
.asset-directory .media img { min-height: 0; }
.asset-directory .media[data-kind="culture"] { background: #eeede8; }
.asset-directory .media[data-kind="culture"] img { object-fit: contain; }
.record-citation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(12px, 1.6vw, 24px);
  background: #eeeae2;
  color: #56564e;
}
.record-citation span {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.record-citation .jtl-icon { width: 20px; height: 20px; }
.asset-directory .record .meta { margin-top: 10px; }
.asset-directory .record h3 { margin-top: 2px; }
.asset-directory .color-legend { justify-content: start; }
.asset-directory .guide-links, .asset-directory .research-entry { margin-top: 40px; }
.asset-directory .research-entry .action { margin-top: 12px; }
@media (max-width: 700px) {
  .asset-masthead {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    min-height: 152px;
    border-radius: var(--jtl-radius-hero-compact);
  }
  .asset-intro { padding: 18px 13px; }
  .asset-masthead h1 { font-size: clamp(25px, 7vw, 36px); }
  .asset-description { font-size: 13px; margin-top: 8px; line-height: 1.55; }
  .asset-plate figcaption { padding: 4px 8px; text-wrap: pretty; }
  .asset-plate[data-kind="shape"] .asset-art { gap: 4%; padding-inline: 3%; }
  .asset-plate[data-kind="shape"] img { width: 29%; }
  .asset-plate[data-kind="color"] .asset-art { display: grid; grid-template-columns: 1fr 1fr; }
  .asset-chip span { left: 4px; top: 6px; padding: 0 4px; font-size: 11px; }
  .asset-directory .library-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 8px 0; }
  .asset-directory .library-tabs a { min-height: var(--jtl-control-touch); padding: 4px; gap: 3px; font-size: 13px; }
  .asset-directory .library-tabs .jtl-icon { width: 16px; height: 16px; }
  .asset-directory .index-heading { margin: 18px 0 10px; }
  .asset-directory .filterbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; margin-bottom: 16px; }
  .asset-directory .search { gap: 4px; padding: 2px 3px 2px 8px; }
  .asset-directory .search svg { width: 16px; }
  .asset-directory .search button { min-height: var(--jtl-control-touch); padding-inline: 10px; }
  .asset-directory .search input { font-size: 16px; }
  .asset-directory .jtl-select { min-height: 50px; width: 100%; font-size: 14px; }
  .asset-directory .jtl-select-label { max-width: 110px; }
  .asset-directory .filterbar:not(:has(select)) .asset-search-group { grid-column: 1/-1; }
  .asset-directory .clear-filters { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 360px) {
  .asset-directory .library-tabs .jtl-icon { display: none; }
  .asset-directory .jtl-select-label { max-width: 98px; }
  .asset-directory .search svg { display: none; }
}

.asset-directory .stats-jump {
  display: inline-flex;
  align-items: center;
  min-height: var(--jtl-control-touch);
  font-size: var(--jtl-text-label);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asset-directory #asset-statistics { scroll-margin-top: var(--jtl-nav-height); }
@media (max-width: 700px) {
  .asset-directory .library-tabs:has(> a:nth-child(7)) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .asset-directory .library-tabs:has(> a:nth-child(7)) a { grid-column: span 3; }
  .asset-directory .library-tabs:has(> a:nth-child(7)) a:nth-child(n+5) { grid-column: span 4; }
}
@media (max-width: 465px) {
  .asset-directory .library-tabs:has(> a:nth-child(7)) a {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.25;
  }
  .asset-directory .library-tabs:has(> a:nth-child(7)) .jtl-icon { display: inline-block; }
}

.catalogue-toolbar {
  display: grid;
  gap: 8px 32px;
  align-items: end;
  margin-block: 16px 24px;
}
.asset-directory .catalogue-toolbar .index-heading,
.asset-directory .catalogue-toolbar .filterbar {
  min-width: 0;
  margin: 0;
}
.catalogue-toolbar .index-heading { justify-content: start; }
.catalogue-toolbar .result-count {
  margin-inline: 0 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--jtl-text-label);
}
@media (min-width: 960px) {
  .catalogue-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    margin-block: 20px 24px;
  }
  .catalogue-toolbar .filterbar { justify-content: end; }
  .catalogue-toolbar .asset-search-group { width: auto; flex: 1 1 210px; max-width: 360px; }
  .catalogue-toolbar .jtl-select-label { max-width: min(36%, 200px); }
  .catalogue-toolbar .jtl-select { max-width: 100%; text-overflow: ellipsis; }
}
@media (max-width: 700px) {
  main > .asset-directory:first-child:has(.asset-masthead) { margin-top: var(--jtl-space-2); }
  .catalogue-toolbar { margin-block: 12px 16px; }
  .catalogue-toolbar .result-count { font-size: 13px; }
}

/* The workbench keeps catalogue actions and provenance in its own content pane. */
:host .catalogue-content { min-width: 0; container-type: inline-size; }
:host .workspace-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 24px; margin-block: 14px 18px;
}
:host .workspace-heading h1, :host .item-heading h1 {
  font-size: clamp(25px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em;
}
:host .workspace-heading .result-count { margin: 0; color: var(--muted); }
:host .workspace-catalogue-controls:not(:empty) { display: flex; justify-content: flex-end; margin-block: 6px; }
:host .work-grid { margin-top: 16px; }
:host .exhibitions > .search { margin-inline: 0; }
:host .workspace-heading .search { width: min(100%, 350px); }
:host .context { margin-block: 12px; }
:host .workspace-records { display: grid; border-block-start: 1px solid var(--rule); }
:host .workspace-record {
  min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; column-gap: 8px; padding-block: 7px;
  border-block-end: 1px solid var(--rule);
}
:host .workspace-records .record {
  display: grid; grid-template-columns: 54px minmax(0,1fr) minmax(0,1.3fr);
  grid-template-rows: auto auto; align-content: center; align-items: center;
  column-gap: 14px; row-gap: 3px; min-width: 0; padding: 4px;
}
:host .workspace-records .record > .media, :host .workspace-records .record > .record-citation {
  grid-area: 1 / 1 / 3 / 2; width: 54px; height: 54px; min-height: 0;
  margin: 0; padding: 0; border-radius: var(--jtl-radius-sm, 7px); align-self: center;
}
:host .workspace-records .record > .media { grid-template: minmax(0,1fr) / minmax(0,1fr); }
:host .workspace-records .record > .media img { width: 100%; height: 100%; min-height: 0; min-width: 0; }
:host .workspace-records .record > .record-citation { display: grid; place-items: center; }
:host .workspace-records .record-citation span { display: none; }
:host .workspace-records .record .media.contain img { padding: 4px; }
:host .workspace-records .record h3 { grid-area: 1 / 2; align-self: end; font-size: 16px; line-height: 1.4; margin: 0; }
:host .workspace-records .record .meta { grid-area: 2 / 2; align-self: start; margin: 0; font-size: 12px; }
:host .workspace-records .record :is(.record-note,.color-legend) { grid-area: 1 / 3 / 3 / 4; margin: 0; }
:host .catalog-favorite {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
}
:host .catalog-favorite.compact {
  width: 44px; padding: 0; color: var(--muted); background: transparent;
  border: 0; border-radius: var(--jtl-radius-pill);
}
:host .catalog-favorite.compact:hover, :host .catalog-favorite.compact:focus-visible { background: var(--jtl-control-hover, #ecece8); color: var(--ink); }
:host .catalog-favorite[aria-pressed="true"] { color: var(--ink); }
:host .favorite-status { color: var(--ink); }
:host .favorite-status:not(:empty) { padding: 8px 16px; }
:host .detail-layout { gap: 20px; margin-top: 20px; }
:host .detail .item-visual { min-height: 0; }
:host .detail .item-visual img { max-height: 350px; }
:host .detail .library-color-plate .item-visual { min-height: 100px; }
:host .actions { flex-wrap: wrap; }
.detail-returns { display: flex; flex-wrap: wrap; gap: 8px 18px; }
:host .dataset-records .workspace-record { position: relative; display: block; border: 0; }
:host .dataset-records .catalog-favorite.compact {
  position: absolute; inset: 10px 4px auto auto; background: var(--jtl-white); border: 1px solid var(--rule);
}
:host .dataset-detail-heading .catalog-favorite { margin-top: 10px; }
@container (max-width: 660px) {
  :host .workspace-records .record { grid-template-columns: 46px minmax(0,1fr); gap: 2px 10px; }
  :host .workspace-records .record > .media, :host .workspace-records .record > .record-citation { width: 46px; height: 46px; }
  :host .workspace-records .record :is(.record-note,.color-legend) { display: none; }
  :host .detail-layout { grid-template-columns: minmax(0,1fr); }
  :host .workspace-heading .search { width: 100%; }
  :host .workspace-heading { margin-block: 10px 16px; }
}
