.paper-masthead {
  padding: 62px 0 58px;
  border-bottom: 1px solid #d5e1ea;
  background: #eaf4f8;
}

.paper-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: #1767ad;
  font-size: 14px;
  font-weight: 750;
}

.paper-back::before {
  margin-right: 8px;
  content: "<-";
}

.paper-masthead h1 {
  max-width: 860px;
  margin-bottom: 12px;
  color: #0b2a4a;
  font-size: 46px;
}

.paper-subtitle {
  margin-bottom: 26px;
  color: #426378;
  font-size: 22px;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: #587286;
  font-size: 13px;
}

.paper-meta span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: #d5862e;
  content: "";
}

.paper-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 68px;
  padding-top: 62px;
  padding-bottom: 88px;
}

.paper-layout > * {
  min-width: 0;
}

.paper-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 20px 0 20px 18px;
  border-left: 2px solid #b8d4e3;
}

.paper-toc strong {
  margin-bottom: 6px;
  color: #0b2a4a;
}

.paper-toc a {
  color: #607889;
  font-size: 13px;
  line-height: 1.45;
}

.paper-toc a:hover,
.paper-toc a:focus-visible {
  color: #1767ad;
  outline: none;
}

.paper-article {
  color: #354f63;
  font-size: 17px;
  line-height: 1.9;
}

.paper-article section {
  padding: 0 0 56px;
}

.paper-article h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.paper-article h3 {
  margin: 34px 0 12px;
  font-size: 21px;
}

.paper-article p {
  margin-bottom: 20px;
}

.paper-section-no {
  margin-bottom: 8px !important;
  color: #0c6d82;
  font-size: 13px;
  font-weight: 800;
}

.paper-abstract {
  padding: 32px 36px 28px !important;
  border: 1px solid #d7e5ed;
  border-top: 4px solid #1767ad;
  background: #ffffff;
}

.paper-abstract h2 {
  font-size: 26px;
}

.paper-abstract p:last-child {
  margin-bottom: 0;
}

.paper-keywords {
  color: #587286;
  font-size: 14px;
}

.paper-article blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid #d5862e;
  color: #624c34;
  background: #fff8ed;
  font-size: 18px;
  font-weight: 650;
}

.paper-table-wrap {
  overflow-x: auto;
  margin: 28px 0 12px;
  border: 1px solid #d7e3eb;
  background: #ffffff;
}

.paper-table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.58;
}

.paper-table-wrap th,
.paper-table-wrap td {
  padding: 14px 15px;
  border-right: 1px solid #e0e9ef;
  border-bottom: 1px solid #dce6ed;
  vertical-align: top;
  text-align: left;
}

.paper-table-wrap th:last-child,
.paper-table-wrap td:last-child {
  border-right: 0;
}

.paper-table-wrap tr:last-child td {
  border-bottom: 0;
}

.paper-table-wrap th {
  color: #173d5b;
  background: #eef6f9;
  font-weight: 800;
}

.paper-table-wrap code {
  color: #0c6d82;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.paper-note {
  color: #708493;
  font-size: 13px;
}

.paper-steps {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d6e2ea;
}

.paper-steps li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid #d6e2ea;
}

.paper-steps strong {
  color: #145a97;
  font-size: 18px;
}

.paper-steps p {
  margin: 0;
}

.paper-myhex {
  padding: 38px 40px 48px !important;
  border: 1px solid #d7e5ed;
  background: #f5fafc;
}

.paper-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0;
  border: 1px solid #cfe0e9;
  background: #ffffff;
}

.paper-solution-grid > div {
  min-height: 190px;
  padding: 22px 18px;
  border-right: 1px solid #cfe0e9;
}

.paper-solution-grid > div:last-child {
  border-right: 0;
}

.paper-solution-grid span,
.paper-solution-grid strong {
  display: block;
}

.paper-solution-grid span {
  margin-bottom: 12px;
  color: #b66a13;
  font-size: 12px;
  font-weight: 800;
}

.paper-solution-grid strong {
  margin-bottom: 8px;
  color: #0c416d;
  line-height: 1.35;
}

.paper-solution-grid p {
  margin: 0;
  color: #607889;
  font-size: 14px;
  line-height: 1.65;
}

.paper-value-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid #d7e3eb;
}

.paper-value-list article {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #d7e3eb;
}

.paper-value-list h3 {
  margin: 0;
  color: #0c416d;
  font-size: 19px;
}

.paper-value-list p {
  margin: 0;
}

.paper-boundary {
  padding: 34px 38px 14px !important;
  border-left: 4px solid #d5862e;
  background: #fff8ed;
}

.paper-conclusion {
  padding-bottom: 0 !important;
}

.paper-conclusion .button-primary {
  margin-top: 10px;
  background: #1767ad;
  box-shadow: none;
}

@media (max-width: 980px) {
  .paper-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }

  .paper-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-solution-grid > div:nth-child(2) {
    border-right: 0;
  }

  .paper-solution-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #cfe0e9;
  }
}

@media (max-width: 720px) {
  .paper-masthead {
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .paper-masthead h1 {
    font-size: 36px;
  }

  .paper-subtitle {
    font-size: 19px;
  }

  .paper-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .paper-toc {
    position: static;
    grid-template-columns: 1fr;
    padding: 16px 0 16px 16px;
  }

  .paper-toc strong {
    grid-column: 1 / -1;
  }

  .paper-article {
    font-size: 16px;
    line-height: 1.82;
  }

  .paper-article section {
    padding-bottom: 42px;
  }

  .paper-article h2 {
    font-size: 25px;
  }

  .paper-abstract,
  .paper-myhex,
  .paper-boundary {
    padding: 26px 22px !important;
  }

  .paper-steps li,
  .paper-value-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .paper-solution-grid {
    grid-template-columns: 1fr;
  }

  .paper-solution-grid > div,
  .paper-solution-grid > div:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #cfe0e9;
  }

  .paper-solution-grid > div:last-child {
    border-bottom: 0;
  }
}

@media print {
  .site-header,
  .paper-toc,
  .site-footer,
  .paper-back,
  .paper-conclusion .button {
    display: none;
  }

  .paper-masthead {
    padding: 0 0 22px;
    background: #ffffff;
  }

  .paper-layout {
    display: block;
    width: auto;
    padding: 34px 0 0;
  }

  .paper-article {
    font-size: 11pt;
  }
}
