/* =============================================================
   Strategy & Tools — Public Styles
   Shares CSS variables from Styles.css (loaded first)
   ============================================================= */

/* ── Hero ────────────────────────────────────────────────────────────── */
.tools-hero {
    background: var(--charcoal-blue);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.tools-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.tools-hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--tuscan-sun);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tools-hero-heading {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.tools-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Sub-navigation (sticky under the site header) ───────────────────── */
.tools-subnav {
    position: sticky;
    top: 64px;
    z-index: 900;
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.tools-subnav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.tools-subnav-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: var(--transition);
}

.tools-subnav-link:hover,
.tools-subnav-link:focus-visible {
    color: var(--charcoal-blue);
    border-color: var(--border-color);
}

[data-theme="dark"] .tools-subnav-link:hover,
[data-theme="dark"] .tools-subnav-link:focus-visible {
    color: var(--text-primary);
}

.tools-subnav-link.is-active {
    color: #fff;
    background: var(--charcoal-blue);
    border-color: var(--charcoal-blue);
}

/* Thin progress bar shown while a page swap is in flight */
.tools-switch-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--sandy-brown), var(--burnt-peach));
    opacity: 0;
    transition: width 0.25s ease, opacity 0.2s ease;
}

body.is-switching .tools-switch-progress {
    width: 70%;
    opacity: 1;
}

body.is-switching #page-panel {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

#page-panel {
    transition: opacity 0.2s ease;
}

#page-panel:focus,
#page-panel:focus-visible {
    outline: none;
}

/* ── Tools Area ──────────────────────────────────────────────────────── */
.tools-section {
    padding: 4.5rem 2rem 5rem;
    background: var(--background-light);
}

.tools-section-sub {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tools-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Tool Card ───────────────────────────────────────────────────────── */
.tool-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 2.5rem 2.25rem;
    transition: var(--transition);
}

.tool-card:hover {
    box-shadow: var(--shadow-md);
}

.tool-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tool-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tuscan-sun);
    background: var(--charcoal-blue);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.tool-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
}

.tool-card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--charcoal-blue);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

[data-theme="dark"] .tool-card-title {
    color: var(--text-primary);
}

.tool-card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.tool-card-text em {
    font-style: italic;
    color: var(--charcoal-blue);
    font-weight: 600;
}

[data-theme="dark"] .tool-card-text em {
    color: var(--tuscan-sun);
}

.tool-card-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.tool-card-list li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.tool-card-list li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 1.15rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sandy-brown);
}

.tool-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

/* ── Download Button ─────────────────────────────────────────────────── */
.btn-tool-download {
    display: inline-block;
    background: var(--burnt-peach);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.95rem 2rem;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tool-download:hover,
.btn-tool-download:focus-visible {
    background: var(--sandy-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tool-download:focus-visible {
    outline: 3px solid var(--charcoal-blue);
    outline-offset: 3px;
}

.tool-card-secondary {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--charcoal-blue);
    text-decoration: none;
    border-bottom: 2px solid var(--sandy-brown);
    padding-bottom: 2px;
    transition: var(--transition);
}

[data-theme="dark"] .tool-card-secondary {
    color: var(--text-primary);
}

.tool-card-secondary:hover,
.tool-card-secondary:focus-visible {
    color: var(--burnt-peach);
    border-bottom-color: var(--burnt-peach);
}

/* ── Status + Disclaimer ─────────────────────────────────────────────── */
.tool-meta {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    opacity: 0.8;
    margin: 0.9rem 0 0;
}

.tool-status {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 1.4em;
    margin: 1.25rem 0 0;
}

.tool-status--error {
    color: var(--burnt-peach);
    font-weight: 600;
}

.tool-card-disclaimer {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-secondary);
    opacity: 0.85;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0 0;
    padding-top: 1.25rem;
}

/* ── Cross-link to the sibling page ───────────────────────────────────── */
.tools-next {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.tools-next p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

/* ── Strategy Area ───────────────────────────────────────────────────── */
.strategy-section {
    padding: 5rem 2rem 6rem;
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
}

.strategy-section-sub {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.strategy-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Cards sit three-up here rather than in the single 800px tools column */
.strategy-grid .tool-card {
    padding: 1.75rem 1.5rem;
}

.strategy-grid .tool-card-title {
    font-size: 1rem;
}

.strategy-grid .tool-card-text {
    font-size: 0.92rem;
}

.strategy-grid .tool-card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

/* ── Empty states ─────────────────────────────────────────────────────── */
.tools-empty,
.strategy-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--background-light);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
}

.strategy-empty {
    background: var(--background-light);
}

.tools-empty p,
.strategy-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* ── Strategy CTA ────────────────────────────────────────────────────── */
.strategy-cta {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.strategy-cta p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tools-hero {
        padding: 4rem 1.25rem 3rem;
    }

    .tools-section {
        padding: 3.5rem 1.25rem 4rem;
    }

    .strategy-section {
        padding: 3.5rem 1.25rem 4rem;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 1.75rem 1.5rem;
    }

    .tool-card-actions {
        gap: 1rem;
    }

    .btn-tool-download {
        width: 100%;
        text-align: center;
    }

    .tools-empty,
    .strategy-empty {
        padding: 2.25rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-tool-download:hover:not(:disabled),
    .btn-tool-download:focus-visible {
        transform: none;
    }
}