/* ═══════════════════════════════════════════════════════════════
   JOB BOARD — Newspaper classifieds (inside BlackGlass frame)
   ═══════════════════════════════════════════════════════════════ */

.jb-page {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(180,140,70,0.07) 0%, transparent 40%),
        linear-gradient(180deg, #f0e8d4 0%, #e8dcc4 100%);
    color: #1a1008;
    font-family: 'Courier Prime', 'Courier New', monospace;
    padding: 32px 40px 40px;
    min-height: 100%;
    position: relative;
    overflow-y: auto;
    box-sizing: border-box;
}
.jb-page::-webkit-scrollbar { width: 10px; }
.jb-page::-webkit-scrollbar-track { background: #e0d4b4; }
.jb-page::-webkit-scrollbar-thumb { background: #8a7a60; border-radius: 4px; }

/* Coffee ring stain */
.jb-coffee {
    position: absolute;
    top: 120px;
    right: 80px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(90,50,10,0.06) 42%,
        rgba(90,50,10,0.09) 44%,
        rgba(90,50,10,0.06) 48%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0.7;
}

/* Masthead */
.jb-masthead {
    text-align: center;
    border-top: 3px double #1a1008;
    border-bottom: 3px double #1a1008;
    padding: 20px 0 18px;
    margin-bottom: 8px;
}
.jb-masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: #1a1008;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 10px;
}
.jb-masthead-sub {
    font-family: 'Special Elite', 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.35em;
    color: #3a2820;
    text-transform: uppercase;
}

/* Volume bar */
.jb-volbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #6a5a40;
    padding: 8px 0;
    border-bottom: 1px solid #1a1008;
    margin-bottom: 28px;
    text-transform: uppercase;
}
.jb-volbar-center {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #1a1008;
    font-weight: 700;
}

/* Two column layout */
.jb-columns {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 28px;
    margin-bottom: 36px;
}
.jb-rule {
    background: #c4b494;
    width: 1px;
}
.jb-column-title {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #3a2820;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a1008;
    margin-bottom: 16px;
    text-align: center;
}

/* Individual listing */
.jb-listing {
    padding: 14px 0;
    border-bottom: 1px dashed #c4b494;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}
.jb-listing:last-child { border-bottom: none; }
.jb-listing:not(.jb-locked):hover {
    background: rgba(196,180,148,0.18);
}

.jb-listing-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1008;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}
.jb-listing-company {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #6a5a40;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.jb-listing-desc {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    line-height: 1.55;
    color: #3a2820;
    margin-bottom: 10px;
}
.jb-listing-pay {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #1a6030;
    background: #f4e8c8;
    border: 1px solid #c4b494;
    padding: 3px 10px;
}
.jb-listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Stamps */
.jb-stamp {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #8B0000;
    border: 2px solid #8B0000;
    padding: 3px 8px;
    text-transform: uppercase;
    transform: rotate(-4deg);
    opacity: 0.55;
    display: inline-block;
}

/* Handwritten annotation */
.jb-annotation {
    font-family: 'Caveat', cursive;
    font-size: 17px;
    color: #2a4a8a;
    transform: rotate(-1deg);
    display: block;
    margin-top: 8px;
    padding-left: 10px;
}

/* Locked listing */
.jb-locked {
    opacity: 0.4;
    cursor: not-allowed;
}
.jb-locked-note {
    font-family: 'Courier Prime', monospace;
    font-size: 9px;
    font-style: italic;
    color: #6a5a40;
    margin-top: 4px;
}

/* ─── Modal (newspaper detail / receipt) ─── */
.jb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,10,5,0.65);
    z-index: 100;
    display: none;
}
.jb-modal-overlay.jb-visible { display: block; }

.jb-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 460px;
    max-width: 92%;
    max-height: 85%;
    z-index: 101;
    display: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.jb-modal.jb-visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.jb-modal-inner {
    background:
        radial-gradient(ellipse at 20% 15%, rgba(180,140,70,0.1) 0%, transparent 55%),
        linear-gradient(180deg, #f0e8d4 0%, #e8dcc4 100%);
    border: 3px double #1a1008;
    padding: 28px 32px 24px;
    font-family: 'Courier Prime', monospace;
    color: #1a1008;
    box-shadow:
        0 0 0 1px #c4b494,
        0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.jb-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a1008;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 2;
}
.jb-modal-close:hover { color: #8B0000; }

.jb-modal-masthead {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.jb-modal-sub {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-align: center;
    color: #6a5a40;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.jb-modal-rule {
    border-top: 2px solid #1a1008;
    border-bottom: 1px solid #1a1008;
    height: 3px;
    margin-bottom: 18px;
}

.jb-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center;
}
.jb-modal-company {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #6a5a40;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.jb-modal-stamp-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.jb-modal-body {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    line-height: 1.7;
    color: #2a2015;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px dashed #c4b494;
    border-bottom: 1px dashed #c4b494;
}

.jb-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
}
.jb-modal-meta-label {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #6a5a40;
    text-transform: uppercase;
    margin-right: 4px;
}

.jb-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}
.jb-btn {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 22px;
    cursor: pointer;
    border: 2px solid #1a1008;
    background: transparent;
    color: #1a1008;
    transition: all 0.2s;
}
.jb-btn:hover { background: #1a1008; color: #f0e8d4; }
.jb-btn-accept {
    background: #1a1008;
    color: #f4e8c8;
}
.jb-btn-accept:hover { background: #2a2015; }
.jb-btn-decline { color: #8B0000; border-color: #8B0000; }
.jb-btn-decline:hover { background: #8B0000; color: #f0e8d4; }

.jb-modal-footer-note {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    text-align: center;
    color: #2a4a8a;
    font-style: italic;
}

/* Receipt state */
.jb-modal-receipt {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jb-receipt-stamp {
    position: absolute;
    top: 40px;
    right: 24px;
    font-family: 'Special Elite', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #8B0000;
    border: 4px double #8B0000;
    padding: 6px 18px;
    letter-spacing: 0.2em;
    transform: rotate(-12deg);
    opacity: 0.55;
    pointer-events: none;
}
.jb-receipt-amount {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: #1a6030;
    margin: 18px 0;
}
.jb-receipt-note {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #6a5a40;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Footer */
.jb-footer {
    text-align: center;
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #6a5a40;
    padding-top: 20px;
    border-top: 2px solid #1a1008;
    text-transform: uppercase;
    line-height: 1.8;
}
.jb-footer-tagline {
    font-style: italic;
    color: #3a2820;
    margin-bottom: 6px;
    font-size: 10px;
}
