/* The archive is a real horizontal collection. Artwork owns the foreground;
   the large word is decorative, and every card keeps a stable focus rectangle. */
body[data-page=resources] #resources {
  --archive-card-width: min(62vw,560px);
  --archive-gap: clamp(24px,4.2vw,68px);
  padding-block: clamp(40px,4.5vw,72px) 60px;
  border-top: 0;
  overflow: visible;
}
body[data-page=resources] #resources .catalog-controls {
  margin: 0 0 34px;
  padding-bottom: 20px;
  border-color: var(--studio-rule);
}
body[data-page=resources] #resources .archive-stage {
  position: relative;
  min-height: clamp(520px,65svh,740px);
  isolation: isolate;
  overflow: hidden;
  background: var(--site-background);
}
body[data-page=resources] #resources .archive-word {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: -1;
  width: max-content;
  color: var(--site-text);
  opacity: .1;
  font-family: var(--type-display);
  font-size: clamp(108px,18.6vw,320px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  white-space: nowrap;
  transform: translate(-50%,-50%);
  pointer-events: none;
  user-select: none;
}
body[data-page=resources] #resources .archive-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 32px;
}
body[data-page=resources] #resources .archive-intro #catalog-title {
  max-width: 17em;
  margin: 0;
  font-family: var(--type-heading);
  font-size: clamp(28px,2.6vw,42px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.04em;
  color: var(--site-text);
  word-break: keep-all;
}
body[data-page=resources] #resources .archive-intro > p {
  max-width: 27em;
  margin: 0 0 4px;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: -.02em;
  word-break: keep-all;
}
body[data-page=resources] #resources .product-grid {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--archive-gap);
  width: 100%;
  margin: 0;
  padding: 14px max(0px,calc((100% - var(--archive-card-width))/2)) 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(0px,calc((100% - var(--archive-card-width))/2));
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body[data-page=resources] #resources .product-grid::-webkit-scrollbar { display: none; }
body[data-page=resources] #resources .product-grid:empty { display: none; }
body[data-page=resources] #resources .product-card,
body[data-page=resources] #resources .product-card:nth-child(even),
body[data-page=resources] #resources .product-card:only-child {
  flex: 0 0 var(--archive-card-width);
  width: var(--archive-card-width);
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}
body[data-page=resources] #resources .product-card:has(.product-open:is(:hover,:focus-visible)) { box-shadow: none; }
body[data-page=resources] #resources .product-open { border-radius: 6px; }
body[data-page=resources] #resources .product-card .product-art,
body[data-page=resources] #resources .product-card:only-child .product-art {
  height: auto;
  min-height: 0;
  aspect-ratio: 1.45;
  border: 1px solid var(--studio-rule-soft);
  border-radius: 10px;
  background-color: var(--site-surface);
  box-shadow: none;
}
body[data-page=resources] #resources .product-art.custom-thumbnail { --image-inset: 0px; background: var(--site-surface); }
body[data-page=resources] #resources .resource-thumbnail { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
body[data-page=resources] #resources .product-card .product-meta { margin: 20px 0 9px; font-size: 10px; letter-spacing: .045em; }
body[data-page=resources] #resources .product-card h3 { margin: 0 0 8px; font-size: clamp(22px,2vw,30px); line-height: 1.4; font-weight: 500; }
body[data-page=resources] #resources .product-card p { margin-inline: 0; font-size: 13px; line-height: 1.8; }
body[data-page=resources] #resources .product-card .product-meta,
body[data-page=resources] #resources .product-card h3,
body[data-page=resources] #resources .product-card p { background: var(--site-background); }
body[data-page=resources] #resources .product-card-bottom { justify-content: flex-end; margin: 20px 0 0; padding-top: 14px; border-color: var(--studio-rule); background: var(--site-background); }
body[data-page=resources] #resources .product-card-bottom .more { font-size: 12px; }
body[data-page=resources] #resources .resource-details { width: 100%; margin: 16px 0 0; min-height: 44px; padding-block: 12px; background: var(--site-background); }
body[data-page=resources] #resources #empty.empty {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: clamp(340px,43svh,500px);
  margin: 28px 0 0;
  padding: 46px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
body[data-page=resources] #resources .archive-stage[data-archive-empty=true] .archive-word { opacity: .07; }
body[data-page=resources] #resources #empty .archive-empty-mark,
body[data-page=resources] #resources #empty .archive-empty-orbit { display: block; width: 58px; height: 58px; margin-bottom: 28px; color: var(--site-muted); }
body[data-page=resources] #resources #empty .archive-empty-mark > .icon { width: 100%; height: 100%; }
body[data-page=resources] #resources #empty h3 { max-width: 25em; margin: 0; padding: 8px 12px; background: var(--site-background); color: var(--site-text); font-family: var(--type-heading); font-size: clamp(23px,2.4vw,36px); font-weight: 400; line-height: 1.6; }
body[data-page=resources] #resources #empty p { max-width: 30em; margin-top: 12px; padding: 0 10px; background: var(--site-background); color: var(--site-muted); font-size: 13px; line-height: 1.9; }
body[data-page=resources] #resources .archive-empty-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; margin-top: 26px; padding: 10px 18px; border: 1px solid var(--studio-rule); border-radius: 999px; background: var(--site-background); color: var(--site-text); font-size: 12px; }
body[data-page=resources] #resources .archive-empty-link > .icon { width: 18px; height: 18px; }
body[data-page=resources] #resources .archive-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--studio-rule); }
body[data-page=resources] #resources .archive-navigation button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 12px; border: 1px solid var(--studio-rule); border-radius: 999px; background: var(--site-surface); color: var(--site-text); cursor: pointer; }
body[data-page=resources] #resources [data-archive-prev] { justify-self: start; }
body[data-page=resources] #resources [data-archive-next] { justify-self: end; }
body[data-page=resources] #resources .archive-navigation button > .icon { width: 20px; height: 20px; }
body[data-page=resources] #resources .archive-navigation button:disabled { cursor: default; opacity: .35; }
body[data-page=resources] #resources .archive-navigation button:hover:not(:disabled) { background: var(--studio-tint); }
body[data-page=resources] #resources .archive-position { color: var(--site-muted); font-family: var(--type-mono); font-size: 11px; line-height: 1.8; letter-spacing: .045em; font-variant-numeric: tabular-nums; }
@media(max-width:900px) {
  body[data-page=resources] #resources { --archive-card-width: min(72vw,560px); --archive-gap: 28px; }
  body[data-page=resources] #resources .archive-intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 26px; }
  body[data-page=resources] #resources .archive-intro > p { max-width: 34em; }
}
@media(max-width:600px) {
  body[data-page=resources] #resources { --archive-card-width: min(82vw,400px); --archive-gap: 20px; padding-block: 32px 48px; }
  body[data-page=resources] #resources .archive-stage { min-height: 480px; }
  body[data-page=resources] #resources .archive-word { top: 47%; font-size: 116px; opacity: .08; }
  body[data-page=resources] #resources .archive-intro #catalog-title { font-size: clamp(28px,7.4vw,36px); }
  body[data-page=resources] #resources .product-card .product-art { aspect-ratio: 1.35; border-radius: 8px; }
  body[data-page=resources] #resources .resource-thumbnail { border-radius: 8px; }
  body[data-page=resources] #resources .product-card h3 { font-size: 23px; }
  body[data-page=resources] #resources #empty.empty { min-height: 300px; margin-top: 20px; padding-inline: 4px; }
  body[data-page=resources] #resources #empty h3 { font-size: 25px; }
  body[data-page=resources] #resources #empty p { font-size: 12px; }
  body[data-page=resources] #resources .archive-navigation { gap: 16px; margin-top: 20px; padding-top: 20px; }
  body[data-page=resources] #resources .archive-navigation button { min-width: 44px; min-height: 44px; padding: 10px; }
}
@media(prefers-reduced-motion:reduce) { body[data-page=resources] #resources .product-grid { scroll-behavior: auto; } }
@media(forced-colors:active) {
  body[data-page=resources] #resources .archive-word { display: none; }
  body[data-page=resources] #resources .product-card .product-art,
  body[data-page=resources] #resources .archive-navigation button,
  body[data-page=resources] #resources .archive-empty-link { border-color: CanvasText; background: Canvas; color: CanvasText; }
}
/* Korean copy in the empty state wraps between words, never inside one. */
body[data-page=resources] #resources .empty :is(h3,p) { word-break: keep-all; overflow-wrap: anywhere; }
