/* Shared only by the opted-in public application and contact pages.
 * Use the same stable control slots as the admission preview; keep dropdowns
 * and the existing native mobile navigation behavior intact.
 */
body.bbc-public-language-layout {
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .header > .wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 240px) 150px;
    grid-template-areas: "brand apply language" "navigation navigation navigation";
    gap: 8px 16px !important;
    align-items: center !important;
    max-width: 1760px !important;
    min-width: 0;
    padding: 12px 20px !important;
    margin-inline: auto;
}
body.bbc-public-language-layout .header .brand {
    grid-area: brand;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
    gap: 12px;
}
body.bbc-public-language-layout .header .brand img {
    width: 55px !important;
    height: 55px;
    flex: 0 0 55px;
    object-fit: contain;
}
body.bbc-public-language-layout .header .brand .bmark {
    display: block !important;
    min-width: 0;
}
body.bbc-public-language-layout .header .bmark b {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .header .bmark i {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .08em;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .header .head-tools {
    display: contents !important;
}
body.bbc-public-language-layout .header .head-tools > .btn-login {
    grid-area: apply;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 68px;
    padding: 8px 14px !important;
    font-size: 16px !important;
    line-height: 1.5;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
}
body.bbc-public-language-layout .header .bbc-lang {
    grid-area: language;
    width: 150px !important;
    min-width: 0;
    justify-self: end;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    z-index: 100;
}
body.bbc-public-language-layout .header .bbc-lang > summary {
    display: flex;
    align-items: center;
    gap: 6px !important;
    min-height: 44px;
    white-space: normal !important;
    cursor: pointer;
}
body.bbc-public-language-layout .header .bbc-lang-current {
    display: inline !important;
    min-width: 0;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .header .bbc-lang-globe,
body.bbc-public-language-layout .header .bbc-lang-caret {
    flex: 0 0 auto;
}
body.bbc-public-language-layout .header .bbc-lang-menu {
    position: absolute;
    inset-inline-end: 0;
    max-width: calc(100vw - 32px) !important;
}
body.bbc-public-language-layout .header .nav {
    grid-area: navigation;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.bbc-public-language-layout .header .caret {
    flex: 0 0 9px;
}
body.bbc-public-language-layout .header .head-tools .burger {
    grid-area: toggle;
    justify-self: end;
}
@media (min-width: 1000px) {
    body.bbc-public-language-layout .header .nav {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0 !important;
        min-height: 84px;
        align-items: stretch !important;
    }
    body.bbc-public-language-layout .header .nav > *,
    body.bbc-public-language-layout .header .navdrop {
        min-width: 0;
    }
    body.bbc-public-language-layout .header .nav > a,
    body.bbc-public-language-layout .header .nav > .navdrop > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 84px;
        height: 100%;
        padding: 8px 6px !important;
        font-size: 15px !important;
        line-height: 1.5;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: center;
    }
    body.bbc-public-language-layout:lang(en) .header .nav > a,
    body.bbc-public-language-layout:lang(en) .header .nav > .navdrop > a {
        overflow-wrap: normal;
    }
    body.bbc-public-language-layout .header .head-tools .burger,
    body.bbc-public-language-layout .header .mobnav {
        display: none !important;
    }
}
@media (min-width: 1400px) {
    body.bbc-public-language-layout .header > .wrap {
        grid-template-columns: minmax(0, 23fr) minmax(0, 51fr) minmax(0, 16fr) 150px;
        grid-template-areas: "brand navigation apply language";
        min-height: 112px;
    }
}
@media (max-width: 999px) {
    body.bbc-public-language-layout .header > .wrap {
        grid-template-columns: 44px minmax(0, 1fr) 92px 44px;
        grid-template-areas: "brand brand brand toggle" "apply apply language language";
        gap: 8px !important;
        padding-inline: 12px !important;
    }
    body.bbc-public-language-layout .header .brand {
        min-height: 104px;
    }
    body.bbc-public-language-layout .header .nav {
        display: none !important;
    }
    body.bbc-public-language-layout .header .head-tools .burger {
        display: flex !important;
    }
    body.bbc-public-language-layout .header .head-tools > .btn-login {
        min-height: 84px;
        font-size: 14px !important;
    }
    body.bbc-public-language-layout .header .bbc-lang {
        width: 144px !important;
    }
    body.bbc-public-language-layout .header .mobnav:not(.open) {
        visibility: hidden;
    }
    body.bbc-public-language-layout .header .mlink,
    body.bbc-public-language-layout .header .mtoggle,
    body.bbc-public-language-layout .header .mpanel a,
    body.bbc-public-language-layout .header .mapply {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.6;
    }
}
body.bbc-public-language-layout .topbar .wrap {
    flex-wrap: nowrap;
    min-height: 70px;
}
body.bbc-public-language-layout .topbar .helpset {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .topbar .infofor {
    display: flex;
    flex: 1 1 55%;
    min-width: 0;
    flex-wrap: nowrap;
    min-height: 44px;
    align-items: center;
}
body.bbc-public-language-layout .topbar .infofor a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    overflow-wrap: anywhere;
}
@media (max-width: 1399px) {
    body.bbc-public-language-layout .topbar .infofor {
        display: none;
    }
}
body.bbc-public-language-layout .masthead h1 {
    font-size: clamp(28px, 3.2vw, 54px);
    line-height: 1.45;
    min-height: 2.9em;
    display: grid;
    place-content: center;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
body.bbc-public-language-layout .masthead .sub,
body.bbc-public-language-layout .masthead .bbc-auth-subtitle {
    line-height: 1.6;
    min-height: 3.2em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
body.bbc-public-language-layout .masthead .crumbs {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .lnk {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
}
body.bbc-public-language-layout .mform button[type="submit"] {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

/* A visible invitation to read the site in the visitor's own language. */
body.bbc-public-language-layout .bbc-lang>summary {display:grid!important;grid-template-columns:22px minmax(0,1fr) 10px;align-items:center;gap:6px!important;min-height:68px!important;padding:8px!important;box-sizing:border-box;border:1.5px solid #b38b22;border-radius:12px;background:#fff8df;color:#162758!important;box-shadow:0 2px 5px #1627580d;white-space:normal!important;cursor:pointer}
body.bbc-public-language-layout .bbc-lang-label {display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;text-align:left}
body.bbc-public-language-layout .bbc-lang-prompt {display:block;font:600 11px/1.4 Arial,sans-serif;color:#5d4a13;white-space:normal;overflow-wrap:anywhere}
body.bbc-public-language-layout .bbc-lang-current {display:block;font-size:15px;font-weight:700;line-height:1.5;color:#162758!important;white-space:normal!important;overflow-wrap:anywhere}
body.bbc-public-language-layout .bbc-lang-globe {font-size:21px;line-height:1}
body.bbc-public-language-layout .bbc-lang-caret {color:#162758;font-size:12px}
body.bbc-public-language-layout .bbc-lang>summary:hover,body.bbc-public-language-layout .bbc-lang[open]>summary {background:#ffedb0;border-color:#162758}
body.bbc-public-language-layout .bbc-lang>summary:focus-visible {outline:3px solid #162758;outline-offset:3px}
body.bbc-public-language-layout .bbc-lang .bbc-lang-menu {min-width:190px!important;border:1px solid #e1e3ea;border-radius:12px;padding:8px;box-shadow:0 10px 30px #16275826}
body.bbc-public-language-layout .bbc-lang-menu a {min-height:44px;box-sizing:border-box;line-height:1.6;border-radius:6px}
body.bbc-public-language-layout .bbc-lang-menu a.active {font-weight:700;background:#fff0bd}
body.bbc-public-language-layout .bbc-lang-menu a.active::after {content:' ✓';color:#162758}
body.bbc-public-language-layout .bbc-lang>summary {min-height:96px!important;height:96px}
/* Mobile form header: place the selector wrapper in the grid, not its nested details. */
@media(max-width:999px){
 body.bbc-public-language-layout .header>.wrap{
  grid-template-columns:minmax(0,1fr) 112px 40px!important;
  grid-template-areas:"brand brand toggle" "apply language language"!important;
  gap:12px 8px!important;padding:12px!important;
 }
 body.bbc-public-language-layout .header .brand{min-height:64px!important;gap:10px!important}
 body.bbc-public-language-layout .header .brand img{width:48px!important;height:48px!important;flex-basis:48px!important}
 body.bbc-public-language-layout .header .bmark b{font-size:16px!important;line-height:1.35!important}
 body.bbc-public-language-layout .header .bmark i{font-size:10px!important}
 body.bbc-public-language-layout .header .head-tools>.btn-login{min-height:60px!important;height:auto!important;padding:12px!important;width:100%!important;max-width:none!important}
 body.bbc-public-language-layout .header .bbc-mb2-language{
  grid-area:language!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important;justify-self:stretch!important;
 }
 body.bbc-public-language-layout .header .bbc-lang{
  width:100%!important;min-width:0!important;max-width:100%!important;position:relative!important;
 }
 body.bbc-public-language-layout .header .bbc-lang>summary{
  display:flex!important;align-items:center!important;min-height:60px!important;height:auto!important;box-sizing:border-box!important;
  width:100%!important;padding:8px 10px!important;gap:7px!important;white-space:normal!important;
 }
 body.bbc-public-language-layout .header .bbc-lang-label{flex:1 1 auto!important;min-width:0!important;display:block!important}
 body.bbc-public-language-layout .header :is(.bbc-lang-prompt,.bbc-lang-current){word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;line-height:1.35!important;display:block!important}
 body.bbc-public-language-layout .header .bbc-lang-prompt{font-size:11px!important}
 body.bbc-public-language-layout .header .bbc-lang-current{font-size:15px!important}
 body.bbc-public-language-layout .header .bbc-lang-menu{min-width:160px!important;right:0!important;left:auto!important}
}
