/* ==========================================
   STB ARCHIVE – Beige theme (clean version)
   Scope: .stb-archive only
   ========================================== */

:root{
  --stb-bg: #f6ead3;
  --stb-bg-2: #f3e6cf;
  --stb-border: rgba(216,198,163,.95);
  --stb-border-strong: rgba(201,166,107,.95);
  --stb-text: #5a3b12;
  --stb-blue: #5a3b12;
  --stb-accent: #c9a66b;
  --stb-shadow: 0 10px 30px rgba(0,0,0,.08);
  --stb-shadow-hover: 0 16px 40px rgba(0,0,0,.12);
}

/* Page wrapper */
.stb-archive{
  padding: 10px 0 30px;
}

/* ==========================================
   Title strip (lines + pill)
   ========================================== */
.stb-archive-title{
  display:flex;
  align-items:center;
  gap: 16px;
  margin: 18px 0 22px;
  padding: 6px 0;
}

.stb-archive-title h1{
  margin:0;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.2;
  color: var(--stb-text);

  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(243, 230, 207, .85);
  border: 1px solid var(--stb-border);
}

.stb-title-line{
  flex:1;
  height: 3px;
  border-radius: 999px;
  background: #d8c6a3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  opacity: .95;
}

/* ==========================================
   Grid
   ========================================== */
.stb-archive .stb-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

/* ==========================================
   Card
   ========================================== */
.stb-archive .stb-card{
  background: var(--stb-bg);
  border: 1px solid var(--stb-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--stb-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stb-archive .stb-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--stb-shadow-hover);
  border-color: var(--stb-border-strong);
}

/* ==========================================
   Thumbnail (with soft bottom shade)
   ========================================== */
.stb-archive .stb-thumb{
  display:block;
  position: relative;
  overflow:hidden;
  border-radius: 16px 16px 0 0;
  /* soft shade at bottom instead of gradient pseudo element */
  box-shadow: inset 0 -60px 60px rgba(0,0,0,.10);
}

/* dynamic size */
.stb-archive .stb-thumb img{
  width:100%;
  aspect-ratio: 16 / 9;
  height:auto;
  object-fit: cover;
  display:block;
  background: #efe1c7;
  filter: saturate(1.03) contrast(1.02);
}

/* empty thumb if no featured image */
.stb-archive .stb-thumb--empty{
  width:100%;
  aspect-ratio: 16/9;
  background: #efe1c7;
}

/* Play overlay na svim thumb-ovima */
.stb-card .stb-thumb{
  position: relative;
  display:block;
  overflow:hidden;
  border-radius: 16px;
}

/* krug */
.stb-card .stb-thumb::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 16px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(243, 230, 207, .92);
  border: 1px solid rgba(216,198,163,.95);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  z-index: 5;
}

/* trougao */
.stb-card .stb-thumb::after{
  content:"";
  position:absolute;
  left: 35px;
  top: 31px;
  width: 0;
  height: 0;
  border-left: 18px solid #5a3b12;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  opacity:.9;
  z-index: 6;
}

/* ==========================================
   Body
   ========================================== */
.stb-archive .stb-body{
  padding: 12px 14px 14px;
}

/* Downloads + date row */
.stb-archive .stb-toprow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stb-archive .stb-downloads{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* pills */
.stb-archive .stb-dl,
.stb-archive .stb-date{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  width: fit-content;

  border-radius: 999px;
  background: var(--stb-bg-2);
  border: 1px solid var(--stb-border);
  color: var(--stb-text);
  font-weight: 800;
  text-decoration:none;

  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: .02em;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.stb-archive .stb-dl:hover{
  transform: translateX(2px);
  background: #fbf4e7;
  border-color: var(--stb-border-strong);
}

/* little dot icon */
.stb-archive .stb-dl::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--stb-accent);
  box-shadow: 0 0 0 3px rgba(201,166,107,.20);
}

/* date polish */
.stb-archive .stb-date{
  font-variant-numeric: tabular-nums;
}

/* Title */
.stb-archive .stb-heading{
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .01em;
}

.stb-archive .stb-heading a{
  color: var(--stb-blue);
  text-decoration:none;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.stb-archive .stb-heading a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Excerpt */
.stb-archive .stb-sub{
  margin: 8px 0 0;
  opacity: .92;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ==========================================
   Pagination
   ========================================== */
.stb-archive .stb-pagination{
  margin-top: 22px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1100px){
  .stb-archive .stb-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stb-archive .stb-heading{
    font-size: 24px;
  }
}

@media (max-width: 640px){
  .stb-archive .stb-grid{
    grid-template-columns: 1fr;
  }
  .stb-archive .stb-heading{
    font-size: 22px;
  }
  .stb-archive-title h1{
    font-size: 18px;
  }
}