/* Independent release 48 — legible neighbourhood contracts and living NPC feed. */
.mh48-page{color:#e6f0f5;display:grid;gap:17px;padding-bottom:30px}
.mh48-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:20px;padding:25px;border-radius:16px;border:1px solid #527080;background:linear-gradient(130deg,#24434c,#122333);overflow:hidden;align-items:center}
.mh48-hero small,.mh48-home-panel small,.mh48-npc-section .mh48-section-head small{letter-spacing:.12em;color:#f1c58b;font-size:10px;font-weight:850}
.mh48-hero h1{font-size:clamp(27px,3.5vw,45px)!important;color:#fff!important;margin:9px 0!important;line-height:1.04!important}
.mh48-hero p,.mh48-section-head p{line-height:1.6;color:#c5d9e1;margin:8px 0}
.mh48-hero img{width:100%;height:200px;object-fit:cover;border-radius:11px;box-shadow:0 15px 30px #0005}
.mh48-summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid #405e6e;background:#1e3442;border-radius:12px;padding:13px 15px;font-size:12px;color:#d4e3ec}
.mh48-summary strong{color:#f2c98c;font-size:13px}
.mh48-summary span{border-left:1px solid #466171;padding-left:10px}
.mh48-grid,.mh48-npc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.mh48-contract{background:#203744;border:1px solid #455f6d;border-radius:12px;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.mh48-contract>img{height:145px;width:100%;object-fit:cover;display:block}
.mh48-contract-body{padding:15px;display:flex;flex-direction:column;gap:7px;flex:1}
.mh48-contract-body small{font-size:10px;color:#f1c483;font-weight:800;letter-spacing:.06em}
.mh48-contract h3{color:#f2f7f9!important;font-size:16px;line-height:1.28;margin:0!important}
.mh48-contract p{color:#bdced9;font-size:12px;line-height:1.53;margin:0!important}
.mh48-contract .mh48-location{font-size:11px;color:#91d0cd}
.mh48-reward{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 2px}
.mh48-reward span{font-size:10px;background:#314d5c;color:#e9f4fa;padding:5px 7px;border-radius:7px;border:1px solid #536d7c}
.mh48-contract button,.mh48-home-panel button{margin-top:auto}
.mh48-primary{background:#efc58e!important;color:#1c2830!important;border:1px solid #fbe0b0!important;border-radius:9px!important;padding:10px 14px!important;font-size:12px!important;font-weight:800!important;cursor:pointer;white-space:normal}
.mh48-primary:hover:not(:disabled){background:#ffddaa!important}
.mh48-primary:disabled,.mh48-contract button:disabled{background:#435763!important;color:#aabdc7!important;border-color:#536977!important;cursor:not-allowed}
.mh48-note,.mh48-opportunities-link,.mh48-reset{padding:18px;background:#1e3442;border:1px solid #415d6c;border-radius:13px;color:#d8eaf1}
.mh48-note h2,.mh48-opportunities-link h2,.mh48-reset h2{font-size:18px;color:#fff;margin:0 0 8px}
.mh48-note p,.mh48-opportunities-link p,.mh48-reset p{color:#bbd0d8;font-size:12px;line-height:1.6}
.mh48-reset{margin:20px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;border-color:#915e61}
.mh48-reset button{background:#593b43;color:#ffe8e9;padding:10px 13px;border-radius:9px;border:1px solid #b78285;font-weight:700;cursor:pointer;flex-shrink:0}
.mh48-home-panel{background:linear-gradient(110deg,#2d4b4c,#1a303c);border:1px solid #6d8280;border-radius:13px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:15px 0}
.mh48-home-panel h2{font-size:19px!important;color:#fff!important;margin:6px 0}
.mh48-home-panel p{color:#c5d5dd;font-size:12px;margin:0;line-height:1.5}
.mh48-npc-section{display:grid;gap:13px;margin:22px 0}
.mh48-section-head{display:flex;gap:16px;justify-content:space-between;align-items:flex-end}
.mh48-section-head h2{font-size:22px;color:#fff;margin:5px 0}
.mh48-section-head p{font-size:12px}
.mh48-section-head button{flex-shrink:0;border:1px solid #537081!important;border-radius:9px!important;background:#2e4856!important;color:#fff!important;padding:10px 12px!important;font-size:12px}
.mh48-npc-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.mh48-npc{display:flex;gap:11px;padding:14px;background:#203744;border:1px solid #445f6f;border-radius:12px;min-width:0}
.mh48-npc-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#bc8b60,#565568);color:#fff;font-size:18px;font-weight:850;border:2px solid #e6c195}
.mh48-npc:nth-child(3n) .mh48-npc-avatar{background:linear-gradient(145deg,#559b92,#374d64)}
.mh48-npc-body{min-width:0;flex:1;display:grid;gap:7px}
.mh48-npc strong{color:#fff;font-size:13px}
.mh48-npc small{font-size:10px;color:#96bcc7;line-height:1.35}
.mh48-npc p{font-size:11px;color:#d1dfe5;line-height:1.45;margin:0}
.mh48-relationship{display:flex;justify-content:space-between;gap:5px;color:#d6e6ef;font-size:9px}
.mh48-relationship b{color:#f2cc91}
.mh48-npc progress{height:7px;width:100%;accent-color:#83beaf}
.mh48-npc button{font-size:10px!important;border:1px solid #587382!important;border-radius:8px!important;background:#2e4958!important;color:#fff!important;padding:8px 10px!important;text-align:center}
.mh48-npc button:disabled{opacity:.65}
.mh48-opportunities-link{margin:22px 0}
@media(max-width:1240px){.mh48-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mh48-npc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.mh48-hero{grid-template-columns:1fr;padding:16px}.mh48-hero img{height:150px}.mh48-grid,.mh48-npc-grid{grid-template-columns:1fr}.mh48-npc{gap:12px}.mh48-contract>img{height:160px}.mh48-summary span{border-left:none;padding-left:0}.mh48-home-panel,.mh48-section-head,.mh48-reset{flex-direction:column;align-items:flex-start}.mh48-home-panel button,.mh48-reset button{width:100%}}
@media(prefers-reduced-motion:reduce){.mh48-primary,.mh48-contract,.mh48-npc{transition:none!important}}
/* Ensure the fresh-character placeholder is visible even before an avatar is selected. */
.hud-face26:not(img){background-color:#274858!important;color:#f5cc91}
*:focus-visible{outline:2px solid #f2cc91!important;outline-offset:3px}

.mh48-build-meta{color:#aec7d0;border-top:1px solid #456473;padding:14px 4px;margin:16px 0;font-size:11px;letter-spacing:.035em}
