/* Contents: the section list shows the work itself (r2/contents.js). Square, flat interface; the works carry the only shadow. */
.ct-w { position: relative; flex: none; display: block; padding: 0; margin: 0; border: 0; background: color-mix(in srgb, var(--k, #000) 8%, transparent); cursor: pointer; min-width: 18px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .22), 0 10px 16px -10px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(4px);
  transition: opacity .32s cubic-bezier(.23, 1, .32, 1), transform .32s cubic-bezier(.23, 1, .32, 1); transition-delay: calc(var(--i, 0) * 28ms); }
.ct-w.in { opacity: 1; transform: none; background: none; }
.ct-w[hidden] { display: none; }
.ct-w img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ct-w:focus-visible { outline: 2px solid var(--k, #000); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ct-w:hover { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(0, 0, 0, .22), 0 16px 22px -12px rgba(0, 0, 0, .6); } }
@media (prefers-reduced-motion: reduce) { .ct-w, .ct-w:hover { transform: none !important; transition: opacity .2s; } .ct-card.rise { animation: none !important; } }

/* ---------- phone: the sheet above the bar ---------- */
html.nv-on .nv-sheet.ct[hidden] { display: none; }
html.nv-on .nv-sheet.ct { display: flex; flex-direction: column; gap: 0; padding: 0; max-height: calc(100svh - var(--fm, 54px) - 44px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.nv-on .nv-sheet.ct .ct-row { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 10px; min-height: 60px; padding: 0 10px 0 0; background: var(--p); color: var(--k);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--k) 14%, transparent); animation: nv-up .5s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 22ms); }
html.nv-on .nv-sheet.ct .ct-row a { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; align-items: baseline; column-gap: 6px; row-gap: 3px; align-self: stretch; align-content: center;
  padding: 8px 0 8px 10px; background: none; color: inherit; font-size: 22px; animation: none; min-height: 60px; box-sizing: border-box; }
html.nv-on .nv-sheet.ct .ct-row a small { grid-row: 1; opacity: .6; }
html.nv-on .nv-sheet.ct .ct-row a span { grid-row: 1; white-space: nowrap; }
html.nv-on .nv-sheet.ct .ct-row a .ct-n { grid-column: 2; grid-row: 2; font: 500 11px/1.1 'Albert Sans', sans-serif; text-transform: none; font-style: normal; opacity: .72; white-space: nowrap; }
html.nv-on .nv-sheet.ct .ct-row a:hover, html.nv-on .nv-sheet.ct .ct-row a:focus-visible { background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
html.nv-on .nv-sheet.ct .ct-row:has(a[aria-current]) { box-shadow: inset 6px 0 0 var(--k), inset 0 -1px 0 color-mix(in srgb, var(--k) 14%, transparent); }
html.nv-on .nv-sheet.ct .ct-row a[aria-current] { background: none; color: inherit; }
.nv-sheet.ct .ct-th { display: flex; gap: 8px; height: 46px; min-width: 0; align-items: center; }
.nv-sheet.ct .ct-th:empty { display: none; }
.nv-sheet.ct .ct-brief { display: flex; align-items: center; justify-content: space-between; flex: none; height: 54px; padding: 0 16px; border: 0; background: #F25BA9; color: #000; cursor: pointer;
  font: 400 24px/1 Anton, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.nv-sheet.ct .ct-brief b { font: 600 22px/1 'Albert Sans', sans-serif; }

/* ---------- desktop: the card above the number pointed at ---------- */
.ct-card { position: absolute; bottom: 100%; left: 12px; z-index: 5; box-sizing: border-box; width: max-content; max-width: calc(100vw - 24px); padding: 14px 16px 14px; background: var(--p); color: var(--k);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 14%, transparent), 0 -18px 40px -18px rgba(0, 0, 0, .45), 0 24px 60px -30px rgba(0, 0, 0, .5); margin-bottom: 8px; font-family: 'Albert Sans', sans-serif; }
.ct-card[hidden] { display: none; }
.ct-card::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* the gap to the bar still counts as the card, so the pointer can cross it */
.ct-card.rise { animation: ct-rise .24s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ct-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ct-hd b { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 4px; box-sizing: border-box; background: var(--k); color: var(--p); font: 400 17px/1 Anton, sans-serif; }
.ct-hd strong { font: 400 30px/1 Anton, sans-serif; text-transform: uppercase; letter-spacing: .005em; }
.ct-hd em { margin-left: auto; padding-left: 24px; font: 500 13px/1 'Albert Sans', sans-serif; font-style: normal; opacity: .72; }
.ct-card .ct-th { display: flex; gap: 12px; height: 132px; width: max-content; max-width: min(760px, calc(100vw - 56px)); padding-bottom: 4px; }
.ct-ft { display: flex; gap: 8px; margin-top: 12px; }
.ct-ft button { height: 38px; padding: 0 14px; border: 0; cursor: pointer; font: 600 14px/1 'Albert Sans', sans-serif; transition: background-color .16s, color .16s; }
.ct-go { background: none; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.ct-go:hover, .ct-go:focus-visible { background: var(--k); color: var(--p); outline: none; }
.ct-ask { margin-left: auto; background: var(--k); color: var(--p); }
.ct-ask:hover, .ct-ask:focus-visible { background: #F25BA9; color: #000; outline: none; }
@media (max-width: 760px), (hover: none) { .ct-card { display: none !important; } }
