/* ===== Blog front page + Subscribe page (2026-11-29) =====
   Isolated from screen.css, shorts.css, and udemy.css so other
   theme passes can merge cleanly. Brand colors match the blueprint.
*/
.tp-masthead{
  padding:56px 0 12px;
}
.tp-masthead-row{
  display:grid;
  grid-template-columns:1fr minmax(220px,280px);
  gap:40px;
  align-items:end;
  margin-top:12px;
}
.tp-masthead-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:56px;
  line-height:60px;
  letter-spacing:-.4px;
  color:#fff;
  margin:0 0 12px;
}
.tp-masthead-tagline{
  font-size:20px;
  line-height:30px;
  color:var(--ice);
  margin:0;
  max-width:640px;
}
.tp-masthead-block{
  border:1.5px solid rgba(255,255,255,.45);
  background:rgba(10,42,99,.35);
}
.tp-masthead-paged{
  padding-bottom:8px;
}
.tp-blog{
  padding:36px 0 24px;
}
.tp-blog-head{
  margin-bottom:28px;
}
.tp-blog-head .tp-section-title{
  margin-top:8px;
}

/* Featured (latest) post */
.tp-feature-post{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:0;
  margin-bottom:40px;
  background:var(--click,#174A9E);
  box-shadow:inset 0 0 0 1.5px var(--click-line,rgba(255,216,77,.85)),0 6px 0 rgba(4,20,52,.35);
  min-width:0;
  transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
}
.tp-feature-post:hover,
.tp-feature-post: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-feature-post-media{
  display:block;
  min-height:100%;
  background:#0E3F8F;
  overflow:hidden;
}
.tp-feature-post-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:16/10;
  display:block;
  transition:transform .3s;
}
.tp-feature-post:hover .tp-feature-post-media img,
.tp-feature-post:focus-within .tp-feature-post-media img{
  transform:scale(1.03);
}
.tp-feature-post-body{
  padding:32px 36px;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.tp-feature-post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:12.5px;
  text-transform:uppercase;
  color:rgba(220,232,250,.92);
  margin-bottom:14px;
}
.tp-feature-post-tag{
  color:var(--yellow);
  text-decoration:none;
}
.tp-feature-post-tag:hover,
.tp-feature-post-tag:focus-visible{
  text-decoration:underline;
  text-underline-offset:3px;
}
.tp-feature-post-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:36px;
  line-height:42px;
  color:#fff;
  margin:0 0 14px;
  overflow-wrap:anywhere;
}
.tp-feature-post-title a{
  color:#fff;
  text-decoration:none;
}
.tp-feature-post-title a:hover,
.tp-feature-post-title a:focus-visible{
  text-decoration:underline;
  text-decoration-color:var(--yellow);
  text-underline-offset:4px;
}
.tp-feature-post-excerpt{
  font-size:18px;
  line-height:28px;
  color:var(--ice);
  margin:0 0 24px;
}
.tp-feature-post-more{
  margin-top:auto;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
  color:var(--yellow);
  text-decoration:none;
}
.tp-feature-post-more:hover,
.tp-feature-post-more:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}

.tp-blog-grid{
  margin-top:0;
}

/* Pagination */
.tp-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
  margin:48px 0 16px;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
}
.tp-pagination-link{
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid transparent;
  padding:4px 0;
}
.tp-pagination-link:hover,
.tp-pagination-link:focus-visible{
  border-color:var(--yellow);
  color:#fff;
}
.tp-pagination-link.is-disabled{
  color:rgba(220,232,250,.45);
  cursor:default;
}
.tp-pagination-status{
  color:var(--ice);
}

/* Subscribe page */
.tp-subscribe-page{
  padding:72px 0 96px;
}
.tp-subscribe-inner{
  max-width:720px;
}
.tp-subscribe-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:56px;
  line-height:60px;
  letter-spacing:-.4px;
  color:#fff;
  margin:12px 0 16px;
}
.tp-subscribe-lead{
  font-size:20px;
  line-height:30px;
  color:var(--ice);
  margin:0 0 36px;
  max-width:640px;
}
.tp-subscribe-status{
  font-size:18px;
  line-height:28px;
  color:var(--ice);
  margin:0 0 24px;
}
.tp-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
}
.tp-label{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
  letter-spacing:0;
  text-transform:uppercase;
  color:var(--yellow);
}
.tp-form-subscribe{
  flex-direction:column;
  align-items:stretch;
  max-width:520px;
  gap:16px;
}
.tp-form-subscribe .tp-input,
.tp-form-subscribe .tp-btn{
  width:100%;
  flex:none;
  height:58px;
}
.tp-subscribe-signin{
  margin:18px 0 0;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
  color:var(--ice);
}
.tp-subscribe-signin a{
  color:var(--yellow);
  text-decoration:none;
}
.tp-subscribe-signin a:hover,
.tp-subscribe-signin a:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}
.tp-subscribe-notes{
  list-style:none;
  margin:40px 0 0;
  padding:20px 0 0;
  border-top:1.5px solid rgba(255,255,255,.35);
  max-width:520px;
  font-family:var(--font-mono);
  font-size:13px;
  line-height:22px;
  color:var(--ice);
}
.tp-subscribe-notes li{
  padding:6px 0 6px 28px;
  position:relative;
}
.tp-subscribe-notes li::before{
  content:"0" counter(item);
  counter-increment:item;
  position:absolute;
  left:0;
  color:var(--yellow);
  font-weight:700;
}
.tp-subscribe-notes{counter-reset:item}

@media (max-width:1100px){
  .tp-masthead-title,.tp-subscribe-title{font-size:44px;line-height:48px}
  .tp-feature-post-title{font-size:30px;line-height:36px}
  .tp-feature-post-body{padding:24px 26px}
}
@media (max-width:800px){
  .tp-masthead-row,
  .tp-feature-post{grid-template-columns:1fr}
  .tp-masthead-side{max-width:320px}
  .tp-feature-post-media img{aspect-ratio:16/9}
}
@media (max-width:700px){
  .tp-masthead{padding-top:36px}
  .tp-masthead-title,.tp-subscribe-title{font-size:36px;line-height:40px}
  .tp-masthead-tagline,.tp-subscribe-lead{font-size:17px;line-height:26px}
  .tp-feature-post-title{font-size:26px;line-height:32px}
  .tp-feature-post-excerpt{font-size:16px;line-height:24px}
  .tp-subscribe-page{padding:48px 0 72px}
  .tp-pagination{gap:16px;margin-top:36px}
}

/* ===== Slim topic nav (2026-11-29) =====
   Replaces the bordered chip grid + SHEET 04 bar on tag, author, and home.
   One line on desktop; horizontal scroll, no wrap, on mobile. */
.tp-topics-nav{
  margin:0 0 28px;
}
.tp-topics-nav-inner{
  display:flex;
  flex-wrap:nowrap;
  align-items:baseline;
  gap:0 22px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0;
  padding:2px 0 8px;
}
.tp-topics-nav a{
  color:rgba(220,232,250,.92);
  text-decoration:none;
  border-bottom:2px solid transparent;
  padding:2px 0 3px;
  flex:0 0 auto;
}
.tp-topics-nav a:hover,
.tp-topics-nav a:focus-visible{
  color:#fff;
  border-bottom-color:rgba(255,216,77,.5);
}
.tp-topics-nav a:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}
.tp-topics-nav a.is-current{
  color:var(--yellow);
  border-bottom-color:var(--yellow);
}
.tp-topics-all{
  margin-left:4px;
}

/* Full topic index at /topics/ */
.tp-topics-index{
  list-style:none;
  margin:0 0 64px;
  padding:0;
  max-width:720px;
  border-top:1.5px solid rgba(255,255,255,.35);
}
.tp-topics-index li{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  border-bottom:1px solid rgba(255,255,255,.28);
  padding:14px 0;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:15px;
}
.tp-topics-index a{
  color:#fff;
  text-decoration:none;
}
.tp-topics-index a:hover,
.tp-topics-index a:focus-visible{
  color:var(--yellow);
  text-decoration:underline;
  text-underline-offset:4px;
}
.tp-topics-index span{
  color:rgba(220,232,250,.92);
  font-size:12.5px;
  text-transform:uppercase;
  white-space:nowrap;
}

/* ===== Compact footer (2026-11-29) =====
   Desktop layout stays a 4-column drawing sheet, minus duplicate
   YouTube/TikTok/X links in Explore (those stay in Follow / the header).
   At <=768px the footer collapses to brand, one wrapped link row,
   one social row, and a single legal line. */
.tp-footer-navs{display:contents}
.tp-footer-explore .nav-youtube,
.tp-footer-explore .nav-tiktok,
.tp-footer-explore .nav-x{display:none}

@media (max-width:768px){
  .tp-footer-wrap{padding-bottom:20px}
  .tp-footer{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:20px 16px 14px;
    min-height:0;
  }
  .tp-footer-col{
    padding:0;
    min-height:0;
    border:0;
  }
  .tp-footer-brand{display:contents}
  .tp-footer-brand-copy{order:1}
  .tp-footer-logo{font-size:22px;line-height:28px}
  .tp-footer-desc{font-size:13px;line-height:18px;margin:4px 0 0;max-width:none}
  .tp-footer-navs{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:6px 14px;
    order:2;
  }
  .tp-footer-navs .tp-kicker{display:none}
  .tp-footer-navs .tp-footer-col{display:contents}
  .tp-footer-navs .tp-footer-links{display:contents}
  .tp-footer-navs a{
    font-family:var(--font-mono);
    font-weight:700;
    font-size:12.5px;
    line-height:20px;
    text-transform:uppercase;
  }
  .tp-footer-explore .nav-home{display:none}
  .tp-footer-explore .nav-shorts{order:1}
  .tp-footer-explore .nav-learn{order:2}
  .tp-footer-explore .nav-lectures{order:3}
  .tp-footer-explore .nav-tools{order:4}
  .tp-footer-explore .nav-apps{order:5}
  .tp-footer-more .nav-subscribe{order:6}
  .tp-footer-more a[href$="/rss/"]{order:7}
  .tp-footer-follow{
    order:3;
    margin:0;
    padding:0;
  }
  .tp-footer-follow .tp-kicker{display:none}
  .tp-footer-socials{
    display:flex;
    flex-wrap:wrap;
    gap:6px 16px;
    margin:0;
    font-family:var(--font-mono);
    font-weight:700;
    font-size:12.5px;
    text-transform:uppercase;
  }
  .tp-footer-col.tp-titleblock{display:none}
  .tp-footer-legal{
    order:4;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:4px 12px;
    height:auto;
    padding:10px 0 0;
    border-top:1px solid rgba(255,255,255,.25);
    font-size:11px;
  }
}
