/* Layout accommodations for enlarged Community typography. Font sizes are scaled centrally in community-text-scale.js. */
html[data-community-text-scale-expanded="true"] :is(
  .mac-os-channel-copy,
  .mac-os-server-switcher-copy,
  .mac-os-active-channel,
  .mac-os-dm-panel-identity,
  .community-dm-chat-member,
  .community-message-content,
  .community-message-body,
  .mac-os-message-body,
  .mac-os-native-message-copy,
  .mac-os-native-member-copy,
  .mac-os-hall-message-copy,
  .mac-os-stage-chat-message,
  .panel-heading h1,
  .community-status,
  .muted
){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}

html[data-community-text-scale-expanded="true"] :is(
  .mac-os-channel-copy,
  .mac-os-server-switcher-copy,
  .mac-os-active-channel,
  .mac-os-dm-panel-identity,
  .community-dm-chat-member,
  .mac-os-native-member-copy
) :is(strong,small,p,span){white-space:normal;overflow:visible;text-overflow:clip}

html[data-community-text-scale-expanded="true"] .mac-os-channel-group-label{line-height:1.35;white-space:normal;overflow-wrap:anywhere}

html[data-community-text-scale-expanded="true"] :is(
  .mac-os-channel-item,
  .mac-os-channel-row,
  .mac-os-server-switcher-item,
  .mac-os-dm-row,
  .mac-os-native-member-row,
  .community-member-row,
  .mac-os-manage-menu button,
  .mac-os-window-menu button,
  .mac-os-notification-menu button,
  .community-dm-form button,
  .community-stage-chat-form button,
  .community-composer button,
  .mac-os-chat-composer button,
  .mac-os-dm-composer button,
  .mac-os-hall-chat-composer button,
  .mac-os-stage-chat-composer button,
  .community-channel-settings-dialog aside button,
  .community-channel-admin-modal footer button
){height:auto;min-height:2.75rem;white-space:normal}

@media(min-width:761px){
  html[data-community-text-scale-expanded="true"] body.mac-community-os-shell.mac-os-community-composed:is([data-os-workspace="chat"],[data-os-workspace="journal"]) .mac-os-channel-item{min-height:2.25em;padding-block:.3em}
  html[data-community-text-scale-expanded="true"] body.mac-community-os-shell.mac-os-community-composed:is([data-os-workspace="chat"],[data-os-workspace="journal"]) .mac-os-channel-group-label{padding-bottom:.25em}
  html[data-community-text-scale-expanded="true"] body.mac-community-os-shell.mac-os-community-composed:is([data-os-workspace="chat"],[data-os-workspace="journal"]) .mac-os-channel-group+.mac-os-channel-group{margin-top:.75em}
}

html[data-community-text-scale-expanded="true"] :is(
  .community-dm-form,
  .community-stage-chat-form,
  .community-composer,
  .mac-os-chat-composer,
  .mac-os-dm-composer,
  .mac-os-hall-chat-composer,
  .mac-os-stage-chat-composer
) button{width:max-content;max-width:100%}

html[data-community-text-scale-expanded="true"] :is(
  .community-dm-form,
  .community-stage-chat-form,
  .community-composer,
  .mac-os-chat-composer,
  .mac-os-dm-composer,
  .mac-os-hall-chat-composer,
  .mac-os-stage-chat-composer
){box-sizing:border-box;min-width:0;max-width:100%}

html[data-community-text-scale-expanded="true"] :is(.community-dm-form,.community-stage-chat-form){grid-template-columns:minmax(0,1fr)}
html[data-community-text-scale-expanded="true"] :is(.community-dm-form,.community-stage-chat-form) button{width:100%;height:auto;min-height:2.75rem;white-space:normal}

html[data-community-text-scale-expanded="true"] :is(
  .community-composer textarea,
  .community-composer input,
  .mac-os-chat-composer textarea,
  .mac-os-chat-composer input,
  .mac-os-dm-composer textarea,
  .mac-os-dm-composer input,
  .mac-os-hall-chat-composer textarea,
  .mac-os-stage-chat-composer textarea
){box-sizing:border-box;min-width:0;max-width:100%;height:auto;min-height:2.75rem;max-height:min(38vh,16rem);white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto}

html[data-community-text-scale-expanded="true"] :is(
  .mac-os-manage-content,
  .mac-os-native-admin-content,
  .community-channel-settings-dialog main,
  .community-create-channel-dialog,
  .community-v109-dialog
){min-width:0;overflow-wrap:anywhere}
