/* Reference-inspired paper speech card. Existing crowd and camera stay frozen. */
.reference-mobile-popup.year-card-host{
 display:block;position:fixed;top:auto;left:50%;bottom:24px;width:720px;min-width:0;max-width:calc(100vw - 32px);
 transform:translateX(-50%);z-index:1002;font-family:"Malgun Gothic",system-ui,sans-serif;
 --card-max-height:560px;pointer-events:auto;
}
.reference-person>.reference-popup{display:none}
.year-summary-card{
 position:relative;border:1px solid #fffdf9;border-radius:24px;color:#3e3b39;background-color:#faf7f0;
 background-image:repeating-linear-gradient(17deg,#a7917006 0,#a7917006 1px,transparent 1px,transparent 4px),radial-gradient(ellipse at 18% 0,#fffdf9b8,transparent 75%);
 box-shadow:0 11px 25px #5b4c3620,0 2px 6px #5b4c3609;
}
.year-summary-card::after{content:"";position:absolute;left:calc(50% - 10px);bottom:-11px;width:20px;height:20px;border-radius:0 0 6px 0;background:#faf7f0;transform:rotate(45deg);pointer-events:none;box-shadow:4px 4px 6px #5b4c3605}
.year-card-scroll{display:grid;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:20px;padding:15px;box-sizing:border-box;overflow:auto;max-height:var(--card-max-height);border-radius:23px;overscroll-behavior:contain;scrollbar-width:thin}
.year-card-scroll:focus-visible{outline:2px solid #867866;outline-offset:-3px}
.year-card-image{display:block;width:100%;height:100%;min-height:220px;max-height:310px;object-fit:cover;object-position:center;border-radius:16px;background:#ece5d8;align-self:stretch}
.year-card-body{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:4px 9px 4px 0;min-width:0}
.year-card-body::before{content:"";position:absolute;z-index:-1;right:-10px;bottom:4px;width:62%;height:95px;opacity:.13;background:url('/assets/backgrounds/seoul-pen-watercolor-v2.webp') center bottom/cover no-repeat;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 40%)}
.year-card-body .year-card-year{position:relative;align-self:flex-start;margin:0 0 3px;font:400 56px/.97 "Iowan Old Style",Georgia,"Batang",serif;letter-spacing:-2px;text-shadow:none;color:#373431}
.year-card-year::after{content:"";position:absolute;z-index:-1;left:1px;right:-6px;bottom:-5px;height:10px;background:#e7ddcd;opacity:.75;transform:rotate(-2deg);clip-path:polygon(1% 15%,98% 0,100% 64%,4% 100%,0 65%)}
.year-card-body .year-card-headline{margin:3px 0 0;font-family:"Batang","Iowan Old Style",Georgia,serif;font-size:20px;line-height:1.35;letter-spacing:-.65px;font-weight:400;word-break:keep-all;overflow-wrap:anywhere}
.year-card-body .year-card-description{margin:0;font:400 13px/1.55 "Batang",Georgia,serif;letter-spacing:-.25px;color:#605a52;text-shadow:none;word-break:keep-all}
.year-card-note{position:absolute;right:8px;top:0;white-space:pre-line;text-align:center;font:12px/1.4 "Batang",serif;color:#b8afa2;transform:rotate(-7deg);pointer-events:none}
.year-card-keywords{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:2px 0 3px;list-style:none}
.year-card-keywords li{border:0;border-radius:30px;padding:4px 9px;font-size:11px;line-height:1.25;color:#514d47;background:#ebe5dc;max-width:100%;box-sizing:border-box;word-break:keep-all;animation:year-chip-in .18s both;animation-delay:calc(.3s + var(--chip-order)*.035s)}
.year-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.year-card-action{display:flex;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;min-width:205px;max-width:100%;margin:0;padding:11px 19px;border:0;border-radius:40px;background:#403d39;color:#fcfaf5;font:500 13px/1.3 "Malgun Gothic",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.year-card-action span{font-size:19px;line-height:1}.year-card-action:hover{background:#252320}.year-card-action:focus-visible{outline:2px solid #867866;outline-offset:3px}
.year-card-action:disabled{opacity:1;background:#514d47;color:#f1ece3;cursor:default}.year-card-action:disabled span{font-size:10px;color:#c5bdb1;font-weight:400}
.year-card-stamp{white-space:pre-line;font:9px/1.4 ui-monospace,monospace;letter-spacing:.8px;color:#b6afa3;flex-shrink:0}
@keyframes year-chip-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:599px){
 .year-summary-card{border-radius:21px}.year-card-scroll{grid-template-columns:1fr;gap:13px;padding:13px;border-radius:20px}
 .year-card-image{height:116px;min-height:0;max-height:none;object-position:center 48%;border-radius:13px}
 .year-card-body{padding:0 4px 3px;gap:8px}.year-card-body .year-card-year{font-size:43px}.year-card-body .year-card-headline{font-size:18px;line-height:1.4}
 .year-card-body .year-card-description{font-size:12px}.year-card-note{right:8px;font-size:10px;top:0}.year-card-keywords{gap:5px;margin:3px 0}.year-card-keywords li{padding:5px 9px;font-size:10px}
 .year-card-action{min-width:190px;padding:10px 16px;font-size:12px}.year-card-stamp{font-size:8px}
}
@media(max-height:480px){
 .year-card-scroll{gap:11px;padding:11px;grid-template-columns:minmax(0,.35fr) minmax(0,.65fr)}
 .year-card-image{height:100%;min-height:145px;object-position:center}.year-card-body{padding:0;gap:6px}.year-card-body .year-card-year{font-size:35px}
 .year-card-body .year-card-headline{font-size:15px}.year-card-body .year-card-description{font-size:11px}.year-card-note{display:none}
 .year-card-keywords{gap:4px;margin:1px 0}.year-card-keywords li{padding:4px 7px;font-size:10px}.year-card-action{min-width:0;padding:8px 13px;font-size:11px}.year-card-stamp{font-size:7px}
}
@media(prefers-reduced-motion:reduce){.year-card-keywords li{animation:none}}
/* On a phone, keep the reference illustration's people in the shallow crop. */
@media(max-width:599px) and (min-height:481px){.year-summary-card[data-year="2026"] .year-card-image{object-position:center 80%}}

/* A consistent speech-card frame: content never changes the outside size. */
.reference-mobile-popup.year-card-host{--card-height:370px}
.year-summary-card{border-color:#d0c5b4;box-shadow:0 10px 24px #5b4c3624,0 2px 5px #5b4c3614}
.year-summary-card::before{content:"";position:absolute;left:calc(50% - 19px);bottom:-33px;width:38px;height:34px;background:#ded5c8;clip-path:polygon(0 0,100% 0,50% 100%);pointer-events:none}
.year-summary-card::after{left:calc(50% - 18px);bottom:-32px;width:36px;height:34px;border-radius:0;background:#faf7f0;transform:none;clip-path:polygon(0 0,100% 0,50% 100%);box-shadow:none}
.year-card-scroll{height:min(var(--card-height),var(--card-max-height));gap:26px;padding:24px;align-items:stretch}
.year-card-image{height:100%;min-height:0;max-height:none}
.year-card-body{gap:12px;padding:0;justify-content:safe center}
.year-card-body>*{flex-shrink:0}
.year-card-body .year-card-year{margin:0 0 5px}
.year-card-body .year-card-headline{margin:0;line-height:1.5}
.year-card-body .year-card-description{line-height:1.65}
.year-card-note{top:4px;right:3px;font-size:10px;line-height:1.5}
.year-card-keywords{gap:7px;margin:2px 0 4px}
.year-card-keywords li{padding:6px 10px;line-height:1.35}
.year-card-footer{gap:10px;margin-top:4px}
.year-card-action{min-width:0;flex:1;min-height:44px;padding:12px 14px;gap:12px;white-space:nowrap}
.year-card-stamp{font-size:8px;letter-spacing:.5px}
@media(max-width:599px){
 .reference-mobile-popup.year-card-host{--card-height:460px}
 .year-card-scroll{gap:18px;padding:18px;grid-template-rows:116px auto;align-content:start}
 .year-card-image{height:116px;min-height:116px}
 .year-card-body{gap:12px;padding:0 2px 2px;justify-content:flex-start}
 .year-card-body .year-card-year{margin-bottom:4px}
 .year-card-note{right:5px;top:0}
 .year-card-keywords{gap:7px;margin:2px 0 4px}
 .year-card-keywords li{padding:6px 10px}
 .year-card-action{min-width:0;padding:12px 13px;min-height:44px}
}
@media(max-height:480px){
 .reference-mobile-popup.year-card-host{--card-height:300px}
 .year-card-scroll{padding:16px;gap:18px;grid-template-rows:auto}
 .year-card-image{height:100%;min-height:145px}
 .year-card-body{gap:10px;padding:0}
 .year-card-keywords{gap:6px}.year-card-keywords li{padding:5px 8px}
 .year-card-action{min-height:40px;padding:10px 12px}
}

/* Slightly smaller phone card type; desktop typography is unchanged. */
@media(max-width:599px) and (min-height:481px){
 .year-card-body .year-card-year{font-size:39px}
 .year-card-body .year-card-headline{font-size:17px}
 .year-card-body .year-card-description{font-size:11px}
 .year-card-keywords li{font-size:9.5px}
 .year-card-action{font-size:11.5px}
 .year-card-note{font-size:9.5px}
}

/* Phone speech bubbles are text-only. */
@media(max-width:599px){
 .reference-mobile-popup.year-card-host{--card-height:320px}
 .year-card-scroll{grid-template-columns:1fr;grid-template-rows:auto;align-content:safe center;padding:16px}
 .year-card-image{display:none}
 .year-card-body{justify-content:safe center;gap:13px;padding:0}
}

/* Compact, complete annual teaser; detailed interpretation stays in the exhibition. */
.year-card-body .year-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
@media(max-width:599px){.year-card-body .year-card-description{margin-block:-3px}}
@media(max-width:359px){.year-summary-card[data-year="1986"] .year-card-body{gap:10px}}
