/* =============================================================================
   43 — Publications (2026-11-02)
   Firm /firm/publications/ (list + editor) and client /portal/updates/.
   Reuses the shell components (.panel, .stat-card, .badge, .firm-field, .btn,
   .mt-chip, .rd-btn, .fl-pdf-link); adds only the publication-specific pieces.
   ============================================================================= */

.portal-shell .fl-pub-lede{margin:-4px 0 18px;max-width:760px;color:var(--mid);font-size:14.5px;line-height:1.55}

/* ---- Shared tags ---------------------------------------------------------- */
.portal-shell .fl-pub-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:6px}
.portal-shell .fl-pub-type,
.portal-shell .fl-pub-ed,
.portal-shell .fl-pub-aud,
.portal-shell .fl-upd-new{
	display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;
	font-size:11.5px;font-weight:600;letter-spacing:.02em;white-space:nowrap;
}
.portal-shell .fl-pub-type{background:#eef2fb;color:var(--blue-ink,#0b1f4b)}
.portal-shell .fl-pub-ed{background:#f4f5f7;color:var(--mid)}
.portal-shell .fl-pub-aud{background:#eaf6ef;color:#14713d}
.portal-shell .fl-pub-aud.is-clients{background:#fdeaea;color:#b4161d}
.portal-shell .fl-upd-new{background:var(--red,#ed1c24);color:#fff}

/* ---- Firm list ------------------------------------------------------------- */
.portal-shell.firm-shell .fl-pub-list{list-style:none;margin:0;padding:0}
.portal-shell.firm-shell .fl-pub-row{
	display:flex;gap:16px;align-items:center;justify-content:space-between;
	padding:16px var(--fp-pad,22px);border-top:1px solid #eef0f4;
}
.portal-shell.firm-shell .fl-pub-row:hover{background:#f8f9fc}
.portal-shell.firm-shell .fl-pub-main{min-width:0;flex:1}
.portal-shell.firm-shell .fl-pub-title{display:block;font-weight:600;font-size:15px;line-height:1.35;color:var(--blue-ink,#0b1f4b);text-decoration:none;overflow-wrap:anywhere}
.portal-shell.firm-shell .fl-pub-title:hover{color:var(--red-dark,#b4161d)}
.portal-shell.firm-shell .fl-pub-meta{margin-top:3px;font-size:12.5px;color:var(--mid)}
.portal-shell.firm-shell .fl-pub-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.portal-shell.firm-shell .fl-pub-actions{display:flex;gap:8px}
.portal-shell .fl-pub-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px;font-size:13px;color:var(--mid)}

/* ---- Firm editor ----------------------------------------------------------- */
.portal-shell.firm-shell .fl-pub-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.portal-shell.firm-shell .fl-pub-col-main,
.portal-shell.firm-shell .fl-pub-col-side{min-width:0;display:flex;flex-direction:column;gap:16px}
.portal-shell.firm-shell .fl-pub-card{margin:0;padding:18px 20px}
.portal-shell.firm-shell .fl-pub-card .panel-head{padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid #eef0f4}
.portal-shell.firm-shell .fl-pub-card .firm-field{margin-bottom:14px}
.portal-shell.firm-shell .fl-pub-card .firm-field:last-child{margin-bottom:0}
.portal-shell.firm-shell .fl-pub-form input[type="text"],
.portal-shell.firm-shell .fl-pub-form input[type="datetime-local"],
.portal-shell.firm-shell .fl-pub-form select,
.portal-shell.firm-shell .fl-pub-form textarea{width:100%;max-width:100%}
.portal-shell.firm-shell .fl-pub-form #pub_title{font-size:17px;font-weight:600}
.portal-shell.firm-shell .fl-pub-editor .wp-editor-wrap{border:1px solid var(--hair);border-radius:10px;overflow:hidden}
.portal-shell.firm-shell .fl-pub-editor .wp-editor-container{border:0}
.portal-shell.firm-shell .fl-pub-editor .wp-editor-area{min-height:340px;font-size:15px;line-height:1.6;padding:14px;border:0}
.portal-shell.firm-shell .fl-pub-editor .wp-editor-tabs{float:right}
.portal-shell.firm-shell .fl-pub-editor .wp-switch-editor{font-size:12px}
.portal-shell.firm-shell .fl-pub-aud-field{border:0;padding:0;margin:0 0 14px}
.portal-shell.firm-shell .fl-pub-aud-field legend{font-size:12.5px;font-weight:600;color:var(--ink);margin-bottom:6px}
.portal-shell.firm-shell .fl-pub-radio{
	display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin-bottom:8px;
	border:1px solid var(--hair);border-radius:10px;cursor:pointer;font-weight:400;
}
.portal-shell.firm-shell .fl-pub-radio:has(input:checked){border-color:var(--blue-ink,#0b1f4b);background:#f6f8fd}
.portal-shell.firm-shell .fl-pub-form .fl-pub-radio input[type="radio"],
.portal-shell.firm-shell .fl-pub-form .fl-pub-check input[type="checkbox"],
.portal-shell.firm-shell .fl-pub-form .fl-pub-inline input[type="checkbox"]{
	width:16px !important;height:16px !important;min-width:16px;padding:0 !important;margin:3px 0 0;flex:0 0 16px;box-shadow:none;
}
.portal-shell.firm-shell .fl-pub-radio > span{flex:1;min-width:0}
.portal-shell.firm-shell .fl-pub-radio b{display:block;font-size:13.5px;color:var(--ink)}
.portal-shell.firm-shell .fl-pub-radio small{display:block;font-size:12px;line-height:1.45;color:var(--mid);margin-top:2px}
.portal-shell.firm-shell .fl-pub-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;cursor:pointer}
.portal-shell.firm-shell .fl-pub-check input{margin-top:2px;flex-shrink:0}
.portal-shell.firm-shell .fl-pub-file{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13px}
.portal-shell.firm-shell .fl-pub-file a{overflow-wrap:anywhere}
.portal-shell.firm-shell .fl-pub-inline{display:inline-flex;gap:5px;align-items:center;font-size:12.5px;color:var(--mid);font-weight:400;white-space:nowrap}
.portal-shell.firm-shell .fl-pub-thumb{width:120px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--hair)}
.portal-shell.firm-shell .fl-pub-buttons{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.portal-shell.firm-shell .fl-pub-buttons .btn{width:100%;justify-content:center}
.portal-shell.firm-shell .fl-pub-delete{margin-top:18px;text-align:right}
.portal-shell.firm-shell .fl-pub-del-btn{background:none;border:0;color:var(--red-dark,#b4161d);font-size:13px;text-decoration:underline;cursor:pointer;padding:6px}

/* ---- Client portal: Updates ------------------------------------------------ */
.portal-shell .fl-upd-chips{display:flex;flex-wrap:wrap !important;gap:8px;margin:0 0 18px;overflow:visible !important}
.portal-shell .fl-upd-chips .mt-chip{text-decoration:none}
.portal-shell .fl-upd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.portal-shell .fl-upd-card{margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
.portal-shell .fl-upd-img{display:block;aspect-ratio:16/8;background:#eef0f4;overflow:hidden}
.portal-shell .fl-upd-img img{width:100%;height:100%;object-fit:cover;display:block}
.portal-shell .fl-upd-body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.portal-shell .fl-upd-title{margin:4px 0 4px;font-size:18px;line-height:1.3}
.portal-shell .fl-upd-title a{color:var(--blue-ink,#0b1f4b);text-decoration:none}
.portal-shell .fl-upd-title a:hover{color:var(--red-dark,#b4161d)}
.portal-shell .fl-upd-meta{font-size:12.5px;color:var(--mid)}
.portal-shell .fl-upd-excerpt{margin:10px 0 0;font-size:14px;line-height:1.55;color:var(--ink)}
.portal-shell .fl-upd-actions{margin-top:auto;padding-top:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.portal-shell .fl-bell-icon[data-type="update"],
.portal-shell .activity-icon[data-type="update"]{background:#eaf6ef;color:#14713d}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width:1024px){
	.portal-shell.firm-shell .fl-pub-layout{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
	.portal-shell.firm-shell .fl-pub-row{flex-direction:column;align-items:stretch;gap:10px}
	.portal-shell.firm-shell .fl-pub-side{flex-direction:row;align-items:center;justify-content:space-between}
	.portal-shell.firm-shell .fl-pub-card{padding:16px}
	.portal-shell .fl-upd-grid{grid-template-columns:minmax(0,1fr)}
	.portal-shell .fl-upd-title{font-size:17px}
}
