/* Ensure fixed 76px header never clips the top of the hero section */
body {
    padding-top: 76px !important;
}

.hb-hero {
    margin-top: 12px;
}

/* ---------- page loader & board reveal ---------- */

.wr-page-loader {
    width: 100%;
    padding: 8px 0 40px;
}

.wr-loader-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--edge);
    color: var(--ink);
    font-size: 15px;
    box-shadow: var(--sh1);
}

.wr-loader-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid var(--primary-light);
    border-top-color: var(--primary);
    animation: wrSpin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes wrSpin {
    to {
        transform: rotate(360deg);
    }
}

.wr-loader-grid {
    display: flex;
    align-items: flex-start;
    gap: var(--rail-gap);
}

.wr-loader-rail {
    width: var(--rail-w);
    flex-shrink: 0;
    padding-right: 20px;
}

.wr-loader-main {
    flex: 1;
    min-width: 0;
}

/* Keep board hidden until JS finishes preparing all listings & filters */
#hbCols.wr-board-loading {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

#hbCols:not(.wr-board-loading) {
    opacity: 1;
    visibility: visible;
    height: auto;
    transition: opacity 0.22s ease;
}

/* ---------- loading skeletons ---------- */

.sk-card {
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--edge);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.sk-line,
.sk-tile {
    background: linear-gradient(90deg,
            var(--hair) 25%,
            rgba(var(--primary-rgb), .07) 37%,
            var(--hair) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
}

.sk-tile {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
}

.sk-line {
    height: 12px;
}

.sk-line.w-60 {
    width: 60%;
    margin-bottom: 12px;
}

.sk-line.w-35 {
    width: 35%;
    height: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ---------- paging ---------- */

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.btn-more {
    background: var(--glass);
    border: 1px solid var(--edge);
    color: var(--ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 28px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), var(--sh1);
}

.btn-more:hover {
    border-color: rgba(var(--primary-rgb), .3);
    color: var(--primary);
}

.btn-more:disabled {
    opacity: .6;
}

[data-bs-theme="dark"] .btn-more {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .05), var(--sh1);
}

.result-count {
    font-size: 12.5px;
    color: var(--soft);
    padding: 2px 2px 10px;
}

/* ---------- company logos in the tile slot ---------- */

.tile-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--hair);
    padding: 5px;
}

@media (max-width:560px) {
    .tile-img {
        width: 40px;
        height: 40px;
    }
}

/* ---------- feed descriptions ----------
   Markup here comes from the ATS and is sanitized server-side. Styling is
   defensive: assume arbitrary nesting and normalize it into the design. */

.job-prose {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink2);
    margin: 0;
    max-height: 22em;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.job-prose.expanded {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.job-prose > :first-child {
    margin-top: 0;
}

.job-prose > :last-child {
    margin-bottom: 0;
}

.job-prose p {
    margin: 0 0 12px;
}

.job-prose h1,
.job-prose h2,
.job-prose h3,
.job-prose h4,
.job-prose h5,
.job-prose h6 {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 22px 0 10px;
}

/* Feeds use heading levels inconsistently - flatten to two visual sizes. */
.job-prose h1,
.job-prose h2,
.job-prose h3 {
    font-size: 15.5px;
}

.job-prose h4,
.job-prose h5,
.job-prose h6 {
    font-size: 14.5px;
}

.job-prose strong,
.job-prose b {
    color: var(--ink);
    font-weight: 600;
}

.job-prose ul,
.job-prose ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.job-prose li {
    margin-bottom: 8px;
    padding-left: 2px;
}

.job-prose li::marker {
    color: var(--soft);
}

.job-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.job-prose blockquote {
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 2px solid var(--line2);
    color: var(--soft);
}

.job-prose pre,
.job-prose code {
    font-size: 13px;
    background: var(--hair);
    border-radius: 6px;
    padding: 2px 6px;
}

.job-prose pre {
    padding: 12px 14px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.job-prose hr {
    border: 0;
    border-top: 1px solid var(--hair);
    margin: 18px 0;
}

.job-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.job-prose th,
.job-prose td {
    border: 1px solid var(--hair);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.job-prose th {
    color: var(--ink);
    font-weight: 600;
}

/* Some feeds wrap every line in its own div - stop that reading as a wall. */
.job-prose div {
    margin-bottom: 4px;
}

.job-prose div:empty,
.job-prose p:empty {
    display: none;
}

.prose-toggle {
    background: none;
    border: 0;
    padding: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

/* ---------- apply links ---------- */

/* Apply is an <a>, not a <button>; keep it looking like the rest. */
a.btn-acc,
a.btn-applied {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.btn-applied:hover {
    color: var(--soft);
}

/* ---------- feed failure ---------- */

.feed-error {
    border-radius: 16px;
    border: 1px dashed rgba(var(--primary-rgb), .35);
    background: rgba(var(--primary-rgb), .04);
    padding: 28px;
    text-align: center;
}

/* ---------- header brand & layout helpers ---------- */

.hb-header .brand {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.hb-header .brand:hover {
    transform: scale(1.03);
}

.hb-header .brand:active {
    transform: scale(0.97);
}

.brand-mark {
    filter: drop-shadow(0 4px 6px rgba(var(--primary-rgb), 0.2));
    transition: filter 0.2s ease;
}

.hb-header .brand:hover .brand-mark {
    filter: drop-shadow(0 6px 8px rgba(var(--primary-rgb), 0.3));
}

.brand-name {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    letter-spacing: -0.06em;
    line-height: 1;
}

.brand-strong {
    font-weight: 800;
}

.brand-text-accent {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 1px;
}

.brand-dot {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 0;
    margin-left: 2px;
}

.hero-row {
    z-index: 2;
}

.hero-text-wrap {
    max-width: 700px;
}

.hero-h1 {
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: -0.04em;
}

.hero-sub {
    font-family: 'Public Sans', sans-serif;
}

#alertWrapper {
    max-width: 912px;
}

.min-w-0 {
    min-width: 0;
}

.seo-footer-nav {
    padding-bottom: 5rem !important;
}

.wr-modal-dialog {
    max-width: 580px;
}

/* ---------- website-themed opt-in cards & modal ---------- */

html.wr-is-subscribed .wr-optin-slot {
    display: none !important;
}

.wr-optin-card {
    background: var(--glass);
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 16px;
    color: var(--ink);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-bs-theme="dark"] .wr-optin-card {
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

#wrOptinModal .wr-optin-card {
    background: var(--bg);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--sh3);
}

.wr-optin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.wr-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(var(--primary-rgb), 0.6);
    animation: wrPulse 2s infinite;
}

@keyframes wrPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.wr-optin-headline {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.38rem);
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--ink);
}

.wr-optin-subtext {
    color: var(--soft);
    font-size: clamp(0.88rem, 2vw, 0.95rem);
    line-height: 1.5;
}

.wr-optin-input {
    background: var(--bg) !important;
    border: 1px solid var(--line2) !important;
    color: var(--ink) !important;
    border-radius: 10px !important;
    padding: 11px 15px !important;
    font-size: 14px !important;
    box-shadow: var(--sh1);
    transition: all 0.2s ease;
}

.wr-optin-input::placeholder {
    color: var(--soft) !important;
    opacity: 0.75;
}

.wr-optin-input:focus {
    background: var(--bg) !important;
    border-color: var(--primary) !important;
    color: var(--ink) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
    outline: none;
}

.wr-optin-btn {
    background: var(--primary) !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    padding: 11px 20px !important;
    box-shadow: var(--sh1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wr-optin-btn:hover {
    background: var(--primary-hover) !important;
    color: #ffffff !important;
}

.wr-direct-apply-btn {
    background: var(--bg) !important;
    border: 1px solid var(--line2) !important;
    color: var(--ink2) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    padding: 11px 18px !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wr-direct-apply-btn:hover {
    border-color: rgba(var(--primary-rgb), 0.35) !important;
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

.wr-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--hair);
    font-size: 12.5px;
    color: var(--soft);
}

.wr-trust-icon {
    color: var(--primary);
}

.wr-role-pill {
    background: var(--bg);
    border: 1px solid var(--line2);
    color: var(--ink2);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.wr-role-pill strong {
    color: var(--primary);
    font-weight: 600;
}

.wr-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg);
    border: 1px solid var(--line2);
    color: var(--soft);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.wr-modal-close:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary);
}

/* Soft blue backdrop for white transparent-PNG company logos */
.tile-img.tile-light-logo {
  background-color: #8fabdf; /* Adjust shade if you want lighter/darker blue */
  padding: 6px;
  object-fit: contain;
  box-sizing: border-box;
}

[data-bs-theme="dark"] .tile-img.tile-light-logo {
  background-color: rgba(107, 147, 245, 0.28);
}