/*
Theme Name: TWIF Directory
Theme URI: https://thewebisfree.com
Author: Andrea
Author URI: https://thewebisfree.com
Description: A clean, dark-themed directory theme for The Web Is Free - showcasing free, open source, and privacy-friendly software.
Version: 1.1.0
License: GPL v2 or later
Text Domain: twif-directory
*/

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #1c1c22;
    --bg-card: #1c1c22;
    --bg-hover: #25252d;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent: #7869e9;
    --accent-hover: #9183f0;
    --accent-light: rgba(120, 105, 233, 0.1);
    --border: #2a2a32;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

/* Global interactive hover states */
a {
    color: var(--accent);
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--accent-hover);
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding h1 a {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-navigation a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent);
}

/* Main Content Area */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Pages (single post + archive) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content .post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Blog archive - post cards */
.blog .page-content article {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.blog .page-content article:last-child {
    border-bottom: none;
}

.blog .page-content article h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog .page-content article h3 a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.blog .page-content article h3 a:hover {
    color: var(--accent);
}

.blog .page-content article p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Single blog post */
.single-post .page-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 900px;
    margin: 40px auto;
}

.single-post .page-content .post-thumbnail-single {
    display: block;
    margin: 0 0 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.single-post .page-content .post-thumbnail-single img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}

/* Center blog post title */
.single-post .page-content > article > h1,
.single-post .page-content h1:first-of-type {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
}

.single-post .page-content .post-meta {
    text-align: center;
    margin-bottom: 24px;
}

/* Blog post content - match listing quality */
.single-post .page-content .entry-content,
.single-post .page-content > article > p,
.single-post .page-content > article > h2,
.single-post .page-content > article > h3,
.single-post .page-content > article > ul,
.single-post .page-content > article > ol {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.single-post .page-content > article > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px auto 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.single-post .page-content > article > h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 28px auto 12px;
    color: var(--accent);
}

.single-post .page-content > article > p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.single-post .page-content > article > ul,
.single-post .page-content > article > ol {
    margin: 16px auto 20px;
    padding-left: 24px;
}

.single-post .page-content > article > ul li,
.single-post .page-content > article > ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.single-post .page-content > article > ul li strong {
    color: var(--text-primary);
}

.single-post .page-content .post-meta {
    text-align: center;
}

/* Post content typography */
.entry-content,
.post-content {
    line-height: 1.8;
    font-size: 1.0625rem;
}

.entry-content h2,
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
}

.entry-content h3,
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 28px 0 12px;
}

.entry-content p,
.post-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content li,
.post-content li {
    margin-bottom: 8px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.category-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card h3 a {
    color: var(--text-primary);
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all var(--transition);
}

.tool-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tool-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.tool-card h3 a {
    color: var(--text-primary);
}

/* Blog Posts */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    margin-bottom: 24px;
}

.post-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.post-card-inner {
    padding: 24px;
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-card h3 a {
    color: var(--text-primary);
}

.post-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.post-card .read-more {
    font-size: 0.875rem;
    font-weight: 600;
}

.post-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Single Post */
.post-header {
    margin-bottom: 32px;
}

.post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-image {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom .footer-links {
    max-width: 780px;
    margin: 0 auto;
}

.footer-bottom .footer-rss-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-bottom .footer-rss-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.footer-bottom .rss-icon {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* WordPress Core */
.wp-block-image {
    margin: 24px 0;
}

.wp-block-quote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.aligncenter {
    text-align: center;
}

/* ==========================================================
   HivePress Listing Overrides
   ========================================================== */

/* Listing page layout */
.hp-page--listing-view-page .hp-page__content {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Listing image - don't force small images to be large */
.hp-listing--view-page .hp-listing__images img {
    max-width: 256px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    margin: 0 0 24px 0;
    display: block;
}

/* Listing title */
.hp-listing--view-page .hp-listing__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Listing category link */
.hp-listing--view-page .hp-listing__categories {
    margin-bottom: 24px;
}

.hp-listing--view-page .hp-listing__category a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Description/content area - generous spacing */
.hp-listing--view-page .hp-listing__description {
    line-height: 1.8;
    font-size: 1rem;
}

/* Style the enriched content sections (h3, ul, p inside descriptions) */
.hp-listing--view-page .hp-listing__description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.hp-listing--view-page .hp-listing__description h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.hp-listing--view-page .hp-listing__description p {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.hp-listing--view-page .hp-listing__description p strong {
    color: var(--text-primary);
}

.hp-listing--view-page .hp-listing__description ul {
    margin: 10px 0 18px;
    padding-left: 20px;
    list-style: none;
}

.hp-listing--view-page .hp-listing__description ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hp-listing--view-page .hp-listing__description ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.hp-listing--view-page .hp-listing__description ul li strong {
    color: var(--text-primary);
}

/* Links in description */
.hp-listing--view-page .hp-listing__description a {
    color: var(--accent);
    font-weight: 500;
}

.hp-listing--view-page .hp-listing__description a:hover {
    text-decoration: underline;
}

/* Style the website link section specifically */
.hp-listing--view-page .hp-listing__description a[href*="://"] {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.hp-listing--view-page .hp-listing__description a[href*="://"]:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* Listing details (date, meta) */
.hp-listing--view-page .hp-listing__details {
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hp-listing--view-page .hp-listing__date {
    color: var(--text-muted);
}

/* Actions */
.hp-listing--view-page .hp-listing__actions--primary {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Sidebar */
.hp-page--listing-view-page .hp-page__sidebar {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Mobile */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .hp-listing--view-page .hp-listing__images img {
        max-width: 100%;
    }
}

/* ==========================================================
   Comments
   ========================================================== */
.comments-area {
    max-width: 780px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Comment list */
.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 0;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-list .children {
    list-style: none;
    margin: 0 0 0 48px;
    padding: 0;
}

/* Comment meta */
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid var(--border);
}

.comment-author .fn {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-author .fn a {
    color: var(--accent);
}

.comment-author .fn a:hover {
    color: var(--accent-hover);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.comment-metadata a {
    color: var(--text-muted);
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-awaiting-moderation {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--warning);
}

/* Comment content */
.comment-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-content a {
    color: var(--accent);
    word-wrap: break-word;
}

/* Reply link */
.reply {
    font-size: 0.8125rem;
}

.reply a {
    color: var(--accent);
    font-weight: 600;
}

.reply a:hover {
    color: var(--accent-hover);
}

/* Comment form */
.comment-respond {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comment-reply-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comment-reply-title small {
    font-size: 0.8125rem;
    font-weight: 400;
}

.comment-reply-title small a {
    color: var(--text-muted);
}

.comment-reply-title small a:hover {
    color: var(--accent);
}

.comment-notes {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comment-form .required {
    color: var(--danger);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-light);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-submit,
#submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
}

.comment-submit:hover,
#submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.comment-submit:active,
#submit:active {
    transform: translateY(0);
}

/* Cookies opt-in */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
}

/* Must log in / logged in as */
.must-log-in,
.logged-in-as {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.must-log-in a,
.logged-in-as a {
    color: var(--accent);
}

/* No comments */
.no-comments {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 24px 0;
}

/* Comment navigation */
.comments-navigation {
    font-size: 0.875rem;
    margin: 16px 0;
}

.comments-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comments-navigation a {
    color: var(--accent);
    font-weight: 600;
}

.comments-navigation a:hover {
    color: var(--accent-hover);
}

/* Mobile */
@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 24px;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Code blocks - bash, python, etc. */
.post-content pre,
.page-content pre,
.entry-content pre {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px auto 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e8e8e8;
    max-width: 780px;
}

.post-content code,
.page-content code,
.entry-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--bg-hover);
    border-radius: 4px;
    color: #f0c674;
}

.post-content pre code,
.page-content pre code,
.entry-content pre code {
    padding: 0;
    background: none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* ==========================================================
   Breadcrumb Navigation
   ========================================================== */
.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}

.breadcrumbs li + li::before {
    content: "\203A";
    color: var(--text-muted);
    margin: 0 6px;
    font-size: 0.875rem;
    line-height: 1;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
    padding: 2px 0;
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumbs .breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hide on homepage */
.home .breadcrumbs {
    display: none;
}

/* Contact Form 7 — Tool Submission */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-url,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-url:focus,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7-form .wpcf7-select:focus {
    outline: none;
    border-color: var(--accent);
}

.wpcf7-form .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--accent-hover);
}

.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: -12px;
    margin-bottom: 12px;
}

.wpcf7-form .wpcf7-response-output {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.wpcf7-form .wpcf7-mail-sent-ok {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-spam-blocked {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

.wpcf7 form .wpcf7-response-output.wpcf7-display-none {
    display: none;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form .wpcf7-spinner {
    background: var(--bg-hover);
    opacity: 0.75;
}
