/* assets/styles/print/obras.css */
/* Styles specific to obra tombstone labels */

body {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns across on landscape */
    gap: 0.2in;
    row-gap: 0.3in; /* Explicit vertical pacing between rows */
    padding: 0.4in;
    align-items: start;
}

.card-64 {
    width: 5.2in; /* Larger cards on landscape - 3 × 5.2" + 2 × 0.2" gaps = 16" fits in 16.5" available */
    min-height: 3.5in;
    padding: 0.25in;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    border: 3pt solid #000; /* Thicker border for better cutting */
    background: var(--background);
    page-break-inside: avoid;
}

/* HEADER SECTION - More space before footer */
.header-section {
    display: flex;
    flex-direction: column;
    gap: 6pt;
    flex-grow: 1;
    min-height: 0;
    margin-bottom: 8pt; /* Extra space before footer */
}

.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16pt;
    margin-bottom: 4pt;
}

/* TITLE - Responsive sizing for long titles */
.title {
    font-family: var(--serif);
    font-weight: bold;
    font-size: 28pt; /* Base size */
    line-height: 0.9;
    hyphens: auto;
    margin: 0;
    font-style: italic;
    flex: 1;
    color: var(--ink);
}

/* Automatically shrink font for long titles */
.title {
    font-size: clamp(20pt, 28pt, 28pt); /* Will scale down for long text */
}

/* Alternative: Fixed card heights */
.card-64 {
    width: 5.2in;
    height: 3.8in; /* Fixed height instead of min-height */
    padding: 0.25in;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    border: 3pt solid #000;
    background: var(--background);
    page-break-inside: avoid;
    overflow: hidden; /* Prevent content overflow */
}

/* PRICE - Large and prominent */
.price {
    font-family: var(--serif);
    font-size: 24pt; /* Adjusted for 5" width */
    font-weight: bold;
    color: var(--ink);
    margin: 0;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ARTIST INFO */
.artist-info {
    font-family: var(--sans);
    font-size: 18pt; /* Adjusted for 5" width */
    line-height: 1.2;
    margin: 0 0 8pt 0;
    color: var(--ink);
}

.artist-name {
    font-weight: 700;
}

.artist-tagline {
    font-family: var(--sans);
    font-size: 16pt;
    line-height: 1.3;
    color: var(--muted);
    font-style: italic;
    margin: 4pt 0 0 0;
    display: block;
}

/* META INFO - Smaller materials and size text */
.meta {
    font-family: var(--sans);
    font-size: 10pt; /* Reduced from 14pt */
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 2pt; /* Tighter spacing */
    margin-bottom: 6pt;
    color: var(--ink);
}

.meta-row {
    display: flex;
    align-items: flex-start;
    break-inside: avoid;
    gap: 4pt;
}

.meta-icon {
    font-size: 10pt; /* Smaller icons */
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 1pt;
}

.meta-value {
    flex: 1;
    color: var(--ink);
}

/* Override footer for obra-specific sizing - keep the beautiful layout */
.chijal-footer {
    margin-top: auto;
    padding-top: 6pt;
    border-top: 1pt solid var(--border); /* Keep original border */
    /* Don't override other footer properties - let base.css handle them */
}

/* Just adjust logo size for 5" width */
.chijal-logo {
    height: 50pt; /* Smaller for 5" cards but still visible */
}

@media print {
    body {
        margin: 0 !important;
        padding: 0.25in !important;
    }
    
    .card-64 { 
        border: 2pt solid #000 !important; 
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
