/* shorts.css — Styles for the Hidden Workings Shorts wall */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shorts-hero {
  padding: 56px 0 36px;
  max-width: 800px;
}

.shorts-hero h1 {
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: .98;
  letter-spacing: -2.5px;
  margin: 24px 0 20px;
}

.shorts-hero h1 em {
  color: var(--orange);
}

.shorts-hero-lead {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  color: #55534d;
}

.shorts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.shorts-toolbar .filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shorts-wall-section {
  padding: 44px 0 64px;
}

.shorts-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

.short-wall-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.short-wall-card[hidden] {
  display: none !important;
}

.short-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.short-wall-media {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--ink);
  border: 1px solid var(--ink);
  overflow: hidden;
}

.short-wall-media .lite-player.vertical {
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
}

.short-wall-media .lite-player.vertical iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
}

.short-wall-media .lite-player.vertical .lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 2px 7px;
  font-size: 10px;
  color: var(--ink);
  pointer-events: none;
}

.short-wall-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 14px;
}

.short-wall-body .card-meta {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.short-wall-card h3,
.short-wall-card .short-title {
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.4px;
  margin: 4px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  transition: color .2s;
}

.short-wall-card:hover h3,
.short-wall-card:hover .short-title {
  color: var(--orange);
}

.short-lead-hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.short-wall-body .card-foot {
  margin-top: auto;
  border-bottom: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.full-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.full-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.full-link .arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform .2s;
}

.full-link:hover .arrow {
  transform: translateX(3px);
}

.short-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-bottom-color .2s;
}

.short-yt-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}


/* One opening feature, followed by four complete rows of four. */
@media(min-width:1101px) {
  .shorts-wall.balanced > :first-child { grid-column: 1 / -1; }
}
.shorts-wall.balanced > :first-child { background: #fbf8f2; border: 1px solid var(--ink); padding: 20px; }
.shorts-wall.balanced > :first-child .short-card-inner { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 32px; }
.shorts-wall.balanced > :first-child .short-wall-body { padding: 16px 0; max-width: 620px; justify-content: center; }
.shorts-wall.balanced > :first-child h3 { font-size: 38px; line-height: 1.12; margin: 18px 0; }
.shorts-wall.balanced > :first-child .card-foot { margin-top: 24px; }
.short-wall-body .card-meta { flex-wrap: wrap; gap: 4px 12px; line-height: 1.6; }
.short-lead-hint { font-size: 16px; line-height: 1.6; }
.full-link,.short-yt-link { min-height: 44px; align-items: center; }
@media(max-width:1100px) and (min-width:761px) {
  .shorts-wall { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shorts-wall.balanced > :first-child { grid-column: span 2; }
  .shorts-wall.balanced > :first-child .short-card-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
  .shorts-wall.balanced > :first-child h3 { font-size: 28px; }
}
@media(max-width:760px) {
  .shorts-hero { padding: 36px 0 24px; }
  .shorts-hero h1 { font-size: clamp(38px,11vw,54px); letter-spacing: -1.5px; margin: 18px 0 16px; }
  .shorts-wall-section { padding: 28px 0 48px; }
  .shorts-wall { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 14px; }
  .shorts-wall.balanced > :first-child { grid-column: 1 / -1; padding: 12px; }
  .shorts-wall.balanced > :first-child .short-card-inner { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 14px; }
  .shorts-wall.balanced > :first-child .short-wall-body { padding: 0; }
  .shorts-wall.balanced > :first-child h3 { font-size: 22px; margin: 10px 0; }
  .shorts-wall.balanced > :first-child .card-foot { margin-top: 8px; }
  .short-lead-hint { display: none; }
  .short-wall-card .short-title { font-size: 19px; line-height: 1.2; }
  .short-wall-body .card-meta { font-size: 9px; letter-spacing: .4px; }
  .short-wall-body .card-meta > span:last-child { display: none; }
  .short-wall-body .card-foot { flex-wrap: wrap; gap: 0 12px; padding-top: 4px; }
  .full-link,.short-yt-link { font-size: 11px; }
  .short-duration { top: 6px; right: 6px; }
}
