﻿/* =========================================================
   TheSaversHub — site.css (cleaned + fixed @media)
   - Removed duplicate :root vars (radius/shadow)
   - Fixed missing class selector: playbook-calculator-section
   - Merged duplicate .playbook-scroll blocks
   - Removed conflicting mobile rules on .playbook-card
   - Consolidated repeated @media (max-width: 800px) blocks
   ========================================================= */

/* =========================
   Theme Tokens
   ========================= */
:root {
    --tsh-bg: #0b1220;
    --tsh-card: rgba(255,255,255,.06);
    --tsh-border: rgba(255,255,255,.10);
    --tsh-text: rgba(255,255,255,.92);
    --tsh-muted: rgba(255,255,255,.70);
    --tsh-muted2: rgba(255,255,255,.55);
    --tsh-accent: #6ee7ff;
    --tsh-accent2: #a78bfa;
    --tsh-shadow: 0 12px 40px rgba(0,0,0,.35);
    --bg: #ffffff;
    --surface: #fafafa;
    --text: #141414;
    --muted: #5a5a5a;
    --border: #e6e6e6;
    --link: #1a66ff;
    --link-hover: #0f4fd6;
    /* Keep one radius/shadow (deduped) */
    --radius: 12px;
    --shadow: 0 2px 10px rgba(0,0,0,.06);
    --maxw: 65rem;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --nav-bg: #ffffff;
    --nav-text: #111827;
    --nav-muted: #6b7280;
    --nav-border: #e5e7eb;
    --nav-hover: #2563eb;
    --nav-soft: #f3f4f6;
    --container: 1280px;
    --nav-h: 64px;
    --font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

/* =========================
   Playbook Page
   ========================= */
.playbook-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.playbook-header {
    text-align: center;
    margin-bottom: 48px;
}

    .playbook-header h1 {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .playbook-header p {
        color: #555;
        font-size: 1.1rem;
    }

.playbook-section {
    display: grid;
    gap: 16px;
}

    .playbook-section h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

/* FIX: was missing '.' so it targeted an element, not your class */
.playbook-calculator-section {
    display: grid;
    padding: 32px 0;
}

/* =========================
   Horizontal scroll grids
   ========================= */
.playbook-grid {
    display: grid;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

    .playbook-grid::-webkit-scrollbar {
        display: none; /* WebKit */
    }

.playbook-calculator-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
}

.playbook-scroll {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

    .playbook-scroll::-webkit-scrollbar {
        display: none; /* WebKit */
    }

/* =========================
   Cards
   ========================= */
.playbook-card {
    flex: 0 0 280px; /* card width */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    scroll-snap-align: start;
}

    .playbook-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        transition: all 0.2s ease;
    }

    .playbook-card h3 {
        display: inline;
        margin-bottom: 4px;
        font-size: 1rem;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word; /* legacy */
    }

    .playbook-card p {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 12px;
    }

    .playbook-card a {
        font-weight: 600;
        text-decoration: none;
        color: #0066cc;
    }

/* =========================
   Playbook Images
   ========================= */
.playbook-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #f4f4f4;
}

    .playbook-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

.spacer {
    margin-bottom: 5px;
    margin-top: 24px;
}

/* =========================
   Footer
   ========================= */
.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 64px;
    background: #fafafa;
    font-size: 0.85rem;
    color: #666;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

    .footer-container a {
        color: #666;
        text-decoration: none;
        font-weight: 500;
    }

        .footer-container a:hover {
            text-decoration: underline;
        }

/* =========================
   Blog Styles
   ========================= */
.blog-page {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.65;
}

.blog-container {
    max-width: var(--maxw);
    margin-left: 1rem;
    padding: 1rem;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 22px;
}

.blog-header {
    margin-bottom: 18px;
}

.blog-title {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

    .blog-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.blog-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0 6px;
}

.blog-indent {
    margin-left: 2.5rem;
}

.blog-content {
    font-size: 1rem;
}

    .blog-content p {
        margin: 12px 0;
        color: var(--text);
    }

    .blog-content a {
        color: var(--link);
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px;
    }

        .blog-content a:hover {
            color: var(--link-hover);
        }

    .blog-content h2,
    .blog-content h3,
    .blog-content h4 {
        margin: 26px 0 10px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .blog-content h2 {
        font-size: 24px;
    }

    .blog-content h3 {
        font-size: 1.25rem;
    }

    .blog-content h4 {
        font-size: 1rem;
        color: #222;
    }

    .blog-content ul,
    .blog-content ol {
        margin: 1rem 0 1rem 1.25rem;
    }

    .blog-content li {
        margin: 0.375rem 0;
    }

    .blog-content hr {
        border: 0;
        border-top: 1px solid var(--border);
        margin: 20px 0;
    }

    .blog-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        border: 1px solid var(--border);
        margin: 14px 0;
    }

.blog-figure {
    margin: 14px 0;
}

    .blog-figure figcaption {
        margin-top: 8px;
        font-size: 13px;
        color: var(--muted);
    }

.blog-content blockquote {
    margin: 16px 0;
    padding: 12px 14px;
    background: var(--surface);
    border-left: 4px solid var(--border);
    border-radius: 10px;
    color: #2a2a2a;
}

    .blog-content blockquote p {
        margin: 0;
    }

.blog-content code {
    font-family: var(--font-mono);
    font-size: 0.95em;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 2px 6px;
    border-radius: 8px;
}

.blog-content pre {
    margin: 14px 0;
    padding: 14px;
    overflow: auto;
    background: #0b1220;
    border: 1px solid #111827;
    border-radius: 14px;
}

    .blog-content pre code {
        background: transparent;
        border: 0;
        padding: 0;
        color: #e5e7eb;
        font-size: 13.5px;
        line-height: 1.6;
    }

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.blog-content th,
.blog-content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.blog-content th {
    background: var(--surface);
    font-weight: 600;
}

.blog-content tr:last-child td {
    border-bottom: 0;
}

.blog-callout {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
}

    .blog-callout strong {
        display: inline-block;
        margin-bottom: 6px;
    }

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.blog-tag {
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

    .blog-tag:hover {
        border-color: #cfcfcf;
        transform: translateY(-1px);
    }

.blog-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

    .blog-nav a {
        flex: 1;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        text-decoration: none;
        color: var(--text);
    }

        .blog-nav a:hover {
            border-color: #cfcfcf;
        }

/* =========================
   Logo
   ========================= */
.tsh-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .tsh-logo img {
        height: 40px; /* desktop */
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

/* =========================
   Top Navigation
   ========================= */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    font-family: var(--font);
}

    .top-nav.is-scrolled {
        box-shadow: var(--shadow);
    }

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 700;
    letter-spacing: -0.2px;
    font-size: 18px;
    white-space: nowrap;
}

    .logo:hover {
        color: var(--nav-hover);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 8px;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

    .nav-item:hover {
        background: var(--nav-soft);
        color: var(--nav-hover);
    }

    .nav-item:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

    .nav-item.is-active {
        color: var(--nav-hover);
        background: rgba(37,99,235,.08);
    }

.nav-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.search-btn {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 1px solid var(--nav-border);
    background: var(--nav-bg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    font-size: 16px;
}

    .search-btn:hover {
        border-color: rgba(37,99,235,.35);
        color: var(--nav-hover);
    }

    .search-btn:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

.signin-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--nav-border);
    background: var(--nav-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 700;
    font-size: 14px;
}

    .signin-btn:hover {
        border-color: rgba(37,99,235,.35);
        color: var(--nav-hover);
    }

    .signin-btn:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

.dropdown::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
    color: var(--nav-muted);
    transform: translateY(-1px);
}

.dropdown:hover::after {
    color: var(--nav-hover);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 12px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.dropdown-col {
    display: grid;
    gap: 6px;
    align-content: start;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 600;
}

    .dropdown-link:hover {
        background: var(--nav-soft);
        color: var(--nav-hover);
    }

    .dropdown-link:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

    .dropdown-link small {
        display: block;
        color: var(--nav-muted);
        font-weight: 500;
        font-size: 12px;
    }

.dropdown-divider {
    height: 1px;
    background: var(--nav-border);
    margin: 8px 0;
}

.dropdown-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nav-muted);
    padding: 6px 10px 10px;
}

.nav-toggle {
    display: none;
    height: 40px;
    width: 44px;
    border-radius: 10px;
    border: 1px solid var(--nav-border);
    background: var(--nav-bg);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--nav-text);
}

    .nav-toggle:hover {
        border-color: rgba(37,99,235,.35);
        color: var(--nav-hover);
    }

    .nav-toggle:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

.mobile-panel {
    display: none;
    border-bottom: 1px solid var(--nav-border);
    background: var(--nav-bg);
}

    .mobile-panel.is-open {
        display: block;
    }

.mobile-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 16px 16px;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 700;
    font-size: 15px;
}

    .mobile-link:hover {
        background: var(--nav-soft);
        color: var(--nav-hover);
    }

.mobile-accordion {
    display: grid;
    gap: 6px;
}

.mobile-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    color: var(--nav-text);
    font-weight: 800;
    font-size: 15px;
    text-align: left;
}

    .mobile-acc-btn:hover {
        background: var(--nav-soft);
        color: var(--nav-hover);
    }

    .mobile-acc-btn:focus-visible {
        outline: 2px solid rgba(37,99,235,.45);
        outline-offset: 2px;
    }

    .mobile-acc-btn .chev {
        color: var(--nav-muted);
        font-weight: 900;
    }

    .mobile-acc-btn[aria-expanded="true"] .chev {
        color: var(--nav-hover);
        transform: rotate(180deg);
    }

.mobile-acc-panel {
    display: none;
    padding: 6px 6px 10px 6px;
}

    .mobile-acc-panel.is-open {
        display: grid;
        gap: 6px;
    }

.mobile-sublink {
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 14px;
}

    .mobile-sublink:hover {
        background: var(--nav-soft);
        color: var(--nav-hover);
    }

.dropdown-right .dropdown-menu {
    left: auto;
    right: 0;
}

/* =========================
   Legal Page
   ========================= */
.legal-page {
    max-width: 820px;
    margin: 3rem auto;
    padding: 0 1rem;
    line-height: 1.65;
}

    .legal-page h1 {
        margin-bottom: 1rem;
    }

    .legal-page h2 {
        margin-top: 2rem;
        font-size: 1.2rem;
    }

/* =========================
   Responsive (CONSOLIDATED @media)
   ========================= */

/* Footer stack on small screens */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Primary mobile breakpoint */
@media (max-width: 800px) {
    /* blog */
    .blog-card {
        padding: 18px 16px;
    }

    .blog-container {
        padding: 15px 1px 25px;
        width: 100%;
        max-width: 100%;
        margin-left: 1px;
    }

    .blog-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1px;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }


    /* playbooks: enable horizontal scroll on the scroll containers */
    .playbook-grid,
    .playbook-scroll,
    .playbook-section {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        grid-auto-columns: 85%; /* each item takes most of the screen */
    }
}
/*Scroll hint*/
@media (max-width: 800px) {
    .playbook-scroll {
        animation: swipeHint 1.2s ease-out 1;
    }

    @keyframes swipeHint {
        0% {
            transform: translateX(0);
        }

        30% {
            transform: translateX(-16px);
        }

        60% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 800px) {
    .playbook-calculator-section {
        grid-auto-flow: column;
        grid-auto-columns: 85%; /* each item takes most of the screen */
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        align-items: stretch;
    }
}

.playbook-calculator-section > * {
    flex-shrink: 0;
}
/* Mobile: horizontal scroll with wide columns */
@media (max-width: 800px) {
    .playbook-calculator-grid {
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        gap: 1rem;
    }

        .playbook-calculator-grid::-webkit-scrollbar {
            display: none;
        }
}



/* Nav links swipe row on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 8px 0;
        width: 100%;
    }

        .nav-links::-webkit-scrollbar {
            height: 0; /* hides scrollbar (optional) */
        }

        .nav-links .nav-item {
            white-space: nowrap;
            flex: 0 0 auto;
            padding: 10px 12px;
        }
}

@media (max-width: 800px) {
    .tsh-logo img {
        height: 32px;
    }
}

/* Tighten spacing on small phones */
@media (max-width: 420px) {
    .nav-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 16px;
    }

    .signin-btn {
        padding: 0 12px;
    }
}

@media (max-width: 800px) {
    /* Expand image to the edges of the playbook section */
    .playbook-scroll .playbook-image {
        width: calc(100% + 32px); /* 16px left + 16px right padding */
        height: auto;
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0px;
        background: #fff;
        overflow: hidden;
    }

        .playbook-scroll .playbook-image img {
            width: 100%;
            height: 240px;
            object-fit: contain;
            display: block;
        }
}


/* Extra-small phones: a bit taller */
@media (max-width: 420px) {
    .playbook-image img {
        height: 260px;
    }
}

/* Print friendly */
@media print {
    .blog-card {
        box-shadow: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    pre {
        page-break-inside: avoid;
    }
}
/* ===== Featured Playbooks (desktop + mobile) ===== */

/* =========================================================
   TheSaversHub Playbooks Landing (desktop + mobile)
   Drop this into your site CSS (or page stylesheet)
   ========================================================= */

/* ---------- Base ---------- */
.tsh-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 18px 56px;
    color: #111;
}

.tsh-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 10px;
}

.tsh-h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.15;
}

.tsh-muted {
    opacity: .75;
}

/* ---------- Hero ---------- */
.tsh-hero {
    padding: 28px 22px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

    .tsh-hero h1 {
        margin: 8px 0 10px;
        font-size: 40px;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .tsh-hero p {
        margin: 0;
        max-width: 72ch;
        font-size: 16px;
        line-height: 1.55;
        opacity: .82;
    }

/* Actions (buttons) */
.tsh-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.tsh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .tsh-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(0,0,0,.08);
        border-color: rgba(0,0,0,.18);
    }

    .tsh-btn:focus-visible {
        outline: 3px solid rgba(0,0,0,.25);
        outline-offset: 3px;
    }

.tsh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Badges */
.tsh-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tsh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    font-size: 13px;
    opacity: .9;
}

/* ---------- Sections ---------- */
.tsh-section {
    margin-top: 28px;
    padding-top: 6px;
}

    .tsh-section .tsh-kicker {
        margin-bottom: 8px;
    }

/* ---------- Grid + Cards ---------- */
.tsh-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

/* Default: 3-up cards */
.tsh-card {
    grid-column: span 4;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .tsh-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,.08);
        border-color: rgba(0,0,0,.14);
    }

    .tsh-card h3 {
        margin: 0 0 10px;
        font-size: 18px;
        line-height: 1.25;
    }

    .tsh-card p {
        margin: 0 0 10px;
        line-height: 1.5;
        opacity: .82;
    }

    /* Links in cards */
    .tsh-card a {
        color: inherit;
        text-decoration: none;
    }

        .tsh-card a:hover {
            text-decoration: underline;
        }

    /* Make your inline MetaDescription div look consistent */
    .tsh-card > a {
        display: block;
        text-decoration: none;
    }

        .tsh-card > a > div {
            line-height: 1.5;
            color: rgba(17,17,17,.78) !important;
            opacity: 1 !important;
        }

/* Subtle “link” style for category cards */
.tsh-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    text-decoration: none;
}

    .tsh-link:hover {
        text-decoration: underline;
    }

/* ---------- Variants per section ---------- */
/* Steps: keep 3 across on desktop (same as default) */
.tsh-steps .tsh-card {
    grid-column: span 4;
}

/* FAQ: 2 across on desktop */
.tsh-faq .tsh-card {
    grid-column: span 6;
}

/* "pillgrid" (Categories) can stay 3 across, but feel a bit tighter */
.tsh-pillgrid .tsh-card {
    grid-column: span 4;
    padding: 18px 18px 16px;
}

/* ---------- CTA section ---------- */
/* Your inline styles include grid-column: span 12; keep it clean */
.tsh-section:last-of-type .tsh-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.tsh-comments {
    margin-top: 32px;
}

.tsh-comment-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
 
}

.tsh-comment {
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-top: 12px;
    background: #fff;
}

.tsh-comment-meta {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 6px;
}

.tsh-muted {
    opacity: 0.75;
}


/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .tsh-container {
        padding: 22px 16px 48px;
    }

    .tsh-hero h1 {
        font-size: 34px;
        line-height: 1.07;
    }

    /* 2-up layout */
    .tsh-card {
        grid-column: span 6;
    }

    .tsh-faq .tsh-card {
        grid-column: span 6;
    }

    .tsh-steps .tsh-card {
        grid-column: span 6;
    }

    .tsh-pillgrid .tsh-card {
        grid-column: span 6;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .tsh-container {
        padding: 18px 14px 44px;
    }

    .tsh-hero {
        padding: 18px 16px;
        border-radius: 18px;
    }

        .tsh-hero h1 {
            font-size: 28px;
            line-height: 1.10;
        }

    .tsh-h2 {
        font-size: 24px;
    }

    .tsh-actions {
        gap: 10px;
    }

    .tsh-btn {
        width: 100%;
        padding: 12px 14px;
    }

    /* 1-up */
    .tsh-grid {
        gap: 14px;
    }

    .tsh-card {
        grid-column: span 12;
        padding: 16px;
        border-radius: 14px;
    }

    .tsh-badges {
        gap: 8px;
    }

    .tsh-badge {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tsh-card, .tsh-btn {
        transition: none;
    }

        .tsh-card:hover, .tsh-btn:hover {
            transform: none;
        }
}
.tsh-disclaimer {
    margin-top: 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .tsh-disclaimer {
        font-size: 0.85rem;
    }
}