.postcard-showcase { background: #f7f4ee; }
.postcard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 20px; }
.postcard-item { min-width: 0; }
.postcard-compare { position: relative; overflow: hidden; aspect-ratio: 2/3; background: #eee6da; border-radius: 12px; isolation: isolate; }
.postcard-compare__result, .postcard-compare__before { position: absolute; inset: 0; }
.postcard-compare__result img, .postcard-compare__before img { display: block; width: 100%; height: 100%; object-fit: cover; }
.postcard-compare__before { right: auto; width: var(--position,50%); overflow: hidden; }
.postcard-compare__before-inner { position: absolute; inset: 0 auto 0 0; width: var(--compare-width); display: grid; grid-template-columns: repeat(var(--ref-cols,1),1fr); grid-template-rows: repeat(var(--ref-rows,1),1fr); gap: 2px; background: #fff; }
.postcard-compare__before-inner img { min-width: 0; min-height: 0; }
.postcard-compare__divider { position: absolute; top: 0; bottom: 0; left: var(--position,50%); width: 2px; background: white; transform: translateX(-1px); pointer-events: none; }
.postcard-compare__divider::after { content: '↔'; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid white; border-radius: 50%; background: #6d202a; color: #fff; font-size: 20px; transform: translate(-50%,-50%); box-shadow: 0 4px 18px #0005; }
.postcard-compare__labels { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; pointer-events: none; }
.postcard-compare__labels span { padding: 6px 9px; border-radius: 6px; background: #221418b8; color: #fff; font: 700 11px/1.1 system-ui,sans-serif; }
.postcard-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.postcard-compare:focus-within { outline: 3px solid #ba7d30; outline-offset: 3px; }
.postcard-item__title { margin: 14px 0 4px; font-size: 18px; font-weight: 800; color: #25231f; }
.postcard-item__link { display: inline-block; padding: 7px 0; font-size: 14px; font-weight: 700; color: #a22d38; }
.postcard-item__link:hover { text-decoration: underline; }
.postcard-detail { margin: 0; background: #f7f4ee; color: #242821; font-family: Manrope,system-ui,sans-serif; }
.postcard-detail * { box-sizing: border-box; }
.postcard-detail a { color: inherit; }
.postcard-detail__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid #ddd7cd; }
.postcard-detail__header a { font-weight: 800; text-decoration: none; }
.postcard-detail__container { width: min(1120px,calc(100% - 40px)); margin: 0 auto; }
.postcard-detail__layout { display: grid; grid-template-columns: minmax(280px,440px) minmax(0,1fr); gap: 48px; align-items: start; padding: 48px 0 80px; }
.postcard-detail__layout h1 { margin: 8px 0 16px; font-size: 36px; line-height: 1.12; }
.postcard-detail__label { color: #a22d38; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.postcard-detail__description { color: #646b62; line-height: 1.6; }
.postcard-detail__prompt { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; border: 1px solid #e0d9cf; border-radius: 12px; background: #fff; color: #343b34; font: 14px/1.65 system-ui,sans-serif; }
.postcard-detail__refs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.postcard-detail__refs img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; }
.postcard-detail__reference-label { margin: 20px 0 0; font-weight: 700; font-size: 13px; }
.postcard-detail__copy { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: #9f3038; color: white; font: 700 14px system-ui,sans-serif; cursor: pointer; }
@media(max-width: 800px) { .postcard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; } .postcard-item__title { font-size: 15px; } .postcard-detail__layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } .postcard-detail__layout h1 { font-size: 28px; } }
@media(max-width: 380px) { .postcard-compare__labels { inset: 8px 8px auto; } .postcard-compare__labels span { font-size: 10px; padding: 5px; } .postcard-compare__divider::after { width: 32px; height: 32px; } }
