/* Single job presentation. Load after card-job-detail.min.css. */
.astro-main-single {
    --detail-navy: #0c2d5a;
    --detail-blue: #185fa5;
    --detail-blue-soft: #eaf2fc;
    --detail-text: #20324a;
    --detail-muted: #52647a;
    --detail-border: #dce5ef;
    background: #f3f6fa;
    color: var(--detail-text);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.astro-main-single .page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 24px 40px;
}

.astro-main-single .hcard {
    background: linear-gradient(125deg, #0c2d5a, #123c6b);
    border: 1px solid #214a78;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(12, 45, 90, 0.1);
}

.astro-main-single .hcard::before {
    background: rgba(255, 255, 255, 0.05);
    width: 180px;
    height: 180px;
    right: -60px;
    top: -70px;
}

.astro-main-single .hcard__row1 {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    gap: 18px;
    height: auto;
    min-height: 112px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.astro-main-single .hcard__logo {
    width: 72px;
    height: 72px;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
}

.astro-main-single .hcard__logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 6px;
    object-fit: contain;
}

.astro-main-single .hcard__logo-initials {
    color: var(--detail-navy);
    font-size: 20px;
    line-height: 1;
}

.astro-main-single .hcard__entity {
    min-width: 0;
}

.astro-main-single .hcard__entity-name {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.astro-main-single .hcard__entity-name,
.astro-main-single .hcard__entity-loc {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.astro-main-single .hcard__entity-loc {
    align-items: flex-start;
    gap: 6px;
    margin-top: 5px;
    color: #d7e5f7;
    font-size: 14px;
    line-height: 1.55;
}

.astro-main-single .hcard__entity-loc svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 3px;
}

.astro-main-single .hcard__entity-loc svg [stroke] {
    stroke: currentColor;
}

.astro-main-single .hcard .field-na {
    color: #d7e5f7;
}

.astro-main-single .fav-btn,
.astro-main-single .fav-btn:hover,
.astro-main-single .fav-btn:active,
.astro-main-single .fav-btn.saved {
    position: static;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    transform: none;
    transition: none;
    animation: none;
}

.astro-main-single .fav-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.astro-main-single .fav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #d7e5f7;
}

.astro-main-single .fav-btn.saved {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.astro-main-single .hcard__row2 {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.astro-main-single .hcard__title {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.astro-main-single .hcard__code {
    max-width: 100%;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #e2ecfa;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.astro-main-single .hcard__row3 {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
}

.astro-main-single .hcard__salary {
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    margin-right: auto;
}

.astro-main-single .hcard__salary-amount {
    font-size: 28px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.astro-main-single .hcard__salary-symbol,
.astro-main-single .hcard__salary-period,
.astro-main-single .hcard__salary-na,
.astro-main-single .hcard__cierre-label,
.astro-main-single .hcard__cierre-days {
    color: #d7e5f7;
    font-size: 13px;
}

.astro-main-single .hcard__cierre {
    flex-shrink: 1;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px;
    border-width: 1px;
    border-radius: 8px;
}

.astro-main-single .hcard__cierre svg {
    flex-shrink: 0;
}

.astro-main-single .hcard__cierre-date {
    font-size: 13px;
}

.astro-main-single .hcard__chip {
    padding: 6px 11px;
    font-size: 12px;
    line-height: 1.5;
}

.astro-main-single .tabs-bar {
    gap: 4px;
    margin-bottom: 16px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
}

.astro-main-single .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--detail-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: none;
}

.astro-main-single .tab-btn:hover {
    background: var(--detail-blue-soft);
    color: var(--detail-navy);
}

.astro-main-single .tab-btn.active {
    background: var(--detail-navy);
    color: #fff;
}

.astro-main-single .fav-btn:focus-visible,
.astro-main-single .doc-link:focus-visible,
.astro-main-single .postbtn:focus-visible {
    outline: 3px solid #78b7f2;
    outline-offset: 3px;
}

.astro-main-single .tab-btn:focus-visible {
    outline: 3px solid #78b7f2;
    outline-offset: -3px;
}

.astro-main-single .card {
    margin-bottom: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(12, 45, 90, 0.025);
}

.astro-main-single .sec-lbl {
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--detail-border);
    color: #38516e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.astro-main-single .sec-lbl svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--detail-blue);
}

.astro-main-single .irow {
    display: grid;
    grid-template-columns: minmax(155px, 0.3fr) minmax(0, 1fr);
    gap: 8px 24px;
    padding: 12px 0;
    border-bottom: 1px solid #e9eef4;
    font-size: 15px;
    line-height: 1.65;
}

.astro-main-single .irow:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.astro-main-single .ilbl {
    min-width: 0;
    color: var(--detail-muted);
    font-size: 14px;
    font-weight: 500;
}

.astro-main-single .ival {
    min-width: 0;
    color: var(--detail-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.astro-main-single .field-na,
.astro-main-single .field-na-block {
    color: var(--detail-muted);
}

.astro-main-single .field-na-block {
    padding-top: 5px;
    font-size: 14px;
    line-height: 1.65;
}

.astro-main-single .fn-list li {
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e9eef4;
    color: var(--detail-text);
    font-size: 15px;
    line-height: 1.65;
}

.astro-main-single .fn-list li:last-child {
    border-bottom: 0;
}

.astro-main-single .fn-list li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.astro-main-single .fn-dot {
    margin-top: 10px;
    background: var(--detail-blue);
}

.astro-main-single .tag-group {
    gap: 8px;
    padding-top: 7px;
}

.astro-main-single .tag {
    max-width: 100%;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.astro-main-single .links-list {
    gap: 8px;
    padding-top: 6px;
}

.astro-main-single .doc-link,
.astro-main-single .doc-link:last-child {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
    padding: 11px 12px;
    background: #f8fbff;
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    text-decoration: none;
    transition: none;
}

.astro-main-single .doc-link:hover {
    background: #eef5fd;
    border-color: #a7c6e5;
}

.astro-main-single .doc-link--disabled,
.astro-main-single .doc-link--disabled:hover {
    background: #f5f7fa;
    border-color: var(--detail-border);
    border-style: dashed;
    opacity: 1;
}

.astro-main-single .doc-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.astro-main-single .doc-link-body {
    min-width: 0;
}

.astro-main-single .doc-link-name {
    color: var(--detail-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.astro-main-single .doc-link-meta {
    margin-top: 3px;
    color: var(--detail-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.astro-main-single .doc-link-action {
    max-width: 140px;
    padding: 4px 10px;
    background: var(--detail-blue-soft);
    color: #164d83;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.astro-main-single .bottom-actions {
    gap: 16px;
    margin-top: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
}

.astro-main-single .source-note {
    flex: 1 1 350px;
    min-width: 0;
    color: var(--detail-muted);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.astro-main-single .postbtn {
    flex: 0 1 auto;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    background: var(--detail-navy);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    transition: none;
}

.astro-main-single .postbtn svg {
    flex-shrink: 0;
}

.astro-main-single .postbtn:hover {
    background: var(--detail-blue);
    color: #fff;
}

.astro-main-single .postbtn--disabled,
.astro-main-single .postbtn--disabled:hover {
    background: #596b80;
    color: #fff;
    opacity: 1;
}

@media (max-width: 640px) {
    .astro-main-single {
        font-size: 14px;
    }

    .astro-main-single .page {
        padding: 6px 12px 28px;
    }

    .astro-main-single .hcard {
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .astro-main-single .hcard__row1 {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding: 18px 18px 16px;
    }

    .astro-main-single .hcard__logo {
        width: 88px;
        height: 88px;
        margin-inline: auto;
        border-radius: 14px;
    }

    .astro-main-single .hcard__logo img {
        padding: 6px;
    }

    .astro-main-single .hcard__entity {
        width: 100%;
        text-align: center;
    }

    .astro-main-single .hcard__entity-name {
        font-size: 16px;
    }

    .astro-main-single .hcard__entity-loc {
        display: block;
        font-size: 13px;
    }

    .astro-main-single .hcard__entity-loc svg {
        display: inline-block;
        width: 13px;
        height: 13px;
        margin: 0 3px 0 0;
        vertical-align: -2px;
    }

    .astro-main-single .fav-btn,
    .astro-main-single .fav-btn:hover,
    .astro-main-single .fav-btn:active,
    .astro-main-single .fav-btn.saved {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .astro-main-single .hcard__row2 {
        padding: 16px 18px;
    }

    .astro-main-single .hcard__title {
        font-size: 20px;
        line-height: 1.45;
    }

    .astro-main-single .hcard__code {
        margin-top: 8px;
    }

    .astro-main-single .hcard__row3 {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 14px 18px;
    }

    .astro-main-single .hcard__salary {
        flex-basis: 100%;
        margin-right: 0;
    }

    .astro-main-single .hcard__salary-amount {
        font-size: 26px;
    }

    .astro-main-single .hcard__cierre-label,
    .astro-main-single .hcard__cierre-days {
        font-size: 12px;
    }

    .astro-main-single .tabs-bar {
        margin-bottom: 14px;
        padding: 4px;
        gap: 3px;
    }

    .astro-main-single .tab-btn {
        padding: 10px 6px;
        font-size: 13px;
    }

    .astro-main-single .card {
        margin-bottom: 14px;
        padding: 18px 16px;
    }

    .astro-main-single .sec-lbl {
        padding-bottom: 11px;
        font-size: 12px;
    }

    .astro-main-single .irow {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 11px 0;
        font-size: 14px;
    }

    .astro-main-single .ilbl {
        min-width: 0;
        font-size: 13px;
        font-weight: 600;
    }

    .astro-main-single .fn-list li {
        font-size: 14px;
    }

    .astro-main-single .doc-link,
    .astro-main-single .doc-link:last-child {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 10px;
    }

    .astro-main-single .doc-link-icon {
        width: 32px;
        height: 32px;
    }

    .astro-main-single .doc-link-action {
        max-width: 88px;
        padding: 4px 8px;
    }

    .astro-main-single .bottom-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .astro-main-single .source-note {
        flex-basis: auto;
    }

    .astro-main-single .postbtn {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
    }
}

@media (max-width: 380px) {
    .astro-main-single .doc-link,
    .astro-main-single .doc-link:last-child {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 9px;
        row-gap: 6px;
    }

    .astro-main-single .doc-link-action {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
    }
}
