/* ===== Tech Pastry Shorts archive (2026-11-29) =====
   Isolated from screen.css so overflow/wrapping work can merge safely.
   Colors match the live clickable-card palette (#174A9E, yellow border).
   Target: WCAG AA contrast, body text >= 4.5:1. */

.tp-shorts-hero{padding-top:48px;padding-bottom:12px}
.tp-shorts-hero .tp-archive-title{margin:12px 0 16px}
.tp-shorts-hero .tp-hero-sub{max-width:640px;margin:0}
.tp-shorts-page{padding-top:8px;padding-bottom:64px}

.tp-short-filters{align-items:center;margin-top:8px}
.tp-short-filters .tp-filters-label{width:auto}
.tp-short-filters button{
  appearance:none;border:0;cursor:pointer;
  height:35px;padding:0 17px;display:inline-flex;align-items:center;gap:6px;
  background:var(--click,#174A9E);
  box-shadow:inset 0 0 0 1.5px var(--click-line,rgba(255,216,77,.6));
  color:#fff;
  font-family:var(--font-mono);font-weight:700;font-size:12.5px;text-transform:uppercase;
}
.tp-short-filters button small{font-weight:400;opacity:.85;font-size:11.5px}
.tp-short-filters button.is-active,
.tp-short-filters button:hover{
  background:var(--yellow);color:var(--navy);box-shadow:none;
}
.tp-short-filters button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.tp-short-filters button.is-active small,
.tp-short-filters button:hover small{color:var(--navy);opacity:1}

.tp-short-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
}
.tp-short-grid-home{grid-template-columns:repeat(4,1fr);gap:28px}

.tp-short-card{
  display:flex;flex-direction:column;
  background:var(--click,#174A9E);
  box-shadow:inset 0 0 0 1.5px var(--click-line,rgba(255,216,77,.6)),0 6px 0 rgba(4,20,52,.35);
  padding:12px 12px 16px;
  min-width:0;
}
.tp-short-card.tp-clickable:hover,
.tp-short-card.tp-clickable:focus-within{
  background:var(--click-hover,#1B55B5);
  transform:translateY(-4px);
  box-shadow:inset 0 0 0 2px var(--yellow),0 10px 0 rgba(4,20,52,.35);
}

.tp-short-facade{
  position:relative;
  aspect-ratio:9/16;
  background:#0E3F8F;
  overflow:hidden;
}
.tp-short-facade img,
.tp-short-facade iframe{
  position:absolute;inset:0;width:100%;height:100%;
  border:0;display:block;
}
.tp-short-facade img{object-fit:cover}
.tp-short-play{
  appearance:none;border:0;padding:0;margin:0;
  position:absolute;inset:0;width:100%;height:100%;
  background:transparent;cursor:pointer;display:block;
}
.tp-short-play:focus-visible{outline:3px solid var(--yellow);outline-offset:-3px}
.tp-short-playicon{
  position:absolute;left:50%;top:50%;
  width:64px;height:64px;margin:-32px 0 0 -32px;
  border-radius:50%;
  background:var(--yellow);
  box-shadow:0 6px 18px rgba(4,20,52,.45);
  display:block;pointer-events:none;
  transition:transform .15s ease;
}
.tp-short-playicon::after{
  content:"";
  position:absolute;left:26px;top:20px;
  border-style:solid;
  border-width:12px 0 12px 20px;
  border-color:transparent transparent transparent var(--navy);
}
.tp-short-play:hover .tp-short-playicon,
.tp-short-play:focus-visible .tp-short-playicon{transform:scale(1.08)}

.tp-short-body{display:flex;flex-direction:column;flex:1;padding:14px 4px 0;min-width:0}
.tp-short-card .tp-tagchip{align-self:flex-start;margin:0 0 10px}
.tp-short-title{
  font-family:var(--font-head);font-weight:700;
  font-size:18px;line-height:24px;color:#fff;
  margin:0 0 12px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  overflow-wrap:anywhere;word-break:break-word;
}
.tp-short-title a:hover{text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:3px}
.tp-short-meta{
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.28);
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  font-family:var(--font-mono);font-weight:700;font-size:12.5px;
  color:rgba(220,232,250,.92);text-transform:uppercase;
  min-width:0;
}
.tp-short-meta time{min-width:0;overflow-wrap:anywhere}
.tp-short-yt{
  color:var(--yellow);white-space:nowrap;flex:none;z-index:2;position:relative;
}
.tp-short-yt:hover{text-decoration:underline;text-underline-offset:3px}
.tp-short-yt:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}

.tp-short-card.is-hidden{display:none}
.tp-shorts-empty{font-size:18px;color:var(--ice);margin:24px 0}

/* Short post page: vertical player instead of wide feature image */
.tp-short-post .tp-post-head{margin-bottom:8px}
.tp-short-player-wrap{
  max-width:420px;width:100%;margin:0 auto 36px;padding:0 var(--gutter);
}
.tp-short-player{
  position:relative;aspect-ratio:9/16;
  background:#0E3F8F;
  box-shadow:inset 0 0 0 2px var(--yellow),0 10px 0 rgba(4,20,52,.35);
  overflow:hidden;
}
.tp-short-player img,
.tp-short-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;object-fit:cover}
.tp-short-post .tp-sheet-paper{z-index:1}
.tp-content .tp-short-ytlink{
  color:var(--navy);font-weight:700;
  text-decoration:underline;text-decoration-color:var(--bp-base);text-underline-offset:3px;
}

@media (max-width:1280px){
  .tp-short-grid,.tp-short-grid-home{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:900px){
  .tp-short-grid,.tp-short-grid-home{grid-template-columns:repeat(2,1fr);gap:22px}
  .tp-short-title{font-size:17px;line-height:23px}
}
@media (max-width:700px){
  .tp-short-grid,.tp-short-grid-home{
    grid-template-columns:1fr;
    max-width:420px;margin-left:auto;margin-right:auto;
  }
  .tp-short-player-wrap{padding:0 24px}
  .tp-shorts-hero{padding-top:28px}
}
