* {
  box-sizing: border-box;
}
html {
  background: #e5e5e5;
}
body {
  width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  color: #111;
  font:
    11px Arial,
    Helvetica,
    sans-serif;
}
a {
  color: #003399;
  text-decoration: none;
  font-weight: 700;
}
a:hover {
  text-decoration: underline;
}
.topbar {
  height: 125px;
  background: #063da5;
  color: #fff;
}
.topbar > div {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}
.topbar a {
  color: #fff;
}
.topbar form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.topbar form input[type="text"],
.topbar form input:not([type]) {
  width: 160px;
  height: 19px;
  border: 2px inset #eee;
}
.topbar button {
  height: 20px;
  font-size: 10px;
}
.topbar > div > span {
  margin-left: auto;
}
.topbar h1 {
  width: 280px;
  height: 58px;
  margin: 18px 0 0 28px;
  padding: 9px 12px;
  background: #fff;
  color: #111;
  font: bold 23px Arial;
}
.topbar h1 span {
  font-size: 14px;
}
.topbar h1 small {
  display: block;
  margin-left: 42px;
  font: 8px Arial;
  color: #555;
}
.nav {
  height: 25px;
  padding: 6px 12px;
  background: #6699cc;
  color: #fff;
  text-align: center;
  font-size: 11px;
}
.nav a {
  color: #fff;
  font-weight: 400;
}
main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 14px 27px 40px;
}
h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
}
.profile img {
  width: 170px;
  height: 138px;
  object-fit: cover;
  object-position: 48% 43%;
}
.profile b {
  font-size: 15px;
}
.profile p {
  margin: 10px 0 42px;
  line-height: 1.15;
}
.profile p:last-child {
  margin-bottom: 0;
}
.view-links {
  text-align: center;
}
.bluebox {
  margin: 10px 0;
  border: 2px solid #6699cc;
}
.bluebox h3,
.orangebox h3 {
  margin: 0;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
}
.bluebox h3 {
  background: #6699cc;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
  padding: 12px;
}
.contact-grid a {
  font-weight: 400;
}
.urlbox {
  margin: 24px 0 10px;
  padding: 3px;
  border: 1px solid #6699cc;
}
.interests dl {
  display: grid;
  grid-template-columns: 108px 1fr;
  margin: 3px;
}
.interests dt,
.interests dd {
  margin: 0;
  padding: 5px;
  border-bottom: 1px solid #fff;
}
.interests dt {
  background: #b1d0ef;
  color: #376999;
  font-weight: 700;
}
.interests dd {
  background: #d5e7f7;
}
.network {
  margin: 0 0 17px;
  padding: 26px 10px;
  border: 2px solid #111;
  text-align: center;
  font: bold 18px Arial;
}
article section {
  margin-bottom: 22px;
}
article section > h3 {
  font-size: 11px;
}
article section > p {
  line-height: 1.35;
}
.orangebox h3 {
  background: #ffcc99;
  color: #f26522;
}
.orangebox h4 {
  margin: 7px 3px 0;
  color: #f26522;
  font-size: 12px;
}
.orangebox > p {
  margin: 5px 3px 12px;
}
.friends {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.friends a {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.friends .friend-placeholder {
  display: grid;
  place-items: center;
  width: 70px;
  height: 75px;
  border: 1px solid #aaa;
  background-color: #ddd;
  color: #fff;
  font:
    bold 35px "Courier New",
    monospace;
  text-shadow: 1px 1px #222;
  box-shadow: inset 0 0 0 4px #eee;
}
.friend-one {
  background-image: linear-gradient(135deg, #607d9e, #b7c8d8);
}
.friend-two {
  background-image: repeating-linear-gradient(
    45deg,
    #8d6a9f 0 8px,
    #bca8c6 8px 16px
  );
}
.friend-three {
  background-image: linear-gradient(#cf995d, #596a82);
}
.friend-four {
  background-image: repeating-linear-gradient(
    90deg,
    #718d7a 0 6px,
    #9fb0a3 6px 12px
  );
}
.comments form {
  padding: 8px 3px;
}
.comments label {
  display: block;
  font-weight: 700;
}
.comments textarea {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 5px;
  border: 1px solid #777;
  font: 12px Arial;
}
.comments button {
  padding: 3px 10px;
}
.comments #comment-status {
  margin-left: 8px;
}
.comment {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  padding: 10px 3px;
  border-top: 1px solid #f0b47e;
}
.comment-author {
  color: #f26522;
  font-weight: 700;
}
.comment-author span {
  display: block;
  width: 70px;
  height: 55px;
  margin-top: 4px;
  padding-top: 17px;
  background: #dbe7f4;
  color: #003399;
  text-align: center;
}
.comment-body time {
  display: block;
  margin-bottom: 6px;
  color: #777;
  font-size: 10px;
}
.comment-body p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-delete {
  float: right;
  padding: 1px 5px;
  font-size: 9px;
}
#signin-note {
  padding: 4px;
}
@media (max-width: 800px) {
  html {
    background: #fff;
  }
  body {
    margin: 0;
  }
}

@media (max-width: 800px) {
  body { width: 100%; font-size: 13px; }
  main { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  main > * { min-width: 0; }
  .topbar { height: auto; padding-bottom: 14px; }
  .topbar > div { height: auto; min-height: 44px; flex-wrap: wrap; }
  .topbar form { flex-wrap: wrap; margin-left: 0; padding-bottom: 6px; }
  .topbar form input[type="text"], .topbar form input:not([type]) { width: 140px; height: 32px; font-size: 16px; }
  .topbar button { height: 32px; }
  .topbar h1 { margin-left: 16px; max-width: calc(100% - 32px); }
  .nav { height: auto; line-height: 2.5; padding: 4px 12px; }
  .profile { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 12px; }
  .profile img { max-width: 100%; }
  .profile p { margin-bottom: 20px; }
  .contact-grid a { min-height: 36px; display: flex; align-items: center; }
  .friends { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .comments textarea { font-size: 16px; }
  .comments button { min-height: 44px; }
  .urlbox, .comment-body, .interests dd { overflow-wrap: anywhere; }
}

.unavailable { color:#777; cursor:default; }
#search-status { font-size:11px; }
mark[data-search] { background:#ffed82; color:#000; }
