/* ====== Tokens & base ====== */
.tg-wrap{
  --gap:18px; --line:#e5e7eb; --muted:#6b7280; --ink:#0f172a; --accent:#ff4500;
  margin:24px auto; max-width:1100px; padding:0 16px;
}
body.single-technical_guides,
body.tax-technical_guides_cat,
body.post-type-archive-technical_guides{ background:#fff; color:#111 }

/* ====== Breadcrumb / header ====== */
.tg-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:#334155;margin-bottom:6px}
.tg-breadcrumb a{text-decoration:none;color:#64748b}
.tg-breadcrumb a:hover{text-decoration:underline}
.tg-title{font-size:clamp(26px,3.6vw,44px);line-height:1.2;margin:8px 0 10px;font-weight:800;color:var(--ink)}
.tg-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:#475569;font-size:14px;margin-bottom:14px}
.tg-meta .dot{width:4px;height:4px;background:#cbd5e1;border-radius:50%;display:inline-block}

/* ====== Featured ====== */
.tg-featured{margin:14px 0;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#fafafa}
.tg-featured img{width:100%;height:auto;display:block}

/* ====== Content ====== */
.tg-content{font-size:16px;line-height:1.75;color:#111}
.tg-content p{margin:0 0 1.2em}
.tg-content h2{font-size:clamp(20px,2.4vw,28px);margin:1.2em 0 .4em;color:#0f172a;font-weight:800}
.tg-content h3{font-size:clamp(18px,2.1vw,22px);margin:1em 0 .4em;color:#0f172a;font-weight:700}
.tg-content ul,.tg-content ol{padding-left:1.3em;margin:0 0 1.2em}
.tg-content blockquote{border-left:3px solid var(--accent);padding:.6em 1em;margin:1.2em 0;background:#f8fafc;color:#0f172a}
.tg-content pre, .tg-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.tg-content pre{background:#0b1220;color:#e5e7eb;border-radius:8px;padding:14px;overflow:auto}
.tg-content figure{margin:1.2em 0}
.tg-content figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}

/* ====== Post footer ====== */
.tg-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tg-tag{display:inline-block;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#111;text-decoration:none;font-size:13px}
.tg-share{display:flex;gap:10px;margin-top:10px}
.tg-share a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:#fff;text-decoration:none}

/* ====== Prev/Next ====== */
.tg-nav{display:flex;justify-content:space-between;gap:12px;margin:26px 0}
.tg-nav a{flex:1;display:block;border:1px solid var(--line);border-radius:10px;padding:12px;text-decoration:none;color:#0f172a;background:#fff}
.tg-nav a span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.tg-nav a h4{margin:0;font-weight:700;line-height:1.3}

/* ====== Archive grid ====== */
.tg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:900px){.tg-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.tg-grid{grid-template-columns:1fr}}
.tg-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s}
.tg-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.07)}
.tg-card .thumb{aspect-ratio:16/9;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.tg-card .thumb img{width:100%;height:100%;object-fit:cover}
.tg-card .body{padding:12px}
.tg-card .title{font-weight:800;line-height:1.25;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tg-card .excerpt{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ====== Pills & Pagination ====== */
.tg-pills{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}
.tg-pill{display:inline-block;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#111;text-decoration:none;font-size:13px}
.tg-pill.is-active{background:var(--accent);color:#fff;border-color:var(--accent)}
.tg-pagi{display:flex;justify-content:center;gap:8px;margin:22px 0}
.tg-pagi a,.tg-pagi span{display:inline-block;padding:6px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;color:#111;background:#fff}
.tg-pagi .current{background:var(--accent);color:#fff;border-color:var(--accent)}
