/**
 * Templates CSS: Page-Specific and Component-Specific Styles
 * 
 * @package    GigsDock_WP_Theme
 */

/* ==========================================================================
   1. HOMEPAGE SPECIFICS
   ========================================================================== */

.home-section {
    margin-bottom: 60px;
}

/* Alternating Section Backgrounds (Prevents white cards on white) */
.home-section.gd-section-alt {
    background: var(--gd-bg-subtle);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-lg);
    padding: 36px 32px;
    margin-bottom: 50px;
}

.home-section.gd-section-alt .home-section-header {
    border-bottom: 1px solid var(--gd-border-default);
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gd-border-default);
    padding-bottom: 14px;
}

.home-section-title {
    font-size: var(--gd-font-size-22);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

.home-section-link {
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-link);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.home-section-link:hover {
    text-decoration: underline;
    color: var(--gd-text-link-hover);
}

/* Section Footer Action Container (Hidden on desktop, shown at bottom of card on mobile) */
.home-section-footer {
    display: none;
}

/* Hero Banner */
.home-hero {
    text-align: center;
    padding: 80px 20px 64px 20px;
    background: linear-gradient(150deg, var(--gd-bg-subtle) 0%, var(--gd-bg-muted) 60%, var(--gd-bg-strong) 100%);
    border-radius: var(--gd-radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--gd-border-default);
}

.home-hero-title {
    font-size: var(--gd-font-size-42);
    font-weight: var(--gd-weight-extrabold);
    color: var(--gd-text-heading);
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.home-hero-subtitle {
    font-size: var(--gd-font-size-18);
    color: var(--gd-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px auto;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Job Discovery Search Form */
.home-discovery-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.home-discovery-card {
    background: var(--gd-bg-surface);
    border-radius: var(--gd-radius-lg);
    padding: 36px 36px 28px 36px;
    border: 1px solid var(--gd-border-default);
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--gd-shadow-discovery);
}

.home-discovery-title {
    font-size: var(--gd-font-size-22);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0 0 16px 0;
    text-align: center;
}

.home-discovery-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-discovery-form {
    display: flex;
    gap: 12px;
}

.gd-search-form-large {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.gd-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.gd-search-icon {
    display: none;
}

/* Input styles, sizing (.gd-input-large), and unified focus click effect are controlled in components.css:1000 */

.home-btn.home-btn-primary.home-discovery-btn.gd-btn-large {
    min-height: 54px;
    padding: 0 28px;
    font-size: var(--gd-font-size-16);
    font-weight: var(--gd-weight-bold);
    border-radius: var(--gd-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--gd-bg-primary);
    color: var(--gd-text-on-primary);
    box-shadow: var(--gd-shadow-btn-hover);
    cursor: pointer;
    border: none;
    transition: background-color var(--gd-duration-fast) var(--gd-ease-smooth),
        transform var(--gd-duration-fast) var(--gd-ease-smooth),
        box-shadow var(--gd-duration-fast) var(--gd-ease-smooth);
}

.home-btn.home-btn-primary.home-discovery-btn.gd-btn-large:hover {
    background: var(--gd-bg-primary-hover);
    transform: translateY(-1px);
}

.home-discovery-input {
    flex: 1;
    padding: 15px 20px;
    font-size: var(--gd-font-size-16);
}

.home-discovery-btn {
    white-space: nowrap;
}

/* Popular Search Chips */
.gd-popular-searches {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.gd-popular-label {
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd-popular-chips-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.gd-popular-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-medium);
    color: var(--gd-text-secondary);
    background: var(--gd-bg-subtle);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-pill);
    padding: 5px 12px;
    text-decoration: none !important;
    transition: background-color var(--gd-duration-fast) var(--gd-ease-smooth),
        border-color var(--gd-duration-fast) var(--gd-ease-smooth),
        color var(--gd-duration-fast) var(--gd-ease-smooth),
        transform var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-popular-chip:hover {
    background: var(--gd-bg-primary-tint);
    color: var(--gd-bg-primary);
    border-color: var(--gd-border-primary);
    transform: translateY(-1px);
}

/* Trust Line */
.gd-search-trust-bar {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--gd-border-default);
}

.gd-search-trust-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-medium);
    color: var(--gd-text-muted);
    background: var(--gd-bg-subtle);
    padding: 6px 16px;
    border-radius: var(--gd-radius-pill);
    border: 1px solid var(--gd-border-default);
}

.gd-trust-icon {
    font-size: var(--gd-font-size-14);
    line-height: 1;
}

.gd-trust-text {
    letter-spacing: 0.2px;
}

/* Directory Nav Cards (5 cards per row on desktop) */
.home-directory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .home-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-directory-card {
    background: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    padding: 16px 18px;
    border-radius: var(--gd-radius-sm);
    text-decoration: none;
    text-align: left;
    transition: border-color var(--gd-duration-fast) var(--gd-ease-smooth),
        background-color var(--gd-duration-fast) var(--gd-ease-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.home-directory-card:hover {
    border-color: var(--gd-border-primary);
    background: var(--gd-bg-primary-tint);
}

.home-directory-title {
    font-size: var(--gd-font-size-14);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-heading);
    transition: color var(--gd-duration-fast) ease;
    line-height: 1.3;
}

.home-directory-card:hover .home-directory-title {
    color: var(--gd-text-link);
}

.home-directory-arrow {
    font-size: var(--gd-font-size-16);
    color: var(--gd-text-muted);
    transition: color var(--gd-duration-fast) ease,
        transform var(--gd-duration-fast) var(--gd-ease-smooth);
    flex-shrink: 0;
    line-height: 1;
}

.home-directory-card:hover .home-directory-arrow {
    color: var(--gd-text-link);
    transform: translateX(3px);
}

/* FAQ Accordion */
.home-faq-section {
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.home-faq-title {
    font-size: var(--gd-font-size-26);
    font-weight: var(--gd-weight-bold);
    text-align: center;
    color: var(--gd-text-heading);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.home-faq-item {
    background: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-sm);
    overflow: hidden;
    transition: border-color var(--gd-duration-fast) ease;
}

.home-faq-item[open] {
    border-color: var(--gd-border-hover);
}

.home-faq-question {
    font-size: var(--gd-font-size-15);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-heading);
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    transition: color var(--gd-duration-fast) ease,
        background-color var(--gd-duration-fast) ease;
    padding-right: 48px;
}

.home-faq-question:hover {
    color: var(--gd-text-link);
    background: var(--gd-bg-subtle);
}

.home-faq-item[open] .home-faq-question {
    color: var(--gd-text-link);
    border-bottom: 1px solid var(--gd-border-default);
}

.home-faq-question::-webkit-details-marker {
    display: none;
}

.home-faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--gd-font-size-22);
    color: var(--gd-text-muted);
    font-weight: var(--gd-weight-regular);
    line-height: 1;
    transition: transform var(--gd-duration-fast) ease;
}

.home-faq-item[open] .home-faq-question::after {
    content: '−';
}

.home-faq-answer {
    padding: 16px 20px 20px 20px;
    color: var(--gd-text-secondary);
    font-size: var(--gd-font-size-15);
    line-height: 1.65;
}

/* ==========================================================================
   2. SINGLE TEMPLATES SPECIFICS (Job, Post)
   ========================================================================== */

/* Breadcrumb Navigation */
.gd-job-crumbs,
.gd-post-crumbs {
    font-size: var(--gd-font-size-14);
    color: var(--gd-text-muted);
    margin: 0 0 14px;
}

.gd-job-crumbs a,
.gd-post-crumbs a {
    color: var(--gd-text-muted);
    text-decoration: none;
}

.gd-job-crumbs a:hover,
.gd-post-crumbs a:hover {
    color: var(--gd-text-link);
}

.gd-job-crumbs .gd-crumb-sep,
.gd-post-crumbs .gd-crumb-sep {
    margin: 0 6px;
}

.gd-job-crumbs span[aria-current="page"],
.gd-post-crumbs span[aria-current="page"] {
    color: var(--gd-text-secondary);
}

/* Header Card (Single Job & Single Post) */
.gd-job-head,
.gd-post-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    background: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-lg);
    padding: 28px;
    box-shadow: var(--gd-shadow-sm);
    margin-bottom: 16px;
}

.gd-job-head:not(:has(~ .gd-job-summary)),
.gd-post-head:not(:has(~ .gd-post-summary)) {
    margin-bottom: 32px;
}

.gd-job-head.gd-job-head-no-avatar,
.gd-job-head:not(:has(.gd-job-head-avatar)),
.gd-post-head.gd-post-head-no-avatar,
.gd-post-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-post-head-thumbnail)) {
    grid-template-columns: 1fr auto;
}

.gd-job-head:not(:has(.gd-job-apply-box)),
.gd-post-head:not(:has(.gd-post-action-box)) {
    grid-template-columns: auto 1fr;
}

.gd-job-head.gd-job-head-no-avatar:not(:has(.gd-job-apply-box)),
.gd-job-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-job-apply-box)),
.gd-post-head.gd-post-head-no-avatar:not(:has(.gd-post-action-box)),
.gd-post-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-post-head-thumbnail)):not(:has(.gd-post-action-box)) {
    grid-template-columns: 1fr;
}

.gd-job-head-avatar {
    width: 76px;
    height: 76px;
    border-radius: var(--gd-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gd-border-avatar);
    background: var(--gd-bg-primary-tint);
    flex-shrink: 0;
}

.gd-job-head-avatar span {
    font-size: var(--gd-font-size-32);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-bg-primary);
    line-height: 1;
}

.gd-job-head .job-title-main {
    /* theme-override: internal !important on .job-title-main */
    margin: 0 0 8px 0 !important;
    font-size: var(--gd-font-size-30) !important;
}

.gd-job-company-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: var(--gd-font-size-16);
    color: var(--gd-text-secondary);
}

.gd-job-company-line a {
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-link);
    text-decoration: none;
}

.gd-job-company-line a:hover {
    text-decoration: underline;
    color: var(--gd-text-link-hover);
}

.gd-job-company-line .gigsdock-posted-date {
    color: var(--gd-text-muted);
    font-size: var(--gd-font-size-14);
}

/* Header Apply Box */
.gd-job-apply-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.gd-job-apply-box .btn-primary {
    flex: none;
    text-align: center;
}

.gd-job-apply-row {
    display: flex;
    gap: 8px;
}

.gd-job-apply-row .btn-secondary {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    text-align: center;
}

.gd-job-deadline {
    text-align: center;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-warning-title);
}

/* Summary Strip (1px-gap divider technique) */
.gd-job-summary,
.gd-post-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--gd-border-default);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-lg);
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.gd-job-summary-item {
    background: var(--gd-bg-surface);
    padding: 16px 20px;
}

.gd-job-summary small,
.gd-post-summary small {
    display: block;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gd-text-muted);
    margin-bottom: 4px;
}

.gd-job-summary strong,
.gd-post-summary strong {
    font-size: var(--gd-font-size-16);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    word-break: break-word;
}

.gd-job-summary-salary strong {
    color: var(--gd-text-salary);
}

.gd-summary-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-summary-link:hover {
    color: var(--gd-text-link);
}

.gd-meta-bullet {
    color: var(--gd-text-muted);
    font-size: var(--gd-font-size-12);
}

.gd-post-head-thumbnail {
    width: 76px;
    height: 76px;
    border-radius: var(--gd-radius-xl);
    overflow: hidden;
    border: 1px solid var(--gd-border-avatar);
    background: var(--gd-bg-muted);
    flex-shrink: 0;
}

.gd-post-head-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gd-post-featured-image {
    width: 100%;
    margin-bottom: 28px;
    border-radius: var(--gd-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gd-border-default);
    background: var(--gd-bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Featured Image Max-Width Constraints Applied Exclusively to the Inner Image */
.gd-post-featured-image img,
.gd-post-featured-image svg {
    max-width: var(--gd-post-image-max-width);
    width: 100%;
    height: auto;
    max-height: var(--gd-post-image-max-height);
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: var(--gd-radius-md);
}

.gd-post-featured-image.gd-mw-640 img,
.gd-post-featured-image.gd-mw-640 svg {
    max-width: var(--gd-post-image-mw-640);
}

.gd-post-featured-image.gd-mw-720 img,
.gd-post-featured-image.gd-mw-720 svg {
    max-width: var(--gd-post-image-mw-720);
}

.gd-post-featured-image.gd-mw-800 img,
.gd-post-featured-image.gd-mw-800 svg {
    max-width: var(--gd-post-image-mw-800);
}

.gd-post-featured-image.gd-mw-full img,
.gd-post-featured-image.gd-mw-full svg {
    max-width: 100%;
    border-radius: 0;
}

.gd-post-featured-image.gd-aspect-16-9 img {
    aspect-ratio: 16 / 9;
}

.gd-post-featured-image.gd-aspect-21-9 img {
    aspect-ratio: 21 / 9;
}

.gd-post-featured-image.gd-aspect-4-3 img {
    aspect-ratio: 4 / 3;
}

.gd-post-featured-image.gd-aspect-auto img {
    aspect-ratio: auto;
}

/* Responsive Breakpoints for Job & Post Header */
@media (max-width: 900px) {

    .gd-job-head,
    .gd-post-head {
        grid-template-columns: auto 1fr;
    }

    .gd-job-head.gd-job-head-no-avatar,
    .gd-job-head:not(:has(.gd-job-head-avatar)),
    .gd-post-head.gd-post-head-no-avatar,
    .gd-post-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-post-head-thumbnail)) {
        grid-template-columns: 1fr;
    }

    .gd-job-head:not(:has(.gd-job-apply-box)),
    .gd-post-head:not(:has(.gd-post-action-box)) {
        grid-template-columns: auto 1fr;
    }

    .gd-job-head.gd-job-head-no-avatar:not(:has(.gd-job-apply-box)),
    .gd-job-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-job-apply-box)),
    .gd-post-head.gd-post-head-no-avatar:not(:has(.gd-post-action-box)),
    .gd-post-head:not(:has(.gd-job-head-avatar)):not(:has(.gd-post-head-thumbnail)):not(:has(.gd-post-action-box)) {
        grid-template-columns: 1fr;
    }

    .gd-job-apply-box,
    .gd-post-action-box {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 640px) {

    .gd-job-head,
    .gd-post-head {
        padding: 20px;
        gap: 16px;
    }

    .gd-job-head-avatar,
    .gd-post-head-thumbnail {
        width: 60px;
        height: 60px;
        border-radius: var(--gd-radius-md);
    }

    .gd-job-head-avatar span {
        font-size: var(--gd-font-size-26);
    }

    .gd-job-head .job-title-main,
    .gd-post-head .job-title-main {
        /* theme-override: internal !important on .job-title-main */
        font-size: var(--gd-font-size-24) !important;
    }

    .gd-job-apply-box,
    .gd-post-action-box {
        width: 100%;
    }

    .gd-job-apply-box .btn-primary {
        width: 100%;
        box-sizing: border-box;
    }

    .gd-job-apply-row {
        width: 100%;
    }

    .gd-job-head:not(:has(~ .gd-job-summary)) {
        margin-bottom: 24px;
    }
}

/* Responsive Summary Strip (Mobile & Tablet) */
@media (max-width: 768px) {

    .gd-job-summary,
    .gd-post-summary {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 14px;
        margin-bottom: 24px;
    }

    .gd-job-summary-item {
        padding: 14px 16px;
    }

    /* Fill empty trailing cell with matching white tile when count is odd in 2-column mobile layout */
    .gd-job-summary:has(.gd-job-summary-item:last-child:nth-child(odd))::after,
    .gd-post-summary:has(.gd-job-summary-item:last-child:nth-child(odd))::after {
        content: '';
        background: var(--gd-bg-surface);
        display: block;
        min-height: 100%;
    }
}

/* Main Title (Job, Post, Page) */
.job-title-main {
    font-size: var(--gd-font-size-26);
    font-weight: var(--gd-weight-extrabold);
    color: var(--gd-text-heading);
    margin: 20px 0 16px 0 !important;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

/* Job & Post Section Typography */
.job-section {
    margin-bottom: 32px;
    color: var(--gd-text-secondary);
    line-height: 1.7;
    font-size: var(--gd-font-size-15) !important;
}

.job-section p,
.job-section li {
    font-size: var(--gd-font-size-15) !important;
    margin-bottom: 14px;
    line-height: 1.7;
}

.job-section.intro-text,
.job-section.intro-text p {
    font-size: var(--gd-font-size-16) !important;
    color: var(--gd-text-lead) !important;
    line-height: 1.65;
}

.job-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style-type: disc;
}

.job-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style-type: decimal;
}

.job-section h2 {
    font-size: var(--gd-font-size-20);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gd-border-default);
    letter-spacing: -0.01em;
}

.job-section h3 {
    font-size: var(--gd-font-size-16);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin-top: 20px;
    margin-bottom: 12px;
}

.job-section h4 {
    font-size: var(--gd-font-size-15);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-heading);
    margin-top: 16px;
    margin-bottom: 8px;
}

.job-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gd-radius-sm);
    margin: 20px 0;
}

/* Quick Details styles consolidated in Section 7 (.quick-details-list) */

.info-card {
    margin-bottom: 28px;
}

/* Header within Cards (e.g., Company Info) */
.info-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .info-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.info-card-title {
    font-size: var(--gd-font-size-20);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}



/* Meta Data Grids */
.job-meta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: var(--gd-font-size-14);
}


/* ==========================================================================
   2.5 FEATURED CATEGORIES (Remote & Freshers)
   ========================================================================== */

.home-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featured-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: var(--gd-radius-lg);
    text-decoration: none;
    overflow: hidden;
    transition: border-color var(--gd-duration-fast) var(--gd-ease-smooth);
    box-shadow: var(--gd-shadow-sm);
    z-index: 1;
    border: 1px solid var(--gd-border-default);
    background: var(--gd-bg-surface);
}

.featured-category-card:hover {
    border-color: var(--gd-border-hover);
}

.featured-category-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--gd-radius-md);
    margin-bottom: 24px;
}

.featured-category-title {
    font-size: var(--gd-font-size-28);
    font-weight: var(--gd-weight-extrabold);
    color: var(--gd-text-heading);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.featured-category-desc {
    font-size: var(--gd-font-size-16);
    color: var(--gd-text-secondary);
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.featured-category-cta {
    font-size: var(--gd-font-size-15);
    font-weight: var(--gd-weight-bold);
    display: inline-flex;
    align-items: center;
    transition: opacity var(--gd-duration-fast) ease;
}

.featured-category-card:hover .featured-category-cta {
    opacity: 0.8;
}

.featured-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Card Specific Colors */
.remote-card .featured-icon-wrapper {
    background: var(--gd-bg-remote-tint);
    color: var(--gd-text-remote);
}

.remote-card .featured-category-cta {
    color: var(--gd-text-remote);
}

.remote-card .featured-card-bg {
    background: var(--gd-glow-remote);
}

.fresher-card .featured-icon-wrapper {
    background: var(--gd-bg-fresher-tint);
    color: var(--gd-text-fresher);
}

.fresher-card .featured-category-cta {
    color: var(--gd-text-fresher);
}

.fresher-card .featured-card-bg {
    background: var(--gd-glow-fresher);
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .home-hero-title {
        font-size: var(--gd-font-size-32);
        letter-spacing: -0.015em;
    }

    .home-hero {
        padding: 48px 16px 48px 16px;
        border-radius: var(--gd-radius-md);
    }

    .home-hero-subtitle {
        font-size: var(--gd-font-size-16);
    }

    .home-discovery-section {
        margin-top: 0;
        position: relative;
        z-index: 10;
        padding: 0;
    }

    .home-discovery-form {
        flex-direction: column;
    }

    .home-discovery-btn {
        width: 100%;
    }

    .home-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   4. HOMEPAGE GRIDS
   ========================================================================== */

.home-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.home-faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {

    .home-jobs-grid,
    .home-posts-grid,
    .home-faq-container {
        grid-template-columns: 1fr;
    }

    .gd-search-form-large {
        flex-direction: column;
        gap: 10px;
    }

    .home-discovery-card {
        padding: 24px 18px 20px 18px;
        box-shadow: none;
    }

    .home-section.gd-section-alt {
        padding: 24px 16px;
        border-radius: var(--gd-radius-md);
        margin-bottom: 35px;
    }

    /* Mobile Section View-All Actions: Move from header to bottom of section container */
    .home-section-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .home-section-header .home-section-link {
        display: none;
    }

    .home-section-footer {
        display: flex;
        justify-content: center;
        margin-top: 18px;
    }

    .home-section-footer .home-section-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px 20px;
        background: var(--gd-bg-surface);
        border: 1px solid var(--gd-border-default);
        border-radius: var(--gd-radius-sm);
        font-size: var(--gd-font-size-14);
        font-weight: var(--gd-weight-semibold);
        color: var(--gd-text-link);
        text-decoration: none;
        margin-left: 0;
        box-sizing: border-box;
        transition: background-color var(--gd-duration-fast) var(--gd-ease-smooth),
            border-color var(--gd-duration-fast) var(--gd-ease-smooth),
            color var(--gd-duration-fast) var(--gd-ease-smooth);
    }

    .home-section-footer .home-section-link:hover {
        background: var(--gd-bg-primary-tint);
        border-color: var(--gd-border-primary);
        color: var(--gd-text-link-hover);
        text-decoration: none;
    }

    .gd-popular-searches {
        justify-content: flex-start;
    }

    .gd-popular-chips-list {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   5. JOB & POST CARD GRID INTEGRATION
   ========================================================================== */

.home-jobs-grid .gd-job-card,
.home-jobs-grid .related-job-card,
.home-posts-grid .gigsdock-post-card {
    margin-bottom: 0;
}

/* ==========================================================================
   6. ARCHIVE HEADER CARD (.archive-header-card)
   ========================================================================== */

.archive-header-card {
    margin-bottom: 20px;
    padding: 24px 28px;
}

/* Breadcrumb Navigation */
.gd-archive-breadcrumb {
    margin-bottom: 12px;
}

.gd-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-medium);
    color: var(--gd-text-muted);
}

.gd-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.gd-breadcrumb-link {
    color: var(--gd-text-muted);
    text-decoration: none;
    transition: color var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-breadcrumb-link:hover {
    color: var(--gd-text-link);
    text-decoration: underline;
}

.gd-breadcrumb-sep {
    margin: 0 8px;
    color: var(--gd-border-hover-strong);
    user-select: none;
}

.gd-breadcrumb-current {
    color: var(--gd-text-secondary);
    font-weight: var(--gd-weight-semibold);
}

/* Title & Live Badge Row */
.gd-archive-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.archive-title {
    font-size: var(--gd-font-size-24);
    font-weight: var(--gd-weight-extrabold);
    color: var(--gd-text-heading);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Live Openings Count Badge */
.gd-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gd-bg-live-tint);
    color: var(--gd-text-live);
    border: 1px solid var(--gd-border-live);
    border-radius: var(--gd-radius-pill);
    padding: 4px 12px;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-semibold);
    white-space: nowrap;
    line-height: 1.2;
}

.gd-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--gd-radius-pill);
    background: var(--gd-bg-live);
    display: inline-block;
    flex-shrink: 0;
}

/* Concise Introduction & Progressive Disclosure */
.archive-description {
    color: var(--gd-text-secondary);
    font-size: var(--gd-font-size-14);
    line-height: 1.6;
    margin-top: 8px;
}

.gd-archive-lead {
    margin: 0 0 8px 0;
    color: var(--gd-text-body);
    font-size: var(--gd-font-size-15);
    line-height: 1.55;
}

.gd-archive-expandable {
    margin-top: 6px;
}

.gd-archive-expandable[open] {
    display: flex;
    flex-direction: column;
}

.gd-archive-expandable[open] .gd-archive-full-body {
    order: 1;
}

.gd-archive-expandable[open] .gd-archive-toggle-btn {
    order: 2;
    margin-top: 12px;
    align-self: flex-start;
}

/* Replace truncated lead preview seamlessly with the full description when expanded */
.gd-archive-intro:has(.gd-archive-expandable[open]) .gd-archive-lead {
    display: none;
}

.gd-archive-intro:has(.gd-archive-expandable[open]) .gd-archive-expandable[open] {
    margin-top: 0;
}

.gd-archive-intro:has(.gd-archive-expandable[open]) .gd-archive-full-body {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: var(--gd-text-body);
    font-size: var(--gd-font-size-15);
    line-height: 1.55;
}

.gd-archive-toggle-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-link);
    background: none;
    border: none;
    padding: 0;
    list-style: none;
    transition: color var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-archive-toggle-btn::-webkit-details-marker {
    display: none;
}

.gd-archive-toggle-btn:hover {
    color: var(--gd-text-link-hover);
    text-decoration: underline;
}

.gd-toggle-icon {
    transition: transform var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-archive-expandable[open] .gd-toggle-icon {
    transform: rotate(180deg);
}

.gd-archive-expandable .gd-toggle-less {
    display: none;
}

.gd-archive-expandable[open] .gd-toggle-more {
    display: none;
}

.gd-archive-expandable[open] .gd-toggle-less {
    display: inline;
}

.gd-archive-full-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--gd-border-default);
    color: var(--gd-text-secondary);
    font-size: var(--gd-font-size-14);
    line-height: 1.6;
}

.gd-archive-full-body p:first-child {
    margin-top: 0;
}

.gd-archive-full-body p:last-child {
    margin-bottom: 0;
}

/* Category Sibling Exploration Bar */
.gd-taxonomy-explore-bar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--gd-border-default);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.gd-explore-label {
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.gd-explore-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gd-explore-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gd-bg-muted);
    color: var(--gd-text-body);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-pill-sm);
    padding: 4px 12px;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-medium);
    text-decoration: none;
    transition: background var(--gd-duration-fast) var(--gd-ease-smooth),
        border-color var(--gd-duration-fast) var(--gd-ease-smooth),
        color var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-explore-pill:hover {
    background: var(--gd-bg-primary-tint);
    border-color: var(--gd-border-primary);
    color: var(--gd-text-link);
}

.gd-explore-count {
    color: var(--gd-text-muted);
    font-size: var(--gd-font-size-11);
    font-weight: var(--gd-weight-semibold);
}

.gd-explore-pill:hover .gd-explore-count {
    color: var(--gd-text-link);
}

.gd-explore-all {
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-link);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 4px;
    transition: color var(--gd-duration-fast) var(--gd-ease-smooth);
}

.gd-explore-all:hover {
    color: var(--gd-text-link-hover);
    text-decoration: underline;
}

.gd-explore-pill.is-active {
    background: var(--gd-bg-primary);
    border-color: var(--gd-border-primary);
    color: var(--gd-text-on-primary);
}

.gd-explore-pill.is-active:hover {
    background: var(--gd-bg-primary-hover);
    border-color: var(--gd-border-primary);
    color: var(--gd-text-on-primary);
}

.gd-explore-pill.is-active .gd-explore-count {
    color: var(--gd-text-on-primary);
    opacity: 0.85;
}

.gd-taxonomy-filter-bar {
    margin-bottom: 20px;
}

.gd-taxonomy-jobs-count {
    display: inline-flex;
    align-items: center;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-muted);
    background: var(--gd-bg-muted);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-pill-sm);
    padding: 2px 10px;
    line-height: 1.5;
}

/* ==========================================================================
   6.1 HELPFUL EMPTY STATE (.gd-job-empty-state)
   ========================================================================== */

.gd-job-empty-state {
    text-align: center;
    padding: 48px 32px;
    background: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    margin-bottom: 28px;
}

.gd-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--gd-radius-pill);
    background: var(--gd-bg-muted);
    color: var(--gd-text-muted);
    margin: 0 auto 20px auto;
}

.gd-empty-title {
    font-size: var(--gd-font-size-20);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.gd-empty-desc {
    font-size: var(--gd-font-size-15);
    color: var(--gd-text-secondary);
    max-width: 520px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.gd-empty-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gd-empty-actions .btn-primary,
.gd-empty-actions .btn-secondary {
    min-height: 42px;
    padding: 10px 22px;
    font-size: var(--gd-font-size-14);
    font-weight: var(--gd-weight-semibold);
    border-radius: var(--gd-radius-sm);
    flex: initial;
}

.gd-empty-explore {
    padding-top: 24px;
    border-top: 1px solid var(--gd-border-default);
    margin-top: 8px;
}

.gd-empty-explore-title {
    display: block;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-secondary);
    margin-bottom: 12px;
}

.gd-empty-explore .gd-explore-pills {
    justify-content: center;
}

/* ==========================================================================
   6.2 DIRECTORY PORTAL JOB EMBEDS (.gd-directory-jobs)
   ========================================================================== */

.gd-directory-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-directory-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Directory Hero Stats & Badges */
.gd-directory-hero {
    margin-bottom: 24px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-dir-stat-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.gd-badge-count-pill {
    background-color: var(--gd-bg-muted);
    color: var(--gd-text-secondary);
    border: 1px solid var(--gd-border-default);
    padding: 3px 10px;
    border-radius: var(--gd-radius-pill-sm);
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-bold);
    max-width: 100%;
}

/* 6.3 DIRECTORY FILTER & A-Z EXPLORATION */

.gd-dir-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-dir-search-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-dir-search-icon {
    position: absolute;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gd-text-muted);
    pointer-events: none;
}

.gd-dir-search-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 10px 42px !important;
    background-color: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-pill);
    font-size: var(--gd-font-size-14);
    color: var(--gd-text-body);
    font-family: var(--gd-font-sans);
    transition: border-color var(--gd-duration-fast) ease, box-shadow var(--gd-duration-fast) ease;
}

.gd-dir-search-input:focus {
    outline: none;
    border-color: var(--gd-border-primary);
    box-shadow: var(--gd-shadow-focus-ring);
}

.gd-dir-count-pill {
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-muted);
    background-color: var(--gd-bg-subtle);
    padding: 8px 14px;
    border-radius: var(--gd-radius-pill);
    border: 1px solid var(--gd-border-default);
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Alphabetical A-Z Jump Ribbon */
.gd-az-jump-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background-color: var(--gd-bg-subtle);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-az-jump-bar::-webkit-scrollbar {
    display: none;
}

.gd-az-letter {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-bold);
    border-radius: var(--gd-radius-sm);
    color: var(--gd-text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color var(--gd-duration-fast) ease, color var(--gd-duration-fast) ease;
}

.gd-az-letter:hover {
    background-color: var(--gd-bg-primary);
    color: var(--gd-text-on-primary);
    text-decoration: none;
}

.gd-az-letter.is-disabled {
    color: var(--gd-text-muted);
    opacity: 0.35;
    pointer-events: none;
}

.gd-az-letter.is-muted {
    opacity: 0.35;
}

/* Top Hiring & Showcase Bar (.gd-featured-companies-bar, .gd-featured-showcase-bar) */
.gd-featured-companies-bar,
.gd-featured-showcase-bar {
    background-color: var(--gd-bg-subtle);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    padding: 16px 18px;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.gd-featured-bar-title {
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    max-width: 100%;
}

.gd-featured-title-text {
    color: var(--gd-text-secondary);
    font-weight: var(--gd-weight-medium);
}

.gd-featured-companies-list,
.gd-featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gd-featured-company-pill,
.gd-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-pill);
    text-decoration: none;
    color: var(--gd-text-body);
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    box-sizing: border-box;
    max-width: 100%;
    transition: border-color var(--gd-duration-fast) ease, box-shadow var(--gd-duration-fast) ease, color var(--gd-duration-fast) ease;
}

.gd-featured-company-pill:hover,
.gd-featured-pill:hover {
    border-color: var(--gd-border-primary);
    color: var(--gd-text-link);
    box-shadow: var(--gd-shadow-sm);
    text-decoration: none;
}

.gd-featured-company-pill.is-active,
.gd-featured-pill.is-active {
    background-color: var(--gd-bg-primary);
    border-color: var(--gd-border-primary);
    color: var(--gd-text-on-primary);
}

.gd-featured-company-pill.is-active .gd-badge-count,
.gd-featured-pill.is-active .gd-badge-count {
    background-color: var(--gd-bg-primary-tint);
    color: var(--gd-text-link);
}

/* Taxonomy Feature Cards Grid (.gd-taxonomy-cards-grid, .gd-taxonomy-card) */
.gd-taxonomy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    margin-bottom: 8px;
}

.gd-taxonomy-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    padding: 20px;
    text-decoration: none !important;
    color: var(--gd-text-body);
    box-shadow: var(--gd-shadow-sm);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transition: border-color var(--gd-duration-fast) ease, box-shadow var(--gd-duration-fast) ease;
}

.gd-taxonomy-card:hover {
    border-color: var(--gd-border-primary);
    box-shadow: var(--gd-shadow-card-hover);
    text-decoration: none !important;
}

.gd-taxonomy-card.is-active {
    border-color: var(--gd-border-primary);
    background-color: var(--gd-bg-primary-tint);
}

.gd-tax-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.gd-tax-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gd-tax-card-title {
    font-size: var(--gd-font-size-16);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0;
    transition: color var(--gd-duration-fast) ease;
}

.gd-taxonomy-card:hover .gd-tax-card-title {
    color: var(--gd-text-link);
}

.gd-tax-card-desc {
    font-size: var(--gd-font-size-13);
    color: var(--gd-text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.gd-tax-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gd-border-default);
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-link);
}

/* Alphabetical Grouped Directory */
.gd-az-directory {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gd-az-group {
    scroll-margin-top: 24px;
}

.gd-az-group.is-hidden {
    display: none;
}

.gd-az-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gd-border-default);
    margin-bottom: 10px;
}

.gd-az-group-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--gd-bg-primary-tint);
    color: var(--gd-text-link);
    border-radius: var(--gd-radius-sm);
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-extrabold);
    border: 1px solid var(--gd-border-avatar);
}

.gd-az-group-count {
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-medium);
    color: var(--gd-text-muted);
}

ul.company-taxonomy-list.gd-az-group-list {
    margin-top: 0;
}

ul.company-taxonomy-list.gd-az-group-list li.is-hidden {
    display: none;
}

/* Directory Empty Search State */
.gd-dir-empty-state {
    display: none;
    text-align: center;
    padding: 36px 20px;
    background-color: var(--gd-bg-subtle);
    border: 1px dashed var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    margin: 16px 0;
}

.gd-dir-empty-state.is-active {
    display: block;
}

.gd-dir-empty-state .gd-empty-title {
    font-size: var(--gd-font-size-16);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0 0 6px 0;
}

.gd-dir-empty-state .gd-empty-desc {
    font-size: var(--gd-font-size-14);
    color: var(--gd-text-muted);
    margin: 0 0 16px 0;
}

.gd-dir-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    font-size: var(--gd-font-size-13);
    font-weight: var(--gd-weight-semibold);
    border-radius: var(--gd-radius-md);
    background-color: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    color: var(--gd-text-secondary);
    cursor: pointer;
    transition: background-color var(--gd-duration-fast) ease, border-color var(--gd-duration-fast) ease;
}

.gd-dir-reset-btn:hover {
    background-color: var(--gd-bg-subtle);
    border-color: var(--gd-border-hover);
    color: var(--gd-text-body);
}

/* 6.4 DIRECTORY JOB EMBEDS & EDITORIAL GUIDE */

.gd-directory-jobs-block {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--gd-border-default);
}

.gd-editorial-guide {
    margin-top: 32px;
    padding: 24px;
    background-color: var(--gd-bg-surface);
    border: 1px solid var(--gd-border-default);
    border-radius: var(--gd-radius-md);
    box-shadow: var(--gd-shadow-sm);
}

.gd-editorial-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gd-border-default);
}

.gd-editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-secondary);
    background-color: var(--gd-bg-muted);
    padding: 4px 10px;
    border-radius: var(--gd-radius-pill-sm);
    border: 1px solid var(--gd-border-default);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd-editorial-badge svg {
    color: var(--gd-text-link);
}

.gd-directory-jobs {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--gd-border-default);
}

.gd-directory-jobs-title {
    font-size: var(--gd-font-size-20);
    font-weight: var(--gd-weight-bold);
    color: var(--gd-text-heading);
    margin: 0 0 16px 0;
    letter-spacing: -0.015em;
}

@media (max-width: 767px) {

    /* 1. Directory Layout & Hero Card */
    .gd-directory-container {
        gap: 14px;
    }

    .gd-directory-hero {
        padding: 16px 14px;
        margin-bottom: 16px;
    }

    .gd-directory-hero .gd-archive-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 0;
    }

    .gd-directory-hero .archive-title {
        font-size: var(--gd-font-size-20);
        line-height: 1.25;
    }

    .gd-directory-hero .gd-dir-stat-badges {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .gd-directory-hero .gd-archive-badge,
    .gd-directory-hero .gd-badge-count-pill {
        font-size: var(--gd-font-size-12);
        padding: 3px 8px;
    }

    /* 2. Top Hiring & Showcase Mobile Horizontal Swipe Strip */
    .gd-featured-companies-bar,
    .gd-featured-showcase-bar {
        padding: 12px 14px;
    }

    .gd-featured-bar-title {
        font-size: var(--gd-font-size-12);
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 6px 8px;
    }

    .gd-featured-companies-list,
    .gd-featured-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .gd-featured-companies-list::-webkit-scrollbar,
    .gd-featured-list::-webkit-scrollbar {
        display: none;
    }

    .gd-featured-company-pill,
    .gd-featured-pill {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 6px 10px;
        font-size: var(--gd-font-size-12);
        gap: 6px;
    }

    .gd-featured-company-pill .gd-avatar-mini,
    .gd-featured-pill .gd-avatar-mini {
        width: 20px;
        height: 20px;
        font-size: var(--gd-font-size-11);
    }

    .gd-featured-company-pill .gd-badge-count,
    .gd-featured-pill .gd-badge-count {
        font-size: var(--gd-font-size-11);
        padding: 2px 6px;
    }

    /* Taxonomy Cards Mobile */
    .gd-taxonomy-cards-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gd-taxonomy-card {
        padding: 16px 14px;
    }

    /* 3. Search Filter Bar & iOS Input Polish */
    .gd-dir-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0;
    }

    .gd-dir-search-wrap {
        width: 100%;
    }

    .gd-dir-search-input {
        font-size: var(--gd-font-size-16) !important;
        padding: 10px 16px 10px 40px !important;
        min-height: 44px;
    }

    .gd-dir-count-pill {
        align-self: flex-start;
        font-size: var(--gd-font-size-12);
        padding: 4px 10px;
        border-radius: var(--gd-radius-pill-sm);
    }

    /* 4. Alphabetical A-Z Jump Ribbon Touch Targets */
    .gd-az-jump-bar {
        padding: 6px 8px;
        gap: 4px;
        scroll-snap-type: x proximity;
        scroll-padding: 0 8px;
        margin-bottom: 4px;
    }

    .gd-az-letter {
        flex-shrink: 0;
        min-width: 32px;
        height: 32px;
        font-size: var(--gd-font-size-12);
    }

    /* 5. Grouped Directory Alphabetical List */
    .gd-az-directory {
        gap: 16px;
    }

    .gd-az-group {
        scroll-margin-top: 16px;
    }

    .gd-az-group-header {
        gap: 8px;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

    .gd-az-group-letter {
        width: 24px;
        height: 24px;
        font-size: var(--gd-font-size-12);
    }

    .gd-az-group-count {
        font-size: var(--gd-font-size-11);
    }

    ul.company-taxonomy-list.gd-az-group-list {
        gap: 8px;
        margin-top: 0;
    }

    ul.company-taxonomy-list.gd-az-group-list li {
        max-width: 100%;
    }

    ul.company-taxonomy-list.gd-az-group-list li a {
        padding: 6px 10px !important;
        font-size: var(--gd-font-size-13) !important;
        gap: 6px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .gd-company-name-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 140px);
    }

    /* 6. Directory Empty State */
    .gd-dir-empty-state {
        padding: 28px 16px;
    }

    .gd-dir-reset-btn {
        width: 100%;
        max-width: 280px;
        min-height: 44px;
    }

    /* 7. Directory Editorial Guide & Jobs Embed */
    .gd-editorial-guide {
        padding: 16px 14px;
        margin-top: 24px;
    }

    .gd-directory-jobs-block {
        margin-top: 24px;
        padding-top: 20px;
    }

    .gd-directory-jobs-title {
        font-size: var(--gd-font-size-18);
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .gd-directory-hero {
        padding: 14px 12px;
    }

    .gd-featured-companies-bar,
    .gd-featured-showcase-bar {
        padding: 10px 12px;
    }

    .gd-featured-company-pill,
    .gd-featured-pill {
        padding: 5px 9px;
        font-size: var(--gd-font-size-11);
        gap: 5px;
    }

    .gd-az-letter {
        min-width: 30px;
        height: 30px;
    }

    ul.company-taxonomy-list.gd-az-group-list li a {
        padding: 5px 9px !important;
        font-size: var(--gd-font-size-12) !important;
    }

    .gd-company-name-text {
        max-width: calc(100vw - 110px);
    }
}

/* ==========================================================================
   7. QUICK DETAILS LIST (.quick-details-list)
   ========================================================================== */

.quick-details-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .quick-details-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .qd-item-full,
    .gd-qd-item-full {
        grid-column: 1 / -1;
    }
}

.qd-item {
    background: var(--gd-bg-surface);
    padding: 14px 16px;
    border-radius: var(--gd-radius-sm);
    border: 1px solid var(--gd-border-default);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--gd-duration-fast) var(--gd-ease-smooth), box-shadow var(--gd-duration-fast) var(--gd-ease-smooth);
}

.qd-item:hover {
    border-color: var(--gd-border-hover-strong);
}

.qd-label {
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-semibold);
    color: var(--gd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qd-value {
    font-size: var(--gd-font-size-15);
    color: var(--gd-text-heading);
    font-weight: var(--gd-weight-semibold);
    word-break: break-word;
    line-height: 1.4;
}

/* Responsive device visibility for Quick Job Details */
@media (max-width: 640px) {

    .gd-qjd-hide-mobile,
    .quick-details-list .gd-qjd-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {

    .gd-qjd-hide-desktop,
    .quick-details-list .gd-qjd-hide-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   8. SEMANTIC REPLACEMENTS FOR INLINE STYLES (Phase 2B)
   ========================================================================== */

.home-section.gd-home-section-browse {
    background: var(--gd-bg-subtle);
    padding: 40px;
    border-radius: var(--gd-radius-md);
    margin-bottom: 60px;
}

.home-section-header.gd-home-header-borderless {
    border-bottom: none;
    margin-bottom: 25px;
}

.gd-section-subtitle {
    color: var(--gd-text-secondary);
    font-size: var(--gd-font-size-14);
    line-height: 1.5;
    margin: 6px 0 0 0;
}

.gd-faq-answer {
    margin: 0;
}

.gd-404-search-box {
    max-width: 400px;
    margin: 0 auto;
}

.gd-404-search-box input[type="search"],
.gd-404-search-box .search-field {
    border-radius: var(--gd-radius-md) !important;
}

.gd-404-search-box input[type="submit"],
.gd-404-search-box .search-submit {
    border-radius: var(--gd-radius-md);
}

.gd-404-form-wrap {
    margin-top: 20px;
}

.related-jobs.gd-related-jobs-wrap {
    margin-bottom: 40px;
}

.gd-related-term-link {
    color: var(--gd-text-link);
    text-decoration: none;
}

.tech-stack-tags.gd-tags-mt-0 {
    margin-top: 0;
}

@media (max-width: 640px) {
    .job-title-main {
        font-size: var(--gd-font-size-22);
        margin-bottom: 18px;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .home-hero-actions .home-btn {
        text-align: center;
        width: 100%;
        min-height: 46px;
    }

    .featured-category-card {
        padding: 24px 20px;
    }

    .featured-category-title {
        font-size: var(--gd-font-size-22);
        margin-bottom: 10px;
    }

    .featured-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .featured-category-desc {
        font-size: var(--gd-font-size-14);
        margin-bottom: 20px;
    }

    .home-section.gd-home-section-browse {
        padding: 24px 16px;
        margin-bottom: 35px;
        border-radius: var(--gd-radius-md);
    }

    .pro-tip-box,
    .share-box-bottom,
    .important-info-box {
        padding: 18px 16px;
        margin: 24px 0;
    }
}

@media (max-width: 480px) {

    /* Homepage Hero */
    .home-hero {
        padding: 32px 14px 28px 14px;
    }

    .home-hero-title {
        font-size: var(--gd-font-size-26);
        line-height: 1.25;
    }

    .home-hero-subtitle {
        font-size: var(--gd-font-size-15);
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Homepage Discovery Search */
    .home-discovery-card {
        padding: 18px 14px 16px 14px;
    }

    .home-discovery-title {
        font-size: var(--gd-font-size-18);
        margin-bottom: 12px;
    }

    .home-discovery-input {
        min-height: 48px;
        padding: 10px 14px;
    }

    .home-discovery-btn {
        min-height: 46px;
        padding: 12px 18px;
        font-size: var(--gd-font-size-15);
    }

    .home-filter-tag {
        padding: 5px 12px;
        font-size: var(--gd-font-size-13);
    }

    /* Homepage Grids Spacing */
    .home-jobs-grid,
    .home-posts-grid,
    .home-faq-container {
        gap: 12px;
    }

    .featured-category-card {
        padding: 20px 16px;
        border-radius: var(--gd-radius-md);
    }

    .featured-category-title {
        font-size: var(--gd-font-size-20);
        margin-bottom: 8px;
    }

    .home-section.gd-home-section-browse {
        padding: 18px 12px;
        margin-bottom: 28px;
    }

    /* Single Job & Single Post Typography & Layout */
    .job-title-main {
        font-size: var(--gd-font-size-20);
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .job-section h2 {
        font-size: var(--gd-font-size-18);
        margin-bottom: 12px;
    }



    .info-card-title {
        font-size: var(--gd-font-size-18);
    }

    .view-all-link {
        font-size: var(--gd-font-size-13);
    }

    .quick-details-list {
        gap: 10px;
        margin-top: 12px;
    }

    .qd-item {
        padding: 10px 12px;
    }

    .qd-label {
        font-size: var(--gd-font-size-11);
    }

    .qd-value {
        font-size: var(--gd-font-size-14);
    }

    .pro-tip-box,
    .share-box-bottom,
    .important-info-box {
        padding: 14px 14px;
        margin: 18px 0;
    }

    .action-buttons-group {
        gap: 12px;
        margin-bottom: 20px;
    }

    .action-buttons-group .btn-primary {
        padding: 13px 18px;
        font-size: var(--gd-font-size-15);
        min-height: 46px;
    }

    .social-footer-link {
        font-size: var(--gd-font-size-13);
        line-height: 1.4;
        display: inline-block;
        padding: 4px 0;
    }

    /* Post Card Mobile Polish */
    .gigsdock-post-card {
        margin-bottom: 12px;
    }

    .post-card-title {
        font-size: var(--gd-font-size-16);
        margin-bottom: 6px;
    }

    .post-card-excerpt {
        font-size: var(--gd-font-size-13);
        margin-top: 8px;
        padding-top: 8px;
    }

    /* Archive Headers */
    .archive-header-card {
        margin-bottom: 14px;
        padding: 20px 18px;
    }

    .gd-archive-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .archive-title {
        font-size: var(--gd-font-size-20);
    }

    .archive-description {
        font-size: var(--gd-font-size-14);
        margin-top: 6px;
    }

    /* Job Empty State Mobile */
    .gd-job-empty-state {
        padding: 36px 18px;
    }

    .gd-empty-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .gd-empty-actions .btn-primary,
    .gd-empty-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .home-directory-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-directory-card {
        padding: 13px 16px;
    }
}

/* ==========================================================================
   JOB CATALOG & ARCHIVE LAYOUT MODIFIERS (/job/)
   ========================================================================== */

/* Container Width Options for Full-Width Mode */
.gigsdock-job-container.gd-max-width-narrow {
    max-width: 860px;
}

.gigsdock-job-container.gd-max-width-default {
    max-width: 1000px;
}

.gigsdock-job-container.gd-max-width-wide {
    max-width: 1200px;
}

.gigsdock-job-container.gd-max-width-full {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Full-Width and Sidebar Alignment Modifiers */
@media (min-width: 992px) {
    .job-layout.gd-job-layout-fullwidth {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }

    .job-layout.gd-sidebar-left {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    }

    .job-layout.gd-sidebar-left .job-sidebar {
        order: -1;
    }
}

/* ==========================================================================
   Job Feed Grid Layouts (1-Col, 2-Col, 3-Col & Responsiveness)
   ========================================================================== */

/* 1-Column Feed (Default) */
.jobs-list.gd-jobs-grid-1col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 2-Column Desktop Grid for Job Feed */
@media (min-width: 768px) {
    .jobs-list.gd-jobs-grid-2col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* 3-Column Desktop Grid for Job Feed */
@media (min-width: 768px) {
    .jobs-list.gd-jobs-grid-3col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1100px) {
    .jobs-list.gd-jobs-grid-3col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .jobs-list.gd-jobs-grid-3col .gd-job-card {
        padding: 18px 20px;
    }

    .jobs-list.gd-jobs-grid-3col .gd-job-card-main {
        gap: 12px;
        margin-bottom: 12px;
    }

    .jobs-list.gd-jobs-grid-3col .job-card-title {
        font-size: var(--gd-font-size-16);
        line-height: 1.35;
    }

    .jobs-list.gd-jobs-grid-3col .gd-job-avatar {
        width: 40px;
        height: 40px;
        font-size: var(--gd-font-size-18);
    }
}

/* If sidebar is active alongside 3 columns, maintain 2 cols on standard desktop, expand to 3 cols on extra-wide screens */
@media (min-width: 992px) and (max-width: 1279px) {
    .job-layout:not(.gd-job-layout-fullwidth) .jobs-list.gd-jobs-grid-3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .job-layout:not(.gd-job-layout-fullwidth) .jobs-list.gd-jobs-grid-3col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Equal Height & Chip Alignment for Multi-Column Cards */
.jobs-list.gd-jobs-grid-2col .gd-job-card,
.jobs-list.gd-jobs-grid-3col .gd-job-card {
    height: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

.jobs-list.gd-jobs-grid-2col .gd-job-chips,
.jobs-list.gd-jobs-grid-3col .gd-job-chips {
    margin-top: auto;
}

/* Mobile Responsiveness: Multi-column layouts collapse to single column */
@media (max-width: 767px) {

    .jobs-list.gd-jobs-grid-2col,
    .jobs-list.gd-jobs-grid-3col {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}

/* Job Catalog Search Container (/job/ - Borderless & Zero Padding) */
.gd-job-search-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .gd-job-search-card {
        padding: 0;
        margin-bottom: 18px;
    }
}

/* Job Archive Updates Callout Below Pagination */
.gd-job-archive-updates-wrap {
    margin-top: 32px;
}

.gd-job-archive-updates-wrap .updates-card {
    margin: 0;
}

/* ==========================================================================
   TOOLS HUB CATALOG LAYOUT MODIFIERS (Matches /job/ Archive UI)
   ========================================================================== */

.gd-tools-hub-hero {
    margin-bottom: 20px;
}

.gd-tools-hub-listing {
    width: 100%;
    min-width: 0;
}

.gd-tools-hub-listing .gd-tool-hub {
    margin-top: 0;
}

/* Hero card already presents the live count & browser-based trust badges (matches /job/) */
.gd-tools-hub-listing .gd-tool-hub-meta-bar {
    display: none;
}

/* Multi-Column Grid Modifiers for Tools Hub Feed (2-Col & 3-Col) */
@media (min-width: 768px) {
    .gd-tools-hub-listing.gd-tools-grid-2col .gd-tool-hub-grid,
    .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .gd-tools-hub-listing.gd-tools-grid-2col .gd-tool-hub-card,
    .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-card {
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        height: 100%;
    }

    .gd-tools-hub-listing.gd-tools-grid-2col .gd-tool-hub-card-footer,
    .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-card-footer {
        margin-top: auto;
    }

    .gd-tools-hub-listing.gd-tools-grid-2col .gd-tool-hub-cta,
    .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-cta {
        width: 100%;
    }
}

@media (min-width: 1100px) {
    .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .job-layout:not(.gd-job-layout-fullwidth) .gd-tools-hub-listing.gd-tools-grid-3col .gd-tool-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gd-tools-child-workspace {
    width: 100%;
    min-width: 0;
}

.gd-tools-child-workspace .gd-tool-shell {
    margin-top: 12px;
}

/* Suppress duplicate standalone plugin breadcrumb when theme renders .gd-job-crumbs on child tool pages */
.gd-tools-child-page .gd-tool-breadcrumbs {
    display: none;
}

/* ==========================================================================
   SINGLE POST COLLAPSIBLE SIDEBAR (.gd-sidebar-toggle-btn)
   Desktop only: Only active on screens >= 992px where sidebar is side-by-side.
   On mobile and tablet (< 992px) where sidebar wraps to the bottom, the button
   and collapse behavior are disabled.
   ========================================================================== */

/* Collapsible Sidebar Modifier on .job-layout (Desktop only) */
@media (min-width: 992px) {
    .job-layout.gd-sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100%;
    }

    .job-layout.gd-sidebar-collapsed .job-sidebar {
        display: none !important;
    }
}

/* Floating Toggle Button: Hidden by default on mobile / viewports where sidebar is at the bottom */
.gd-sidebar-toggle-btn {
    display: none;
}

/* Desktop Floating Action Button (>= 992px) */
@media (min-width: 992px) {
    .gd-sidebar-toggle-btn {
        position: fixed;
        right: 20px;
        bottom: 74px;
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gd-bg-surface);
        color: var(--gd-text-lead);
        border: 1px solid var(--gd-border-default);
        border-radius: var(--gd-radius-xs);
        box-shadow: var(--gd-shadow-sm);
        cursor: pointer;
        z-index: 998;
        box-sizing: border-box;
        transition: background var(--gd-duration-fast) var(--gd-ease-smooth),
            border-color var(--gd-duration-fast) var(--gd-ease-smooth),
            color var(--gd-duration-fast) var(--gd-ease-smooth),
            box-shadow var(--gd-duration-fast) var(--gd-ease-smooth);
    }

    .gd-sidebar-toggle-btn:hover {
        background: var(--gd-bg-muted);
        border-color: var(--gd-border-hover);
        color: var(--gd-text-link);
        box-shadow: var(--gd-shadow-btn-hover);
    }

    .gd-sidebar-toggle-btn:active {
        transform: translateY(0);
    }

    .gd-sidebar-toggle-btn:focus-visible {
        outline: 3px solid var(--gd-focus-ring-color);
        outline-offset: 2px;
    }

    /* Collapsed Active State */
    .gd-sidebar-toggle-btn.is-collapsed {
        background: var(--gd-bg-primary-tint);
        border-color: var(--gd-border-primary);
        color: var(--gd-text-link);
    }

    .gd-sidebar-toggle-btn.is-collapsed:hover {
        background: var(--gd-bg-primary);
        border-color: var(--gd-bg-primary-hover);
        color: var(--gd-text-on-primary);
    }
}

/* Icon Visibility Management */
.gd-sidebar-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.gd-sidebar-toggle-btn .gd-icon-expand {
    display: none;
}

.gd-sidebar-toggle-btn .gd-icon-collapse {
    display: block;
}

.gd-sidebar-toggle-btn.is-collapsed .gd-icon-expand {
    display: block;
}

.gd-sidebar-toggle-btn.is-collapsed .gd-icon-collapse {
    display: none;
}

/* Tooltip: Positioned to the left of the button */
.gd-sidebar-toggle-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gd-bg-dark);
    color: var(--gd-text-on-dark);
    font-size: var(--gd-font-size-12);
    font-weight: var(--gd-weight-medium);
    padding: 6px 12px;
    border-radius: var(--gd-radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gd-duration-fast) var(--gd-ease-smooth),
        visibility var(--gd-duration-fast) var(--gd-ease-smooth);
    box-shadow: var(--gd-shadow-card-hover);
}

.gd-sidebar-toggle-btn:hover .gd-sidebar-toggle-tooltip,
.gd-sidebar-toggle-btn:focus-visible .gd-sidebar-toggle-tooltip {
    opacity: 1;
    visibility: visible;
}