/* Additions to the original MargotB World News pages: footer, site pages, consent banner. */
.mbwn-footer{clear:both;margin:0;padding:1rem 1.25rem 1.5rem;background:#333;color:#ddd;font:14px/1.5 Arial,Helvetica,sans-serif;text-align:left}
.mbwn-footer p,.mbwn-footer address{margin:0 0 .35rem;color:#ddd;font-style:normal}
.mbwn-footer a,.mbwn-footer .linklike{color:#ddd;text-decoration:underline}
/* Inside the original gray credits block: no own background, same colours as the credits links. */
.mbwn-in-credits{background:none;padding:.5rem 40px 1rem;margin:0}
.mbwn-in-credits a{color:inherit}
.mbwn-in-credits .linklike{color:#bbb}
.mbwn-footer ul{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
.mbwn-footer li{margin:0;padding:0;background:none}
.linklike{background:none;border:0;padding:0;font:inherit;text-decoration:underline;cursor:pointer}
mark.todo{background:#ffe08a;color:#3b2a00;padding:0 .25rem;font-weight:600}
.mbwn-page{clear:both;max-width:46rem;margin:1.5rem auto;padding:0 1rem;font:16px/1.6 Arial,Helvetica,sans-serif;color:#222;text-align:left}
.mbwn-page h2:first-child{font:700 1.8rem/1.25 Georgia,"Times New Roman",serif;color:#222;margin:.5rem 0 1rem}
.mbwn-page h3{font:700 1.3rem/1.3 Georgia,"Times New Roman",serif;color:#9b0000;margin:1.5rem 0 .5rem}
.mbwn-page h4{font:700 1.1rem/1.3 Georgia,"Times New Roman",serif;color:#9b0000;margin:1.25rem 0 .4rem}
/* Homepage menu tagline on site pages (an <h3> on the original homepage; same computed look). */
.mbwn-tagline{font:19.456px Georgia,serif;color:#fff;margin:0 0 8px;padding:0;text-align:center;line-height:normal}
.mbwn-page a{color:#245a8c}
.mbwn-page dt{font-weight:700}
.mbwn-page dd{margin:0 0 .75rem}
.mbwn-page address{font-style:normal}
.consent{position:fixed;left:0;right:0;bottom:0;z-index:1000;background:#1b1f23;color:#fff;padding:1rem 1.25rem;font:16px/1.5 Arial,Helvetica,sans-serif;text-align:left;box-shadow:0 -2px 8px rgba(0,0,0,.25)}
.consent[hidden]{display:none}
.consent p{margin:0 0 .75rem;color:#fff}
.consent a{color:#9ec5ff}
.consent .actions{display:flex;flex-wrap:wrap;gap:.5rem}
.consent button{font:inherit;font-weight:700;padding:.6rem 1rem;border-radius:4px;border:2px solid #fff;cursor:pointer;background:#fff;color:#1b1f23}
.consent button.secondary{background:transparent;color:#fff}

/* ---------------------------------------------------------------- responsive layer
   Desktop keeps the original layout. Below 760px the fixed-width containers, floated columns and
   wide tables of the 2016-2017 templates stack into one readable column. */
img,video{max-width:100%;height:auto}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a:focus-visible,button:focus-visible{outline:3px solid #f5b400;outline-offset:2px}
@media (max-width:760px){
  body{font-size:100%!important;min-width:0!important;width:auto!important}
  body *{max-width:100%;box-sizing:border-box}
  [id^=container],#main,#content,#sidebar,#credits,#footer,#footersections,
  .left,.right,.center,.half,.lasthalf,.quarter,.lastquarter,#feature,#right,
  table,tbody,tr,td,th{float:none!important;width:auto!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
  table,tbody,tr,td,th{display:block}
  #header{padding:10px 12px}
  #header h1,#header h3{font-size:1.4rem;line-height:1.2}
  #header img{width:56px;height:auto}
  #main{padding:12px}
  #sidebar{margin-top:1.5rem}
  blockquote{margin-left:0;margin-right:0;padding-left:.75rem}
  p,li,td{font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
  small,font[size="1"],.style184,.style192{font-size:.9rem}
  a{min-height:24px}
  li a,p>a:only-child{display:inline-block;padding:2px 0}
  .mbwn-in-credits{padding:.5rem 0 1rem}
  .mbwn-page{margin:1rem auto}
  .consent{padding:.75rem 1rem}
}
@media (max-width:760px){
  /* Stories first, sidebar after them, footer last (the sidebar comes first in the original HTML). */
  body{display:flex;flex-direction:column}
  body>*{order:3}
  body>#header,body>[id^=container]>#header{order:1}
  body>#menu{order:2}
  body>#sidebar{order:4}
  body>#credits,body>.mbwn-footer{order:5}
  body>*{align-self:stretch;margin-left:0!important;margin-right:0!important}
  #header,#menu{width:auto!important}
  body>.consent{order:6}
  /* Wrapped menu buttons get spacing instead of overlapping. */
  #menu ul{display:flex;flex-wrap:wrap;gap:6px}
  #menu ul li{float:none!important;margin:0!important}
  #menu ul li a{display:block}
}
@media (max-width:760px){
  #menu,#menu ul,#menu ul li,#menu ul li a{height:auto!important;line-height:1.3!important}
  #menu ul{padding:8px 12px!important}
  #menu ul li a{padding:8px 12px!important}
}

/* ---------------------------------------------------------------- homepage layout
   Real columns instead of text wrapping around floats: two story columns + sidebar on desktop. */
.mbwn-home .mbwn-headline{list-style:none;margin:0;padding:0}
.mbwn-home .mbwn-headline table{width:100%;height:auto}
.mbwn-home .mbwn-headline blockquote{margin:0}
.mbwn-home .mbwn-col blockquote{margin:0;padding:0;border:0}
.mbwn-home .mbwn-col h3{margin:1.6em 0 .55em;padding:0 0 5px;border-bottom:2px solid #950606;line-height:1.25}
.mbwn-home .mbwn-col h3:first-child,.mbwn-home .mbwn-col blockquote>h3:first-child{margin-top:0}
.mbwn-home .mbwn-col p{margin:0 0 .6em;line-height:1.45}
.mbwn-home .mbwn-col div[align]{text-align:left}
@media (min-width:761px){
  body.mbwn-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);grid-template-areas:"head head" "menu menu" "main side" "foot foot";column-gap:28px}
  .mbwn-home>#header{grid-area:head}
  .mbwn-home>#menu{grid-area:menu}
  .mbwn-home>#sidebar{grid-area:side;float:none;width:auto;margin:20px 20px 28px 0;align-self:start}
  .mbwn-home>.mbwn-main{grid-area:main;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;align-content:start;padding:20px 0 32px 32px;max-width:1100px}
  .mbwn-home .mbwn-headline{grid-column:1/-1;margin-bottom:24px;padding:14px 18px;border:1px solid #e3d0d0;border-left:4px solid #950606;background:#fbf7f7}
  .mbwn-home .mbwn-col{width:auto!important;float:none!important;margin:0!important}
  .mbwn-home .mbwn-col .left{float:none;width:auto}
  .mbwn-home>#credits,.mbwn-home>.mbwn-footer{grid-area:foot}
  .mbwn-home>.consent{grid-column:1/-1}
}
@media (max-width:760px){
  .mbwn-home .mbwn-headline{margin-bottom:16px;padding:10px 12px;border-left:4px solid #950606;background:#fbf7f7}
  .mbwn-home .mbwn-main{padding:0 12px}
  .mbwn-home .mbwn-col+.mbwn-col{margin-top:1.6em}
}
@media (min-width:761px){
  .mbwn-home>#header,.mbwn-home>#menu{width:auto!important;margin:0!important;justify-self:stretch}
}

/* ---------------------------------------------------------------- shared shell (all pages)
   Masthead + red bar come from the original homepage. The bar now also carries the main navigation. */
#menu{height:auto!important;padding:8px 16px 0;text-align:center}
#menu .mbwn-tagline,#menu h3{margin:0 0 4px}
#menu .mbwn-nav ul{float:none;height:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:0 4px;margin:0;padding:0 0 6px;list-style:none}
#menu .mbwn-nav li{float:none;margin:0;background:none}
#menu .mbwn-nav a{display:block;padding:6px 10px;font:600 14px/1.2 Arial,Helvetica,sans-serif;color:#f1dede;background:none;text-decoration:none;border-radius:2px}
#menu .mbwn-nav a:hover{color:#fff;background:rgba(0,0,0,.18)}
#menu .mbwn-nav a[aria-current]{color:#fff;box-shadow:inset 0 -2px 0 #fff}

/* Page layout: article column, optional "More links" box on the right. */
.mbwn-layout{max-width:1120px;margin:0 auto;padding:32px 24px 48px;display:grid;grid-template-columns:minmax(0,1fr);gap:40px;align-items:start}
@media (min-width:960px){.mbwn-layout.has-aside{grid-template-columns:minmax(0,1fr) 300px}}
.mbwn-layout .mbwn-page{max-width:44rem;width:100%;margin:0;padding:0;justify-self:center}
.mbwn-layout.has-aside .mbwn-page{justify-self:start}

/* Article typography */
.mbwn-page{font:17px/1.65 Arial,Helvetica,sans-serif;color:#222}
.mbwn-page p,.mbwn-page li,.mbwn-page div{font-size:1rem}
.mbwn-page p{margin:0 0 1em}
.mbwn-page>h2:first-child{font:700 2rem/1.2 Georgia,"Times New Roman",serif;color:#1a1a1a;margin:0 0 .4rem;letter-spacing:-.01em}
.mbwn-page h3{font:700 1.35rem/1.3 Georgia,"Times New Roman",serif;color:#950606;margin:1.8em 0 .5em}
.mbwn-page h4,.mbwn-page h5,.mbwn-page h6{font:700 1.1rem/1.35 Georgia,"Times New Roman",serif;color:#333;margin:1.5em 0 .4em}
.mbwn-page a{color:#245a8c;font-weight:400;text-underline-offset:2px}
.mbwn-page a:hover{color:#950606}
.mbwn-page strong a,.mbwn-page a strong{font-weight:700}
.mbwn-page ul,.mbwn-page ol{margin:0 0 1em;padding-left:1.4em}
.mbwn-page li{margin:0 0 .35em}
.mbwn-page blockquote{margin:1.2em 0;padding:.2em 0 .2em 1em;border-left:3px solid #950606;color:#444}
.mbwn-page img{display:block;max-width:100%;height:auto;margin:1.2em 0}
.mbwn-page hr{border:0;border-top:1px solid #e2e2e2;margin:2em 0}
.mbwn-page pre{white-space:pre-wrap;overflow-wrap:anywhere}
.mbwn-page div+div{margin-top:.6em}
.mbwn-meta{margin:0 0 2rem!important;padding:0 0 1rem;border-bottom:1px solid #e2e2e2;font-size:.875rem!important;color:#666}

/* "More links" box: same look as the homepage sidebar. */
.mbwn-aside{border:1px solid #950606;background:#fff;font:15px/1.5 Arial,Helvetica,sans-serif;padding:0 14px 12px}
.mbwn-aside h3{margin:0 -14px 10px;padding:9px 14px;background:#950606;color:#fff;font:700 15px/1.3 Arial,Helvetica,sans-serif}
.mbwn-aside h3 a{color:#fff}
.mbwn-aside>*:not(h3){margin:0 0 10px}
.mbwn-aside p,.mbwn-aside div,.mbwn-aside li{font-size:15px}
.mbwn-aside a{color:#245a8c}
.mbwn-aside img{max-width:100%;height:auto}
.mbwn-aside ul{padding-left:1.1em}
@media (min-width:960px){.mbwn-aside{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}}

/* Footer on every page: section links, operator details, site pages. */
.mbwn-footer .mbwn-sections{margin:0 0 1rem;padding:0 0 1rem;border-bottom:1px solid #4a4a4a}
.mbwn-footer .mbwn-sections ul{gap:.2rem 1rem}
.mbwn-footer{padding:1.5rem max(1.25rem,calc((100% - 1120px)/2 + 24px)) 2rem}

@media (max-width:760px){
  #menu{padding:6px 8px 0}
  #menu .mbwn-nav ul{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  #menu .mbwn-nav a{white-space:nowrap;padding:10px 10px}
  .mbwn-layout{padding:20px 16px 32px;gap:28px}
  .mbwn-page{font-size:16px}
  .mbwn-page>h2:first-child{font-size:1.6rem}
  .mbwn-aside{position:static;max-height:none}
}
/* Pages without the "More links" box: one centred reading column. */
.mbwn-layout:not(.has-aside){max-width:calc(44rem + 48px)}
@media (max-width:760px){.mbwn-layout:not(.has-aside){max-width:none}}

/* ---------------------------------------------------------------- boxed layout (all pages)
   One centred 1200px page on a grey background. Header, nav, content and footer share the same
   24px inner edge, so everything lines up vertically. */
html{background:#e6e6e6}
body,body.mbwn-home{max-width:1200px;margin:0 auto!important;background:#fff!important;box-shadow:0 0 0 1px #d2d2d2}
#header{padding:14px 24px!important}
#menu{padding:6px 24px 0!important}
#menu .mbwn-nav ul{justify-content:center}
/* Content */
.mbwn-layout,.mbwn-layout:not(.has-aside){max-width:none;margin:0;padding:32px 24px 48px}
.mbwn-layout .mbwn-page,.mbwn-layout.has-aside .mbwn-page{justify-self:start;max-width:46rem}
@media (min-width:961px){.mbwn-layout.has-aside{grid-template-columns:minmax(0,1fr) 300px}}
.mbwn-home>.mbwn-main{padding:24px 0 32px 24px!important;max-width:none!important}
.mbwn-home>#sidebar{margin:24px 24px 32px 0!important}
/* Footer: same edge as the content */
#credits{padding:24px!important;margin:0!important}
#credits blockquote{margin:0!important;padding:0!important}
.mbwn-in-credits{padding:16px 0 0!important}
body>.mbwn-footer{padding:24px!important}
@media (max-width:760px){
  #header{padding:12px 16px!important}
  #menu{padding:6px 16px 0!important}
  .mbwn-layout,.mbwn-layout:not(.has-aside){padding:20px 16px 32px}
  .mbwn-home>.mbwn-main{padding:16px!important}
  .mbwn-home>#sidebar{margin:16px!important}
  #credits,body>.mbwn-footer{padding:20px 16px!important}
}

/* Masthead: globe and site name centred on one line, name vertically centred against the globe. */
#header h1{display:flex;align-items:center;justify-content:center;gap:14px;margin:0;padding:6px 0}
#header h1 a,#header h1 em,#header h1 span{display:flex;align-items:center}
#header h1 img{display:block;vertical-align:middle}
@media (max-width:760px){#menu .mbwn-nav ul{justify-content:flex-start}}
