.tt-single{ background:#0b1120; }

.tt-single-hero{
  padding:40px 0 18px;
  border-bottom:1px solid #1f2937;
  background:radial-gradient(800px 220px at 18% 0%, rgba(250,204,21,.12), rgba(0,0,0,0));
}

.tt-single-back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#9ca3af;
  font-size:13px;
  margin-bottom:12px;
}
.tt-single-back:hover{ color:#facc15; }

.tt-single-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color:#6b7280;
  font-size:12px;
  margin-bottom:8px;
}
.tt-dot{ opacity:.7; }

.tt-single-title{
  font-size:34px;
  line-height:1.12;
  font-weight:900;
  letter-spacing:-.3px;
  margin:0 0 10px;
}

.tt-single-chips{ display:flex; gap:8px; flex-wrap:wrap; }

.tt-single-main{ padding:22px 0 42px; }
.tt-single-layout{ display:grid; gap:22px; }
@media (min-width:1024px){
  .tt-single-layout{ grid-template-columns:minmax(0,1fr); }
  .tt-single-layout--has-aside{ grid-template-columns:minmax(0,1fr) 320px; align-items:start; }
}

.tt-single-article{
  background:radial-gradient(circle at top,#020617,#020617);
  border:1px solid #1f2937;
  border-radius:18px;
  padding:18px;
}
@media (min-width:768px){
  .tt-single-article{ padding:22px; }
}

.tt-single-featured{
  margin:0 0 16px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #1f2937;
}
.tt-single-featured img{ width:100%; height:auto; display:block; }

.tt-single-lead p{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.7;
  color:#e5e7eb;
}

.tt-keypoints{
  margin:14px 0 18px;
  border:1px solid rgba(250,204,21,.28);
  background:rgba(250,204,21,.06);
  border-radius:16px;
  padding:14px 14px 10px;
}
.tt-keypoints-title{
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:8px;
}
.tt-keypoints-body ul{ margin:0; padding-left:18px; }
.tt-keypoints-body li{ margin:6px 0; color:#e5e7eb; }

/* TOC */
.tt-toc{
  border:1px solid #1f2937;
  border-radius:16px;
  padding:12px;
  background:rgba(2,6,23,.65);
}
.tt-toc-title{ font-weight:800; margin-bottom:8px; }
.tt-toc-list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.tt-toc-list a{ color:#9ca3af; font-size:13px; }
.tt-toc-list a:hover{ color:#facc15; }
.tt-toc-sub a{ padding-left:10px; }
.tt-toc-mobile{ margin:14px 0 18px; }
.tt-toc-desktop{ position:sticky; top:18px; }
@media (max-width:1023px){
  .tt-toc-desktop{ display:none; }
}
@media (min-width:1024px){
  .tt-toc-mobile{ display:none; }
}

/* Content typography */
.tt-single-content{
  color:#d1d5db;
  font-size:15px;
  line-height:1.75;
}
.tt-single-content > *:first-child{ margin-top:0; }
.tt-single-content p{ margin:0 0 14px; }
.tt-single-content h2{
  font-size:22px;
  line-height:1.25;
  margin:22px 0 10px;
  color:#f9fafb;
}
.tt-single-content h3{
  font-size:18px;
  line-height:1.3;
  margin:18px 0 8px;
  color:#f9fafb;
}
.tt-single-content a{ color:#e5e7eb; text-decoration:underline; text-decoration-color:rgba(250,204,21,.35); }
.tt-single-content a:hover{ color:#facc15; }

.tt-single-content ul,
.tt-single-content ol{ margin:0 0 14px; padding-left:22px; }
.tt-single-content li{ margin:6px 0; }

.tt-single-content blockquote{
  margin:16px 0;
  padding:12px 14px;
  border-left:3px solid #facc15;
  border-radius:14px;
  background:rgba(2,6,23,.6);
  color:#e5e7eb;
}

.tt-single-content img{
  max-width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid #1f2937;
}

/* Responsive embeds */
.tt-embed{
  position:relative;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #1f2937;
  margin:16px 0;
}

.tt-embed--plain{
  background:#020617;
  aspect-ratio:16/9;
}

.tt-embed--plain iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block;
  border:0;
  margin:0 !important;
  transform:none !important;
}

@supports not (aspect-ratio: 16/9){
  .tt-embed--plain{ aspect-ratio:auto; padding-top:56.25%; }
}

/* Gutenberg embed blocks: keep WP's responsive wrapper intact */
.tt-embed--wp{
  background:transparent;
  aspect-ratio:auto;
}

.tt-embed--wp figure{ margin:0; }
.tt-embed--wp .wp-block-embed__wrapper{ width:100%; }
.tt-embed--wp iframe{ max-width:100%; }

/*
  FIX (real-world): On some setups (e.g., custom themes / optimization plugins),
  the block embed CSS gets partially overridden: the wrapper keeps a spacer,
  but the iframe is no longer absolutely positioned. Result: a big empty area
  ABOVE the video. We force a clean 16:9 wrapper for VIDEO embeds only.
*/

/*
  NOTE:
  - In v1.1.7 we add tt-embed/tt-embed--wp classes directly onto the <figure class="wp-block-embed ...">.
  - Older versions wrapped the <figure> inside a <div class="tt-embed tt-embed--wp">.
  We support BOTH selectors below.
*/

.tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper{
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  aspect-ratio:16/9 !important;
  background:#020617;
}

.tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper::before,
.tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper::after,
.tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper::before,
.tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper::after{
  content:none !important;
  display:none !important;
}

.tt-embed--wp.wp-block-embed.is-type-video iframe,
.tt-embed--wp .wp-block-embed.is-type-video iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border:0 !important;
  margin:0 !important;
  transform:none !important;
  display:block !important;
}

/* NitroPack lazy iframe wrappers (if present) */
.tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper .nitro-lazy-iframe,
.tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper .nitro-lazy-iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
}
.tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper .nitro-lazy-iframe-placeholder,
.tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper .nitro-lazy-iframe-placeholder{
  display:none !important;
}

@supports not (aspect-ratio: 16/9){
  .tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper,
  .tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper{
    aspect-ratio:auto;
  }
  .tt-embed--wp.wp-block-embed.is-type-video .wp-block-embed__wrapper::before,
  .tt-embed--wp .wp-block-embed.is-type-video .wp-block-embed__wrapper::before{
    content:"";
    display:block;
    padding-top:56.25%;
  }
}

/* Nav */
.tt-single-nav{
  display:flex;
  gap:12px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #1f2937;
}
.tt-single-nav-item{ flex:1 1 50%; font-size:13px; color:#9ca3af; }
.tt-single-nav-item a{ text-decoration:none; color:#e5e7eb; }
.tt-single-nav-item a:hover{ color:#facc15; }
.tt-right{ text-align:right; }

/* CTA */
.tt-cta{
  margin-top:18px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(250,204,21,.28);
  background:rgba(250,204,21,.06);
}
.tt-cta-title{ font-weight:900; margin-bottom:6px; }
.tt-cta-sub{ color:#9ca3af; font-size:13px; margin-bottom:12px; }
.tt-cta-actions{ display:flex; flex-wrap:wrap; gap:10px; }

/* Aside */
.tt-single-aside{ display:flex; flex-direction:column; gap:14px; }
.tt-aside-card{
  border:1px solid #1f2937;
  border-radius:16px;
  padding:14px;
  background:rgba(2,6,23,.65);
}
.tt-aside-title{ font-weight:900; margin-bottom:6px; }
.tt-aside-sub{ color:#9ca3af; font-size:13px; margin-bottom:12px; }

/* Related */
.tt-related{ margin-top:28px; }
.tt-related-head{ display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin:0 2px 10px; }
.tt-related-title{ font-weight:900; }
.tt-related-sub{ color:#6b7280; font-size:12px; }
.tt-related-grid{ display:grid; gap:20px; }
@media (min-width:768px){
  .tt-related-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
