.robertson-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.3rem;
  margin-block: 1.5rem;
}

.robertson-controls a { padding-block: .55rem; }

.robertson-links {
  max-width: 58rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: .4rem 1rem;
  list-style: none;
  padding: 0;
  margin: .6rem 0 1.65rem;
}

.robertson-links li { min-width: 0; }
.robertson-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem .75rem;
  min-height: 2.75rem;
  border: 1px solid #d4cbb9;
  border-radius: .4rem;
  color: #403023;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.robertson-links a:hover { background: #eee6d4; }
.robertson-page-number { white-space: nowrap; font-size: .88em; }

.robertson-text {
  max-width: 74ch;
  font-size: clamp(1.04rem, 1rem + .25vw, 1.24rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding-block: 1.25rem 2rem;
}

.robertson-text p { margin: .05em 0 .14em; }
.robertson-text p:empty { display: none; }
.robertson-text h2, .robertson-text h3,
.robertson-text h4, .robertson-text h5, .robertson-text h6 { margin-block: 1.35em .45em; }
.robertson-text h2 { font-size: clamp(1.4rem, 1.1rem + .8vw, 2.05rem); }
.robertson-text img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.robertson-text [id] { scroll-margin-block-start: 1.25rem; }
.robertson-text .robertson-inline-image {
  display: inline;
  width: auto;
  height: 1.15em;
  margin: 0 .15em;
  vertical-align: middle;
}
