body {
  color: black
}


.wrapper {
  width: 1024px;
}

section {
  width:500px;
}

.nav ul {
  list-style-type: none;
  margin: 0;
  margin-top: 5px;
  padding: 0;
  overflow: hidden;
}

.nav li {
  list-style-type: none;
  float: left;
  font-variant: small-caps;
  font-weight: bold;
  font-size: 20px;
}

.nav li a {
  padding: 12px;
  padding-right: 16px;
  padding-left: 16px;
  display: block;
  color: black;
  text-align: center;
  text-decoration: none;
}

.nav li a:hover {
  color: purple;
  font-weight: bold;
}

.paper {
  margin-left: 10px; margin-right: 10px;
  padding-left: 30px; padding-right: 30px;
  border-left: grey 1px solid;
  border-right: grey 1px solid;
  padding-bottom: 0;
  margin-bottom: 20px
}

a, a:link, a:visited, a:active {
  color: #1F73ED;
  font-weight: normal;
}

a:hover {
  color: purple;
  font-weight: normal;
}

.plot3d {
  margin: 25px 0;
}

#poisson-plot {
  width: 100%;
  height: 420px;
}

.plot3d-status {
  color: grey;
  font-size: 14px;
  text-align: center;
  margin: 0;
  padding: 12px 0;
}

.plot3d-controls {
  text-align: center;
  margin-top: 6px;
}

.plot3d-controls button {
  font: inherit;
  font-size: 14px;
  font-variant: small-caps;
  background: none;
  border: 1px solid #ccc;
  color: black;
  padding: 4px 14px;
  margin: 0 2px;
  cursor: pointer;
}

.plot3d-controls button:hover {
  color: purple;
  border-color: purple;
}

.plot3d-controls button[aria-pressed="true"] {
  border-color: #1F73ED;
  color: #1F73ED;
  font-weight: bold;
}

.plot3d figcaption {
  color: grey;
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

@media screen and (max-width: 468px) {
  #poisson-plot {
    height: 300px;
  }
}

/* Embedded WebGPU application (mantle-convection.html). The app renders a
   square canvas and overlays its own HUD and control pane, so the frame is kept
   square and given the app's own background — a mismatched letterbox reads as a
   rendering fault rather than as page chrome. */
.embed {
  margin: 25px 0;
}

.embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 4px;
  background: #05050c;
}

.embed figcaption {
  color: grey;
  font-style: italic;
  font-size: 14px;
  margin-top: 10px;
}

/* Shown only when feature detection finds no WebGPU, so it must not reserve
   space or draw attention when hidden. */
.embed-note {
  border-left: 3px solid #ccc;
  padding: 8px 12px;
  margin-bottom: 12px;
  color: #555;
  font-size: 14px;
}

.socialicons {
  position:absolute;
  top:15px;
  right:55px;
  font-size:25px
}

.socialicons a,
.socialicons a:link,
.socialicons a:active,
.socialicons a:visited,
.socialicons a:hover {
  padding-left:5px;
}

.socialicons a,
.socialicons a:link,
.socialicons a:active,
.socialicons a:visited
 {
  color:black;
}

.socialicons a:hover {
  color: purple;
}

.sociallist {
  list-style:none;
  margin-top:10px
}

.sociallist i.fa {
  width:20px;
}

.inner {
  position: static;
  width: unset;
  /*max-width: 750px;*/
}

.outer {
  /*position: static;*/
  /*width: unset;*/
  max-width: 768px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /*align-content: center;*/
}

footer {
  width:270px;
  float:left;
  position:relative;
  bottom:10px;
  -webkit-font-smoothing:subpixel-antialiased;
}


@media print, screen {

  div.wrapper {
    width:auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right:320px;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:static;
    right:0px;
    top:0px;
  }
}

@media print, screen and (max-width: 768px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0;
  }

  header ul, header p.view {
    width: 99%;
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 468px) {
  body {
    padding:15px;
  }

  header ul {
    width:99%;
  }

  header li, header ul li + li + li {
    width:33%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}