/*
Theme Name: TryTechnical Child
Theme URI: https://trytechnical.com
Description: GeneratePress child theme for TryTechnical.com — clean minimal light design with cobalt accent, code blocks, and TOC styling.
Author: Dhananjay Nirala
Author URI: https://trytechnical.com/about-us/
Template: generatepress
Version: 1.28.1
Text Domain: trytechnical-child
*/

/* ============================================
   0. SELF-HOSTED FONTS — koi external request nahi
   ============================================ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/bricolage.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains.woff2') format('woff2');
}

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  --tt-paper: #FBFAF7;
  --tt-card: #FFFFFF;
  --tt-ink: #14181D;
  --tt-body: #2A323A;
  --tt-muted: #5C6670;
  --tt-line: #E8E5DD;
  --tt-accent: #0B5CE5;
  --tt-accent-soft: #EBF1FE;
  --tt-green: #0E9F6E;
  --tt-green-text: #077453;
  --tt-red-text: #A02128;
  --tt-green-soft: #E6F6F0;
  --tt-red: #D5393E;
  --tt-red-soft: #FCEBEB;
  --tt-footer: #101418;
  --tt-radius: 14px;
  --tt-display: 'Bricolage Grotesque', sans-serif;
  --tt-font: 'Instrument Sans', sans-serif;
  --tt-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   2. BASE — background, typography
   ============================================ */
body {
  background-color: var(--tt-paper);
  font-family: var(--tt-font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--tt-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: var(--tt-display);
  color: var(--tt-ink);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.entry-content a,
.entry-summary a {
  color: var(--tt-accent);
}

/* Single post title */
.single .entry-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}

.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 19px; }

/* Meta text */
.entry-meta, .posted-on, .byline {
  font-size: 13.5px;
  color: var(--tt-muted);
}

/* ============================================
   2b. TEXT LOGO — site title wordmark
   ============================================ */
.main-title {
  font-family: var(--tt-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 0;
}

.main-title a,
.main-title a:hover,
.main-title a:visited {
  display: inline-block;
  color: var(--tt-ink);
  text-decoration: none;
  line-height: 1.15;
}

.main-title .tt-accent { color: var(--tt-accent); }

/* ============================================
   3. HEADER — light, subtle blur
   ============================================ */
.site-header {
  background-color: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tt-line);
}

.main-navigation {
  background-color: transparent;
}

.main-navigation .main-nav ul { display: flex; align-items: center; }

.main-navigation .main-nav ul li { display: flex; align-items: center; }

.main-navigation .main-nav ul li a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--tt-muted);
  line-height: normal;
  padding: 9px 15px;
  margin: 0 2px;
  border-radius: 9px;
  transition: .18s;
}

.main-navigation .main-nav ul li a:hover {
  color: var(--tt-accent);
  background: var(--tt-accent-soft);
}

.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--tt-accent);
  background: var(--tt-accent-soft);
}

/* ============================================
   4. BUTTONS
   ============================================ */
.button, button[type="submit"], input[type="submit"] {
  background-color: var(--tt-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transition: .18s;
}

.button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background-color: #0847B8;
  color: #fff;
}

/* ============================================
   5. CODE BLOCKS — site ka signature element
   Custom HTML block mein use karo (README dekho)
   ============================================ */
.codes-block {
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  overflow: hidden;
  margin: 6px 0 26px;
  background: var(--tt-card);
}

.codes-block .cb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-family: var(--tt-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.codes-block.working .cb-head { background: var(--tt-green-soft); color: var(--tt-green-text); }
.codes-block.expired .cb-head { background: var(--tt-red-soft); color: var(--tt-red-text); }

.cb-head .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: tt-pulse 1.6s infinite;
}

@keyframes tt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--tt-line);
}

.code-row code {
  font-family: var(--tt-mono);
  font-size: 14.5px;
  font-weight: 700;
  background: var(--tt-paper);
  border: 1px dashed #C9C5BA;
  padding: 6px 13px;
  border-radius: 8px;
  color: var(--tt-ink);
}

.codes-block.expired .code-row code {
  text-decoration: line-through;
  color: var(--tt-muted);
}

.code-row .rw { color: var(--tt-muted); font-size: 14px; }

.code-row .copy-btn {
  margin-left: auto;
  font-family: var(--tt-mono);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  color: var(--tt-accent);
  padding: 6px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: .15s;
}

.code-row .copy-btn:hover {
  background: var(--tt-accent);
  color: #fff;
  border-color: var(--tt-accent);
}

/* ============================================
   6. "CHECKED TODAY" pill — title ke neeche
   ============================================ */
.upd-pill {
  display: inline-block;
  font-family: var(--tt-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--tt-green-soft);
  color: var(--tt-green-text);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* ============================================
   7. TOC — Rank Math block + TOC+ dono
   ============================================ */
.wp-block-rank-math-toc-block,
#toc_container {
  background: var(--tt-card) !important;
  border: 1px solid var(--tt-line) !important;
  border-radius: var(--tt-radius);
  padding: 18px 22px !important;
  margin-bottom: 26px;
  width: 100% !important;
  box-shadow: none !important;
}

.wp-block-rank-math-toc-block h2,
#toc_container .toc_title {
  font-family: var(--tt-mono) !important;
  font-size: 11.5px !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tt-muted) !important;
  margin: 0 0 12px !important;
  font-weight: 700;
}

.wp-block-rank-math-toc-block ul,
#toc_container ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-rank-math-toc-block li a,
#toc_container ul li a {
  display: block;
  font-size: 14px !important;
  color: var(--tt-muted) !important;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--tt-line);
  text-decoration: none !important;
  transition: .15s;
}

.wp-block-rank-math-toc-block li a:hover,
#toc_container ul li a:hover {
  color: var(--tt-accent) !important;
  border-left-color: var(--tt-accent);
  font-weight: 600;
}

.wp-block-rank-math-toc-block ul ul li a,
#toc_container ul ul li a {
  padding-left: 24px;
  font-size: 13px !important;
}

/* ============================================
   7b. AUTO TOC (child theme built-in)
   ============================================ */
.tt-toc {
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 18px 22px;
  margin: 6px 0 26px;
}

.tt-toc h4,
.tt-toc .tt-toc-title {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tt-muted);
  margin: 0 0 12px;
  font-weight: 700;
}

.tt-toc ul { list-style: none; margin: 0; padding: 0; }

.tt-toc li a {
  display: block;
  font-size: 14px;
  color: var(--tt-muted);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--tt-line);
  text-decoration: none;
  transition: .15s;
}

.tt-toc li a:hover {
  color: var(--tt-accent);
  border-left-color: var(--tt-accent);
  font-weight: 600;
}

.tt-toc li.tt-toc-sub a { padding-left: 24px; font-size: 13px; }

/* ============================================
   8. STEPS
 — numbered redeem steps
   List block pe custom class "tt-steps" lagao
   ============================================ */
.entry-content ol.tt-steps {
  counter-reset: s;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.entry-content ol.tt-steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 52px;
  margin: 0;
}

.entry-content ol.tt-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--tt-accent-soft);
  color: var(--tt-accent);
  font-family: var(--tt-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.entry-content ol.tt-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px; top: 36px; bottom: 2px;
  width: 2px;
  background: var(--tt-line);
}

/* ============================================
   9. FAQ accordion (details/summary)
   ============================================ */
.entry-content details {
  border: 1px solid var(--tt-line);
  border-radius: 12px;
  background: var(--tt-card);
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0;
}

.entry-content details summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  color: var(--tt-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.entry-content details summary::-webkit-details-marker { display: none; }

.entry-content details summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--tt-mono);
  color: var(--tt-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.entry-content details[open] summary::after { content: '\2013'; }

.entry-content details > *:not(summary) {
  padding: 0 18px 16px;
  color: var(--tt-muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================
   10. IMAGES & CARDS
   ============================================ */
.entry-content img {
  border-radius: var(--tt-radius);
}

/* ============================================
   10b. HOMEPAGE / ARCHIVE CARDS
   ============================================ */
.generate-columns .entry-title { font-size: 19px; line-height: 1.3; }
.generate-columns .entry-summary { font-size: 14.5px; }
.generate-columns .posted-on { font-size: 12.5px; }

.generate-columns .inside-article {
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  overflow: hidden;
  transition: .2s;
}

.generate-columns .inside-article:hover {
  transform: translateY(-3px);
  border-color: var(--tt-accent);
  box-shadow: 0 14px 32px rgba(16, 20, 24, .09);
}

/* ============================================
   11. DARK FOOTER
   ============================================ */
.footer-widgets {
  background-color: var(--tt-footer);
  color: #AEB6BE;
  font-size: 14.5px;
}

.footer-widgets .widget-title {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6E7780;
}

.footer-widgets a { color: #AEB6BE; }
.footer-widgets a:hover { color: #fff; }

.site-info {
  background-color: var(--tt-footer);
  color: #6E7780;
  font-size: 13px;
  border-top: 1px solid #22282E;
}

.site-info a { color: #6E7780; }

/* ============================================
   12. BREADCRUMB (Rank Math)
   ============================================ */
.rank-math-breadcrumb {
  font-family: var(--tt-mono);
  font-size: 12.5px;
  color: var(--tt-muted);
}

.rank-math-breadcrumb a {
  color: var(--tt-accent);
  font-weight: 600;
}

/* ============================================
   13. MOBILE
   ============================================ */
@media (max-width: 768px) {
  .single .entry-title { font-size: 30px; }
  .entry-content h2 { font-size: 22px; }
  .code-row .copy-btn { margin-left: 0; }
}

/* ============================================
   14. AUTHOR BOX (E-E-A-T)
   ============================================ */
.tt-author {
  display: flex;
  gap: 18px;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 22px;
  margin: 36px 0 0;
}

.tt-author img.avatar {
  width: 72px; height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
}

.tt-author h4,
.tt-author .tt-author-name {
  font-family: var(--tt-display);
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 2px;
  color: var(--tt-ink);
}

.tt-author-role {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  color: var(--tt-green-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tt-author p {
  font-size: 14px;
  color: var(--tt-muted);
  margin: 8px 0 6px;
}

.tt-author-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tt-accent);
  text-decoration: none;
}

/* ============================================
   15. RELATED POSTS
   ============================================ */
.tt-related { margin-top: 36px; }

.tt-related h3 {
  font-family: var(--tt-display);
  font-size: 22px;
  margin-bottom: 16px;
}

.tt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tt-related-card {
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  overflow: hidden;
  text-decoration: none;
  transition: .2s;
  display: flex;
  flex-direction: column;
}

.tt-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--tt-accent);
  box-shadow: 0 14px 32px rgba(16, 20, 24, .09);
}

.tt-related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
}

.tt-related-title {
  font-family: var(--tt-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--tt-ink);
  line-height: 1.3;
  padding: 12px 14px 4px;
}

.tt-related-date {
  font-size: 12.5px;
  color: var(--tt-green-text);
  font-weight: 600;
  padding: 0 14px 14px;
}

@media (max-width: 600px) {
  .tt-related-grid { grid-template-columns: 1fr; }
  .tt-author { flex-direction: column; }
}

/* ============================================
   16. HOMEPAGE — ticker, hero, sections
   ============================================ */
.tt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.tt-ticker {
  background: var(--tt-footer);
  padding: 9px 0;
  overflow: hidden;
}

.tt-ticker .tt-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.tt-ticker-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tt-ticker-items {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
  min-width: 100%;
  justify-content: space-around;
  animation: tt-marquee 28s linear infinite;
}

.tt-ticker-track:hover .tt-ticker-items { animation-play-state: paused; }

@keyframes tt-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .tt-ticker-items { animation: none; }
  .tt-ticker-items[aria-hidden] { display: none; }
}

.tt-ticker a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

.tt-ticker-tag {
  background: var(--tt-green);
  color: #fff;
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.tt-ticker-code { font-family: var(--tt-mono); font-size: 12.5px; font-weight: 700; color: #7FE8BE; }
.tt-ticker-dim { font-family: var(--tt-mono); font-size: 12.5px; color: #7A838C; }

.tt-home { padding-top: 40px; }

/* hero */
.tt-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.tt-feature {
  position: relative;
  border-radius: var(--tt-radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #222;
  text-decoration: none;
}

.tt-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .5s;
}

.tt-feature:hover img { transform: scale(1.03); }

.tt-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0) 30%, rgba(10,12,16,.88) 100%);
}

.tt-feature-in { position: relative; padding: 28px; }

.tt-chip {
  display: inline-block;
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tt-accent);
  color: #fff;
}

.tt-feature-in h2 {
  font-family: var(--tt-display);
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  margin: 12px 0 8px;
}

.tt-feature-meta { font-size: 13.5px; color: #7FE8BE; font-weight: 600; }

.tt-side-stack { display: flex; flex-direction: column; gap: 14px; }

.tt-side-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 12px;
  flex: 1;
  text-decoration: none;
  transition: .18s;
}

.tt-side-card:hover {
  border-color: var(--tt-accent);
  box-shadow: 0 8px 24px rgba(11, 92, 229, .09);
}

.tt-side-card img {
  width: 116px;
  height: 76px;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
}

.tt-side-card h3 {
  font-family: var(--tt-display);
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--tt-ink);
  margin: 0;
}

.tt-side-meta { font-size: 12.5px; color: var(--tt-green-text); font-weight: 600; margin-top: 4px; }

/* sections */
.tt-sec { margin-bottom: 48px; }

.tt-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.tt-sec-idx {
  font-family: var(--tt-mono);
  font-size: 13px;
  color: var(--tt-accent);
  font-weight: 700;
}

.tt-sec-head h2 {
  font-family: var(--tt-display);
  font-size: 26px;
  margin: 0;
}

.tt-sec-all {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-accent);
  text-decoration: none;
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tt-related-date2 { font-size: 12.5px; color: var(--tt-muted); padding: 0 14px 14px; }

@media (max-width: 900px) {
  .tt-hero { grid-template-columns: 1fr; }
  .tt-feature { min-height: 280px; }
  .tt-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tt-feature-in h2 { font-size: 22px; }
}

/* front-page content GP ke flex layout mein full width rahe */
.tt-fp { width: 100%; }

/* ============================================
   17. SINGLE POST — mockup layout
   ============================================ */
.tt-single { width: 100%; padding-top: 26px; }

.tt-single .rank-math-breadcrumb { margin-bottom: 14px; }

.tt-post-head { max-width: 800px; padding: 4px 0 26px; }

.tt-post-head .tt-chip { text-decoration: none; }

.tt-post-title {
  font-family: var(--tt-display);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 6px 0 16px;
}

.tt-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--tt-muted);
}

.tt-post-meta img.avatar { width: 38px; height: 38px; border-radius: 50%; }
.tt-post-meta b { color: var(--tt-ink); }
.tt-read-time { font-size: 13.5px; }

.tt-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
  padding-bottom: 64px;
}

.tt-post-grid > article,
.tt-post-grid > aside {
  min-width: 0;
  max-width: 100%;
}

.tt-post-body img.tt-cover {
  border-radius: var(--tt-radius);
  margin-bottom: 16px;
  width: 100%;
  display: block;
}

.tt-post-body .entry-content > *:first-child {
  margin-top: 0;
}

/* sidebar */
.tt-post-aside { position: sticky; top: 92px; }
.tt-toc-side { margin-bottom: 16px; }
.tt-toc-inline { display: none; }

.tt-trend {
  background: var(--tt-footer);
  border-radius: var(--tt-radius);
  padding: 22px;
  overflow: hidden;
}

.tt-trend-head {
  font-family: var(--tt-display);
  font-size: 19px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.tt-trend-head b { color: #7FE8BE; font-weight: 800; }

.tt-trend ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tr;
}

.tt-trend li {
  counter-increment: tr;
  position: relative;
  padding: 11px 0 11px 42px;
  border-bottom: 1px solid #22282E;
}

.tt-trend li:last-child { border-bottom: none; padding-bottom: 0; }

.tt-trend li::before {
  content: counter(tr, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  font-family: var(--tt-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tt-footer);
  background: #7FE8BE;
  padding: 2px 7px;
  border-radius: 5px;
}

.tt-trend li a {
  font-family: var(--tt-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #E6EAEE;
  text-decoration: none;
  transition: .15s;
}

.tt-trend li a:hover { color: #7FE8BE; }

/* numbered step circles — sab ordered lists pe */
.tt-single .entry-content > ol {
  counter-reset: s;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.tt-single .entry-content > ol > li {
  counter-increment: s;
  position: relative;
  padding: 5px 0 22px 52px;
  margin: 0;
  line-height: 1.55;
}

.tt-single .entry-content > ol > li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--tt-accent-soft);
  color: var(--tt-accent);
  font-family: var(--tt-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.tt-single .entry-content > ol > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px; top: 40px; bottom: 4px;
  width: 2px;
  background: var(--tt-line);
}

@media (max-width: 900px) {
  .tt-post-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-post-aside { display: none; }
  .tt-toc-inline { display: block; }
  .tt-post-title { font-size: 30px; }
}

/* ============================================
   18b. CONTENT SPACING — images ke baad saans
   ============================================ */
.entry-content figure,
.entry-content .wp-block-image {
  margin-top: 6px;
  margin-bottom: 26px;
}

.entry-content > img {
  margin-bottom: 26px;
}

/* ============================================
   19. LISTS — bullets & numbering
   ============================================ */

/* Bullet lists — cobalt marker, achhi spacing */
.entry-content ul:not([class]),
.entry-content ul.wp-block-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.entry-content ul:not([class]) > li,
.entry-content ul.wp-block-list > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.entry-content ul:not([class]) > li::before,
.entry-content ul.wp-block-list > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(0.8em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--tt-accent);
}

/* Nested bullets — hollow chhota marker */
.entry-content ul:not([class]) ul > li::before,
.entry-content ul.wp-block-list ul > li::before {
  background: transparent;
  border: 2px solid var(--tt-accent);
  width: 6px;
  height: 6px;
}

/* List mein bold lead text ink color mein */
.entry-content ul:not([class]) > li > strong,
.entry-content ul.wp-block-list > li > strong,
.entry-content ul:not([class]) > li > b,
.entry-content ul.wp-block-list > li > b {
  color: var(--tt-ink);
}

/* TOC apni styling rakhe — generic bullet rules se bacha lo */
.entry-content .tt-toc ul > li,
.entry-content nav.tt-toc li,
.tt-toc ul > li {
  padding-left: 0;
  margin-bottom: 0;
  position: static;
}

.entry-content .tt-toc ul > li::before,
.entry-content nav.tt-toc li::before,
.tt-toc ul > li::before {
  content: none;
}

/* Nested/normal numbered lists — mono accent numbers */
.entry-content ol ol,
.entry-content li ol {
  list-style: decimal;
  margin: 8px 0 8px 22px;
  padding: 0;
}

.entry-content ol ol > li,
.entry-content li ol > li {
  padding: 0 0 6px 6px;
}

.entry-content ol ol > li::before,
.entry-content li ol > li::before,
.entry-content ol ol > li::after,
.entry-content li ol > li::after {
  content: none;
}

.entry-content ol ol > li::marker,
.entry-content li ol > li::marker {
  font-family: var(--tt-mono);
  font-weight: 700;
  color: var(--tt-accent);
  font-size: 13px;
}

/* FAQ answers ke andar lists ko thodi saans */
.entry-content details ul,
.entry-content details ol {
  margin-top: 8px;
}

/* Steps (top-level ol) — wp-block-list class ke saath bhi kaam kare */
.tt-single .entry-content > ol.wp-block-list {
  counter-reset: s;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* ============================================
   20. HOMEPAGE v2 — trending numbers, card chips
   ============================================ */
.tt-feature-num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--tt-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #7FE8BE;
  background: rgba(16, 20, 24, .75);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.tt-side-num {
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tt-accent);
  display: block;
  margin-bottom: 3px;
}

.tt-card-chip {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--tt-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--tt-accent-soft);
  color: #0847B8;
  margin: 12px 14px 0;
}

.tt-card-chip.alt {
  background: var(--tt-green-soft);
  color: #085041;
}

.tt-card-chip + .tt-related-title { padding-top: 7px; }

.tt-meta-old { color: var(--tt-muted); }

/* ============================================
   21. HEADING RHYTHM — sections ke beech saans
   ============================================ */
.tt-single .entry-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.tt-single .entry-content h3 {
  margin-top: 26px;
  margin-bottom: 10px;
}

.tt-single .entry-content details + h2,
.tt-single .entry-content .codes-block + h2,
.tt-single .entry-content ul + h2,
.tt-single .entry-content ol + h2,
.tt-single .entry-content figure + h2 {
  margin-top: 44px;
}

/* ============================================
   22. META ROW — pub date, comments, share
   ============================================ */
.tt-pub-date { font-size: 13.5px; color: var(--tt-muted); }

.tt-comments-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tt-accent);
  text-decoration: none;
}

.tt-share {
  margin-left: auto;
  font-family: var(--tt-mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  color: var(--tt-accent);
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
}

.tt-share:hover {
  background: var(--tt-accent);
  color: #fff;
  border-color: var(--tt-accent);
}

@media (max-width: 600px) {
  .tt-share { margin-left: 0; }
}

/* ============================================
   23. TAGS — post ke neeche hashtag chips
   ============================================ */
.tt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.tt-tags-label {
  font-family: var(--tt-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--tt-ink);
  margin-right: 6px;
  align-self: center;
}

.tt-tags-label b { color: var(--tt-accent); font-weight: 800; }

.tt-tags a {
  font-family: var(--tt-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tt-muted);
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: .15s;
}

.tt-tags a:hover {
  color: var(--tt-accent);
  border-color: var(--tt-accent);
  background: var(--tt-accent-soft);
}

/* ============================================
   24. COMMENTS AREA — related posts se alag saans
   ============================================ */
.tt-single .tt-related { margin-bottom: 20px; }

.tt-comments-box {
  margin-top: 44px;
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  background: var(--tt-card);
  overflow: hidden;
}

.tt-comments-box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-family: var(--tt-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--tt-ink);
}

.tt-comments-box summary::-webkit-details-marker { display: none; }

.tt-cb-icon { color: var(--tt-accent); font-size: 16px; }

.tt-cb-count {
  font-family: var(--tt-mono);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--tt-paper);
  border: 1px solid var(--tt-line);
  color: var(--tt-muted);
  padding: 2px 10px;
  border-radius: 999px;
}

.tt-cb-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--tt-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-accent);
  font-size: 16px;
  line-height: 1;
  padding-bottom: 6px;
  transition: transform .2s;
}

.tt-comments-box[open] .tt-cb-arrow { transform: rotate(180deg); padding-bottom: 0; padding-top: 6px; }

.tt-cb-inner {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--tt-line);
}

.tt-single .comments-area #respond {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tt-single .comment-reply-title,
.tt-single .comments-title {
  font-family: var(--tt-display);
  font-size: 24px;
  margin-bottom: 14px;
}

.tt-single .comment-form textarea,
.tt-single .comment-form input[type="text"],
.tt-single .comment-form input[type="email"],
.tt-single .comment-form input[type="url"] {
  border: 1px solid var(--tt-line);
  border-radius: 10px;
  background: var(--tt-card);
}

.tt-single .comment-form textarea:focus,
.tt-single .comment-form input:focus {
  border-color: var(--tt-accent);
  outline: none;
}

/* ============================================
   25. ARCHIVE PAGES — category/tag/author
   ============================================ */
.tt-archive { width: 100%; padding: 36px 0 64px; }

.tt-arch-head { margin-bottom: 30px; max-width: 720px; }

.tt-arch-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tt-arch-label {
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--tt-accent-soft);
  color: #0847B8;
  padding: 4px 11px;
  border-radius: 6px;
}

.tt-arch-count {
  font-family: var(--tt-mono);
  font-size: 12.5px;
  color: var(--tt-muted);
}

.tt-arch-head h1 {
  font-family: var(--tt-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.tt-arch-desc {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--tt-muted);
}

.tt-arch-desc p { margin: 0; }

/* pagination */
.tt-pagination { margin-top: 40px; }

.tt-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-family: var(--tt-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tt-muted);
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 10px;
  text-decoration: none;
  transition: .15s;
}

.tt-pagination .page-numbers.current {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: #fff;
}

.tt-pagination a.page-numbers:hover {
  border-color: var(--tt-accent);
  color: var(--tt-accent);
}

.tt-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ============================================
   26. NAV SEARCH — GP navigation search styling
   ============================================ */
.navigation-search input[type="search"] {
  background: var(--tt-card) !important;
  border: 1px solid var(--tt-accent);
  border-radius: 10px;
  color: var(--tt-ink) !important;
  font-family: var(--tt-font);
  font-size: 14.5px;
  opacity: 1 !important;
}

.navigation-search input[type="search"]::placeholder {
  color: var(--tt-muted);
}

.main-navigation .search-item a {
  color: var(--tt-muted);
}

.main-navigation .search-item a:hover {
  color: var(--tt-accent);
}

/* archive: 2-column layout — grid + sticky trending */
.tt-arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.tt-arch-layout > * { min-width: 0; }

.tt-arch-grid {
  grid-template-columns: 1fr 1fr;
}

.tt-trend-arch { margin: 0; }

@media (max-width: 900px) {
  .tt-arch-layout { grid-template-columns: minmax(0, 1fr); }
  .tt-arch-grid { grid-template-columns: 1fr 1fr; }
  .tt-archive .tt-post-aside {
    position: static;
    max-width: 440px;
  }
}

@media (max-width: 560px) {
  .tt-arch-grid { grid-template-columns: 1fr; }
}

/* ============================================
   27. BACK TO TOP — scroll progress ring
   ============================================ */
.tt-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: var(--tt-card);
  border-radius: 50%;
  color: var(--tt-accent);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 20, 24, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 90;
}

.tt-top.tt-top-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tt-top svg { display: block; }

.tt-top-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
}

.tt-top:hover { color: #0847B8; }

/* ============================================
   28. CONTRAST FIXES — accessibility (WCAG AA)
   ============================================ */
.tt-footer h4 { color: #8B949D !important; }
.tt-footer .tt-bar { color: #9AA3AB !important; }

/* ============================================
   29. SITE FOOTER — theme built-in
   ============================================ */
.site-footer { display: none; } /* GP default footer hide */

.tt-footer {
  background: var(--tt-footer);
  color: #AEB6BE;
  font-size: 14.5px;
  padding: 52px 0 0;
}

.tt-footer .tt-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.tt-footer .tt-brand {
  font-family: var(--tt-display);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.tt-footer .tt-brand span { color: #5B93F5; }
.tt-footer .tt-brand b { color: var(--tt-green); }

.tt-footer p {
  max-width: 320px;
  line-height: 1.7;
  margin: 0;
}

.tt-footer .tt-f-head {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8B949D;
  margin: 0 0 14px;
  font-weight: 700;
}

.tt-footer ul { list-style: none; margin: 0; padding: 0; }
.tt-footer li { margin-bottom: 9px; }

.tt-footer a {
  color: #AEB6BE;
  text-decoration: none;
  transition: .15s;
}

.tt-footer a:hover { color: #fff; }

.tt-footer .tt-bar {
  border-top: 1px solid #22282E;
  padding: 18px 0;
  font-size: 13px;
  color: #9AA3AB;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .tt-footer .tt-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .tt-footer .tt-cols { grid-template-columns: 1fr; }
}

/* ============================================
   30. TRENDING PILL BAR — homepage, header ke neeche
   ============================================ */
.tt-trendbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  margin: 26px 0 48px;
  box-shadow: 0 4px 16px rgba(16, 20, 24, .05);
}

.tt-tb-label {
  font-family: var(--tt-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--tt-green-text);
  flex-shrink: 0;
}

.tt-tb-label b { color: var(--tt-accent); font-weight: 800; }
.tt-tb-label i { color: var(--tt-ink); font-style: normal; }

.tt-tb-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
}

.tt-tb-scroll::-webkit-scrollbar { display: none; }

.tt-tb-pill {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-ink);
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  padding: 8px 17px;
  text-decoration: none;
  transition: .15s;
  white-space: nowrap;
}

.tt-tb-pill:hover {
  border-color: var(--tt-accent);
  color: var(--tt-accent);
  background: var(--tt-accent-soft);
}

.tt-tb-next {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  color: var(--tt-ink);
  font-size: 16px;
  cursor: pointer;
  transition: .15s;
}

.tt-tb-next:hover {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: #fff;
}

@media (max-width: 600px) {
  .tt-trendbar { padding-left: 16px; }
  .tt-tb-label { font-size: 15px; }
}

/* ============================================
   31. IN SHORT BOX — auto summary
   ============================================ */
.tt-inshort {
  border: 1.5px solid var(--tt-accent);
  border-radius: var(--tt-radius);
  background: var(--tt-card);
  padding: 18px 22px;
  margin: 0 0 26px;
}

.tt-is-head {
  font-family: var(--tt-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--tt-ink);
  margin-bottom: 10px;
}

.tt-inshort ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-inshort li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tt-body);
}

.tt-inshort li:last-child { margin-bottom: 0; }

.tt-inshort li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tt-accent);
}

.tt-inshort li code {
  font-family: var(--tt-mono);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--tt-paper);
  border: 1px dashed #C9C5BA;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--tt-ink);
  white-space: normal;
  word-break: break-all;
}

.tt-inshort li { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .tt-inshort { padding: 14px 16px; }
  .tt-is-head { font-size: 17px; }
  .tt-inshort li {
    font-size: 14.5px;
    padding-left: 18px;
    line-height: 1.5;
  }
  .tt-inshort li::before { left: 0; }
}

/* ============================================
   32. MOBILE MENU — card style
   ============================================ */
@media (max-width: 768px) {
  /* desktop wala flex mobile pe hatao */
  .main-navigation .main-nav ul {
    display: block;
    padding: 8px;
  }

  .main-navigation .main-nav ul li {
    display: block;
    float: none;
  }

  .main-navigation .main-nav ul li a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--tt-ink);
    padding: 14px 16px;
    margin: 3px 6px;
    border-radius: 10px;
    background: transparent;
  }

  .main-navigation .main-nav ul li a:hover,
  .main-navigation .main-nav ul li a:active {
    background: var(--tt-accent-soft);
    color: var(--tt-accent);
  }

  .main-navigation .main-nav ul li.current-menu-item > a {
    background: var(--tt-accent-soft);
    color: var(--tt-accent);
  }

  /* khula hua menu panel — card jaisa */
  .main-navigation.toggled .main-nav {
    background: var(--tt-card);
    border-top: 1px solid var(--tt-line);
    box-shadow: 0 16px 32px rgba(16, 20, 24, .12);
    border-radius: 0 0 16px 16px;
  }

  /* hamburger button */
  .menu-toggle {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--tt-ink);
    background: transparent;
  }

  .menu-toggle:hover,
  .main-navigation.toggled .menu-toggle {
    background: var(--tt-accent-soft);
    color: var(--tt-accent);
  }

  /* mobile pe search item bhi row jaisa */
  .main-navigation .main-nav ul li.search-item a {
    text-align: left;
  }
}

/* ============================================
   33. NEW CODE BADGE — 7 din auto
   ============================================ */
.tt-new {
  display: inline-block;
  font-family: var(--tt-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  background: #FAEEDA;
  color: #854F0B;
  padding: 3px 8px;
  border-radius: 5px;
  vertical-align: 2px;
  animation: tt-pulse 1.6s infinite;
}

/* ============================================
   35. FOOTER SOCIAL ICONS
   ============================================ */
.tt-soc-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-soc {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #2A3138;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AEB6BE;
  transition: .18s;
}

.tt-soc svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tt-soc:hover {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: #fff;
}

.tt-f-note {
  font-size: 12.5px;
  color: #8B949D;
  margin: 14px 0 0 !important;
  max-width: 220px;
  line-height: 1.6;
}

/* ============================================
   36. 404 PAGE — expired code theme
   ============================================ */
.tt-404 {
  width: 100%;
  padding: 64px 0 80px;
  text-align: center;
}

.tt-404-badge {
  display: inline-block;
  font-family: var(--tt-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--tt-red-soft);
  border: 1px solid #F7C1C1;
  color: var(--tt-red-text);
  padding: 8px 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.tt-404-code {
  font-family: var(--tt-mono);
  font-size: 88px;
  font-weight: 700;
  color: var(--tt-ink);
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: var(--tt-red);
  text-decoration-thickness: 6px;
}

.tt-404-title {
  font-family: var(--tt-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 8px;
}

.tt-404-sub {
  font-size: 15.5px;
  color: var(--tt-muted);
  margin: 0 0 24px;
}

.tt-404-search {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 18px;
}

.tt-404-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  border-radius: 10px;
  padding: 11px 16px;
  font-family: var(--tt-font);
  font-size: 14.5px;
  color: var(--tt-ink);
}

.tt-404-search input[type="search"]:focus {
  border-color: var(--tt-accent);
  outline: none;
}

.tt-404-search button {
  background: var(--tt-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}

.tt-404-search button:hover { background: #0847B8; }

.tt-404-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tt-404-btn {
  display: inline-block;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  color: var(--tt-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: .15s;
}

.tt-404-btn:hover { border-color: var(--tt-accent); color: var(--tt-accent); }

.tt-404-btn-main {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: #fff;
}

.tt-404-btn-main:hover { background: #0847B8; color: #fff; }

.tt-404-label {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--tt-muted);
  margin-bottom: 14px;
}

.tt-404-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   37. STATIC PAGES — About, Contact, Privacy...
   ============================================ */
.tt-page { width: 100%; padding: 44px 0 72px; }

.tt-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.tt-page-kicker {
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--tt-muted);
  margin-bottom: 8px;
}

.tt-page-head h1 {
  font-family: var(--tt-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.tt-page-line {
  width: 44px;
  height: 4px;
  background: var(--tt-accent);
  border-radius: 2px;
  margin-bottom: 26px;
}

.tt-page .entry-content { font-size: 16.5px; line-height: 1.75; }

.tt-page .entry-content h2 { font-size: 24px; margin: 34px 0 12px; }
.tt-page .entry-content h3 { font-size: 19px; margin: 24px 0 10px; }

/* contact form / generic form styling */
.tt-page .entry-content input[type="text"],
.tt-page .entry-content input[type="email"],
.tt-page .entry-content input[type="url"],
.tt-page .entry-content textarea {
  width: 100%;
  border: 1px solid var(--tt-line);
  background: var(--tt-card);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--tt-font);
  font-size: 15px;
}

.tt-page .entry-content input:focus,
.tt-page .entry-content textarea:focus {
  border-color: var(--tt-accent);
  outline: none;
}

@media (max-width: 600px) {
  .tt-404-code { font-size: 64px; }
  .tt-404-title { font-size: 22px; }
  .tt-page-head h1 { font-size: 28px; }
}

/* ============================================
   38. MOBILE OVERFLOW GUARD
   ============================================ */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

.entry-content iframe {
  max-width: 100%;
}

/* ============================================
   40. MOBILE TOC — collapsible (tap to open)
   ============================================ */
details.tt-toc-inline {
  padding: 0 !important;
  margin: 6px 0 26px;
}

details.tt-toc-inline summary.tt-toc-title {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  margin: 0 !important;
}

details.tt-toc-inline summary.tt-toc-title::-webkit-details-marker {
  display: none;
}

details.tt-toc-inline summary.tt-toc-title::after {
  content: '+';
  font-family: var(--tt-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--tt-accent);
  line-height: 1;
}

details.tt-toc-inline[open] summary.tt-toc-title::after {
  content: '\2013';
}

details.tt-toc-inline ul {
  padding: 0 20px 16px !important;
}

/* ============================================
   42. COMMENT FORM — compact (Beebom style)
   ============================================ */
.tt-single .comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px 16px;
  align-items: end;
}

.tt-single .comment-form .comment-form-comment,
.tt-single .comment-form .logged-in-as,
.tt-single .comment-form .comment-notes {
  grid-column: 1 / -1;
  margin: 0;
}

.tt-single .comment-form-author,
.tt-single .comment-form-email,
.tt-single .comment-form .form-submit {
  margin: 0;
}

.tt-single .comment-form label {
  display: block;
  font-family: var(--tt-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--tt-ink);
  margin-bottom: 6px;
}

.tt-single .comment-form textarea {
  min-height: 54px;
  width: 100%;
  resize: vertical;
}

.tt-single .comment-form input[type="text"],
.tt-single .comment-form input[type="email"] {
  width: 100%;
}

.tt-single .comment-form #submit {
  border-radius: 10px;
  padding: 11px 26px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .tt-single .comment-form { grid-template-columns: 1fr; }
  .tt-single .comment-form #submit { width: 100%; }
}

/* search results — full-width grid (koi sidebar nahi) */
.tt-search .tt-search-grid { grid-template-columns: repeat(3, 1fr); }

.tt-search-none { padding-top: 20px; }

@media (max-width: 900px) {
  .tt-search .tt-search-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tt-search .tt-search-grid { grid-template-columns: 1fr; }
}
