/* Portal resource pages: post + detail */
.form-shell.wide{width:min(820px,calc(100% - 28px));max-width:820px;margin:34px auto 60px;padding:28px 30px;background:#fff;border:1px solid #dfe8ed;border-radius:7px;box-shadow:0 16px 38px rgba(10,55,85,.07)}
.form-shell .eyebrow{color:#b5831f;letter-spacing:.18em}
.form-shell h1{margin:7px 0 7px;font-size:31px;line-height:1.15;letter-spacing:-.035em;color:var(--navy)}
.form-shell>p{margin:0 0 18px;color:#6a7f8e;font-size:11px;line-height:1.8}
.form-shell label{display:block;margin:0 0 11px;color:#3f5b70;font-size:10px;font-weight:700}
.form-shell input,.form-shell select,.form-shell textarea{display:block;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #dce6eb;border-radius:3px;background:#fbfdfe;color:var(--ink);font:inherit;font-size:11px;outline:0}
.form-shell textarea{min-height:130px;resize:vertical}
.form-shell input:focus,.form-shell select:focus,.form-shell textarea:focus{border-color:#9cc8df;background:#fff;box-shadow:0 0 0 2px rgba(24,168,216,.08)}
.form-shell h3{margin:18px 0 8px;font-size:14px;color:var(--navy)}
.form-shell .upload-one{padding:11px;border:1px dashed #c9dae3;border-radius:3px;background:#f8fbfc}
.form-shell .upload-one input{padding:7px;background:#fff}
.form-shell .upload-one small{display:block;margin-top:4px;color:#8a9ca8;font-size:8px;line-height:1.6}
.form-shell .notice{margin:9px 0 13px;padding:10px 12px;border-left:2px solid var(--gold);background:#fffaf0;color:#7e693f;font-size:9px;line-height:1.7}
.form-shell .btn.primary,.form-shell .btn.full{display:block;width:100%;margin-top:6px;padding:11px 16px;border:0;border-radius:3px;background:var(--gold);color:#332506;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.form-shell .btn.primary:hover,.form-shell .btn.full:hover{background:#f6d98b}

.detail{width:min(1080px,calc(100% - 28px));max-width:1080px;margin:34px auto 60px;padding:30px;background:#fff;border:1px solid #dfe8ed;border-radius:7px;box-shadow:0 16px 38px rgba(10,55,85,.07)}
.detail>.tag{display:inline-flex;padding:4px 9px;border-radius:2px;background:#2b8067;color:#fff;font-size:8px;font-weight:800}
.detail h1{margin:10px 0 5px;font-size:clamp(26px,3.4vw,38px);line-height:1.18;letter-spacing:-.035em;color:var(--navy)}
.detail>.muted{color:#7b8f9c;font-size:10px}
.listing-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.listing-gallery a{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:6px;background:#eef4f7}
.listing-gallery a:only-child{grid-column:1/-1}
.detail .listing-gallery img{width:100%;height:100%;max-height:none;object-fit:cover;display:block}
.detail-body{margin:16px 0;color:#405b6c;font-size:14px;line-height:1.65;letter-spacing:.005em;white-space:pre-wrap}
.detail .notice{margin:12px 0;padding:11px 13px;border-left:2px solid var(--gold);background:#fffaf0;color:#7e693f;font-size:10px;line-height:1.8}
.detail .notice.success{border-left-color:#2b8067;background:#eff9f4;color:#246548}
.contact-reveal{margin:16px 0;padding:16px;border:1px solid #dfe8ed;border-radius:5px;background:#f8fbfc}
.contact-reveal h3{margin:0 0 7px;font-size:14px;color:var(--navy)}
.contact-reveal p{margin:4px 0;font-size:11px;color:#405b6c}
.contact-reveal a{color:var(--blue);font-weight:700}
.detail .btn.primary,.detail .btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:0;border-radius:3px;background:var(--gold);color:#332506;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.detail .btn:hover{background:#f6d98b}
.detail form{margin:8px 0}
.detail form p{font-size:10px;color:#6a7f8e}
.detail .empty{padding:30px;text-align:center;color:#6a7f8e}
@media(max-width:860px){
  .form-shell.wide,.detail{width:calc(100% - 20px);margin:18px auto 38px;padding:20px 16px}
  .form-shell h1{font-size:26px}
  .detail h1{font-size:28px}
}
@media(max-width:560px){
  .listing-gallery{grid-template-columns:1fr}
  .detail{padding:16px}
  .detail h1{font-size:24px}
}


.edit-existing-images{margin:0 0 11px;padding:9px;border:1px solid #e1e9ee;border-radius:3px;background:#fbfdfe}
.edit-existing-images small{display:block;color:#8195a2;font-size:8px;margin-bottom:5px}
.edit-existing-images div{display:flex;gap:6px;flex-wrap:wrap}
.edit-existing-images img{width:72px;height:54px;object-fit:cover;border-radius:3px;border:1px solid #dce7ed}
