@charset "UTF-8";

/* Shared sizing rules keep new controls and cards inside their parent layout. */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

.app-shell-body :where(main, section, article, header, footer, nav, form, fieldset, div) {
    min-width: 0;
}

.app-shell-body :where(p, li, dd, td, th, label) {
    overflow-wrap: anywhere;
}

.app-page-shell {
    min-width: 0;
}

body.career-page :where(
    .career-home-shell,
    .career-detail-shell,
    .road-shell,
    .major-shell,
    .resource-shell,
    .article-shell,
    .weekly-shell
) {
    padding-top: 0;
}

/* Keep career subpage navigation clear of the sticky header and close to its title. */
body.career-page :where(.career-detail-shell, .program-shell) {
    padding-top: 16px;
}

body.career-page .career-detail-shell > .app-back-link,
body.career-page .program-shell > .app-back-link,
body.career-page .road-head > .app-back-link {
    margin-bottom: 0;
}

body.career-page .career-detail-shell > .app-back-link + .career-detail-card {
    margin-top: 0;
    padding-top: 10px;
}

body.career-page .program-shell > .app-back-link + .program-head {
    padding-top: 8px;
}

body.career-page .program-shell > .app-back-link + .program-head h1 {
    margin-top: 0;
}

body.career-page .road-head > .app-back-link + h1 {
    margin-top: 8px;
}

.auth-shell,
.complete-shell,
.mypage-shell,
.enter-shell,
body:not(.job-chat-room-page) .chat-shell {
    padding-right: 0;
    padding-left: 0;
}

/* Shared horizontally scrollable button row with a right-edge overflow cue. */
.horizontal-button-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
}

.horizontal-button-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-button-scroll-shell {
    position: relative;
    display: inline-block;
    min-width: 100%;
    max-width: none;
}

.horizontal-button-scroll-list {
    display: inline-flex;
    min-width: max-content;
    gap: 10px;
    padding: 4px 40px 4px 0;
    box-sizing: border-box;
}

.horizontal-button-scroll-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--app-border-control);
    border-radius: var(--app-radius-control);
    background: var(--app-surface-solid);
    color: var(--app-text-sub);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.horizontal-button-scroll-item:hover {
    border-color: var(--app-brand-border);
    background: #f8f9fa;
    color: var(--app-brand);
}

.horizontal-button-scroll-item.active,
.horizontal-button-scroll-item[aria-current="page"] {
    border-color: var(--app-brand-border);
    background: var(--app-brand-soft);
    color: var(--app-brand);
    font-weight: 600;
}

.horizontal-button-scroll-item .beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--app-brand-soft-strong);
    color: var(--app-brand);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.community-tabs {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2px;
}

.community-tabs .horizontal-button-scroll-list {
    gap: 8px;
}

.community-navigation {
    margin-bottom: 18px;
}

.job-category-scroll-container {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .community-tabs {
        width: calc(100% + (var(--page-horizontal-padding) * 2));
        max-width: none;
        margin-left: calc(-1 * var(--page-horizontal-padding));
        margin-right: calc(-1 * var(--page-horizontal-padding));
    }

    .community-tabs .horizontal-button-scroll-list {
        padding-left: var(--page-horizontal-padding);
    }

    .community-navigation {
        margin-bottom: 16px;
    }
}

.app-flash-messages {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.app-flash-message {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.app-flash-message.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.app-flash-message.warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.app-flash-message.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Shared navigation links stay text-only so back navigation never looks like a primary action. */
.app-shell-body .app-back-link {
    display: inline-block;
    width: fit-content;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--app-brand);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}

.app-shell-body .app-back-link:hover {
    background: transparent;
    color: var(--app-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-shell .app-back-link,
.enter-actions .app-back-link,
.chat-head .app-back-link,
.chat-panel .app-back-link {
    margin-bottom: 0;
}
