/* Pawero UI15 — shared footer. Scoped to the common SystemUI footer only. */
html[data-unit] body>footer.pw28-footer.pw15-footer{box-sizing:border-box;width:100%;max-width:none;margin-inline:0;padding-inline:0;background:var(--pw2-card,#fff);color:var(--pw2-ink,#191919);border-top:1px solid var(--pw2-line,#dedede)}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-inner{box-sizing:border-box;width:min(calc(100% - 2 * var(--pw2-pad,16px)),72rem);max-width:none;margin-inline:auto;padding:28px 0 18px}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-top{display:grid;align-items:start;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:24px 32px;padding:0 0 24px;margin:0}
html[data-unit] body>footer.pw28-footer.pw15-footer.pw15-compact .pw28-footer-top{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-brand{min-width:0;margin:0;overflow-wrap:anywhere}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand{display:flex;align-items:flex-start;gap:12px;min-width:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand img{display:block;width:52px;height:52px;object-fit:contain;flex:0 0 52px;background:none;border:0;border-radius:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand>div{min-width:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand strong{display:block;font-size:20px;line-height:1.25;font-weight:650;margin:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand p{font-size:14px;line-height:1.55;color:var(--pw2-muted,#575757);margin:5px 0 0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links{display:flex;flex-direction:column;align-items:flex-start;justify-self:end;gap:8px;min-width:0;width:max-content;max-width:100%;overflow-wrap:anywhere;margin:0;padding:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links strong{font-size:14px;font-weight:650;line-height:1.4;margin:0 0 4px}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links a{display:block;font-size:14px;line-height:1.5;padding:5px 0;color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:24px;max-width:100%}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-social{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 0;padding:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-social a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;box-sizing:border-box;color:inherit;border:1px solid var(--pw2-line,#dedede);border-radius:50%;text-decoration:none;padding:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-social a[aria-disabled=true]{pointer-events:none;cursor:default}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-social a:not([aria-disabled]):hover{color:var(--color-brand,currentColor);border-color:currentColor}
html[data-unit] body>footer.pw28-footer.pw15-footer a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:start;gap:8px 18px;border-top:1px solid var(--pw2-line,#dedede);padding:14px 0 0;margin:0;font-size:13px;line-height:1.5;color:var(--pw2-muted,#575757)}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw15-copyright{min-width:0;align-self:start;margin:0;padding:0;overflow-wrap:anywhere;font:inherit}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-legal{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:6px 18px;min-width:0;width:auto;max-width:100%;text-align:right;margin:0;padding:0;font:inherit;justify-self:end}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-legal a{color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit;margin:0;padding:0;max-width:100%;overflow-wrap:anywhere}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-mode-label{grid-column:1/-1;margin:4px 0 0;color:var(--pw2-muted,#575757);font-size:12px}
@media(max-width:1000px){html[data-unit] body>footer.pw28-footer.pw15-footer.pw15-extended .pw28-footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links{justify-self:start;width:100%}}
@media(max-width:560px){html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-inner{padding-block:24px 16px}html[data-unit] body>footer.pw28-footer.pw15-footer.pw15-extended .pw28-footer-top{gap:20px 16px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-brand{grid-column:1/-1}html[data-unit] body>footer.pw28-footer.pw15-footer.pw15-compact .pw28-footer-top{grid-template-columns:minmax(0,1fr);gap:20px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links{gap:4px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-links a{padding:4px 0}html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-bottom{grid-template-columns:minmax(105px,1fr) minmax(0,auto);gap:8px 12px;font-size:12px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-legal{gap:4px 12px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-legal a{min-height:20px}}
@media(max-width:360px){html[data-unit] body>footer.pw28-footer.pw15-footer .pw28-footer-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px}html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-legal{flex-direction:column;align-items:flex-end}}

/* RC4 UI17: brand marks must inherit the surrounding surface, in either theme. */
html[data-unit] :is(.pw-brand img.pw-mark,.brand > img,.portal-brand > img,.pw2-switcher-grid a > img,.pw281-hero-mark > img,.pw281-unit > img,.pw8-unit-logo,.pw9-unit-logo,.pw13-footer-brand > img,.pw28-system-header a > img,.khp-professional-mark img,.hero-mark img.pw-mark,.unit-card img[src$="-mark.png"]) {
  background:transparent !important;
  border-radius:0;
  box-shadow:none;
}
/* Institute pages terminate in a full-width CTA, so no outer main/footer gap. Keep inner CTA padding. */
html[data-unit="institute"] body.pw281 > main#main:has(> :is(.pi16-home,.pi16-interior) > .pi16-cta:last-child) {
  padding-block-end:0 !important;
  margin-block-end:0 !important;
  row-gap:0;
}
html[data-unit="institute"] body.pw281 > main#main > :is(.pi16-home,.pi16-interior):has(> .pi16-cta:last-child) {
  padding-block-end:0 !important;
  margin-block-end:0 !important;
}
html[data-unit="institute"] body.pw281 > main#main > :is(.pi16-home,.pi16-interior) > .pi16-cta:last-child {margin-block-end:0 !important;}
html[data-unit="institute"] body.pw281 > main#main:has(> :is(.pi16-home,.pi16-interior) > .pi16-cta:last-child) + footer.pw28-footer.pw15-footer {margin-block-start:0 !important;}

/* UI20: social links start under the name, not the mark. */
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand>div{flex:1;min-width:0}
html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand .pw13-social{margin-top:12px;gap:6px}
@media(max-width:360px){html[data-unit] body>footer.pw28-footer.pw15-footer .pw13-footer-brand .pw13-social a{width:34px;height:34px}}
