.memory-context #app{max-width:1240px;margin:0 auto;padding:28px 24px 64px}.memories-page{color:#243e5a}.memories-breadcrumb{display:flex;gap:10px;align-items:center;font-size:14px;color:#6b7d8f;margin-bottom:30px}.memories-breadcrumb a{color:inherit}.memories-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px}.memories-heading h1{margin:0;font-size:38px;line-height:1.3;letter-spacing:-.5px}.memories-actions{display:flex;flex-wrap:wrap;gap:20px;align-items:center}.memories-intro{max-width:760px;font-size:17px;line-height:1.8;color:#61758b;margin:0 0 28px}.memories-search{display:flex;max-width:600px;margin-bottom:28px;gap:10px}.memories-search input{min-width:0;flex:1}.memory-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.memory-card{position:relative;overflow:hidden;border-radius:20px;background:#fff;border:1px solid #e3eaf1;box-shadow:0 4px 18px #284c6b08}.memory-card-copy{padding:26px 30px}.memory-card-copy:after{content:"→";position:absolute;right:28px;top:28px;color:#7a94ab;font-size:22px}.memory-card h2{padding-right:32px;overflow-wrap:anywhere}.memory-card h2{font-size:21px;line-height:1.4;margin:0 0 12px}.memory-card h2 a{color:inherit;text-decoration:none}.memory-card h2 a:after{content:'';position:absolute;inset:0}.memory-card:has(a:focus-visible){outline:3px solid #7daed9;outline-offset:3px}.memory-card:hover{border-color:#adc5da}.memory-card-copy>p{color:#63788d;font-size:17px;line-height:1.8;margin:0 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.memory-card footer{display:flex;flex-wrap:wrap;gap:8px 20px;color:#708399;font-size:14px;overflow-wrap:anywhere}.memory-empty{background:#fffaf6;border:1px solid #eadfd4;border-radius:22px;text-align:center;padding:54px 24px;color:#705b4d}.memory-empty>span{font:48px Georgia,serif;color:#b18c75}.memory-empty h2{font-size:23px;margin:12px 0}.memory-empty p{font-size:16px;margin-bottom:24px}.memories-pagination{display:flex;justify-content:center;gap:16px;margin-top:28px}.memory-create-layout{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:36px;margin-top:30px}.memory-guide{padding:28px 12px 28px 0}.memory-guide>span{font:64px Georgia,serif;color:#ad8065}.memory-guide h2{font-size:27px;line-height:1.5;margin:12px 0 18px}.memory-guide p{font-size:16px;line-height:1.9;color:#62768a}.memory-price{display:flex;align-items:baseline;gap:12px;margin:30px 0 8px}.memory-price strong{font-size:29px}.memory-price span{color:#697c8f}.memories-panel{background:#fff;border:1px solid #e0e9f1;border-radius:22px;padding:32px}.memories-panel label:not(.memory-confirm){display:block;margin:0 0 24px;font-size:17px;font-weight:600}.memories-panel input:not([type=checkbox]),.memories-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:10px;font:400 16px/1.6 system-ui}.memories-panel textarea{resize:vertical}.memories-panel small{display:block;color:#78899b;font-size:13px;font-weight:400;margin-top:8px;line-height:1.7}.memory-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.8;font-weight:400}.memory-confirm input{width:auto;flex:none;margin-top:6px}.memory-terms{color:#78899b;font-size:13px;line-height:1.8}.memory-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e4ebf1;padding-top:22px;margin-top:24px}.memory-photo-preview{margin-bottom:24px}.memory-photo-preview img{max-height:240px;max-width:100%;display:block;border-radius:12px;margin-bottom:10px}#memory-error{color:#b43f3a;font-size:14px;line-height:1.7}.memory-detail .obj-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.memory-detail h1{font-size:36px;line-height:1.4;overflow-wrap:anywhere;margin:0}.memory-detail .mono{font-size:15px;color:#6b8198;overflow-wrap:anywhere}.memory-byline{color:#7c8b9b;font-size:14px}.memory-description{font-size:19px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0;max-width:860px}.memory-detail .detail-actions{flex:none}.memory-detail .uoi-citation-entry{margin:0}.memory-context [hidden]{display:none!important}
@media(max-width:900px){.memory-create-layout{grid-template-columns:1fr;gap:16px}.memory-guide{padding:0}.memory-guide>span{display:none}.memory-guide h2{font-size:23px}.memory-price{margin:18px 0}.memories-heading h1{font-size:30px}}
@media(max-width:600px){.memory-context #app{padding:22px 18px 40px}.memories-heading{align-items:flex-start;flex-direction:column;gap:18px}.memories-heading h1{font-size:29px}.memory-grid{grid-template-columns:1fr}.memories-panel{padding:22px 18px}.memory-detail .obj-head{flex-direction:column}.memory-detail h1{font-size:28px}.memory-description{font-size:17px}.memory-form-footer{flex-wrap:wrap}.memories-breadcrumb{margin-bottom:22px}.memory-empty{padding:36px 18px}}
.memory-context .memories-heading{position:static;background:transparent;border:0;padding:0;box-shadow:none;width:auto;max-width:none}
.memory-context .memories-breadcrumb{padding:0;background:transparent;border:0;box-shadow:none;width:auto;max-width:none}
.memory-context .memory-detail .obj-head{position:static;background:transparent;padding:0;border:0;box-shadow:none}

.memory-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin:24px 0 0;padding-top:20px;border-top:1px solid #e5ecf2}
.memory-detail-meta p{margin:0;line-height:1.7}
.memory-detail figure.memory-photo{margin:28px 0 0}
.memory-photo-stage{display:flex;justify-content:center;align-items:center;min-width:0;padding:24px;background:#f7f8fa;border:1px solid #e6ebef;border-radius:16px;overflow:hidden;cursor:zoom-in}
.memory-detail .memory-photo-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:min(62vh,560px);object-fit:contain;border-radius:4px}
.memory-photo figcaption{display:flex;justify-content:space-between;gap:16px;margin-top:12px;font-size:13px;color:#7b8a98}
.memory-photo figcaption a{white-space:nowrap}
.memory-comments{margin-top:32px;padding-top:24px;border-top:1px solid #e5ecf2;scroll-margin-top:100px}.memory-comments>summary{cursor:pointer;font-size:20px;font-weight:600}.memory-comment{padding:20px 0;border-bottom:1px solid #e5ecf2}.memory-comment>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.memory-comment time{font-size:13px;color:#78899b}.memory-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:8px 0 0}.memory-comment-empty{color:#78899b;padding:14px 0}.memory-comments form{margin-top:22px}.memory-comments form button{margin-top:12px}.memory-comments textarea{min-height:100px}.memory-comments [role=status]{font-size:14px}.memory-detail .obj-head{flex-wrap:wrap}.memory-detail .discussion-entry.detail-actions{flex-shrink:1;justify-content:flex-start}.memory-detail .obj-head>h1{flex:1 1 280px}
@media(max-width:600px){.memory-card-copy{padding:22px}.memory-card-copy:after{right:20px;top:22px}.memory-card-copy>p{font-size:16px}.memory-card footer{font-size:13px}.memory-photo-stage{padding:12px}.memory-detail .memory-photo-stage img{max-height:55vh}.memory-detail-meta{align-items:flex-start;flex-direction:column}.memory-detail .obj-head{flex-direction:row;gap:12px}.memory-detail .detail-actions{align-self:flex-start}.memory-detail h1{font-size:27px}}

.memory-type-section{margin:0 0 30px}.memory-type-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.memory-type-heading h2{font-size:18px;margin:0}.memory-type-heading>span{font-size:13px;color:#6b8094}.memory-types{display:flex;flex-wrap:wrap;gap:10px}.memory-types a{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:12px 16px;border:1px solid #d6e3ee;border-radius:12px;background:#ffffffc9;color:#315574;text-decoration:none;transition:background .15s,border-color .15s}.memory-types a>span:first-child{overflow-wrap:anywhere}.memory-types strong{font-size:15px;font-variant-numeric:tabular-nums;min-width:24px;padding:1px 7px;background:#edf4fa;border-radius:7px;text-align:center}.memory-types a>span:last-child:not(:first-child){color:#7d96ad}.memory-types a:hover{border-color:#8eb5d7;background:#fff}.memory-types a[aria-current=page]{border-color:#2468a9;background:#2468a9;color:#fff}.memory-types a[aria-current=page] strong{background:#ffffff24;color:#fff}.memory-types a[aria-current=page]>span{color:#fff}.memory-types a:focus-visible{outline:3px solid #82b4de;outline-offset:3px}.memory-type-group{margin:0 0 28px}.memory-type-group>h2{font-size:20px;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}.memory-object-type{font-size:14px;white-space:normal;overflow-wrap:anywhere}.memory-context .memory-type-section,.memory-context .memory-type-group{background:transparent;border:0;padding:0;box-shadow:none}.memories-panel input[list]{padding-right:36px}@media(max-width:600px){.memory-types a{padding:10px 12px;gap:8px}.memory-type-heading{gap:6px}.memory-type-group>h2{font-size:18px}}
.memory-context nav.memory-types{padding:0;margin:0;justify-content:flex-start;width:auto;max-width:none;background:transparent;border:0;box-shadow:none}.memory-context .memory-types a{font-size:16px;line-height:1.4;min-height:44px}

/* Searchable type picker: one aligned row per type, with counts at the right. */
.memory-type-field{margin-bottom:24px}.memories-panel .memory-type-field>label{margin-bottom:10px}.memory-type-picker{position:relative}.memory-type-control{position:relative}.memories-panel .memory-type-control input{margin:0;padding:13px 46px 13px 16px;border:1px solid #ccdce9;border-radius:10px;background:#fff;color:#243e5a;line-height:1.5}.memories-panel .memory-type-control input:focus{outline:0;border-color:#357bb7;box-shadow:0 0 0 3px #327eb419}.memories-panel .memory-type-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;margin:0;padding:0;background:transparent;border:0;border-radius:7px;color:#70859b;box-shadow:none}.memory-type-toggle:hover{background:#eef4f9}.memory-type-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.memory-type-menu{position:absolute;z-index:60;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #dce5ee;border-radius:12px;box-shadow:0 12px 32px #203c5b18,0 2px 6px #203c5b08;overflow:hidden}.memory-type-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px 10px;color:#7a8b9e;font-size:12px;font-weight:500;border-bottom:1px solid #edf2f6}.memory-type-menu [role=listbox]{padding:6px;max-height:min(280px,42vh);overflow-y:auto;overscroll-behavior:contain}.memory-type-option{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;padding:10px;border-radius:7px;cursor:pointer;color:#2c435c;font-size:16px;line-height:1.5;font-weight:400;box-sizing:border-box}.memory-type-option:hover,.memory-type-option.is-active{background:#f0f5fa}.memory-type-option[aria-selected=true]{background:#eaf3fc;color:#2369aa}.memory-type-option-name{min-width:0;overflow-wrap:anywhere}.memory-type-option-count{flex:none;min-width:32px;padding:2px 8px;border-radius:6px;background:#f0f3f7;color:#65798e;font-size:13px;font-weight:500;line-height:1.6;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.memory-type-option[aria-selected=true] .memory-type-option-count{background:#dceafb;color:#2369aa}.memory-type-new{color:#2468a9;border-top:1px solid #edf2f6;margin-top:5px;padding-top:12px}.memory-type-plus{margin-right:7px}.memory-type-new-hint{flex:none;font-size:12px;color:#7890a6}.memory-type-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:600px){.memory-type-option{min-height:48px}.memory-type-menu-heading{padding-left:14px;padding-right:14px}}
.memory-type-menu.is-above{top:auto;bottom:calc(100% + 8px)}

/* Compact document header: title, identity, then one unified action row. */
.memory-context #app:has(.memory-detail){max-width:1104px}
.memory-context .memory-detail{padding:28px 32px;border-radius:18px}
.memory-context .memory-detail .obj-head{display:block;padding:0 0 20px;border-bottom:1px solid #e5ecf2;border-radius:0}
.memory-detail .memory-title-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px 14px}
.memory-detail .memory-title-line h1{font-size:32px;line-height:1.3;margin:0;min-width:0}
.memory-title-line .memory-object-type{display:inline-block;padding:3px 10px;border-radius:5px;background:#f0f5f9;color:#59758f;font-size:13px;text-decoration:none}
.memory-title-line .memory-object-type:hover{background:#e5eef7;color:#2468a9}
.memory-detail .memory-detail-meta{display:flex;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:6px 20px;border:0;padding:0;margin:10px 0 16px}
.memory-detail .memory-detail-meta .mono{font-size:14px;color:#627a92}
.memory-detail .memory-detail-meta .memory-byline{font-size:14px;color:#718398}
.memory-detail .memory-description{margin:22px 0 0;font-size:18px;line-height:1.8;max-width:76ch}
.memory-detail .memory-comments{margin-top:24px;padding-top:20px}
@media(max-width:600px){.memory-context .memory-detail{padding:22px 18px}.memory-detail .memory-title-line h1{font-size:27px}.memory-detail .memory-detail-meta{gap:5px 14px;margin:10px 0 16px}.memory-detail .memory-description{font-size:17px;margin-top:20px}.memory-context .memory-detail .obj-head{padding-bottom:18px}}

/* A readable discussion thread and a single, contained comment composer. */
.memory-detail .memory-comments>summary{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:4px 0;list-style:none;border:0;border-radius:5px;outline:none;font-size:20px;line-height:1.5;font-weight:600;color:#203d5e}
.memory-comments>summary::-webkit-details-marker{display:none}
.memory-comments>summary::marker{content:''}
.memory-detail .memory-comments>summary:focus-visible{outline:2px solid #337bb7;outline-offset:5px}
.memory-comments-total{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;box-sizing:border-box;padding:0 7px;border-radius:6px;background:#edf2f7;color:#62788e;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.memory-comments-chevron{flex:none;color:#8295a8;margin-left:2px;transition:transform .15s ease}
.memory-comments[open] .memory-comments-chevron{transform:rotate(180deg)}
.memory-comments-content{max-width:800px;padding-top:20px}
.memory-comments .memory-comment-empty{display:flex;align-items:center;gap:12px;padding:4px 0 18px;color:#7a8c9e;font-size:15px}
.memory-comment-empty svg{width:22px;height:22px;flex:none;color:#97a9ba}
.memory-comments .memory-comment-empty p{margin:0;line-height:1.6}
.memory-comments .memory-comment{display:flex;align-items:flex-start;gap:14px;padding:20px 0;border-bottom:1px solid #edf1f5}
.memory-comments .memory-comment:first-child{padding-top:0}
.memory-comment .memory-comment-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border:1px solid #dce8f2;border-radius:50%;background:#eef5fb;color:#507697;font-size:13px;font-weight:600;letter-spacing:.02em}
.memory-comment>.memory-comment-content{display:block;min-width:0;flex:1}
.memory-comment .memory-comment-meta{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:flex-start;gap:4px 14px;min-height:24px;line-height:1.5}
.memory-comment-meta strong{font-size:15px;font-weight:600;color:#294661;overflow-wrap:anywhere}
.memory-comment-meta a{color:inherit;text-decoration:none}
.memory-comment-meta a:hover{color:#2468a9;text-decoration:underline}
.memory-comment-meta time{font-size:12px;color:#8a9aab;white-space:nowrap}
.memory-comments .memory-comment p{font-size:16px;line-height:1.8;color:#425970;margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.memory-comments #memory-comment-form{margin:20px 0 0;padding:0}
.memory-composer{border:1px solid #d5e1eb;border-radius:12px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s}
.memory-composer:focus-within{border-color:#82acd0;box-shadow:0 0 0 3px #2468a90b}
.memory-comments .memory-composer>label{display:block;margin:0;padding:11px 16px;border-bottom:1px solid #e7edf3;background:#f7f9fc;font-size:14px;font-weight:600;line-height:1.5;color:#526b83}
.memory-comments .memory-composer textarea{display:block;box-sizing:border-box;width:100%;min-height:112px;max-height:480px;margin:0;padding:14px 16px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;font:400 16px/1.7 system-ui,sans-serif;color:#29435c;resize:vertical}
.memory-composer textarea::placeholder{color:#97a7b7}
.memory-composer-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:10px 12px 12px 16px;border-top:1px solid #edf1f5;background:#fff}
#memory-comment-length{color:#8a9bac;font-size:12px;font-variant-numeric:tabular-nums}
.memory-comments .memory-composer-footer button{min-height:36px;margin:0;padding:8px 16px;border:1px solid #2468a9;border-radius:7px;background:#2468a9;color:#fff;font:500 14px/1.4 system-ui,sans-serif;box-shadow:none;cursor:pointer}
.memory-comments .memory-composer-footer button:hover:not(:disabled){background:#1e5a93}
.memory-comments .memory-composer-footer button:disabled{background:#ecf1f6;border-color:#e0e8f0;color:#94a6b8;cursor:not-allowed;opacity:1}
.memory-comments #memory-comments-more{margin:14px 0 4px;padding:7px 12px;border:1px solid #d7e3ee;border-radius:7px;background:#fff;color:#2867a5;font-size:14px}
.memory-comments .memory-comment-feedback,#memory-comments-status{margin:10px 0 0;font-size:14px;line-height:1.6;color:#42765d}
.memory-comments .memory-comment-feedback:empty,#memory-comments-status:empty{display:none}
.memory-comments .memory-comment-feedback[data-error],#memory-comments-status{color:#b23a38}
.memory-comment-signin{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:18px 20px;border:1px solid #e0e8f0;border-radius:10px;background:#f8fafc;color:#6b8195;font-size:15px}
.memory-comment-signin a{color:#2468a9;font-weight:500;text-decoration:none}
.memory-comment-signin a:hover{text-decoration:underline}
@media(max-width:600px){.memory-comments-content{padding-top:16px}.memory-comments .memory-comment{gap:10px}.memory-comment .memory-comment-avatar{width:30px;height:30px;font-size:11px}.memory-comment .memory-comment-meta{gap:3px 10px}.memory-comment-meta strong{font-size:14px}.memory-comments .memory-comment p{font-size:15px}.memory-comments .memory-composer>label{padding:10px 12px}.memory-comments .memory-composer textarea{padding:12px;min-height:112px}.memory-composer-footer{padding:10px 12px}.memory-comments .memory-comment-empty{font-size:14px}}
