/* Centered airy modal surface matching Profile+ Student Perks modal. */
.home-detail-dialog{inset:0;margin:0;padding:20px;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;background:transparent;color:#25343d;overflow:hidden}
.home-detail-dialog:not([open]){display:none}.home-detail-dialog[open]{display:flex;align-items:center;justify-content:center}.home-detail-dialog::backdrop{background:rgba(17,19,23,.42)}
.hd-panel{width:min(680px,100%);height:auto;max-height:min(90dvh,840px);display:flex;flex-direction:column;background:#ffffff;border-radius:24px;border:1px solid rgba(17,19,23,.08);box-shadow:0 24px 56px rgba(17,19,23,.16);overflow:hidden;animation:hd-arrive .22s cubic-bezier(.16,1,.3,1);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC",sans-serif}
.hd-header{height:auto;min-height:60px;padding:16px 26px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f1f3f5;background:#ffffff;font-size:12px;color:#66757d;letter-spacing:.03em;flex-shrink:0}.hd-close{border:0;background:#f5f7fa;color:#4b5563;font:400 20px/1 system-ui;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}.hd-close:hover{background:#eaedf2;color:#111317}.hd-body{padding:24px 28px 28px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin;outline:none;background:#ffffff}.hd-provider{display:flex;align-items:center;gap:13px;font-size:13px;line-height:1.55;color:#394b57}.hd-provider img{width:42px;height:42px;object-fit:contain;flex-shrink:0}.hd-provider small{display:block;font-size:12px;color:#657580;margin-top:3px}.hd-body h2{font-size:28px;line-height:1.28;letter-spacing:-.55px;font-weight:600;margin:20px 0 18px;overflow-wrap:anywhere}.hd-description,.hd-note{font-size:14px;line-height:1.85;color:#52626e;white-space:pre-line}.hd-facts{margin:24px 0;border-block:1px solid #e4e8e6;padding:14px 0}.hd-fact{display:grid;grid-template-columns:112px minmax(0,1fr);gap:20px;padding:9px 0;font-size:13px;line-height:1.65}.hd-fact dt{color:#5d6d77}.hd-fact dd{margin:0;color:#30434f;white-space:pre-line;overflow-wrap:anywhere}.hd-body h3{margin:26px 0 14px;font-size:15px;line-height:1.5;font-weight:600}.hd-outcomes .description{font-size:13px;line-height:1.7;margin:14px 0}.hd-outcomes strong{display:block;color:#354c59;font-weight:500}.hd-outcomes span{display:block;color:#64717a;margin-top:3px}.hd-outcomes a{font-size:11px;color:#4b6a7d;display:inline-block;margin-top:7px;text-decoration:none}.hd-steps{padding-left:20px;font-size:13px;line-height:1.8;color:#52626e}.hd-steps li{padding:4px 0 7px 4px}.hd-provenance{margin-top:28px;font-size:12px;line-height:1.7;color:#657580}.hd-actions{border-top:1px solid #f1f3f5;padding:16px 28px max(16px,env(safe-area-inset-bottom));display:flex;gap:12px;background:#ffffff;flex-shrink:0}.hd-actions:empty{display:none}.hd-save,.hd-apply{border:1px solid #d8e0e0;min-height:44px;border-radius:999px;padding:11px 22px;font-size:13px;line-height:20px;font-family:inherit;cursor:pointer;text-decoration:none;display:flex;align-items:center;justify-content:center}.hd-save{background:#f6f8f6;color:#3a5261;min-width:95px}.hd-save[aria-pressed="true"]{background:#e8efed}.hd-save:disabled{opacity:.6;cursor:wait}.hd-apply{flex:1;border-color:#385c70;background:#385c70;color:#fff;gap:16px}.hd-apply:hover{background:#294b60}.hd-unavailable{font-size:12px;align-self:center;color:#6f7b84}.hd-status{padding:64px 0;font-size:14px;color:#6d7c85;line-height:1.7}.hd-status button{display:block;margin-top:16px;background:#eaf0ee;border:0;border-radius:7px;padding:9px 18px;color:#3e5c6a;cursor:pointer}.hd-panel button:focus-visible,.hd-panel a:focus-visible{outline:2px solid #668fa4;outline-offset:3px}
@keyframes hd-arrive{from{opacity:0;transform:translateY(10px) scale(.975)}to{opacity:1;transform:none}}
@media(max-width:640px){.home-detail-dialog{padding:12px}.hd-panel{width:100%;max-height:92dvh;border-radius:20px}.hd-header{min-height:56px;padding:14px 20px}.hd-body{padding:20px 20px 24px}.hd-body h2{font-size:23px}.hd-fact{grid-template-columns:95px minmax(0,1fr);gap:15px}.hd-actions{padding:14px 20px max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.hd-panel{animation:none}}html.reduce-motion .hd-panel{animation:none}
.hd-provider img.hd-logo-dark{background:#18212b;padding:5px;border-radius:7px}

.hd-provider img{background:transparent!important;padding:0!important;border-radius:0;mix-blend-mode:multiply}
/* The official name stays quietly attached to its translated heading. */
.hd-original-title{display:block;margin:-8px 0 24px;color:#66767e;font-size:20px;line-height:1.45;font-weight:400;letter-spacing:-.15px;overflow-wrap:anywhere}
.hd-original-title[hidden]{display:none}.hd-richtext{white-space:normal}.hd-richtext>p{margin:0 0 1em}.hd-richtext>p:last-child{margin-bottom:0}.hd-richtext strong{font-weight:600;color:inherit}.hd-richtext a,.hd-steps a,.hd-outcomes a{color:#3c647b;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}.hd-richtext a:hover,.hd-steps a:hover{color:#244b64}.hd-richtext code,.hd-steps code,.hd-outcomes code{font: .92em ui-monospace,SFMono-Regular,Menlo,monospace;background:#eef1ef;padding:1px 4px;border-radius:3px}

.hd-header-tools{margin-left:auto;display:flex;align-items:center;min-width:0}.hd-header{gap:20px}.hd-header-tools .content-locale-note{margin:0!important;font-size:12px!important;line-height:1.4!important}.hd-header-tools button{white-space:nowrap;min-height:36px;padding:4px 0!important}

/* Keep the reading viewport and provider/title anchors steady while loading. */
.hd-action-placeholder{height:44px;min-width:95px;border-radius:9px;background:#edf0ee;flex-shrink:0}.hd-action-placeholder--primary{flex:1}
.hd-body .profile-skeleton__detail{padding-top:0}.hd-body .profile-skeleton__detail .profile-skeleton__identity{min-height:42px;margin-bottom:24px;gap:13px}.hd-body .profile-skeleton__detail .profile-skeleton__logo{width:42px;height:42px;flex-basis:42px}

/* Drawer facts own their layout; host pages also have unrelated .facts grids. */
.home-detail-dialog .hd-facts{display:block;min-width:0}
.home-detail-dialog .hd-fact{min-width:0;align-items:start}
.home-detail-dialog .hd-fact>dt,.home-detail-dialog .hd-fact>dd{min-width:0;margin:0;align-self:start;overflow-wrap:anywhere}

/* Desktop typography alignment: existing Profile+ tokens. */
@media(min-width:801px){.hd-panel{font-family:var(--font-ui)}.hd-header,.hd-actions{padding-inline:28px}.hd-fact{font-size:var(--text-body);line-height:var(--leading-body)}.hd-fact dt{font-size:var(--text-label);font-weight:var(--weight-regular)}.hd-fact dd{font-variant-numeric:tabular-nums}}
