/* LegalSports Job Board — LTO Karriere-inspired */

/* ============ BOARD ============ */
.lsn-jobs-board { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.lsn-jobs-board.has-sidebar { grid-template-columns: 260px 1fr; }
@media (max-width: 860px) { .lsn-jobs-board.has-sidebar { grid-template-columns: 1fr; } }

/* Sidebar filters */
.lsn-jobs-board__rail {
    background: #fff;
    border: 1px solid #e3e3e7;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    align-self: start;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.lsn-jobs-filter-form__title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #707080;
}
.lsn-jobs-filter {
    border: 0;
    border-top: 1px solid #ececf0;
    padding: 0.75rem 0;
    margin: 0;
}
.lsn-jobs-filter:first-of-type { border-top: 0; }
.lsn-jobs-filter legend {
    font-weight: 600;
    color: #15182a;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.lsn-jobs-filter input[type=text] {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.lsn-jobs-filter__opts {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.lsn-jobs-filter__opts label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #15182a;
    padding: 0.2rem 0;
}
.lsn-jobs-filter__opts input[type=checkbox] { margin: 0; }
.lsn-jobs-filter__opts small { color: #888; font-size: 0.78rem; }
.lsn-jobs-filter-form__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.lsn-jobs-filter-form__actions button {
    background: #c1183b;
    color: #fff;
    border: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.lsn-jobs-filter-form__reset { color: #707080; font-size: 0.88rem; text-decoration: none; }
.lsn-jobs-filter-form__reset:hover { color: #c1183b; }

/* Header (count + sort) */
.lsn-jobs-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lsn-jobs-board__count { margin: 0; color: #555; font-size: 0.95rem; }
.lsn-jobs-board__count::before { content: ""; }
.lsn-jobs-board__sort { display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; color: #555; }
.lsn-jobs-board__sort a { color: #15182a; text-decoration: none; padding: 0.2rem 0.55rem; border-radius: 4px; }
.lsn-jobs-board__sort a.is-active { background: #15182a; color: #fff; }

/* Cards */
.lsn-jobs-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.lsn-jobs-card {
    position: relative;
    background: #fff;
    border: 1px solid #e3e3e7;
    border-radius: 8px;
    transition: box-shadow 0.18s ease;
}
.lsn-jobs-card:hover { box-shadow: 0 6px 18px rgba(15,18,30,0.08); }
.lsn-jobs-card.is-featured { border-color: #c1183b; }
.lsn-jobs-card__ad {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: #15182a;
    color: #fff;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}
.lsn-jobs-card__link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
}
.lsn-jobs-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: #fafafb;
    border: 1px solid #ececf0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lsn-jobs-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lsn-jobs-card__placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: #15182a;
}
.lsn-jobs-card__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: #15182a;
    line-height: 1.3;
}
.lsn-jobs-card__employer { margin: 0 0 0.25rem; color: #15182a; font-weight: 600; font-size: 0.95rem; }
.lsn-jobs-card__meta { margin: 0; color: #707080; font-size: 0.88rem; }
.lsn-jobs-card__date { margin: 0.4rem 0 0; color: #888; font-size: 0.82rem; }
.lsn-jobs-board__empty { padding: 2rem 0; color: #555; }

/* ============ VERTICAL STRIP (homepage / sidebar) ============ */
.lsn-jobs-vertical {
    background: #fff;
    border: 1px solid #e3e3e7;
    border-radius: 10px;
    overflow: hidden;
    max-width: 320px;
}
.lsn-jobs-vertical__banner {
    background: linear-gradient(135deg, #e72558 0%, #c1183b 100%);
    color: #fff;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    position: relative;
}
.lsn-jobs-vertical__brand {
    display: inline-block;
    background: #15182a;
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.lsn-jobs-vertical__brand em { font-style: normal; opacity: 0.8; }
.lsn-jobs-vertical__banner h3 {
    margin: 0.5rem 0 0.5rem;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.25;
}
.lsn-jobs-vertical__banner p { margin: 0 0 1rem; opacity: 0.95; font-size: 0.95rem; }
.lsn-jobs-vertical__btn {
    display: inline-block;
    background: #fff;
    color: #c1183b !important;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.lsn-jobs-vertical__btn:hover { background: #fafafb; }

.lsn-jobs-vertical__list { padding: 0; }
.lsn-jobs-vertical__list-head {
    background: #15182a;
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lsn-jobs-vertical__list-head em { font-style: normal; opacity: 0.8; }
.lsn-jobs-vertical__item {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px dashed #ececf0;
    text-decoration: none;
    color: inherit;
}
.lsn-jobs-vertical__item:hover { background: #fafafb; }
.lsn-jobs-vertical__logo {
    width: 40px;
    height: 40px;
    background: #fafafb;
    border: 1px solid #ececf0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.lsn-jobs-vertical__logo img { max-width: 100%; max-height: 100%; }
.lsn-jobs-vertical__letter { font-weight: 700; color: #15182a; }
.lsn-jobs-vertical__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: #15182a;
    font-weight: 700;
    line-height: 1.25;
}
.lsn-jobs-vertical__employer { margin: 0; color: #555; font-size: 0.88rem; }
.lsn-jobs-vertical__all {
    display: block;
    padding: 0.9rem 1.25rem;
    text-align: center;
    color: #c1183b;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #ececf0;
}
.lsn-jobs-vertical__all:hover { background: #fafafb; }
.lsn-jobs-vertical__empty { padding: 1.5rem 1.25rem; color: #707080; text-align: center; }

/* ============ Single job & submit form (kept from v1) ============ */
.lsn-job-card {
    background: #fafafb;
    border: 1px solid #e3e3e7;
    border-left: 4px solid #c1183b;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.lsn-job-card__head { margin-bottom: 0.75rem; }
.lsn-job-card__employer { font-weight: 700; font-size: 1.05rem; margin: 0; color: #15182a; }
.lsn-job-card__expired { color: #b00020; background: #ffe7eb; padding: 0.4rem 0.6rem; border-radius: 4px; margin: 0.5rem 0 0; display: inline-block; }
.lsn-job-card__facts { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.25rem; row-gap: 0.35rem; margin: 0; }
.lsn-job-card__facts dt { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; color: #555; font-weight: 600; }
.lsn-job-card__facts dd { margin: 0; }
.lsn-job-apply-row { margin-top: 2rem; }
.lsn-job-apply { display: inline-block; background: #c1183b; color: #fff !important; padding: 0.7rem 1.3rem; border-radius: 4px; font-weight: 600; text-decoration: none; }
.lsn-job-apply:hover { background: #9a1330; }

.lsn-jobs-submit { max-width: 760px; margin: 2rem auto; }
.lsn-jobs-submit h2 { margin-top: 0; }
.lsn-jobs-submit fieldset { border: 1px solid #e3e3e7; border-radius: 6px; padding: 1rem 1.25rem; margin: 0 0 1rem; }
.lsn-jobs-submit legend { padding: 0 0.4rem; font-weight: 600; color: #15182a; }
.lsn-jobs-submit label { display: block; margin-bottom: 0.75rem; }
.lsn-jobs-submit label span { display: block; font-size: 0.8rem; color: #555; }
.lsn-jobs-submit input[type=text],
.lsn-jobs-submit input[type=url],
.lsn-jobs-submit input[type=email],
.lsn-jobs-submit input[type=date],
.lsn-jobs-submit textarea,
.lsn-jobs-submit select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.lsn-jobs-submit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.lsn-jobs-submit button { background: #c1183b; color: #fff; border: 0; padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.lsn-jobs-submit__ok { background: #e6f7e8; border: 1px solid #0a7a2a; padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.lsn-jobs-submit__err { background: #ffe7eb; border: 1px solid #b00020; padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.lsn-jobs-submit__terms { color: #777; }
.lsn-jobs-pagination ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 0.4rem; }

/* ====== SINGLE JOB VIEW (lsn-jobv) ====================================== */
.lsn-jobv { max-width: 1240px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) 0 3rem; }
.lsn-jobv__head {
    display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 0 2rem;
    border-bottom: 1px solid rgba(11,15,20,0.12);
    margin-bottom: 2rem;
}
.lsn-jobv__logo { width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: #fafafb; border: 1px solid rgba(11,15,20,0.08); display:flex;align-items:center;justify-content:center; }
.lsn-jobv__logo-img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; box-sizing:border-box; }
.lsn-jobv__logo--initial { background: linear-gradient(135deg,#1A2230 0%,#0B0F14 100%); color:#fff; }
.lsn-jobv__logo--initial span { font-family: var(--ls-serif, "Fraunces", Georgia, serif); font-size: 2.4rem; font-weight: 600; }
.lsn-jobv__employer { display:inline-block; font-family: var(--ls-mono, "JetBrains Mono", monospace); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C8102E; margin-bottom: 0.4rem; }
.lsn-jobv__title { font-family: var(--ls-serif, "Fraunces", Georgia, serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.1; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
.lsn-jobv__summary { font-family: var(--ls-serif, "Fraunces", Georgia, serif); font-style: italic; font-size: 1.1rem; color: #555; margin: 0 0 0.85rem; max-width: 60ch; }
.lsn-jobv__chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.45rem 0.55rem; }
.lsn-jobv__chip { font-family: var(--ls-sans, "Inter Tight", system-ui, sans-serif); font-size: 0.85rem; padding: 0.3rem 0.65rem; border-radius: 3px; background: #f4f1ea; color: #1A2230; border: 1px solid rgba(11,15,20,0.08); }
.lsn-jobv__chip--loc { font-weight: 600; }
.lsn-jobv__chip--salary { background: #fef6e6; border-color: #f2d99d; color: #6b4e00; font-weight: 600; }
.lsn-jobv__cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.lsn-jobv__apply { display:inline-flex; align-items:center; gap:0.4rem; background: #C8102E; color: #fff; padding: 0.8rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.15s ease; }
.lsn-jobv__apply:hover { background: #a00d24; color:#fff; }
.lsn-jobv__pdf { display:inline-flex; align-items:center; gap:0.55rem; padding: 0.75rem 1.1rem; border:1px solid rgba(11,15,20,0.18); border-radius: 4px; text-decoration: none; color: #1A2230; font-size: 0.9rem; background:#fff; }
.lsn-jobv__pdf:hover { border-color: #C8102E; color:#C8102E; }
.lsn-jobv__pdf small { color:#888; font-weight:400; margin-left: 0.15rem; }
.lsn-jobv__pdf-icon { font-family: var(--ls-mono, monospace); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; background: #C8102E; color: #fff; padding: 0.15rem 0.4rem; border-radius: 3px; }
.lsn-jobv__closed { background:#fff4f2; color:#7a1a1a; padding: 0.65rem 0.9rem; border-radius:4px; font-size:0.92rem; display:inline-block; }

.lsn-jobv__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 320px); gap: clamp(1.75rem, 3vw, 3rem); }
@media (max-width: 900px) { .lsn-jobv__grid { grid-template-columns: 1fr; } }
.lsn-jobv__body { min-width: 0; }
.lsn-jobv__body p, .lsn-jobv__body li { line-height: 1.65; }
.lsn-jobv__body h2, .lsn-jobv__body h3 { font-family: var(--ls-serif, "Fraunces", Georgia, serif); margin-top: 2rem; }
.lsn-jobv__tags { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid rgba(11,15,20,0.08); border-bottom: 1px solid rgba(11,15,20,0.08); }
.lsn-jobv__tags ul { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lsn-jobv__tags li a { display:inline-block; padding: 0.25rem 0.55rem; background: #fff; border:1px solid rgba(11,15,20,0.12); border-radius: 3px; text-decoration: none; font-size: 0.82rem; color:#1A2230; }
.lsn-jobv__tags li a:hover { border-color:#C8102E; color:#C8102E; }

.lsn-jobv__aside { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1rem; align-self: start; }
@media (max-width: 900px) { .lsn-jobv__aside { position: static; } }
.lsn-jobv__card { background: #fff; border: 1px solid rgba(11,15,20,0.12); border-radius: 6px; padding: 1.25rem 1.35rem; }
.lsn-jobv__card h3 { font-family: var(--ls-serif, "Fraunces", Georgia, serif); font-size: 1.05rem; margin: 0 0 0.85rem; padding-bottom: 0.55rem; border-bottom: 1px solid rgba(11,15,20,0.1); }
.lsn-jobv__facts { margin: 0; }
.lsn-jobv__facts dt { font-family: var(--ls-mono, "JetBrains Mono", monospace); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-top: 0.7rem; }
.lsn-jobv__facts dt:first-child { margin-top: 0; }
.lsn-jobv__facts dd { margin: 0.1rem 0 0; font-size: 0.95rem; color: #1A2230; }
.lsn-jobv__facts dd code { font-family: var(--ls-mono, monospace); font-size: 0.85rem; background: #fafafb; padding: 0.1rem 0.4rem; border-radius: 3px; border:1px solid rgba(11,15,20,0.08); }
.lsn-jobv__card--recruiter .lsn-jobv__recruiter-name { margin: 0 0 0.5rem; }
.lsn-jobv__card--share .lsn-jobv__share { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.lsn-jobv__card--share .lsn-jobv__share a { text-decoration: none; color: #1A2230; font-size: 0.92rem; }
.lsn-jobv__card--share .lsn-jobv__share a:hover { color: #C8102E; }

/* ====== APPLY FORM ======================================================= */
.lsn-job-apply-form { margin: 3rem 0 1rem; background: #fafafb; border: 1px solid rgba(11,15,20,0.1); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.lsn-job-apply-form__eyebrow { font-family: var(--ls-mono, monospace); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #C8102E; font-weight: 600; }
.lsn-job-apply-form__head h2 { font-family: var(--ls-serif, "Fraunces", Georgia, serif); font-size: clamp(1.4rem, 2vw, 1.85rem); margin: 0.25rem 0 0.4rem; }
.lsn-job-apply-form__head p { color: #555; margin: 0 0 1.5rem; }
.lsn-job-apply-form__ref { display:inline-block; margin-left: 0.5rem; font-family: var(--ls-mono, monospace); font-size: 0.78rem; padding: 0.1rem 0.45rem; background:#fff; border:1px solid rgba(11,15,20,0.12); border-radius: 3px; color:#555; }
.lsn-job-apply-form__closed { background:#fff4f2; color:#7a1a1a; padding: 0.85rem 1rem; border-radius:4px; font-size:0.95rem; }
.lsn-form-row { margin-bottom: 1rem; }
.lsn-form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .lsn-form-row--split { grid-template-columns: 1fr; } }
.lsn-form-row label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; color: #1A2230; }
.lsn-form-row label span { font-weight: 600; }
.lsn-form-row label em { color: #C8102E; font-style: normal; }
.lsn-form-row input[type=text],
.lsn-form-row input[type=email],
.lsn-form-row input[type=tel],
.lsn-form-row input[type=url],
.lsn-form-row textarea,
.lsn-form-row input[type=file] {
    width: 100%; padding: 0.6rem 0.75rem; border: 1px solid rgba(11,15,20,0.18); border-radius: 4px; background:#fff;
    font-family: inherit; font-size: 0.95rem; box-sizing: border-box;
}
.lsn-form-row textarea { resize: vertical; min-height: 100px; }
.lsn-form-row small { color: #888; font-size: 0.8rem; font-weight: 400; }
.lsn-form-row--consent label { flex-direction: row; gap: 0.6rem; align-items: flex-start; font-weight: 400; color:#555; }
.lsn-form-row--consent input { margin-top: 0.25rem; }
.lsn-job-apply-form__submit { background: #C8102E; color: #fff; padding: 0.85rem 1.6rem; border: 0; border-radius: 4px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.15s ease; }
.lsn-job-apply-form__submit:hover:not(:disabled) { background: #a00d24; }
.lsn-job-apply-form__submit:disabled { opacity: 0.6; cursor: default; }
.lsn-job-apply-form__msg { margin: 0.85rem 0 0; font-size: 0.92rem; }
.lsn-job-apply-form__msg--ok { color: #0a7a2a; }
.lsn-job-apply-form__msg--err { color: #b00020; }
