/* Read-only information board: intentionally separate from the chat styles. */
.wrw-board-detail-contact {
    position: sticky;
    bottom: 0;
    padding: 12px 2px max(6px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(246, 250, 255, 0), #f6faff 30%);
    text-align: center;
    color: #52677e;
    font-size: 13px;
}
.wrw-board-detail-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    background: #0755a9;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.wrw-board-detail-contact a:focus-visible { outline: 3px solid #2b7de3; outline-offset: 2px; }

.information-board-menu-entry[hidden] { display: none !important; }
.information-board-menu-entry {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 8px);
    margin: 2px 4px;
    padding: 11px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.information-board-menu-entry:hover, .information-board-menu-entry:active { background: #edf5ff; }
.information-board-menu-entry:focus-visible { outline: 2px solid #2371cf; outline-offset: -2px; }
.information-board-menu-entry-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #0755a9;
    font-size: 20px;
}
.information-board-menu-entry strong, .information-board-menu-entry small { display: block; }
.information-board-menu-entry strong { font-size: 14px; }
.information-board-menu-entry small { margin-top: 2px; color: #52677e; font-size: 11px; }

.wrw-board {
    --wrw-board-bg: #f3f7fc;
    --wrw-board-ink: #10243f;
    --wrw-board-muted: #465b74;
    --wrw-board-blue: #0755a9;
    --wrw-board-edge: #dbe6f4;
    position: fixed;
    inset: 0;
    z-index: 10018;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    isolation: isolate;
    background: var(--wrw-board-bg);
    color: var(--wrw-board-ink);
    font-family: inherit;
    text-align: left;
}

.wrw-board button,
.wrw-board input {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Between the temporarily inert board and the existing detail sheet (10020). */
.wrw-board__detail-shield {
    position: fixed;
    inset: 0;
    z-index: 10019;
    touch-action: none;
}

.wrw-board button {
    cursor: pointer;
}

.wrw-board button:disabled {
    cursor: default;
}

.wrw-board button:focus-visible,
.wrw-board input:focus-visible {
    outline: 3px solid #2b7de3;
    outline-offset: 2px;
}

.wrw-board button[hidden] {
    display: none;
}

.wrw-board svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.wrw-board__frame {
    width: min(100%, 780px);
    margin: 0 auto;
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
}

.wrw-board__hero {
    position: relative;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    color: #fff;
    background: linear-gradient(113deg, #0459b7 0%, #0660bb 50%, #006e81 100%);
}

.wrw-board__hero::before,
.wrw-board__hero::after {
    position: absolute;
    right: -7%;
    border-radius: 50%;
    pointer-events: none;
    content: '';
}

.wrw-board__hero::before {
    top: -112px;
    width: max(260px, 43%);
    height: 198px;
    transform: rotate(-12deg);
    background: rgba(68, 221, 223, .12);
}

.wrw-board__hero::after {
    top: -129px;
    width: max(340px, 58%);
    height: 199px;
    transform: rotate(13deg);
    background: rgba(146, 228, 255, .09);
}

.wrw-board__hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 15px;
}

.wrw-board__brand h1 {
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: clamp(22px, 5.3vw, 32px);
    font-weight: 800;
    line-height: 1.24;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrw-board__brand p {
    margin: 3px 0 0;
    color: #e9f9ff;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .05em;
}

.wrw-board__back,
.wrw-board__refresh {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .33);
    border-radius: 13px;
    background: rgba(5, 43, 88, .21);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.wrw-board__back {
    width: 44px;
}

.wrw-board__refresh:disabled {
    opacity: .66;
}

.wrw-board__hero button:focus-visible {
    outline-color: #fff;
}

.wrw-board__scroll {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-anchor: none;
    -webkit-overflow-scrolling: touch;
}

.wrw-board__content {
    padding-top: 13px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}

.wrw-board__search {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0 10px 0 14px;
    border: 1px solid #cfdef1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 73, 122, .05);
    color: #47698f;
}

.wrw-board__search:focus-within {
    border-color: #78a7e5;
    box-shadow: 0 0 0 2px #e1edff;
}

.wrw-board .wrw-board__input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wrw-board-ink);
    /* Prevent focus zoom in the iOS/WeChat browser. */
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.wrw-board__input::placeholder {
    color: #566980;
}

.wrw-board__input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.wrw-board__clear {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-right: -6px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--wrw-board-muted);
}

.wrw-board__categories {
    position: sticky;
    top: 0;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 10px 3px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 3px;
    scrollbar-width: thin;
    scrollbar-color: #8ca9ce transparent;
    -webkit-overflow-scrolling: touch;
    background: var(--wrw-board-bg);
}

.wrw-board__categories[hidden] { display: none; }

.wrw-board__categories::-webkit-scrollbar { height: 4px; }
.wrw-board__categories::-webkit-scrollbar-thumb { border-radius: 999px; background: #8ca9ce; }

.wrw-board__category {
    display: flex;
    min-width: 76px;
    max-width: min(48vw, 164px);
    min-height: 58px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #e8f0fb;
    color: #163d68;
    font-size: clamp(12px, 3.15vw, 14px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.wrw-board__category span {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wrw-board__category svg {
    width: 19px;
    height: 19px;
}

.wrw-board__category[aria-current] {
    border-color: #0b57a8;
    background: #075aaf;
    color: #fff;
}

.wrw-board__category:disabled {
    opacity: .58;
}

.wrw-board__notice {
    min-height: 19px;
    margin: 0 0 9px;
    color: var(--wrw-board-muted);
    font-size: 12px;
    line-height: 1.5;
}

.wrw-board__section {
    margin: 0 0 18px;
    scroll-margin-top: 87px;
}

.wrw-board__section-head {
    display: flex;
    min-height: 50px;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 14px 14px 10px 10px;
    background: linear-gradient(105deg, #e1f0fd 0%, #c7e6ff 100%);
    color: #132950;
}

.wrw-board__section-head::before {
    width: 4px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #1477cf;
    content: '';
}

.wrw-board__section-head h2 {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.wrw-board__section-count {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .67);
    color: #0a4e99;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wrw-board__section:nth-child(even) .wrw-board__section-head {
    background: linear-gradient(104deg, #e1f7f4, #c6eeea);
    color: #12454c;
}

.wrw-board__section:nth-child(even) .wrw-board__section-head::before {
    background: #11867f;
}

.wrw-board__section:nth-child(even) .wrw-board__section-count {
    color: #135958;
}

.wrw-board__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.wrw-board__card {
    min-width: 0;
    padding: 13px 13px 10px;
    border: 1px solid var(--wrw-board-edge);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(34, 71, 113, .07);
}

.wrw-board__card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #101f38;
    font-size: clamp(18px, 4.65vw, 23px);
    font-weight: 800;
    line-height: 1.32;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wrw-board__summary {
    display: -webkit-box;
    max-height: 3.16em;
    margin: 5px 0 0;
    overflow: hidden;
    color: #2c4059;
    font-size: 15px;
    line-height: 1.58;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wrw-board__card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 44px;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    padding: 0 0 0 8px;
    border-radius: 10px;
    background: #eff6ff;
}

.wrw-board__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 8px;
    padding: 5px 0;
    color: var(--wrw-board-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wrw-board__salary {
    color: var(--wrw-board-blue);
    font-size: 13px;
    font-weight: 750;
}

.wrw-board__place {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 3px;
}

.wrw-board__place svg {
    width: 13px;
    height: 13px;
    color: #345b8c;
}

.wrw-board__time {
    white-space: nowrap;
}

.wrw-board__detail,
.wrw-board__retry {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--wrw-board-blue);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.wrw-board__detail svg {
    width: 14px;
    height: 14px;
}

.wrw-board__retry {
    gap: 6px;
    padding: 0 13px;
    border: 1px solid #c5d9f1;
    background: #fff;
}

.wrw-board__empty {
    margin: 6px 0 0;
    padding: 17px 13px;
    border: 1px dashed var(--wrw-board-edge);
    border-radius: 13px;
    background: #fff;
    color: var(--wrw-board-muted);
    font-size: 14px;
    line-height: 1.5;
}

.wrw-board__empty--section {
    padding: 11px 13px;
}

@media (min-width: 620px) {
    .wrw-board__frame {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wrw-board__card {
        padding: 15px 16px 12px;
    }

    .wrw-board__meta {
        gap: 4px 11px;
        font-size: 13px;
    }

    .wrw-board__summary {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .wrw-board__frame {
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        padding-left: max(10px, env(safe-area-inset-left, 0px));
    }

    .wrw-board__categories {
        gap: 4px;
    }

    .wrw-board__hero-inner {
        gap: 8px;
    }
}
