/* IE8 compatibility */
article,
aside,
footer,
header,
main,
nav,
section {
  display: block;
}

/* Screen Reader only */
.accessibility {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0,0,0,0);
  overflow: hidden;
}

/* Generic */
html {
  padding: 0 8px;
  background: #e6ecef;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: Helvetica, Arial, sans-serif;
}

/* Default box-sizing */
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  position: relative;
  max-width: 1400px;
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0 auto;
  background: white;
  z-index: 1;
}

button {
  cursor: pointer;
}

/* Skip to content link */
a[href="#main"].accessibility:focus {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  height: 20px;
  margin: 0;
  clip-path: none;
  clip: auto;
  overflow: initial;
}

#header,
#main,
#footer {
  padding: 0 12px;
  clear: both;
}
#header:after,
#main:after,
#footer:after {
  content: "";
  display: block;
  clear: both;
  width: 100%;
}

#main {
  font-family: sans-serif;
  font-size: 16px;
  letter-spacing: 0.1px;
  color: #2e3436;
  /* Better Font Rendering */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

/**********
 * Header *
 **********/
#header:before {
  content: "";
  display: block;
  position: relative;
  height: 35px;
  background: #055372;
  background-image: linear-gradient(-180deg, #055372 67%, #04415a 97%);
  margin: 0 -12px;
}
#header:after {
  content: "";
  display: block;
  position: relative;
  top: -3px;
  margin: -2px -12px;
  border-top: 3px solid #e6ecef;
  z-index: -1;
  width: auto;
}
#header a,
#header button {
  position: relative;
  display: inline-block;
  height: inherit;
  width: inherit;
  font-size: inherit;
  color: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}
#header a:hover,
#header a:visited,
#header a:active {
  text-decoration: none;
}
#header ul {
  margin: 0;
  padding: 0;
  height: inherit;
  float: right;
}
#header li {
  display: inline-block;
  height: inherit;
  float: left;
}
#header li a {
  padding: 0 15px;
}
#header li a:after {
  content: "";
  display: inline-block;
  height: inherit;
  vertical-align: middle;
  margin-top: -1px;
}

#header h1 {
  position: absolute;
  top: 35px;
  width: 140px;
  height: 60px;
  margin: 0;
  padding: 0;
  background: url(images/rw-logo.png) 0 50% no-repeat;
  background: rgba(0,0,0,0) url(images/rw-logo.svg) 0 50% no-repeat;
}

#header > nav:after,
#header > section:after,
#header > form:after {
  content: "";
  display: table;
  clear: both;
}
#header #navigation-menu {
  min-height: 60px;
  float: right;
}
#header #navigation-menu li {
  border: 1px solid #e6ecef;
  margin-top: -1px;
  height: 64px;
}
#header #navigation-menu li + li {
  margin-left: -1px;
}
#header #navigation-menu li > a {
  border-bottom: 3px solid transparent;
  height: 63px;
  margin: 0 -1px -1px -1px;
}
#header #navigation-menu li > a:hover,
#header #navigation-menu li > a:active,
#header #navigation-menu li > a:focus {
  background: #e6ecef;
  z-index: 3;
}
#header #navigation-menu li > a:focus,
#header #navigation-menu li > a[data-active] {
  border-bottom: 3px solid #eb1405;
}

#header #navigation-menu a,
#header #navigation-menu button {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  color: #2e3436;
}
#header #navigation-menu a:hover,
#header #navigation-menu a:active,
#header #navigation-menu a:focus,
#header #navigation-menu button:hover,
#header #navigation-menu button:active,
#header #navigation-menu button:focus {
  color: black;
}

/**********
 * Footer *
 **********/
#footer {
  background: #055372;
  color: white;
}
#footer a {
  position: relative;
  display: inline-block;
  height: inherit;
  width: inherit;
  font-size: inherit;
  color: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}
#footer a:hover,
#footer a:visited,
#footer a:active {
  text-decoration: none;
}
#footer ul {
  margin: 0;
  padding: 0;
}
#footer li {
  list-style: none;
}
/** OCHA services **/
#footer #ocha-services,
#footer #language-switcher {
  background: #055372;
  z-index: 3;
}
#footer #ocha-services > ul {
  position: relative;
  width: 100%;
  display: table;
  table-layout: fixed;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-gap: 100px;
}
#footer #language-switcher > ul {
  position: relative;
}
#footer #ocha-services > ul > li {
  position: relative;
  display: table-cell;
  border: 0px solid transparent;
  vertical-align: top;
  padding-bottom: 1px;
}
#footer #ocha-services > ul > li + li + li + li {
  padding-bottom: 0;
}
#footer #ocha-services li div {
  font-size: 12px;
  font-weight: 300;
  color: #cef0fd;
  line-height: 18px;
  margin-bottom: 10px;
  padding-bottom: 2px;
}
#footer #ocha-services li div + ul {
  margin-top: -1px;
}
#footer #ocha-services li div.accessibility + ul {
  padding-top: 30px;
}
#footer #ocha-services li li {
  margin-bottom: 12px;
}
#footer #ocha-services a {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
#footer #language-switcher a {
  border-bottom: 1px solid transparent;
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 0;
}
#footer #language-switcher a.active:after {
  background: rgba(0,0,0,0) url(images/selected--highlighted.svg) right no-repeat;
  content: "";
  display: inline-block;
  height: 14px;
  width: 28px;
}
#footer #ocha-services a:hover,
#footer #ocha-services a:active,
#footer #ocha-services a:focus {
  border-color: #0988bb;
}
#footer #ocha-services > ul > li + li + li + li a {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-transform: uppercase;
  text-align: center;
  color: #055372;
  background: #cef0fd;
}
#footer #ocha-services > ul > li + li + li + li a:hover,
#footer #ocha-services > ul > li + li + li + li a:active,
#footer #ocha-services > ul > li + li + li + li a:focus {
  color: #0988bb;
}

#footer #additional-links {
  padding: 47px 0;
}
#footer #additional-links ul:after {
  content: "";
  display: table;
  clear: both;
}
#footer #additional-links li {
  display: inline-block;
}
#footer #additional-links li {
  padding: 0 31px 0 0;
}
#footer #additional-links li:first-child {
  padding-left: 0;
}
#footer #additional-links li:last-child {
  padding-right: 0;
}
#footer #additional-links {
  display: inline-block;
  max-width: 67%;
  text-transform: uppercase;
}
#footer #additional-links a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  border-bottom: 1px solid transparent;
}
#footer #additional-links a:hover,
#footer #additional-links a:active,
#footer #additional-links a:focus {
  border-color: #0988bb;
}
#footer #ocha-disclaimer {
  position: relative;
  float: left;
  width: 67%;
  padding: 48px 0 69px;
  margin-top: 15px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
}
#footer #ocha-disclaimer p {
  margin: 0;
  line-height: 1.5;
}
#footer #ocha-disclaimer p + p {
  position: absolute;
  left: 160px;
  bottom: 66px;
  max-width: 540px;
  margin: 0 0 0 14px;
}
#footer #ocha-disclaimer p + p:before {
  content: "";
  position: absolute;
  width: 1px;
  height: 37px;
  background: white;
  left: -13px;
  top: -4px;
}
#footer #ocha-disclaimer #ocha-logo {
  position: relative;
  display: block;
  height: 37px;
  width: 149px;
  margin-top: 12px;
  background: url(images/ocha-logo.png) 0 0 no-repeat;
  background: rgba(0,0,0,0) url(images/ocha-logo.svg) 0 no-repeat;
}
#footer #copyright {
  float: right;
  width: 33%;
  padding: 10px 0 48px;
  text-align: right;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
}
#footer #copyright p {
  margin: 0;
}
#footer #copyright a {
  display: inline-block;
  background: rgba(0,0,0,0) url(images/rw-logo-white.svg) 0 no-repeat;
  width: 140px;
  height: 60px;
  margin-bottom: -4px;
}

/****************
 * Main content *
 ****************/
#main {
  padding-top: 32px;
  padding-bottom: 32px;
}
#main h2 {
  font-size: 32px;
  font-weight: normal;
  font-family: Georgia, "Bitstream Charter", serif;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eb1405;
  width: 100%;
}
#main h3 {
  font-size: 18px;
  line-height: 24px;
}

#main section {
  width: 100%;
}
#main section + section {
  margin-top: 32px;
}

#main a {
  color: #055372;
  text-decoration: none;
  line-height: inherit;
}
#main a:hover,
#main a:active,
#main a:focus {
  text-decoration: underline;
}
#main a[target="_blank"][rel="noopener"]:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -2px 0 0 6px;
  height: 12px;
  width: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23055372'%3E%3Cpath d='M35,20.65V42H6V18H22.09l9-9H4.2A2.2,2.2,0,0,0,2,11.2V43.8A2.2,2.2,0,0,0,4.2,46H36.8A2.2,2.2,0,0,0,39,43.8V16.65ZM12.5,12A1.5,1.5,0,1,1,11,13.5,1.5,1.5,0,0,1,12.5,12Zm-5,0A1.5,1.5,0,1,1,6,13.5,1.5,1.5,0,0,1,7.5,12Z'/%3E%3Cpath d='M44,2H23a2,2,0,0,0,0,4H39L16.51,28.52a2.1,2.1,0,0,0,3,3L42,9V25a2,2,0,0,0,4,0V4A2,2,0,0,0,44,2Z'/%3E%3C/svg%3E") 0 0 no-repeat;
}

#main .content {
  line-height: 24px;
  letter-spacing: 0.15px;
  padding-top: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#main .river .content {
  padding-top: 8px;
}
#main .content :first-child {
  margin-top: 0;
}
#main .content :last-child {
  margin-bottom: 0;
}
#main .content h4,
#main .content h5,
#main .content h6 {
  margin: 0;
}

#main article {
  width: 100%;
  border-bottom: 1px solid #e6ecef;
  padding: 16px 0;
}
#main article header h3 {
  margin: 0 0 8px 0;
}
#main article header dl {
  line-height: 24px;
  margin: 0;
}
#main article header dl:after {
  content: "";
  display: table;
  clear: both;
}
#main article header dt,
#main article header dd {
  display: inline;
  margin: 0;
}
#main article header dd a {
  font-size: 16px;
}
#main article header dd:after {
  content: ", ";
}
#main article header dt:after {
  content: ": ";
}
#main article header dt {
  /* Visually hidden */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0,0,0,0);
  overflow: hidden;
}
#main article.training header dt.date,
#main article.job header dt.date {
  position: static;
  width: auto;
  height: auto;
  margin: auto;
  white-space: normal;
  clip-path: initial;
  clip: auto;
  overflow: auto;
}
#main article header dt.date:before,
#main article.report header dt.date + dd:before,
#main article.training header dt.status + dd:before {
  content: "";
  display: block;
  margin-top: 8px;
}
#main article header dt ~ dd[data-last]:after {
  content: " | ";
  padding: 0 4px;
}
#main article header dt.countries ~ dt.sources {
  clear: none;
}
#main article header dt.date + dd time {
  font-weight: bold;
}
#main article header dt.sources ~ dd[data-last]:after,
#main article header dt.types ~ dd[data-last]:after,
#main article header dt.date + dd:after,
#main article header dt.origin + dd:after,
#main article.training header dt.status + dd:after {
  display: none;
}
#main article header dt.origin + dd {
  float: right;
}

#main article section h3 {
  margin: 0 0 16px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #eb1405;
}
#main article section {
  margin-top: 16px;
  line-height: 24px;
  letter-spacing: 0.1px;
}

/* Document page specifics */
#main > article header {
  padding-bottom: 16px;
  border-bottom: 1px solid #eb1405;
}
#main > article header h2 {
  padding-bottom: 0;
  border-bottom: none;
}
#main > article {
  border-bottom: none;
  padding: 0;
}
#main > .content {
  padding: 16px 0 0 0;
}

#main article footer {
  margin-top: 24px;
}
#main article footer small {
  display: block;
  font-size: 12px;
  line-height: 16px;
}
#main article footer small + small {
  margin-top: 16px;
}
#main article footer small strong {
  display: block;
  margin-bottom: 4px;
}

/* Document information sidebar */
#main > aside {
  width: 100%;
  margin-top: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#main > aside dl {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid #eb1405;
  border-bottom: 1px solid #eb1405;
}
#main > aside dl:after {
  content: "";
  display: table;
  clear: both;
}
#main > aside dt {
  clear: both;
  font-weight: bold;
  margin-bottom: 4px;
}
#main > aside dt ~ dt {
  padding-top: 16px;
}
#main > aside dd {
  margin: 0;
  display: inline;
  line-height: 24px;
  max-width: 100%;
}
#main > aside dd:after {
  content: " / ";
  padding: 0 4px;
}
#main > aside dd[data-last]:after {
  display: none;
}

/* River pager */
#main #status,
#main #pager {
  width: 100%;
  text-align: center;
  margin-top: 32px;
}
#main #pager:after {
  content: "";
  display: table;
  clear: both;
  width: 100%;
}
#main #pager a {
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
}
#main #pager ul {
  list-style: none;
  display: inline-block;
  padding: 0;
  margin: 0;
}
#main #pager li {
  float: left;
}
#main #pager li + li:before {
  content: " | ";
  color: #2e3436;
  padding: 0 16px;
}

/* Home page */
#main #featured h3 {
  margin: 0;
}
#main #featured > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#main #featured > ul li {
  padding: 0;
  border-bottom: 1px solid #e6ecef;
}
#main #featured > ul li a {
  display: inline-block;
  height: 100%;
  width: 100%;
  padding: 12px 0 12px 24px;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
}
#main #featured > ul li a:before {
  content: "";
  display: inline-block;
  height: 0;
  margin: 0 16px 0 -24px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #eb1405;
}
#main #headlines h2 {
  margin-bottom: 8px;
}

/* Countries page */
#main #countries dl {
  width: 100%;
  margin: 0;
}
#main #countries dt {
  margin: 16px 0 8px 0;
  width: 48px;
  height: 48px;
  text-align: center;
  line-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 24px;
  background: #055372;
  color: white;
}
#main #countries dt ~ dt {
  margin: 32px 0 8px 0;
}
#main #countries dd {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #e6ecef;
}
#main #countries dd a {
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 24px;
  padding: 12px 0;
}
#main #countries dd em {
  /* Visually hidden */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0,0,0,0);
  overflow: hidden;
}
#main #countries dd[data-ongoing] a:after {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  background: #eb1405;
  border-radius: 5px;
  margin-left: 10px;
}
#main #countries #note {
  font-style: italic;
}
#main #countries #note:before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  background: #eb1405;
  border-radius: 5px;
  margin: 3px 8px 0 0;
}

#main #go-to-letter h3 {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  line-height: 40px;
}
#main #go-to-letter h3:after {
  content: ":";
}
#main #go-to-letter ul {
  display: inline-block;
  vertical-align: middle;
  list-style: none;
  margin: 0;
  padding: 0;
}
#main #go-to-letter ul:after {
  content: "";
  display: table;
  clear: both;
}
#main #go-to-letter li {
  float: left;
  margin: 0;
  padding: 0;
}
#main #go-to-letter li a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

/* Country/disaster pages */
#main > article.country h2 {
  margin-bottom: 0;
  text-align: center;
  font-size: 40px;
  border-bottom: 0;
  padding-bottom: 0;
}
#main .content + section.links {
  margin-top: 16px;
}
#main section.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#main section.links li {
  line-height: 24px;
  padding: 8px 0;
  border-bottom: 1px solid #e6ecef;
}
#main section.links li:first-child {
  padding-top: 0;
}
#main section.links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#main aside section.links h3 {
  margin: 16px 0 8px 0;
}

/* Country key figures */
#main #key-figures h3 {
  margin-bottom: 20px;
}
#main #key-figures ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main #key-figures li:after {
  content: "";
  display: table;
  clear: both;
}
#main #key-figures figure {
  border: 1px solid #e6ecef;
  border-radius: 5px;
  margin: 0 0 20px 0;
  padding: 20px;
  width: 100%;
}
#main #key-figures figure figcaption {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 20px 0;
}
#main #key-figures figure p {
  display: inline-block;
  margin: 0 12px 0 0;
  vertical-align: middle;
}
#main #key-figures figure data {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #055372;
}
#main #key-figures figure small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}
#main #key-figures figure svg {
  fill: none;
  float: right;
  opacity: 0.5;
  overflow: visible;
  padding: 10px 0;
  stroke: #2e3436;
  stroke-width: 2px;
  width: 120px;
}
#main #key-figures figure footer {
  clear: both;
  margin-top: 20px;
  font-size: 14px;
}
#main #key-figures figure time {
  background: rgba(230, 236, 239, 0.5);
  border-radius: 5px;
  display: inline-block;
  margin: 0 12px 0 0;
  padding: 1px 6px;
  vertical-align: middle;
}
#main #key-figures figure.recent time:before {
  content: "";
  background: #eb1405;
  border-radius: 6px;
  display: inline-block;
  height: 10px;
  margin: -2px 6px 0 0;
  vertical-align: middle;
  width: 10px;
}
#main #key-figures figure cite {
  background: #055372;
  border-radius: 5px;
  color: white;
  float: right;
  font-style: normal;
  padding: 1px 6px;
}
#main #key-figures figure cite a {
  color: inherit;
}
#main #key-figures footer.view-more {
  margin-top: 12px;
}

/* Disasters and disaster pages */
#main .disaster header dt.status + dd:before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  background: #e6ecef;
  border-radius: 5px;
  margin-right: 8px;
}
#main .disaster header dt.status + dd[data-ongoing]:before {
  background: #eb1405;
}
#main .disaster header dt.status + dd[data-alert]:before {
  background: #eb8705;
}

/* Start page */
#main .start {
  margin-top: 32px;
  line-height: 24px;
}
#main .start dt {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 8px;
}
#main .start dt ~ dt {
  margin-top: 16px;
}
#main .start dd {
  margin-left: 12px;
}

/* Search */
#main #search {
  width: 100%;
  margin: 24px 0 0 0;
}
#main #search form {
  position: relative;
  width: 100%;
  height: 48px;
  padding-right: 100px;
  box-sizing: border-box;
}
#main #search label {
  /* Visually hidden */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0,0,0,0);
  overflow: hidden;
}
#main #search input {
  -moz-appearance: none;
  -ms-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  border: 2px solid #e6ecef;
  border-right: none;
  padding: 12px;
  font-size: 16px;
}
#main #search input:focus {
  position: relative;
  z-index: 2;
}
#main #search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: #e6ecef;
  border: 2px solid #e6ecef;
  padding: 12px;
  font-size: 16px;
  font-variant: small-caps;
  font-weight: bold;
  color: #055372;
}
#main #search button:before {
  content: '';
  position: absolute;
  border-color: transparent;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-right-color: inherit;
  top: 14px;
  left: -10px;
}
#main #search button:hover,
#main #search button:focus,
#main #search button:active {
  background: #055372;
  border: 2px solid #055372;
  color: white;
  z-index: 2;
}
#main #search form input::-webkit-input-placeholder {
  font-style: italic;
  color: inherit;
  opacity: 0.7;
}
#main #search form input::-moz-placeholder {
  font-style: italic;
  color: inherit;
  opacity: 0.7;
}
#main #search form input:-ms-input-placeholder {
  font-style: italic;
  color: inherit;
  opacity: 0.7;
}
#main #search form input:-moz-placeholder {
  font-style: italic;
  color: inherit;
  opacity: 0.7;
}
#main #search form input::placeholder {
  font-style: italic;
  color: inherit;
  opacity: 0.7;
}

/* View selector */
/* View more links */
#main #views {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}
#main #views:after {
  content: "";
  display: table;
  clear: both;
  width: 100%;
}
#main #views a {
  position: relative;
  display: inline-block;
  padding-left: 24px;
  font-style: italic;
}
#main #views a:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -8px;
  height: 16px;
  width: 16px;
  border: 2px solid #055372;
  border-radius: 50%;
}
#main #views a:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  margin-top: -4px;
  height: 8px;
  width: 8px;
  border-radius: 50%;
}
#main #views a[data-active]:after,
#main #views a:hover:after,
#main #views a:focus:after,
#main #views a:active:after {
  background: #055372;
}
#main #views ul {
  list-style: none;
  display: inline-block;
  padding: 0;
  margin: 0;
}
#main #views li {
  float: left;
  margin-right: 48px;
}
#main #views li:last-child {
  margin-right: 0;
}

/* View more links */
#main .view-more {
  width: 100%;
  text-align: center;
  margin-top: 32px;
}
#main .view-more:after {
  content: "";
  display: table;
  clear: both;
  width: 100%;
}
#main .view-more a {
  position: relative;
  display: inline-block;
  padding-right: 20px;
  font-style: italic;
  margin-left: 10px;
  margin-right: 10px;
}
#main .view-more a:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -2px 0 0 6px;
  height: 12px;
  width: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23055372'%3E%3Cpath d='M47.12,21.88l-14-14a3,3,0,0,0-4.24,4.24L37.76,21H3a3,3,0,0,0,0,6H37.76l-8.88,8.88a3,3,0,1,0,4.24,4.24l14-14A3,3,0,0,0,47.12,21.88Z'/%3E%3C/svg%3E") 0 0 no-repeat;
}
#main .view-more ul {
  list-style: none;
  display: inline-block;
  padding: 0;
  margin: 0;
  max-width: 480px;
  width: 100%;
}
#main .view-more li {
  display: inline-block;
}

/* OCHA digital sitrep */
#main #digital-sitrep {
  margin: 32px 0;
}
#main #digital-sitrep h3:before {
  content: "";
  display: inline-block;
  background: url(images/ocha-logo-dsr.png) 0 0 no-repeat;
  background: rgba(0,0,0,0) url(images/ocha-logo-dsr.svg) 0 0 no-repeat;
  width: 90px;
  height: 20px;
  vertical-align: middle;
  margin-top: -3px;
  border-right: 1px solid #2e3436;
  margin-right: 8px;
}
#main #digital-sitrep li {
  margin-bottom: 16px;
}
#main #digital-sitrep ul {
  padding-left: 18px;
}
#main #digital-sitrep h3 small {
  font-weight: normal;
}
#main #digital-sitrep .view-more a {
  font-weight: bold;
  font-style: normal;
  padding: 0;
  margin-right: 0;
}

/***********************
 * Javascript disabled *
 ***********************/

/* Allow the menu to wrap to the next line when JS is off */
.no-js #header #navigation-menu:before {
  content: "";
  display: inline-block;
  width: 160px;
  height: 60px;
  float: left;
}
/* Show OCHA Services title */
.no-js #footer #ocha-services {
  font-size: 14px;
}
.no-js #footer #ocha-services-title,
.no-js #footer #language-switcher-title {
  position: relative;
  width: auto;
  height: auto;
  margin: 0 0 24px 0;
  padding: 0;
  white-space: normal;
  clip-path: none;
  clip: auto;
  overflow: initial;
}

/**********************
 * Javascript enabled *
 **********************/

/** Collapsible search **/
.js #header button[aria-expanded] {
  position: relative;
  float: right;
  min-width: 60px;
  height: 63px;
  padding: 0 20px 0 21px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #2e3436;
  border: 1px solid #e6ecef;
  border-top: none;
  border-bottom-width: 3px;
}
.js #header button[aria-expanded]:hover,
.js #header button[aria-expanded]:active,
.js #header button[aria-expanded]:focus {
  color: black;
}
.js #header #navigation-menu-toggler {
  display: none;
}

/* Countries go to letter nivagation */
.js #main #countries > header {
  position: relative;
}
.js #main #countries > header:after {
  content: "";
  display: table;
  clear: both;
}
.js #main #countries #note {
  float: left;
}
.js #main #go-to-letter-toggler {
  display: block;
  width: 160px;
  height: 40px;
  float: right;
  font-size: inherit;
  font-variant: small-caps;
  background: white;
  border: 1px solid #e6ecef;
}
.js #main #go-to-letter-toggler:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  margin-top: -5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}
.js #main #go-to-letter-toggler[aria-expanded="true"]:after {
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-135deg);
  margin-top: 1px;
}
.js #main #go-to-letter {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 40px;
  z-index: 4;
  background: white;
  width: 160px;
  -webkit-box-shadow: 0px 0px 6px 2px #e6ecef;
  box-shadow: 0px 0px 6px 2px #e6ecef;
}
.js #main #go-to-letter[data-hidden="false"] {
  display: block;
}
.js #main #go-to-letter h3 {
  /* Visually hidden */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0,0,0,0);
  overflow: hidden;
}

/* Footer - OCHA services */
.js #footer #ocha-services,
.js #footer #language-switcher {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  padding: 22px;
  z-index: 10;
  -webkit-box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.3);
}
.js #footer #ocha-services[data-hidden="false"],
.js #footer #language-switcher[data-hidden="false"] {
  display: block;
}
.js #footer #ocha-services-toggler,
.js #footer #language-switcher-toggler {
  position: absolute;
  top: 0;
  left: 12px;
  height: 35px;
  padding: 2px 0 0 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 300;
  color: white;
  z-index: 4;
}
.js #footer #ocha-services-toggler:hover,
.js #footer #ocha-services-toggler:active,
.js #footer #ocha-services-toggler:focus,
.js #footer #language-switcher-toggler:hover,
.js #footer #language-switcher-toggler:active,
.js #footer #language-switcher-toggler:focus {
  text-decoration: underline;
  z-index: 3;
}
.js #footer #ocha-services-toggler:before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 18px;
  margin: -2px 4px 0 0;
  vertical-align: middle;
  background: url(images/ocha-logo-small.png) 50% no-repeat;
  background: rgba(0,0,0,0) url(images/ocha-logo-small.svg) 50% no-repeat;
}
.js #footer #ocha-services-toggler:after,
.js #footer #language-switcher-toggler:after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23fff' d='M48,14a4,4,0,0,1-1.17,2.83l-20,20a4,4,0,0,1-5.66,0l-20-20a4,4,0,0,1,5.66-5.66L24,28.34,41.17,11.17A4,4,0,0,1,48,14Z'/%3E%3C/svg%3E") 0 no-repeat;
}
.js #footer #ocha-services-toggler[aria-expanded="true"]:after,
.js #footer #language-switcher-toggler[aria-expanded="true"]:after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23fff' d='M0,34a4,4,0,0,1,1.17-2.83l20-20a4,4,0,0,1,5.66,0l20,20a4,4,0,1,1-5.66,5.66L24,19.66,6.83,36.83A4,4,0,0,1,0,34Z'/%3E%3C/svg%3E") 0 no-repeat;
}
.js #footer #ocha-services:before {
  content: "";
  position: absolute;
  top: -6px;
  margin-left: 55px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #055372;
}
.js #footer #ocha-disclaimer {
  padding-top: 0;
}

.js #footer #language-switcher,
.js #footer #language-switcher-toggler {
  right: 20px;
  left: unset;
}

/*****************
 * Media Queries *
 *****************/
@media screen {
  #main #key-figures ul {
    display: grid;
    grid-column-gap: 20px;
    grid-template-columns: repeat(1, 1fr);
  }
  #main #key-figures ul li {
    display: flex;
  }
  #main #key-figures ul li figure {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  #main #key-figures figure div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #main #key-figures figure footer {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
  }
  #main #key-figures figure small span {
    display: block;
  }
}
@media screen and (min-width : 768px) {
  #main #featured > ul,
  #main .river {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #main .river > header {
    width: 100%;
  }
  #main .river > header h2 {
    margin-bottom: 24px;
  }
  #main #featured > ul li,
  #main .river article {
    flex: 0 0 48%;
  }
  #main > article {
    width: 70%;
    float: left;
    padding-right: 24px;
  }
  #main > aside {
    width: 30%;
    float: right;
    margin: 0;
  }
  #main > article.country {
    width: 100%;
    float: none;
    padding: 0;
  }
  #main #countries dl {
    padding-left: 72px;
  }
  #main #countries dt {
    position: relative;
    left: -72px;
    top: 48px;
    margin: -32px 0 0 0;
  }
  #main #countries dt ~ dt {
    margin: 0;
  }
  #main #countries dd {
    display: inline-block;
    margin-right: 16px;
  }
  #main #search {
    margin: 12px 0 8px 0;
  }
  #main #key-figures ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width : 1024px) {
  #main #featured > ul li {
    flex: 0 0 32%;
  }
  #main #key-figures ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/** Display menu button and hide search label **/
@media screen and (max-width : 1023px) {
  html {
    padding: 0;
  }
  html:before,
  html:after {
    display: none;
  }
  #footer #additional-links {
    width: 100%;
    max-width: none;
    text-align: center;
  }
  #footer #social-media {
    float: none;
    width: 100%;
    max-width: none;
    padding-top: 0;
    text-align: center;
  }
  #footer #additional-links ul {
    margin: 0 auto;
    display: inline-block;
  }
  #footer #additional-links ul li {
    padding: 0 15px 0 0;
  }

  #footer #ocha-disclaimer {
    text-align: center;
    width: 100%;
    margin-top: 2px;
    padding: 48px 0;
  }
  #footer #ocha-disclaimer p {
    display: block;
    margin: 0 auto;
  }
  #footer #ocha-disclaimer p + p {
    position: static;
    border: none;
    padding: 0 12px;
    left: auto;
    bottom: auto;
    margin: 16px auto 0;
  }
  #footer #ocha-disclaimer p + p:before {
    display: none;
  }
  #footer #ocha-disclaimer #ocha-logo {
    margin: 16px auto 0;
  }
  #footer #copyright {
    width: 100%;
    text-align: center;
    padding: 0 0 48px;
  }

  .js #header:before {
    z-index: 3;
  }
  .js #header button[aria-expanded] {
    margin-right: 0;
  }
  .js #header button[aria-expanded]:focus:after,
  .js #header button[aria-expanded="true"]:after {
    right: 0;
  }
  .js #header #navigation-menu-toggler {
    position: relative;
    display: inline-block;
    z-index: 5;
  }
  .js #header #navigation-menu-toggler[aria-expanded="true"]:before {
    content: "";
    position: absolute;
    height: 3px;
    bottom: -3px;
    left: -1px;
    right: -1px;
    background: #eb1405;
  }
  .js #header #navigation-menu-toggler:after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23eb1405' d='M48,14a4,4,0,0,1-1.17,2.83l-20,20a4,4,0,0,1-5.66,0l-20-20a4,4,0,0,1,5.66-5.66L24,28.34,41.17,11.17A4,4,0,0,1,48,14Z'/%3E%3C/svg%3E") 0 no-repeat;
  }
  .js #header #navigation-menu-toggler[aria-expanded="true"]:after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23eb1405' d='M0,34a4,4,0,0,1,1.17-2.83l20-20a4,4,0,0,1,5.66,0l20,20a4,4,0,1,1-5.66,5.66L24,19.66,6.83,36.83A4,4,0,0,1,0,34Z'/%3E%3C/svg%3E") 0 no-repeat;
  }
  .js #header #navigation-menu ul {
    display: none;
    position: absolute;
    top: 95px;
    right: 0;
    min-height: calc(100vh - 92px);
    width: 100%;
    padding: 20px 0;
    background: white;
    z-index: 4;
    border-top: 3px solid #e6ecef;
    -webkit-box-shadow: 0 3px 5px 0px #e6ecef;
    box-shadow: 0 3px 5px 0px #e6ecef;
  }
  .js #header #navigation-menu[data-hidden="false"] ul {
    display: block;
  }
  .js #header #navigation-menu li {
    float: none;
    display: block;
    height: 48px;
    border: none;
    margin: 0;
  }
  .js #header #navigation-menu li a {
    position: relative;
    height: inherit;
    width: 100%;
    margin: 0;
    padding: 15px 30px;
  }
  .js #header #navigation-menu li a:hover,
  .js #header #navigation-menu li a:active,
  .js #header #navigation-menu li a:focus {
    background: #e6ecef;
    color: black;
    border-bottom: none;
  }
  .js #header #navigation-menu li a[data-active] {
    border-bottom: none;
  }
  .js #header #navigation-menu li a[data-active]:before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    height: inherit;
    width: 3px;
    background: #eb1405;
  }
  .js #header #navigation-menu li a:after {
    margin-top: -28px;
  }
}

/** Content centering **/
@media screen and (max-width : 767px) {
  #footer #ocha-services {
    font-size: 16px;
  }
  #footer #ocha-services > ul {
    display: block;
  }
  #footer #ocha-services > ul > li {
    display: block;
    margin-bottom: 24px;
  }
  #footer #ocha-services > ul > li + li {
    margin-bottom: 0;
  }
  #footer #ocha-services > ul > li + li + li + li {
    margin: 24px 0;
  }
  #footer #ocha-services > ul > li + li + li + li a {
    position: relative;
    display: block;
  }
  #footer #ocha-services li div.accessibility + ul {
    padding-top: 0;
  }

  #footer #language-switcher,
  #footer #language-switcher-toggler {
    right: 20px;
  }

  #footer #additional-links ul li {
    width: 100%;
    padding: 0 0 12px;
  }
  #footer #additional-links ul li a {
    display: inline;
  }

  .no-js #footer #ocha-services {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
  }

  .js #footer #ocha-services {
    padding: 22px 12px;
  }
  .js #footer #ocha-services:before {
    margin-left: 11px;
  }
  .js #footer #ocha-services-toggler span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0,0,0,0);
    overflow: hidden;
  }
  .js #footer #ocha-services-toggler:after {
    margin-left: 0;
  }

  .js #main #go-to-letter-toggler {
    margin: 0 auto;
    float: none;
  }
  .js #main #go-to-letter {
    right: 50%;
    margin-top: 0;
    margin-right: -80px;
  }
}
@media screen and (min-width : 768px) and (max-width : 1199px) {
  #header,
  #main,
  #footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  #header:before,
  #header:after {
    margin-left: -24px;
    margin-right: -24px;
  }
  .js #footer #ocha-services-toggler {
    left: 24px;
  }
  .js #footer #ocha-services {
    padding: 22px 24px;
  }
  .js #footer #ocha-services > ul {
    grid-gap: 12px;
  }

  .js #footer #language-switcher,
  .js #footer #language-switcher-toggler {
    right: 40px;
  }
}
@media screen and (min-width : 1200px) and (max-width : 1235px) {
  #header,
  #main,
  #footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  #header:before,
  #header:after {
    margin-left: -40px;
    margin-right: -40px;
  }

  .js #footer #ocha-services {
    padding-left: 40px;
    padding-right: 40px;
  }
  .js #footer #ocha-services-toggler {
    left: 40px;
  }

  .js #footer #language-switcher,
  .js #footer #language-switcher-toggler {
    right: 40px;
  }
}
@media screen and (min-width : 1200px) {
  #footer #ocha-services li li {
    white-space: nowrap;
  }
}
@media screen and (min-width : 1236px) {
  /* Keep content centered and with constant width */
  body > div {
    position: relative;
    left: 50%;
    margin-left: -700px;
    max-width: 1400px;
  }
  #header,
  #main,
  #footer {
    padding-left: 130px;
    padding-right: 130px;
  }
  #header:before,
  #header:after {
    margin-left: -130px;
    margin-right: -130px;
  }

  .js #footer #ocha-services {
    padding-left: 130px;
    padding-right: 130px;
  }
  .js #footer #ocha-services-toggler {
    left: 130px;
  }
  .js #footer #language-switcher,
  .js #footer #language-switcher-toggler {
    right: 130px;
  }
}
