/*
Theme Name: Toolsque
Theme URI: https://toolsque.com
Author: Toolsque
Author URI: https://toolsque.com
Description: Tools and workflow systems for small business operators. Custom theme with calculator-site density and Linear-style polish.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: toolsque
*/

:root {
    --bg: #ffffff;
    --bg-subtle: #fafbfc;
    --bg-tint: #f5f7fb;
    --bg-muted: #f1f3f8;
    --border: #e8eaef;
    --border-strong: #d4d7df;
    --border-focus: #1e40af;
    --text-primary: #0a0e1a;
    --text-secondary: #3d4554;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-bg: #eff3fb;
    --primary-border: #c7d2fe;
    --indigo: #4f46e5;
    --indigo-bg: #eef2ff;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --shadow-sm: 0 1px 2px rgba(30, 64, 175, 0.04);
    --shadow-md: 0 2px 6px rgba(30, 64, 175, 0.06), 0 1px 2px rgba(30, 64, 175, 0.04);
    --shadow-lg: 0 8px 20px rgba(30, 64, 175, 0.08), 0 2px 6px rgba(30, 64, 175, 0.06);
    --shadow-card: 0 1px 3px rgba(30, 64, 175, 0.05);
    --header-h: 56px;
    --container: 1200px;
    --container-narrow: 720px;
    --space: 20px;
    --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   LAYOUT WRAPPERS — FIXES WIDTH ISSUES
   ============================================ */
.tq-content {
    width: 100%;
    min-height: calc(100vh - var(--header-h) - 280px);
}

.tq-page {
    width: 100%;
    padding: 36px 0 48px;
}

.tq-page__inner {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space);
}

.tq-page__inner--wide {
    max-width: var(--container);
}

.tq-page__header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tq-page__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.tq-page__meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.tq-entry {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    width: 100%;
}

.tq-entry > * { max-width: 100%; }

.tq-entry h1, .tq-entry h2, .tq-entry h3, .tq-entry h4 {
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.tq-entry h2 { font-size: 22px; font-weight: 700; }
.tq-entry h3 { font-size: 18px; font-weight: 600; }
.tq-entry h4 { font-size: 16px; font-weight: 600; }
.tq-entry p { margin-bottom: 16px; }
.tq-entry a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.tq-entry a:hover { color: var(--primary-hover); }
.tq-entry ul, .tq-entry ol { margin: 0 0 16px 24px; }
.tq-entry li { margin-bottom: 6px; }
.tq-entry blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.tq-entry img { border-radius: 8px; margin: 16px 0; }
.tq-entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}
.tq-entry th, .tq-entry td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.tq-entry th { font-weight: 600; background: var(--bg-subtle); color: var(--text-primary); }

/* For tool/calculator pages — wider container */
.tq-tool-page {
    width: 100%;
    padding: 24px 0 48px;
}
.tq-tool-page__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}
.tq-tool-page .entry-content { max-width: 100%; width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.tq-hdr {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 200ms ease;
}
.tq-hdr.is-scrolled { box-shadow: var(--shadow-sm); }

.tq-hdr__row {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tq-hdr__logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.tq-hdr__logo-mark {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #1e293b 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tq-hdr__logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: tq-shimmer 5s ease-in-out infinite;
}

@keyframes tq-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.tq-hdr__search {
    flex: 1;
    max-width: 560px;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.tq-hdr__search-form { width: 100%; display: flex; align-items: center; position: relative; }

.tq-hdr__search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    z-index: 1;
}

.tq-hdr__search-icon svg { width: 16px; height: 16px; }

.tq-hdr__search-input {
    width: 100%;
    height: 36px;
    padding: 0 60px 0 36px;
    background: var(--bg-muted);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 200ms ease;
}

.tq-hdr__search-input::placeholder { color: var(--text-tertiary); }
.tq-hdr__search-input:hover { background: #ebeef4; }
.tq-hdr__search-input:focus {
    outline: none;
    background: var(--bg);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.tq-hdr__search:focus-within .tq-hdr__search-icon { color: var(--primary); }

.tq-hdr__kbd {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 5px;
    font-weight: 600;
}

.tq-hdr__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.tq-hdr__nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.tq-hdr__nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 150ms ease;
    white-space: nowrap;
}

.tq-hdr__nav a:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.tq-hdr__nav .menu-item-has-children > a::after {
    content: '▾';
    font-size: 9px;
    margin-left: 2px;
    transition: transform 200ms ease;
}

.tq-hdr__nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.tq-hdr__nav .menu-item-has-children { position: relative; }

.tq-hdr__nav .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 180ms ease;
    flex-direction: column;
    gap: 0;
}

.tq-hdr__nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tq-hdr__nav .sub-menu li { width: 100%; }

.tq-hdr__nav .sub-menu a {
    display: flex;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tq-hdr__nav .sub-menu a:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.tq-hdr__menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tq-hdr__menu-toggle:hover {
    background: var(--primary-bg);
    border-color: var(--primary-border);
    color: var(--primary);
}

.tq-hdr__menu-toggle svg { width: 16px; height: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.tq-ftr {
    width: 100%;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 36px 0 24px;
    margin-top: 48px;
}

.tq-ftr__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.tq-ftr__cols {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 28px;
}

.tq-ftr__brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tq-ftr__brand-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-decoration: none;
}

.tq-ftr__brand-text {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.55;
    max-width: 280px;
}

.tq-ftr__col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.tq-ftr__col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.tq-ftr__col a {
    font-size: 12.5px;
    color: var(--text-tertiary);
    transition: color 150ms ease;
}

.tq-ftr__col a:hover { color: var(--text-primary); }

.tq-ftr__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.tq-ftr__bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tq-ftr__bottom-links a:hover { color: var(--text-primary); }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 900px) {
    .tq-ftr__cols {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .tq-ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --space: 16px; }
    
    .tq-hdr__row { gap: 12px; }
    .tq-hdr__menu-toggle { display: flex; }
    
    .tq-hdr__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease;
        z-index: 99;
    }
    
    .tq-hdr__nav.is-open {
        max-height: 500px;
        padding: 12px 16px;
    }
    
    .tq-hdr__nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    
    .tq-hdr__nav a {
        height: auto;
        padding: 10px 12px;
        width: 100%;
    }
    
    .tq-hdr__nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        background: transparent;
        min-width: 0;
    }
    
    .tq-hdr__kbd { display: none; }
    .tq-page__title { font-size: 24px; }

    .tq-ftr__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   ============================================
   HOMEPAGE STYLES
   ============================================
   ============================================ */

.tq-section {
    width: 100%;
    padding: 36px 0;
}

.tq-section__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.tq-section--featured {
    width: 100%;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}

.tq-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.tq-section__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tq-section__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--indigo-bg);
    color: var(--indigo);
    border-radius: 7px;
    font-size: 16px;
}

.tq-section__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.tq-section__count {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-muted);
    color: var(--text-tertiary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.tq-section__subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.tq-section__link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap 150ms ease;
    white-space: nowrap;
}

.tq-section__link:hover { gap: 6px; }

/* ============================================
   HERO
   ============================================ */
.tq-hero {
    position: relative;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-tint) 100%);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 28px;
    overflow: hidden;
}

.tq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(30, 64, 175, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
  /*  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 100%);
   -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 100%);  */
    pointer-events: none;
}

.tq-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--indigo) 70%, transparent 100%);
    opacity: 0.4;
}

.tq-hero__inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.tq-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.tq-hero__live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
}

.tq-hero__live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.4;
    animation: tq-pulse 2s ease-out infinite;
}

@keyframes tq-pulse {
    0% { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.tq-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 6px;
    max-width: 720px;
}

.tq-hero__title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tq-hero__subtitle {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 8px;
}

.tq-hero__trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.tq-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tq-hero__trust-item svg {
    width: 12px;
    height: 12px;
    color: var(--green);
}

.tq-hero__trust-divider { color: var(--text-muted); }

.tq-hero__pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tq-hero__pills-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.tq-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 180ms ease;
    box-shadow: var(--shadow-sm);
}

.tq-hero__pill:hover {
    background: var(--primary-bg);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tq-hero__pill-icon {
    font-size: 13px;
    opacity: 0.85;
}

/* ============================================
   RICH CATEGORY CARDS
   ============================================ */
.tq-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.tq-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 200ms ease;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.tq-cat:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08), 0 1px 3px rgba(30, 64, 175, 0.04);
}

.tq-cat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.tq-cat__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 200ms ease;
}

.tq-cat:hover .tq-cat__icon {
    background: var(--primary-bg);
    border-color: var(--primary-border);
    transform: scale(1.05);
}

.tq-cat__title-block {
    flex: 1;
    min-width: 0;
}

.tq-cat__name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tq-cat__desc {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 3px;
    line-height: 1.4;
}

.tq-cat__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.tq-cat__count {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.tq-cat__count--has-system {
    background: var(--indigo-bg);
    border-color: #c7d2fe;
    color: var(--indigo);
}

.tq-cat__tools {
    display: flex;
    flex-direction: column;
    padding: 6px;
}

.tq-cat__tool {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 120ms ease;
}

.tq-cat__tool:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.tq-cat__tool-arrow {
    color: var(--text-muted);
    font-size: 11px;
    margin-right: 4px;
    transition: transform 150ms ease;
}

.tq-cat__tool:hover .tq-cat__tool-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.tq-cat__tool-name {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tq-cat__tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.tq-cat__tool-tag--live {
    background: var(--green-bg);
    color: var(--green);
}

.tq-cat__tool-tag--system {
    background: var(--indigo-bg);
    color: var(--indigo);
}

.tq-cat__tool-tag--soon {
    background: var(--amber-bg);
    color: var(--amber);
}

.tq-cat__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.tq-cat__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--primary);
    font-weight: 600;
    transition: gap 150ms ease;
}

.tq-cat__footer-link:hover { gap: 6px; }

/* ============================================
   WORKFLOW SYSTEMS
   ============================================ */
.tq-systems {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.tq-system {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 200ms ease;
    box-shadow: var(--shadow-card);
}

.tq-system:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08), 0 1px 3px rgba(30, 64, 175, 0.04);
}

.tq-system__preview {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-muted) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.tq-system__preview svg {
    width: 100%;
    height: 100%;
    max-width: 280px;
}

.tq-system__preview-tag {
    position: absolute;
    top: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tq-system__preview-tag svg {
    width: 10px;
    height: 10px;
    color: var(--green);
}

.tq-system__body {
    padding: 16px 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tq-system__category {
    font-size: 10px;
    font-weight: 700;
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.tq-system__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.tq-system__description {
    font-size: 12.5px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.tq-system__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.tq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 200ms ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.tq-btn svg {
    width: 13px;
    height: 13px;
    transition: transform 200ms ease;
}

.tq-btn--primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    flex: 1;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.15);
}

.tq-btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    gap: 9px;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

.tq-btn--ghost {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    flex: 1;
}

.tq-btn--ghost:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--border-strong);
    gap: 9px;
}

/* ============================================
   WHY STRIP
   ============================================ */
.tq-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.tq-why__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg);
    transition: background 150ms ease;
}

.tq-why__item:hover { background: var(--bg-subtle); }

.tq-why__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 7px;
    flex-shrink: 0;
}

.tq-why__icon svg { width: 16px; height: 16px; }

.tq-why__text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2px;
}

.tq-why__text span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ============================================
   GUIDES
   ============================================ */
.tq-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.tq-guide {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--bg);
    transition: background 150ms ease;
}

.tq-guide:hover { background: var(--bg-subtle); }

.tq-guide__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.tq-guide__cat {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}

.tq-guide__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 150ms ease;
}

.tq-guide:hover .tq-guide__title { color: var(--primary); }

.tq-guide__desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.tq-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.tq-reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HOMEPAGE MOBILE
   ============================================ */
@media (max-width: 768px) {
    .tq-hero { padding: 24px 0 22px; }
    .tq-hero__title { font-size: 22px; }
    .tq-hero__subtitle { font-size: 13.5px; }

    .tq-cats { grid-template-columns: 1fr; }
    .tq-systems { grid-template-columns: 1fr; }
    .tq-why { grid-template-columns: 1fr; }
    .tq-guides { grid-template-columns: 1fr; }
}

/* Workflow System Single Page */
.tq-system-page {
    width: 100%;
    padding: 24px 0 48px;
}

.tq-system-page__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.tq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.tq-breadcrumb a {
    color: var(--primary);
    transition: color 150ms ease;
}

.tq-breadcrumb a:hover {
    color: var(--primary-hover);
}

.tq-breadcrumb span {
    color: var(--text-muted);
}

.tq-system-page__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tq-system-page__category {
    font-size: 11px;
    font-weight: 700;
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.tq-system-page__title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.tq-system-page__description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    max-width: 600px;
}

.tq-system-page__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--indigo-bg);
    color: var(--indigo);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tq-system-page__preview {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--bg-subtle);
}

.tq-system-page__preview img {
    width: 100%;
    height: auto;
    display: block;
}

.tq-system-page__content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.tq-system-page__sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.tq-download-card {
    background: linear-gradient(180deg, var(--primary-bg) 0%, white 100%);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.tq-download-card__icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tq-download-card__icon svg {
    width: 22px;
    height: 22px;
}

.tq-download-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tq-download-card__description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tq-download-card__notice {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 12px;
    background: var(--bg-muted);
    border-radius: 6px;
}

.tq-download-form__input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: all 150ms ease;
}

.tq-download-form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.tq-download-form__btn {
    width: 100%;
}

.tq-download-form__note {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .tq-system-page__content-wrap {
        grid-template-columns: 1fr;
    }
    .tq-system-page__sidebar {
        position: static;
    }
    .tq-system-page__title {
        font-size: 24px;
    }
}


.tq-download-form__message {
    margin-top: 12px;
}

.tq-form-success {
    background: var(--green-bg);
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
}

.tq-form-success a {
    color: #166534;
    font-weight: 600;
    text-decoration: underline;
}

.tq-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
}

.tq-download-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ============================================
   SINGLE TOOL PAGE
   ============================================ */
.tq-tool-page {
    width: 100%;
    padding: 20px 0 48px;
}

.tq-tool-page__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

/* Breadcrumb */
.tq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tq-breadcrumb a {
    color: var(--primary);
    transition: color 150ms ease;
}

.tq-breadcrumb a:hover {
    color: var(--primary-hover);
}

.tq-breadcrumb__sep {
    color: var(--text-muted);
}

.tq-breadcrumb__current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero strip */
.tq-tool-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, white 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.tq-tool-hero__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 28px;
    flex-shrink: 0;
}

.tq-tool-hero__body {
    flex: 1;
    min-width: 0;
}

.tq-tool-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tq-tool-hero__category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tq-tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tq-tool-hero__badge--live {
    background: var(--green-bg);
    color: var(--green);
}

.tq-tool-hero__badge--live::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
}

.tq-tool-hero__badge--soon {
    background: var(--amber-bg);
    color: var(--amber);
}

.tq-tool-hero__badge--system {
    background: var(--indigo-bg);
    color: var(--indigo);
}

.tq-tool-hero__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 6px;
}

.tq-tool-hero__description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 3-Column Layout */
.tq-tool-layout {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
}

.tq-tool-sidebar--left,
.tq-tool-sidebar--right {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.tq-tool-main {
    min-width: 0;
}

/* Tool interface container */
.tq-tool-interface {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.tq-tool-interface > * {
    max-width: 100%;
}

/* Left sidebar — guide card */
.tq-sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.tq-sidebar-card__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.tq-sidebar-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.tq-sidebar-card__title a {
    color: var(--text-primary);
}

.tq-sidebar-card__title a:hover {
    color: var(--primary);
}

.tq-sidebar-card__excerpt {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.tq-sidebar-card__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap 150ms ease;
}

.tq-sidebar-card__link:hover {
    gap: 6px;
}

/* Tip box */
.tq-sidebar-tip {
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tq-sidebar-tip__icon {
    font-size: 16px;
    flex-shrink: 0;
}

.tq-sidebar-tip strong {
    display: block;
    font-size: 12.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.tq-sidebar-tip p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Right sidebar — upgrade card */
.tq-upgrade-card {
    background: linear-gradient(180deg, var(--indigo-bg) 0%, white 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 18px;
}

.tq-upgrade-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.tq-upgrade-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.tq-upgrade-card__description {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tq-upgrade-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.tq-upgrade-card__features li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Section below */
.tq-tool-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* Related tools */
.tq-related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.tq-related-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 180ms ease;
}

.tq-related-tool:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.tq-related-tool__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}

.tq-related-tool__body {
    flex: 1;
    min-width: 0;
}

.tq-related-tool__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.tq-related-tool:hover .tq-related-tool__title {
    color: var(--primary);
}

.tq-related-tool__desc {
    font-size: 11.5px;
    color: var(--text-tertiary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tq-related-tool__arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 200ms ease;
}

.tq-related-tool:hover .tq-related-tool__arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Related guides */
.tq-related-guides {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.tq-related-guide {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 180ms ease;
}

.tq-related-guide:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.tq-related-guide__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.tq-related-guide__cat {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}

.tq-related-guide__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 2px;
}

.tq-related-guide:hover .tq-related-guide__title {
    color: var(--primary);
}

.tq-related-guide__excerpt {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* MOBILE */
@media (max-width: 1024px) {
    .tq-tool-layout {
        grid-template-columns: 1fr 280px;
    }
    .tq-tool-sidebar--left {
        display: none;
    }
}

@media (max-width: 768px) {
    .tq-tool-layout {
        grid-template-columns: 1fr;
    }
    .tq-tool-sidebar--left,
    .tq-tool-sidebar--right {
        position: static;
    }
    .tq-tool-hero {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .tq-tool-hero__icon {
        margin: 0 auto;
    }
    .tq-tool-hero__meta {
        justify-content: center;
    }
    .tq-tool-hero__title {
        font-size: 20px;
    }
    .tq-tool-interface {
        padding: 16px;
    }
}


/* ============================================
   CATEGORY ARCHIVE
   ============================================ */
.tq-archive {
    width: 100%;
    padding: 20px 0 48px;
}

.tq-archive__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

/* Category Hero */
.tq-archive__hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, white 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.tq-archive__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}

.tq-archive__body {
    flex: 1;
    min-width: 0;
}

.tq-archive__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.tq-archive__description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 640px;
}

.tq-archive__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tq-archive__count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
}

/* Sections */
.tq-archive__section {
    margin-bottom: 36px;
}

.tq-archive__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.tq-archive__section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.tq-archive__section-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.tq-archive__section-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    transition: opacity 150ms ease;
}

.tq-archive__section-link:hover {
    opacity: 0.8;
}

/* Tool grid */
.tq-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.tq-tool-grid-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 180ms ease;
    box-shadow: var(--shadow-card);
}

.tq-tool-grid-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08);
}

.tq-tool-grid-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tq-tool-grid-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 18px;
    transition: all 200ms ease;
}

.tq-tool-grid-card:hover .tq-tool-grid-card__icon {
    background: var(--primary-bg);
    border-color: var(--primary-border);
}

.tq-tool-grid-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tq-tool-grid-card__badge--live {
    background: var(--green-bg);
    color: var(--green);
}

.tq-tool-grid-card__badge--live::before {
    content: '';
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

.tq-tool-grid-card__badge--soon {
    background: var(--amber-bg);
    color: var(--amber);
}

.tq-tool-grid-card__badge--system {
    background: var(--indigo-bg);
    color: var(--indigo);
}

.tq-tool-grid-card__title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 6px;
}

.tq-tool-grid-card:hover .tq-tool-grid-card__title {
    color: var(--primary);
}

.tq-tool-grid-card__desc {
    font-size: 12.5px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.tq-tool-grid-card__cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: gap 150ms ease;
    margin-top: auto;
}

/* System grid (mini cards) */
.tq-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.tq-system-card-mini {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 200ms ease;
    box-shadow: var(--shadow-card);
}

.tq-system-card-mini:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08);
}

.tq-system-card-mini__preview {
    height: 110px;
    background-color: var(--bg-tint);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.tq-system-card-mini__body {
    padding: 14px 16px 16px;
}

.tq-system-card-mini__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.tq-system-card-mini__title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}

.tq-system-card-mini:hover .tq-system-card-mini__title {
    color: var(--primary);
}

.tq-system-card-mini__desc {
    font-size: 12.5px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.tq-system-card-mini__cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* Guide grid */
.tq-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.tq-guide-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    transition: all 180ms ease;
}

.tq-guide-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.tq-guide-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.tq-guide-card__cat {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}

.tq-guide-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.tq-guide-card:hover .tq-guide-card__title {
    color: var(--primary);
}

.tq-guide-card__excerpt {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
    .tq-archive__hero {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .tq-archive__icon {
        margin: 0 auto;
    }
    .tq-archive__title {
        font-size: 22px;
    }
    .tq-archive__meta {
        justify-content: center;
    }
}



/* Archive — category headers within all-tools view */
.tq-archive__cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tq-archive__cat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.tq-archive__cat-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tq-archive__cat-info .tq-archive__section-title a {
    color: var(--text-primary);
}

.tq-archive__cat-info .tq-archive__section-title a:hover {
    color: var(--primary);
}

.tq-archive__cat-count {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.tq-archive__cat-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    transition: gap 150ms ease;
}

.tq-archive__cat-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tq-archive__cat-header {
        flex-wrap: wrap;
    }
    .tq-archive__cat-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}


