/* catalog glimpse: four cards as the owner's catalog shows them.
   The window-bar path stays muted, so a private card carries no teal. */
.sheet {
  min-width: 0;
  padding: var(--gap) 24px 26px;
  background: var(--surface);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* the spoken summary of the glimpse stays in sentence case */
.sheet-head .sr-only {
  letter-spacing: normal;
  text-transform: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 1fr));
  gap: 14px;
}

/* The extra cards and the repeated lists exist only for the rolling catalog
   on wide screens (responsive.css). Everywhere else the glimpse stays four
   still cards. */
.catalog-grid .card-more,
.catalog-copy {
  display: none;
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card-window {
  border-bottom: 1px solid var(--line-soft);
}

.window-bar,
.card-slug,
.addr-url {
  font-family: var(--font-mono);
  letter-spacing: 0.015em;
  font-feature-settings:
    "liga" 0,
    "calt" 0;
}

.window-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.window-bar .where {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-bar span:last-child {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.thumb {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

/* the Deliberate Crop Rule: a preview fades out at its base */
.thumb::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--card) 82%);
}

.shot-facts {
  position: absolute;
  z-index: 3;
  inset: auto 12px 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.shot-facts .entry {
  color: var(--ink);
}

.card-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
}

.frame-no {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.card-name {
  min-width: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card-slug {
  display: none;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the one shared card states its address; teal names that machine value */
.card-share {
  display: grid;
  gap: 2px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line-soft);
}

.addr-url {
  color: var(--pop);
  font-size: 12.5px;
  line-height: 1.4;
}

.addr-url span {
  white-space: nowrap;
}

.addr-say {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.card-date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* sharing state: words on a block. Only link and pin take the accent. */
.flag {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--pop);
  border-radius: 5px;
  background: var(--pop);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flag[data-s="private"] {
  border-color: var(--line);
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}
