/* The generated figure pages (library/<id>.html) and moment hubs (library/for/<slug>.html), written by
   website/seo/build.mjs. Only the site's tokens from home/base.css; one surface, crop-mark plate, quiet type. */

/* the breadcrumb: small, faint, slashes between */
.crumbs { padding-top: 24px; font-size: 13px; color: var(--faint); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--rule-2); }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--faint); }

.lede { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; background: var(--hover); border-radius: 999px; font-size: 13px; color: var(--soft); }
.go { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 400; color: var(--faint); margin-left: 6px; }

/* ---------- a figure page ---------- */
.fp-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; margin-top: 8px; }
.fp-copy { grid-column: 1 / span 5; padding-top: 72px; }
.fp-stage { grid-column: 6 / span 7; }
.fp h1 { font-weight: 500; font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; }
.fp h1 span { color: var(--soft); }
.fp .plate { position: relative; aspect-ratio: 5 / 4; }
.fp .plate .win { inset: 0; }
.fp .plate picture { display: contents; }
.fp .plate .win .kl-svg.poster { opacity: 1; }
.fp .plate .win .kl-svg.poster.off { opacity: 0; }
.fp-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 30px; margin-top: 12px; }
.fp-under .cap-hint { margin: 0; }
.fp-under [hidden] { display: none; }
.pills button { font-weight: 400; }

.fp-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--col-gap); margin-top: 80px; }
.fp-body section { min-width: 0; max-width: 560px; }
.fp h2 { font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.fp-body p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--soft); max-width: 60ch; }
.fp-body a, .hub-head a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.fp-body a:hover { text-decoration-color: var(--ink); }
.use { display: grid; gap: 12px; margin-top: 14px; }
.use div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
.use dt { color: var(--faint); font-size: 13px; line-height: 22px; }
.use dd { font-size: 14px; line-height: 22px; color: var(--ink); }

/* the embed code: the detail panel's box */
.code { margin-top: 14px; border-radius: 12px; background: var(--hover); min-width: 0; }
.cbar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 8px 0 16px; font-size: 13px; color: var(--faint); }
.copy { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 13px; color: var(--soft);
  display: inline-flex; align-items: center; gap: 6px; }
.copy:hover, .copy.done { color: var(--ink); background: var(--hover); }
.copy[hidden] { display: none; }
.copy i { font-size: 14px; }
.code pre { margin: 0; padding: 12px 18px 18px; overflow: auto; font: 400 12px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.fp-body .fine { font-size: 13px; color: var(--faint); }
.cpro { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--hover); font-size: 14px; line-height: 1.5; color: var(--soft); }
.cpro a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* related figures and hub grids: the site's tile, the poster cropped as a library plate */
.fp-rel { margin-top: var(--sec-gap); }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--col-gap); margin-top: 20px; }
.hub .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
.tiles .well img { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; display: block; }
.tiles .card-k .t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tiles .card-k .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles .card-k:hover .t { color: var(--soft); }
.ends { display: flex; flex-wrap: wrap; gap: 0 28px; }
.sec-end i { font-size: 14px; }

/* ---------- a hub ---------- */
.hub-head { margin-top: 24px; max-width: 760px; }
.hub h1 { font-weight: 500; font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; }
.hub-head .lede { max-width: 62ch; }
.hub-head .meta { margin-top: 14px; font-size: 13px; color: var(--faint); }
.hub-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--col-gap); margin-top: var(--sec-gap); }
.hub h2 { font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.hub-more ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.hub-more li { font-size: 14px; line-height: 1.5; color: var(--soft); }
.hub-more li a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.hub-more li a:hover { text-decoration-color: var(--ink); }
.hub-more li span { display: block; color: var(--faint); font-size: 13px; }

@media (max-width: 1100px) {
  .hub .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fp-top { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .fp-copy, .fp-stage { grid-column: 1; }
  .fp-copy { padding-top: 16px; }
  .fp h1, .hub h1 { font-size: 32px; }
  .fp-body { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 64px; }
  .tiles, .hub .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tiles, .hub .tiles { gap: 24px 16px; }
  .tiles .card-k .m { white-space: normal; }
  .tiles .card-k .t { display: block; }
  .use div { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp .plate .win .kl-svg.poster { transition: none; }
}
