:root {
    --ups-yellow: #ffd100;
    --ups-blue: #009CBD;
    --ups-blue-dark: #006b7f;
    --ups-text: #1a1a1a;
    --ups-text-muted: #373c41;
    --ups-border: #e2e8f0;
    --ups-bg-subtle: #f8fafc;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ups-text);
    line-height: 1.6;
}

/* HEADER */
.ups-header {
    background: #fff;
    border-bottom: 3px solid var(--ups-yellow);
    padding: 0 16px;
}

.ups-logo {
    display: block;
    margin: 24px auto;
    width: min(100%, 400px);
    max-width: 400px;
    height: auto;
}

/* PAGE */
.ups-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ups-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin: 0 0 10px;
    color: var(--ups-text);
    line-height: 1.3;
}

.ups-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--ups-text-muted);
    margin: 0 0 32px;
}

/* SECTION HEADINGS */
.ups-section-title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    border-bottom: 3px solid var(--ups-blue);
    padding-bottom: 8px;
    margin: 45px 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ups-section-title.ups-tit_no_caps {
    text-transform: none;
    letter-spacing: 0;
}

.ups-text-p {
    font-size: 1.05rem;
    color: var(--ups-text-muted);
    margin: 0 0 20px;
}

/* LAYOUT GRIDS */
.ups-grid-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 40px;
    align-items: center;
    margin: 20px 0 30px;
}

.ups-text-column {
    text-align: justify;
    text-justify: inter-word;
}

/* BOXED LISTS */
.ups-legend-list,
.ups-q-list,
.ups-c-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ups-legend-item,
.ups-q-item,
.ups-c-item {
    background: var(--ups-bg-subtle);
    border: 1px solid var(--ups-border);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.ups-legend-item {
    display: flex;
    align-items: flex-start;
}

.ups-legend-item:last-child,
.ups-q-item:last-child,
.ups-c-item:last-child {
    margin-bottom: 0;
}

/* COLOR INDICATORS */
.ups-color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-top: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ups-ind-bleed { background: #ef4444; }
.ups-ind-cut   { background: #000; }
.ups-ind-safe  { background: #10b981; }

/* BLEED DIAGRAM */
.ups-graphic-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--ups-bg-subtle);
    border: 1px solid var(--ups-border);
    border-radius: 8px;
    padding: 30px;
    gap: 16px;
}

.ups-bleed-zone {
    border: 2px solid #ef4444;
    background: #fff5f5;
    padding: 20px;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.ups-cut-zone {
    border: 2px dashed #000;
    background: #fff;
    padding: 20px;
}

.ups-safe-zone {
    border: 2px dotted #10b981;
    background: #f0fdf4;
    padding: 24px 20px;
    text-align: center;
}

.ups-zone-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ups-zone-legend .ups-micro-tag {
    margin: 0;
    font-size: 0.72rem;
}

.ups-micro-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ups-tag-red   { color: #ef4444; }
.ups-tag-black { color: #000; }
.ups-tag-green { color: #10b981; margin-bottom: 2px; }

.ups-inner-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

/* COMPARISON & COLOR CARDS */
.ups-q-graph-col,
.ups-c-graph-col {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ups-bg-subtle);
    border: 1px solid var(--ups-border);
    border-radius: 8px;
    padding: 16px;
    max-width: 420px;
}

.ups-compare-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 360px;
    justify-content: space-between;
}

.ups-card,
.ups-c-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ups-card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

/* Image quality — desktop: narrow cards, larger geckos */
@media (min-width: 641px) {
    .ups-grid-split--quality {
        grid-template-columns: minmax(280px, 1fr) minmax(340px, 420px);
        gap: 32px;
    }

    .ups-q-graph-col {
        padding: 20px 24px;
        max-width: 420px;
        justify-self: end;
    }

    .ups-compare-wrapper--gecko {
        max-width: none;
        width: 100%;
        gap: 14px;
        justify-content: center;
    }

    .ups-compare-wrapper--gecko .ups-card {
        flex: 0 1 192px;
        max-width: 192px;
        padding: 10px 8px;
    }

    .ups-compare-wrapper--gecko .ups-card-graphic {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
        margin-bottom: 10px;
        line-height: 0;
    }

    .ups-compare-wrapper--gecko .ups-card-img {
        display: block;
        width: 176px;
        height: auto;
        min-height: 0;
        object-fit: unset;
    }
}

.ups-card-graphic {
    border-radius: 4px;
    width: 100%;
    margin: 0 auto 12px;
    overflow: hidden;
}

.ups-g-sharp {
    border: 2px solid #0e9040;
    background: #e6f9fa;
}

.ups-g-pixelated {
    border: 2px solid #b42424;
    background: var(--ups-bg-subtle);
}

.ups-card-status {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ups-status-pass { color: #166534; }
.ups-status-fail { color: #991b1b; }

.ups-card-desc,
.ups-c-card-desc {
    font-size: 0.8rem;
    color: var(--ups-text-muted);
    line-height: 1.3;
}

.ups-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ups-swatch-cmyk {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 33%, #ffff00 66%, #000 100%);
    border: 2px solid var(--ups-blue);
}

.ups-swatch-rgb {
    background: linear-gradient(135deg, #f00 0%, #0f0 50%, #00f 100%);
    border: 2px dashed #cbd5e1;
}

.ups-c-card-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ups-text);
}

/* WARNING BOX */
.ups-warning-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 5px solid #b91c1c;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.ups-warning-box h3 {
    color: #b91c1c;
    margin-top: 0;
}

.ups-warning-box a {
    color: var(--ups-blue);
    font-weight: bold;
    text-decoration: underline;
}

.ups-warning-box a:hover {
    color: var(--ups-blue-dark);
}

.ups-warning-note {
    margin-bottom: 0;
    font-weight: bold;
    color: #b91c1c;
}

.ups-ui-badge {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: Consolas, Monaco, monospace;
    font-weight: 600;
}

/* CHECKLIST */
.ups-checklist-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.ups-checklist-box h3 {
    color: #166534;
    margin-top: 0;
}

.ups-checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ups-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.ups-checklist-item:last-child {
    margin-bottom: 0;
}

.ups-check-icon {
    flex-shrink: 0;
    width: 1.25rem;
    color: #166534;
    font-weight: 700;
    line-height: 1.6;
}

/* ACCORDIONS */
.ups-ac {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ups-ai {
    border-bottom: 1px solid #e5e7eb;
}

.ups-ai:last-child {
    border-bottom: none;
}

.ups-at {
    background: #fff;
    padding: 18px 24px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--ups-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.ups-at:hover {
    background-color: #f9fafb;
}

.ups-at:focus-visible {
    outline: 2px solid var(--ups-blue);
    outline-offset: -2px;
}

.ups-ai.active .ups-at {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.ups-at .arrow-box {
    background: var(--ups-yellow);
    color: var(--ups-text);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
}

.ups-ai.active .arrow-box {
    background: var(--ups-blue);
    transform: rotate(180deg);
}

.ups-ax {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
    opacity: 0;
    background: #fff;
    color: #374151;
    font-size: 1rem;
    line-height: 1.65;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.ups-ai.active .ups-ax {
    max-height: 1000px;
    padding: 25px 30px;
    opacity: 1;
}

.ups-ax ol {
    padding-left: 20px;
    margin: 0;
}

.ups-ax li {
    margin-bottom: 12px;
}

.ups-ax li:last-child {
    margin-bottom: 0;
}

.ups-ax p {
    margin: 0;
}

.ups-bg {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: 600;
}

.ups-ib {
    color: var(--ups-blue);
    margin-right: 10px;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .ups-logo {
        margin: 16px auto;
        width: min(100%, 280px);
    }

    .ups-page-container {
        padding: 16px;
    }

    .ups-grid-split {
        gap: 24px;
    }

    .ups-graphic-column {
        padding: 20px 16px;
    }

    .ups-compare-wrapper {
        flex-direction: column;
        max-width: 100%;
    }

    .ups-at {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .ups-ax {
        padding: 0 16px;
    }

    .ups-ai.active .ups-ax {
        padding: 20px 16px;
    }

    .ups-warning-box,
    .ups-checklist-box {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ups-ax,
    .ups-at .arrow-box {
        transition: none;
    }
}
