/* Degrees exit chrome and thesis-with-degree layout. Site nav stays visible. */

.degree-exit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.degree-exit .back-link {
  margin: 0;
}

.degree-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.7rem;
  line-height: 1;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

.degree-close:hover,
.degree-close:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.degree-block {
  margin: 0 0 0.35rem;
  padding: 0.15rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.degree-block .degree-item {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.degree-thesis {
  margin: 0.7rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.degree-thesis a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 32%, transparent);
  text-underline-offset: 0.16em;
}

.degree-thesis a:hover,
.degree-thesis a:focus-visible {
  color: var(--gold-soft);
}

.thesis-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  margin: 0 0 1.1rem;
}

.thesis-embed-wrap {
  margin: 0.25rem 0 0;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 70vh;
}

.thesis-embed {
  display: block;
  width: 100%;
  height: calc(100vh - 14rem);
  min-height: 28rem;
  border: 0;
}

@media (max-width: 700px) {
  .degree-close {
    width: 2.85rem;
    height: 2.85rem;
  }
  .thesis-embed {
    height: calc(100vh - 16rem);
    min-height: 22rem;
  }
}
