/* Keep the managed Trees panel on its existing pale blue surface. */
.sg-managed-collection #sgCollectionPanel{margin-bottom:0}
.sg-managed-collection #sgCollectionPanel>.form-help-content{background:transparent;padding:0;border-radius:0}
.sg-collection-content{font:inherit;color:inherit;min-width:0;display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px}
/* Match the existing 350px text + 250px image flex layout. The image follows
   the complete text/Profile column when it wraps, and precedes the footer. */
.sg-collection-main{flex:1 1 350px;min-width:0}
.sg-collection-prose{max-width:70ch}
.sg-collection-content a:link,.sg-collection-content a:visited{color:var(--text-accent);font-family:inherit;text-decoration:underline;text-underline-offset:3px}
.sg-collection-content a:hover{color:var(--brand-900)}
.sg-collection-content .sg-collection-values a:link,.sg-collection-content .sg-collection-values a:visited{color:var(--brand-900);font-weight:600}
.sg-collection-content .sg-collection-values a:hover{color:var(--text-accent)}
.sg-collection-content a:focus-visible{outline:2px solid var(--brand-900);outline-offset:3px}
.sg-collection-content .sg-collection-narrative{margin:0 0 .9rem}
.sg-collection-profile-card{background:#f8f9fa;border-left:4px solid var(--brand-900);border-radius:8px;padding:20px;margin:24px 0 0;min-width:0;max-width:42rem}
.sg-collection-profile-title{font-size:1.05rem;font-weight:700;line-height:1.6;margin:0 0 12px;color:var(--brand-900)}
.sg-collection-profile{margin:0}
.sg-collection-metric{display:flex;flex-wrap:wrap;gap:7px 22px;border-top:1px solid var(--border-subtle);padding:13px 0}
.sg-collection-metric dt{flex:0 1 220px;font-size:inherit;font-weight:700;color:var(--text-main)}
.sg-collection-metric dd{flex:1 1 280px;min-width:0;margin:0;font-size:inherit}
.sg-collection-secondary{display:block;margin-top:3px;color:var(--text-muted)}
.sg-collection-scale-context,.sg-collection-scale-detail{display:block;font-size:.875rem;line-height:1.6}
.sg-collection-scale-detail{margin-top:7px}
.sg-collection-unit{font-size:inherit;font-weight:400}
.sg-collection-content .sg-collection-values{list-style:none;margin:0;padding:0;max-width:24rem}
.sg-collection-content .sg-collection-values li{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:0 10px;margin:0 0 5px;padding:0}
.sg-collection-content .sg-collection-values li:last-child{margin-bottom:0}
.sg-collection-name{min-width:0;overflow-wrap:anywhere}
.sg-collection-measure{white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto}
.sg-collection-share{color:var(--text-muted);font-size:inherit}
.sg-collection-region-note{display:block;font-size:.8125rem;line-height:1.5;max-width:28ch;color:var(--text-muted)}
/* Native help follows the site's existing SVG and sits on the label's line. */
.sg-collection-content .sg-metric-help{background:transparent;border:0;padding:0;border-radius:0;box-shadow:none;margin:0}
.sg-collection-content .sg-metric-help>summary{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0;max-width:100%;font:inherit;color:inherit;list-style:none;cursor:pointer}
.sg-collection-content .sg-metric-help>summary::-webkit-details-marker{display:none}
.sg-collection-content .sg-metric-help>summary svg{flex:0 0 14px;width:14px;height:14px;color:var(--brand-900)}
.sg-collection-category-bullet{color:var(--brand-900);font-size:.8em}
.sg-collection-content .sg-metric-help-content{font-size:.9rem;font-weight:400;line-height:1.6;color:var(--text-muted);margin-top:6px}
.sg-collection-content .sg-collection-expand{display:inline-flex;align-items:center;gap:5px;min-height:38px;margin:4px 0 0;padding:3px 0;background:transparent;border:0;border-radius:0;box-shadow:none;font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.5;color:var(--text-accent);cursor:pointer}
.sg-collection-metric{overflow-anchor:none}
.sg-collection-expand svg{flex:none;transform:rotate(90deg);transition:transform .15s}
.sg-collection-expand[aria-expanded=true] svg{transform:rotate(270deg)}
.sg-collection-expand:hover{color:var(--brand-900)}
.sg-collection-content [hidden]{display:none!important}
.sg-collection-tie-note{font-size:.875rem;margin:8px 0 0}
.sg-collection-footer{flex:0 1 100%;width:100%;max-width:42rem;margin-top:6px}
.sg-collection-related{margin:0;padding:0;border:0}
.sg-collection-related .sg-section-title{margin:0 0 8px;line-height:1.5}
.sg-collection-content .sg-collection-related .related-list{display:block;list-style:none;margin:0;padding:0}
.sg-collection-content .sg-collection-related .related-list li{margin:0 0 4px;padding:0;border:0}
.sg-collection-content .sg-collection-related .related-list li:last-child{margin:0}
.sg-collection-content .sg-collection-related .related-list a{display:inline-block;max-width:100%;min-height:30px;padding:2px 0;color:var(--brand-900);font-size:1rem;font-weight:600;text-decoration:none;vertical-align:top;overflow-wrap:anywhere}
.sg-collection-content .sg-collection-related .related-list a:hover,.sg-collection-content .sg-collection-related .related-list a:focus-visible{color:var(--text-accent);text-decoration:underline}
.sg-collection-content .sg-collection-sources{max-width:42rem;margin:16px 0 0;font-size:.875rem;font-weight:400;color:var(--text-muted);line-height:1.6;overflow-wrap:anywhere}
.sg-collection-content .sg-collection-sources a{font-weight:600}
.sg-collection-content button:focus-visible{outline:2px solid var(--brand-900);outline-offset:3px}
#sgCollectionPanel>summary:focus-visible,.sg-collection-content summary:focus-visible{outline:2px solid var(--brand-900)!important;outline-offset:3px}
@media(max-width:768px){.hub-hero.sg-managed-collection{padding:20px}.sg-collection-main{flex-basis:100%}}
@media(max-width:520px){
 .hub-hero.sg-managed-collection{padding:16px}
 .sg-collection-profile-card{padding:14px 14px 14px 16px}
 .sg-collection-metric{display:block;padding:12px 0}
 .sg-collection-metric dd{margin-top:7px}
 .sg-collection-content .sg-collection-values li{gap:0 8px}
 .sg-collection-share{display:block;text-align:right}
 .sg-collection-measure{margin-left:auto}
}
