/* Locale-safe layout: allow translated labels to grow vertically, not horizontally.
   Loaded after desktop, phone, view-specific and seasonal styles. */
.layout > .sidebar,
.layout > .right,
.layout > .sidebar nav,
.layout > .sidebar .identity > div,
.layout > .sidebar .menu-more-links291,
.layout > .sidebar .mobile-widget-list2118 {
    min-width: 0;
}
.layout > .sidebar .identity img { flex: 0 0 auto; }
.layout > .sidebar .identity > div { overflow-wrap: anywhere; }
.layout > .sidebar nav > a,
.layout > .sidebar nav .menu-more-links291 > a,
.layout > .sidebar nav .menu-more291 > summary,
.layout > .sidebar nav .mobile-widgets2118 > summary,
.layout > .sidebar nav .mobile-widget-link2118 {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    height: auto;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: start;
}
.layout > .sidebar nav > a > span,
.layout > .sidebar nav .menu-more-links291 > a > span,
.layout > .sidebar nav .menu-more291 > summary > span,
.layout > .sidebar nav .mobile-widgets2118 > summary > span,
.layout > .sidebar nav .mobile-widget-link2118 > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.layout > .sidebar nav a > svg,
.layout > .sidebar nav summary > svg,
.layout > .sidebar nav button > svg,
.layout > .sidebar nav a > em,
.layout > .sidebar nav .widget-menu-match2119 { flex-shrink: 0; }
/* Widget headings and actions may move to a second row. Never clip a label. */
.layout .panel-head,
.layout .pw-card271 header {
    min-width: 0;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 5px;
}
.layout .panel-head h2,
.layout .pw-card271 header h2 {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.3;
}
.layout .panel-head h2 > span,
.layout .panel-head h2 > svg,
.layout .pw-card271 header h2 > svg { vertical-align: middle; }
.layout .panel-head h2 > em,
.layout .panel-head h2 > small,
.layout .pw-card271 header h2 > small { white-space: nowrap; }
.layout .panel-head > a,
.layout .pw-card271 header > a {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-inline-start: auto;
    line-height: 1.35;
}
.layout > .right .panel-head h2 { font-size: 17px; }
.layout > .right .panel-head a { font-size: 13px; }
.layout > .right .panel,
.layout .pw-card271,
.layout .widget-title203 > div,
.layout .feed-popular-head270 h2,
.layout .mobile-ad2118,
.layout .feed-popular-link270 p { min-width: 0; overflow-wrap: anywhere; }
.layout .feed-popular-head270 h2 { white-space: normal; }
.layout .feed-popular-head270 > span { flex-shrink: 0; }
.layout .widget-title203 b,
.layout .widget-title203 small { white-space: normal; overflow-wrap: anywhere; }
.layout .settings-nav163 a .settings-category-label163 {
    min-width: 0; white-space: normal; overflow-wrap: anywhere; hyphens: auto;
}
.layout .settings-nav163 a .settings-category-icon163,
.layout .settings-nav163 a .settings-category-arrow163,
.layout .profile-tabs2111 a > svg { flex-shrink: 0; }
.layout .profile-tabs2111 a { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.mobile-nav a small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; text-align: center; }
.admin-mode .ad-nav209 a > span:first-of-type { white-space: normal; overflow-wrap: anywhere; }
/* Keep the desktop rail compact enough for ordinary labels to stay on one line. */
@media (min-width: 1001px) and (hover:hover) and (pointer:fine) {
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar nav > a,
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar nav .menu-more291 > summary {
        font-size: 16px;
        gap: 9px;
        padding: 12px 9px;
        min-height: 46px;
    }
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar nav > a > svg,
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar nav .menu-more291 > summary > svg:first-child {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar .identity {
        gap: 9px;
        font-size: 15px;
    }
    html:not([data-phone250="1"]) body:not(.admin-mode) > .layout > .sidebar .identity img {
        width: 52px;
        height: 52px;
    }
}
