/* rc13: shared by draft 22603, its TinyMCE iframe and its Kaeru edit modal.
 * The isolated modal is matched by the existing Tasaki portrait alt text.
 * rc20 moved inside labels into the panel. Its older portrait grid has no label
 * area, so automatic placement puts the label after the explicitly placed rows.
 * Keep the existing photo column, type, colors, content and responsive widths.
 */
:is(#teacher, #kvds-preview:has(.kvds-box__portrait > img:is([alt*="田﨑"], [alt*="田崎"]))) .kvds-ext-card.kvds-ext-card-portrait-beside.kvds-box-has-portrait > .kvds-box__panel:has(> .kvds-box__label) {
  grid-template-areas:
    "portrait label"
    "portrait title"
    "portrait lead"
    "portrait body"
    "portrait action"
    "portrait links";
  grid-template-rows:auto auto auto minmax(0,1fr) auto auto;
}
:is(#teacher, #kvds-preview:has(.kvds-box__portrait > img:is([alt*="田﨑"], [alt*="田崎"]))) .kvds-ext-card.kvds-ext-card-portrait-beside.kvds-box-has-portrait > .kvds-box__panel > .kvds-box__label {
  grid-area:label;
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
:is(#teacher, #kvds-preview:has(.kvds-box__portrait > img:is([alt*="田﨑"], [alt*="田崎"]))) .kvds-ext-card.kvds-ext-card-portrait-beside.kvds-box-has-portrait > .kvds-box__panel:has(> .kvds-box__label) > .kvds-box__lead {
  grid-area:lead;
  min-width:0;
}
