/* START: Homestead Journal Cards */

.jn-card {
    background: #fffdf4;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 2px;
    box-shadow: 2px 4px 14px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.1);
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: top center;
    width: max(120px, 38%);
    box-sizing: border-box;
    padding: 20px 10px 14px;
    text-align: center;
}

.jn-card:hover {
    transform: rotate(var(--rot, 0deg)) perspective(600px) rotateX(-14deg);
    box-shadow: 2px 22px 32px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10 !important;
}

/* Tape — same appearance as sb-polaroid tape */
.jn-card::before {
    content: '';
    position: absolute;
    background: rgba(210,195,150,0.7);
    border: 1px solid rgba(180,160,110,0.4);
    width: 34px;
    height: 13px;
    border-radius: 2px;
    pointer-events: none;
}
.jn-card.sb-tape-top-left::before  { top: -7px; left: 16px;  transform: rotate(-8deg); }
.jn-card.sb-tape-top-right::before { top: -7px; right: 16px; transform: rotate(6deg); }
.jn-card.sb-tape-center::before    { top: -7px; left: 50%;   transform: translateX(-50%) rotate(1deg); }

.jn-icon {
    font-size: 34px;
    margin-bottom: 8px;
    line-height: 1;
}

.jn-text {
    font-family: 'Georgia', serif;
    font-size: 11px;
    color: #333;
    line-height: 1.55;
    margin-bottom: 10px;
    padding: 0 4px;
}

.jn-date {
    font-family: 'Georgia', serif;
    font-size: 9px;
    font-style: italic;
    color: #999;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 6px;
}

@media (max-width: 599px) {
    .jn-card {
        width: 38%;
        padding: 18px 6px 10px;
    }
    .jn-icon  { font-size: 26px; }
    .jn-text  { font-size: 10px; }
    .jn-date  { font-size: 8px; }
}

/* Wide modal layout — mirrors #scrapbook-wrap rules in scrapbook.css */
@media (min-width: 600px) {
    #journal-wrap {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 8px 0 4px;
        justify-content: flex-start;
    }
}

#journal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 0 4px;
}

/* END: Homestead Journal Cards */
