/* Embedded Job Board */
html,
body.embedded-job-board {
    height: 100%;
    margin: 0;
    padding: 0;
}

.embedded-job-board {
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f0f0f0;
    height: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.embedded-job-board *,
.embedded-job-board *::before,
.embedded-job-board *::after {
    box-sizing: border-box;
}

.embedded-job-board-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.embedded-job-board-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.embedded-job-board-logo {
    height: 3rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
    flex-shrink: 0;
}

.embedded-job-board-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.embedded-job-board-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #6b7280;
    background: #fff;
}

.embedded-job-board-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.375rem 0;
}

.embedded-job-board-empty-subtitle {
    font-size: 0.875rem;
    margin: 0;
}

.embedded-job-board-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
    overflow: hidden;
    background: #fff;
}

.embedded-job-board-list {
    flex: 0 0 34%;
    width: 34%;
    min-width: 200px;
    max-width: 320px;
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.embedded-job-list-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #ececec;
    background: transparent;
    color: #374151;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.embedded-job-list-item:hover {
    background: rgba(0, 119, 216, 0.08);
}

.embedded-job-list-item.is-active {
    background: rgba(0, 119, 216, 0.15);
    color: #0077d8;
    box-shadow: inset 3px 0 0 #0077d8;
}

.embedded-job-board-detail {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
    background: #fff;
}

.embedded-job-detail-panel {
    display: none;
    padding: 1.5rem 2.5rem 2rem;
}

.embedded-job-detail-panel.is-visible {
    display: block;
}

.embedded-job-detail-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem 0;
    text-align: center;
}

.embedded-job-description {
    color: #374151;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    word-wrap: break-word;
}

.embedded-job-description h1,
.embedded-job-description h2,
.embedded-job-description h3,
.embedded-job-description h4 {
    color: #111827;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
}

.embedded-job-description h1:first-child,
.embedded-job-description h2:first-child,
.embedded-job-description h3:first-child,
.embedded-job-description h4:first-child,
.embedded-job-description p:first-child {
    margin-top: 0;
}

.embedded-job-description p {
    margin: 0 0 0.875rem 0;
}

.embedded-job-description ul,
.embedded-job-description ol {
    margin: 0 0 0.875rem 0;
    padding-left: 1.25rem;
}

.embedded-job-description a {
    color: #0077d8;
    text-decoration: underline;
}

.embedded-job-description img {
    max-width: 100%;
    height: auto;
}

.embedded-job-detail-actions {
    padding: 1.25rem 0.5rem 0;
    border-top: 1px solid #ececec;
}

@media (max-width: 640px) {
    .embedded-job-board {
        padding: 0;
    }

    .embedded-job-board-shell {
        border-radius: 0;
    }

    .embedded-job-board-header {
        padding: 0.875rem 1rem;
    }

    .embedded-job-board-logo {
        height: 2.5rem;
    }

    .embedded-job-board-title {
        font-size: 1rem;
    }

    .embedded-job-board-layout {
        flex-direction: column;
    }

    .embedded-job-board-list {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .embedded-job-board-detail {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .embedded-job-detail-panel {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}
