/* Approved Phase 6C Option A. Scoped to Then & Now only; no Memory Lane redesign. */
.tn-page .memory-photo-frame{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px!important;background:#f7fbff!important;border:1px solid #c8dceb!important;border-radius:7px!important;box-shadow:0 12px 32px #164b7212;min-width:0;overflow:hidden}
.tn-page .memory-photo-surface{display:flex;align-items:center;justify-content:center;width:100%;max-height:660px;overflow:hidden;background:#e8f0f6;border-radius:3px;min-width:0;margin-inline:auto}
.tn-page .memory-photo-frame .memory-photo-surface img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;transform:none!important;border-radius:0!important}
body:has(.tn-page){color:var(--ink)}
.tn-page{background:transparent;padding-bottom:90px}
.tn-page .tn-intro{max-width:850px;margin-inline:auto;text-align:center;padding-block:24px}
.tn-page .tn-intro h1{font-size:clamp(44px,6vw,80px);color:#184d91;letter-spacing:-2px}
.tn-page .tn-intro h1 em{color:#4b8ed0}
.tn-page .tn-intro p{max-width:640px;margin-inline:auto;color:#4d6e93;line-height:1.85}
.tn-page .ml-memory-wall{background:#f9fcff;border:1px solid #d2e2ee;box-shadow:0 10px 36px #244b6810;padding:18px;margin-block:20px}
.tn-page .ml-memory-wall h2{font:600 30px/1.2 Georgia,serif;color:#184d91;letter-spacing:-.7px}
.tn-page .ml-memory-wall .ml-comment{background:#eaf2f9}
.tn-page .ml-memory-wall .ml-comment-text{line-height:1.5}
.tn-page .ml-wall-actions button{min-height:32px}
.tn-page .ml-thread-replies{border-color:#bdd4e5}
.tn-page .tn-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:64px;max-width:1080px;margin:12px auto 60px}
.tn-page .tn-card{padding:clamp(18px,4vw,50px);border:1px solid #d1e1ed;border-radius:18px;background:#fffdfb;box-shadow:0 18px 65px #214e7010}
.tn-page .tn-card>.tn-entry-type{background:none;padding:0;font-size:10px;letter-spacing:2.3px;color:#4d6e93}
.tn-page .tn-card>h3{font:600 clamp(30px,4vw,48px)/1.15 Georgia,serif;color:#184d91;margin:14px 0}
.tn-page .tn-introduction{font-size:15px;color:#4d6e93;line-height:1.7;margin-bottom:30px}
.tn-page .tn-pair{grid-template-columns:1fr 1fr;gap:24px;margin:24px 0;align-items:center}
.tn-page .tn-photo{min-height:0;overflow:hidden}
.tn-page .tn-photo>span{position:static;align-self:flex-start;margin:0 0 12px;padding:0;background:none;color:#4d6e93;border-radius:0;font:600 11px Arial,sans-serif;letter-spacing:2px}
.tn-page .tn-photo p{font-size:14px;padding:50px 8px}
.tn-page .tn-photo .memory-photo-surface{max-height:650px}
.tn-page .tn-story{max-width:76ch;margin:16px auto 14px;padding-left:14px;border-left:2px solid #bed4e5;font:17px/1.6 Georgia,serif;color:var(--ink)}
.tn-page .tn-card>.ml-memory-wall{margin:16px 0 0}
.tn-page .tn-compare-hint{font-size:12px;color:#4d6e93}
.tn-page .tn-view-controls{justify-content:center}
.tn-page .tn-card .tn-view-controls button{border:1px solid #d2e1ed;font-size:12px;background:#f3f8fc;color:#225293}
.tn-page .tn-card .tn-view-controls button[aria-pressed=true]{background:#315f80;color:white}
.tn-page .tn-slider-control{margin-top:12px;background:#eaf3fa;font-size:12px}
.tn-page .tn-overlay .tn-pair{aspect-ratio:var(--comparison-ratio,1.6);width:100%;max-width:var(--comparison-width,100%);margin-inline:auto;display:block}
.tn-page .tn-overlay .tn-photo{padding:0!important;border:0!important;box-shadow:none;border-radius:0!important;position:absolute;inset:0}
.tn-page .tn-overlay .memory-photo-surface{position:absolute;inset:0;width:100%;height:100%;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0}
.tn-page .tn-overlay .tn-photo .memory-photo-surface img{object-fit:contain!important;object-position:center!important}
.tn-page .tn-overlay .tn-photo>span{position:absolute;top:10px;left:10px;z-index:2;align-self:auto;padding:5px 9px;background:#234d72;color:white;font-size:10px;border-radius:20px;margin:0}
.tn-page .tn-overlay .tn-then>span{left:auto;right:10px}
@media(max-width:650px){.tn-page .memory-photo-frame{padding:10px!important}
.tn-page .tn-pair{gap:10px}
.tn-page .tn-card{padding:16px}
.tn-page .tn-photo>span{font-size:10px;letter-spacing:1px}
.tn-page .tn-photo p{padding:35px 3px;font-size:12px}
.tn-page .tn-story{font-size:16px;padding-left:14px}
.tn-page .tn-grid{gap:32px}
.tn-page .ml-memory-wall{padding:12px}
.tn-page .memory-photo-surface{max-height:560px}
.tn-page .tn-overlay .tn-photo>span{top:5px;left:5px;font-size:9px;padding:4px 7px}
.tn-page .tn-overlay .tn-then>span{left:auto;right:5px}}
@media(prefers-reduced-motion:reduce){.tn-page .memory-photo-frame{transition:none!important;transform:none!important}}
.tn-page .ml-memory-wall{max-width:900px;margin-inline:auto}
.tn-page .memory-photo-surface{aspect-ratio:3/2}
@media(max-width:650px){.tn-page .ml-wall-actions button{min-height:44px}}
.tn-page .kicker{color:#287bc3}
.tn-page .tn-card>.tn-entry-type,.tn-page .tn-introduction,.tn-page .tn-compare-hint{color:#4d6e93}
.tn-page .tn-overlay .tn-photo{max-width:none!important;width:100%;height:100%}

/* Phase 7: reuse the compact Memory Lane control density inside Then & Now. */
.tn-page .ml-memory-wall .ml-wall-refresh{padding:6px 10px;min-height:32px;border-radius:24px;background:#e0edf8;color:#214f7f;font:650 13px system-ui}
.tn-page .ml-memory-wall [data-wall="comment-list"]>button{padding:8px 12px;border-radius:16px;background:#e0edf8;color:#235a8e;font:650 14px system-ui;min-height:32px}
@media(max-width:600px){.tn-page .ml-memory-wall [data-wall="comment-list"]>button{min-height:44px}}
