/*
 * Letter-card component — the visual box styled like an actual printed
 * letter (body text, a solid colour bar along the bottom), used to show a
 * letter template or sample on a /letter/{slug}/ page. Everything else on
 * these pages reuses job-descriptions/style.css's .jd-* classes, loaded
 * alongside this file — see the comment atop letter/detail.php.
 *
 * Asked for on 2026-09-30: match the factoHR screenshot's layout (orange
 * placeholder text, blue bar along the bottom). A logo sat above the body
 * at first (Niyuk's own, via brand_lockup()) but was dropped the same day.
 */

.ltr-card {
    position: relative;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 32px 130px 0 36px;
    margin: 20px 0 28px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .ltr-card {
        padding: 60px 20px 0;
    }
}
.ltr-card__body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #292524;
}
.ltr-card__body p {
    margin: 0 0 16px;
}
.ltr-card__body h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1c1917;
    margin: 20px 0 6px;
}
.ltr-card__body ul {
    margin: 0 0 16px;
    padding-left: 22px;
}
.ltr-card__body li {
    margin-bottom: 4px;
}
.ltr-card__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 0.88rem;
}
.ltr-card__body th {
    background: #eff6ff;
    color: #1c1917;
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e7e5e4;
}
.ltr-card__body td {
    padding: 10px 14px;
    border: 1px solid #e7e5e4;
    color: #292524;
    vertical-align: top;
}
.ltr-field {
    color: #c2410c;
}
.ltr-card__bar {
    height: 10px;
    margin: 24px -130px 0 -36px;
    background: #2563eb;
}
@media (max-width: 640px) {
    .ltr-card__bar {
        margin: 24px -20px 0;
    }
}

.ltr-card--compact {
    padding: 24px 120px 0 28px;
}
@media (max-width: 640px) {
    .ltr-card--compact {
        padding: 56px 20px 0;
    }
}
.ltr-card--compact .ltr-card__bar {
    margin: 20px -120px 0 -28px;
    height: 8px;
}
@media (max-width: 640px) {
    .ltr-card--compact .ltr-card__bar {
        margin-left: -20px;
        margin-right: -20px;
    }
}

.ltr-copy-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.ltr-card--compact .ltr-copy-btn {
    top: 14px;
    right: 14px;
}
.ltr-copy-btn:hover {
    background: #dbeafe;
}
.ltr-copy-btn--done {
    background: #dcfce7;
    color: #15803d;
}
.ltr-copy-btn__icon {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .ltr-copy-btn {
        top: 16px;
        right: 16px;
    }
}

.ltr-sample {
    margin: 32px 0;
}
.ltr-sample h3 {
    font-size: 1.05rem;
    color: #1c1917;
    margin: 0 0 6px;
}
.ltr-sample__note {
    color: #57534e;
    font-size: 0.92rem;
    margin: 0 0 4px;
}
