/* TUDAO V108 — dedicated vertical archive for all latest chapter updates. */
.td-latest-page{
  margin:0;
  background:#080807;
  color:#e9decb;
}

.td-latest-page__main{
  width:min(100%,760px);
  margin:0 auto;
  padding:18px 12px calc(110px + env(safe-area-inset-bottom,0px));
}

.td-latest-page__section{
  width:100%;
}

.td-latest-page__heading{
  width:100%;
  margin:2px auto 8px;
  line-height:0;
}

.td-latest-page__heading img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

.td-latest-page__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 5px 14px;
  padding:8px 10px;
  border-top:1px solid rgba(116,84,40,.32);
  border-bottom:1px solid rgba(116,84,40,.32);
  color:#bca781;
  font-family:Georgia,"Times New Roman",serif;
  font-size:.82rem;
  font-weight:700;
}

.td-latest-page__list{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}

.td-latest-page .td-chapter-card{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  align-items:start;
  width:100%;
  min-width:0;
  max-width:none;
  min-height:0;
  flex:none;
  margin:0;
  border:1px solid rgba(101,73,35,.78);
  background:linear-gradient(180deg,#12110e,#0a0a09);
  box-shadow:inset 0 0 0 1px rgba(227,184,98,.035);
}

.td-latest-page .td-chapter-card__cover{
  grid-column:1;
  grid-row:1;
  min-width:0;
  margin:7px;
  aspect-ratio:3/4;
  min-height:0;
  height:auto;
  align-self:start;
  overflow:hidden;
}

.td-latest-page .td-chapter-card__cover img{
  display:block;
  width:100%;
  max-width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}

.td-latest-page .td-chapter-card__badge{
  top:5px;
  left:5px;
  padding:3px 6px;
  font-size:.62rem;
}

.td-latest-page .td-chapter-card__body{
  grid-column:2;
  grid-row:1;
  min-width:0;
  padding:11px 11px 9px 2px;
}

.td-latest-page .td-chapter-card__story-title{
  min-height:0;
  color:#e7be72;
  font-size:.98rem;
  line-height:1.22;
  white-space:normal;
  -webkit-line-clamp:2;
}

.td-latest-page .td-chapter-card__chapter{
  margin-top:7px;
  color:#e6dccb;
  font-size:.80rem;
  line-height:1.30;
  -webkit-line-clamp:3;
}

.td-latest-page .td-chapter-card__name{
  margin-top:8px;
  padding-top:7px;
  color:#9f917d;
  font-size:.74rem;
}

.td-latest-page__pagination{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin:18px 0 8px;
}

.td-latest-page__pagination a,
.td-latest-page__page-number{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(118,90,49,.72);
  border-radius:0;
  background:#12110f;
  color:#d9bc7b;
  font-weight:800;
  text-decoration:none;
}

.td-latest-page__pagination a:first-child{justify-self:start;padding:0 16px}
.td-latest-page__pagination a:last-child{justify-self:end;padding:0 16px}
.td-latest-page__page-number{padding:0 14px;color:#a99572;font-size:.78rem}

.td-latest-page__empty{
  margin:22px 0;
  padding:18px;
  border:1px solid rgba(101,73,35,.55);
  color:#b8aa95;
  text-align:center;
}

/* Homepage button directly below latest chapter feed. */
.td-home-page .td-chapter-shelf__actions{
  display:flex;
  justify-content:center;
  margin:10px 0 2px;
}

@media(max-width:430px){
  .td-latest-page__main{padding-inline:10px}
  .td-latest-page .td-chapter-card{grid-template-columns:74px minmax(0,1fr)}
}

/* P44: direct page selection in latest chapter archive; scope to this page only. */
.td-latest-page__page-picker{position:relative;display:block;min-width:100px;max-width:145px;justify-self:center}
.td-latest-page__page-picker select{display:block;width:100%;min-height:44px;padding:0 30px 0 16px;appearance:none;-webkit-appearance:none;border:1px solid rgba(118,90,49,.85);border-radius:0;background:#12110f;color:#d9bc7b;font:800 .9rem Georgia,"Times New Roman",serif;text-align:center;text-align-last:center;cursor:pointer}
.td-latest-page__page-picker select:focus-visible{outline:2px solid #e0b86d;outline-offset:2px}
.td-latest-page__picker-arrow{position:absolute;right:10px;top:50%;transform:translateY(-55%);color:#d9bc7b;pointer-events:none;font-size:1.2rem}
@media(max-width:360px){.td-latest-page__pagination{gap:5px}.td-latest-page__pagination a:first-child,.td-latest-page__pagination a:last-child{padding:0 10px}.td-latest-page__page-picker{min-width:90px}}
