/* ═══════════════════════════════════════════════════
   GUIDE POST STYLES — TechStackToday
   Clean editorial layout, sticky service sidebar,
   mobile-friendly expandable service strip.
═══════════════════════════════════════════════════ */

/* ── Guide Hero ── */
.tst-guide-hero {
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 52px 0 44px; width: 100%; overflow-x: hidden;
}
.tst-guide-hero-inner { max-width: 780px; }
.tst-guide-category {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
    color: var(--sky-mid); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
    text-decoration: none; transition: background 0.2s;
}
.tst-guide-category:hover { background: rgba(255,255,255,0.18); color: var(--sky-mid); }
.tst-guide-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; color: white;
    line-height: 1.2; margin-bottom: 14px;
}
.tst-guide-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 0;
}

/* ── Guide Layout ── */
.tst-guide-wrap { padding: 40px 0 64px; }
.tst-guide-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 959px) {
    .tst-guide-layout { grid-template-columns: 1fr; }
    .tst-guide-sidebar { display: none; }
}

/* ── Article Body ── */
.tst-guide-body { min-width: 0; }
.tst-guide-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    max-width: 100%;
}
/* WordPress block editor content styles */
.tst-guide-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 36px 0 14px; }
.tst-guide-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.tst-guide-content h4 { font-size: 1rem;   font-weight: 700; color: var(--navy); margin: 22px 0 8px; }
.tst-guide-content p  { margin-bottom: 18px; }
.tst-guide-content ul, .tst-guide-content ol { margin: 0 0 18px 24px; }
.tst-guide-content li { margin-bottom: 6px; }
.tst-guide-content a  { color: var(--blue); text-decoration: underline; }
.tst-guide-content a:hover { color: var(--navy); }
.tst-guide-content blockquote {
    border-left: 3px solid var(--blue); margin: 24px 0;
    padding: 14px 20px; background: var(--blue-pale); border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--navy);
}
.tst-guide-content img { border-radius: 8px; margin: 20px 0; max-width: 100%; }
.tst-guide-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.tst-guide-content th { background: var(--navy); color: white; padding: 10px 12px; text-align: left; font-size: .8rem; }
.tst-guide-content td { padding: 9px 12px; border-bottom: 1px solid var(--gray-200); }
.tst-guide-content tr:nth-child(even) td { background: var(--gray-50); }

/* ── Desktop Sidebar — identical to comparison page sidebar ── */
.tst-guide-sidebar { position: sticky; top: 88px; }
.tst-guide-side-card {
    background: #fff; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
}
.tst-gsc-head {
    background: var(--navy); color: white;
    padding: 11px 14px; font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: space-between;
}
.tst-gsc-head a {
    color: var(--cyan); font-size: .7rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.tst-gsc-head a:hover { text-decoration: underline; }
/* Use exact same .tst-side-svc classes from comparison.css — no duplication */
/* These are already defined globally in comparison.css when loaded */
/* For guide pages, we define them here so guide.css is self-contained */
.tst-guide-sidebar .tst-side-svc {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-bottom: 1px solid var(--gray-100);
}
.tst-guide-sidebar .tst-side-svc:last-of-type { border-bottom: none; }
.tst-guide-sidebar .tst-side-svc-rank {
    min-width: 20px; height: 20px; border-radius: 50%;
    background: var(--gray-100); color: var(--navy);
    font-weight: 800; font-size: .65rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tst-guide-sidebar .tst-side-svc-info { flex: 1; min-width: 0; overflow: hidden; }
.tst-guide-sidebar .tst-side-svc-name {
    font-weight: 700; font-size: .78rem; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tst-guide-sidebar .tst-side-svc-score { font-size: .68rem; color: var(--gray-400); margin-top: 1px; }
.tst-guide-sidebar .tst-side-svc-btn {
    background: var(--accent); color: #fff !important;
    padding: 5px 10px; border-radius: 6px;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .68rem;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background 0.2s; display: inline-block;
}
.tst-guide-sidebar .tst-side-svc-btn:hover { background: var(--accent-dark); color: #fff !important; }
.tst-gsc-full-link {
    display: block; text-align: center;
    padding: 10px; background: var(--blue-pale);
    color: var(--blue); font-weight: 700; font-size: .78rem;
    text-decoration: none; transition: background 0.2s;
    border-top: 1px solid var(--sky-mid);
}
.tst-gsc-full-link:hover { background: var(--sky-mid); }

/* ── Inline Top Picks Block ── */
.tst-inline-picks {
    margin: 32px 0;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden; background: #fff;
}
.tst-inline-picks-toggle {
    width: 100%; padding: 14px 18px;
    background: var(--blue-pale); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .92rem; color: var(--navy);
    transition: background 0.2s;
}
.tst-inline-picks-toggle:hover { background: var(--sky-mid); }
.tst-ipt-arrow { transition: transform 0.28s; color: var(--blue); font-size: 0.7rem; }
.tst-inline-picks-toggle.open .tst-ipt-arrow { transform: rotate(180deg); }
.tst-inline-picks-body { display: none; padding: 6px 12px 4px; }
.tst-inline-picks-body.open { display: block; }
.tst-inline-pick-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.tst-inline-pick-row:last-child { border-bottom: none; padding-bottom: 4px; }
.tst-ipr-rank {
    min-width: 22px; height: 22px; border-radius: 50%;
    background: var(--navy); color: white;
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: .7rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tst-ipr-info { flex: 1; min-width: 0; }
.tst-ipr-name  { font-weight: 700; font-size: .85rem; color: var(--navy); }
.tst-ipr-score { font-size: .72rem; color: var(--gray-500); margin-top: 1px; }
/* CTA button: green background, white text, compact */
.tst-ipr-btn {
    background: var(--accent) !important; color: #fff !important;
    padding: 7px 14px; border-radius: 7px;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .75rem;
    white-space: nowrap; flex-shrink: 0;
    text-decoration: none !important; display: inline-block;
    transition: background 0.18s;
    min-width: 72px; text-align: center;
}
.tst-ipr-btn:hover { background: var(--accent-dark) !important; color: #fff !important; }
.tst-inline-picks-footer {
    padding: 11px 12px; background: var(--gray-50);
    border-top: 1px solid var(--gray-100); text-align: center;
}
.tst-inline-picks-footer a {
    font-size: .8rem; font-weight: 700; color: var(--blue); text-decoration: none;
}
.tst-inline-picks-footer a:hover { text-decoration: underline; }

/* ── Mobile expandable services strip ── */
.tst-mob-services {
    display: none;
    margin: 0 0 28px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}
@media (max-width: 959px) { .tst-mob-services { display: block; } }
.tst-mob-svc-toggle {
    width: 100%; padding: 14px 16px;
    background: var(--navy); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .88rem; color: white;
}
.tst-mob-svc-toggle .tst-mst-arrow { transition: transform 0.28s; }
.tst-mob-svc-toggle.open .tst-mst-arrow { transform: rotate(180deg); }
.tst-mob-svc-body { display: none; }
.tst-mob-svc-body.open { display: block; }
.tst-mob-svc-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--gray-100);
}
.tst-mob-svc-item:last-child { border-bottom: none; }
.tst-mob-full-link {
    display: block; text-align: center; padding: 11px;
    background: var(--blue-pale); color: var(--blue);
    font-weight: 700; font-size: .82rem; text-decoration: none;
    border-top: 1px solid var(--gray-100); transition: background 0.2s;
}
.tst-mob-full-link:hover { background: var(--sky-mid); }

/* ── Mobile sticky bar ── */
.tst-guide-mob-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 200; background: #fff;
    border-top: 1.5px solid var(--gray-200);
    padding: 10px 14px; gap: 9px;
    box-shadow: 0 -3px 16px rgba(11,29,58,.1);
}
@media (max-width: 959px) { .tst-guide-mob-bar { display: flex; } }
.tst-guide-mob-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: .88rem; padding: 12px 8px;
    color: #fff; text-align: center; text-decoration: none;
}
body.single { padding-bottom: 68px; }
@media (min-width: 960px) { body.single { padding-bottom: 0; } }
