/* A compact CV inside the existing Material page, with native disclosure controls. */
.md-typeset .cv-compact {
  color: var(--ink);
  font-size: calc(16px * var(--reader-scale, 1));
  line-height: 1.65;
  margin: 12px auto 40px;
  max-width: 740px;
}
.md-typeset .cv-compact__mobile-title { display: none; }
/* The shared toolbar title is hidden at this same phone breakpoint. */
@media screen and (max-width: 48em) {
  .md-typeset .cv-compact__mobile-title {
    display: block;
    font-size: calc(20px * var(--reader-scale, 1));
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px;
    text-align: center;
  }
}
.md-typeset .cv-compact__header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding-top: 8px;
  text-align: center;
}
.md-typeset .cv-compact__header img {
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
  height: 168px;
  margin: 0;
  object-fit: cover;
  width: 168px;
}
.md-typeset .cv-compact__header h1 {
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
}
.md-typeset .cv-compact__header p { margin: 0; }
.md-typeset .cv-compact__about {
  margin: 0 0 28px;
  padding: 0 8px;
}
.md-typeset .cv-compact__about p { margin: 0; }
.md-typeset .cv-compact details.cv-compact__section {
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-size: inherit;
  margin: 0;
  overflow: visible;
  padding: 0;
}
.md-typeset .cv-compact details.cv-compact__section:first-of-type { border-top: 1px solid var(--line); }
.md-typeset .cv-compact details.cv-compact__section > summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: calc(16px * var(--reader-scale, 1));
  font-weight: 600;
  gap: 4px 20px;
  grid-template-columns: minmax(0, 1fr) 20px;
  line-height: 1.5;
  list-style: none;
  margin: 0;
  min-height: 62px;
  padding: 14px 8px;
  position: relative;
}
.md-typeset .cv-compact details.cv-compact__section > summary::-webkit-details-marker { display: none; }
.md-typeset .cv-compact details.cv-compact__section > summary::before { content: none; display: none; }
.md-typeset .cv-compact details.cv-compact__section > summary::after {
  background: none;
  content: '+';
  display: block;
  font: 400 22px/1 "Open Sans", sans-serif;
  height: auto;
  mask: none;
  position: static;
  text-align: center;
  transform: none;
  width: auto;
}
.md-typeset .cv-compact details.cv-compact__section[open] > summary::after { content: '−'; }
.md-typeset .cv-compact details.cv-compact__section > summary:hover { background: var(--paper-soft); }
.md-typeset .cv-compact details.cv-compact__section > summary:focus-visible {
  outline: 2px solid var(--ntnu-orange);
  outline-offset: 2px;
  z-index: 1;
}
.md-typeset .cv-compact__body { padding: 2px 8px 22px; }
.md-typeset .cv-compact__body h2 {
  font-size: calc(17px * var(--reader-scale, 1));
  letter-spacing: -.015em;
  line-height: 1.45;
  margin: 24px 0 8px;
}
.md-typeset .cv-compact__body h2:first-child { margin-top: 0; }
.md-typeset .cv-compact__body p { margin: 8px 0; }
.md-typeset .cv-compact__body ul { margin: 8px 0 18px; }
.md-typeset .cv-compact__body li { margin-bottom: 8px; }
.md-typeset .cv-compact__body a { overflow-wrap: anywhere; }
.md-typeset .cv-compact__timeline article {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 16px 0;
}
.md-typeset .cv-compact__timeline article + article { border-top: 1px solid var(--line); }
.md-typeset .cv-compact__timeline h2 { margin: 0 0 5px; }
.md-typeset .cv-compact__timeline p.cv-compact__date {
  color: var(--ink-soft);
  font-size: calc(13px * var(--reader-scale, 1));
  margin-top: 2px;
}
.md-typeset .cv-compact__institution { color: var(--ink-soft); font-size: calc(14px * var(--reader-scale, 1)); }
.md-typeset .cv-compact__publications { list-style: none; padding: 0; margin-left: 0; }
.md-typeset .cv-compact__publications li { margin-left: 0; padding: 10px 0; }
.md-typeset .cv-compact__publications li + li { border-top: 1px solid var(--line); }
.md-typeset .cv-compact__publications li > a { font-weight: 600; }
.md-typeset .cv-compact__publications p { color: var(--ink-soft); font-size: calc(13px * var(--reader-scale, 1)); margin: 5px 0; }
.md-typeset .cv-compact .cv-compact__note { color: var(--ink-soft); font-size: calc(13px * var(--reader-scale, 1)); }
@media (max-width: 600px) {
  .md-typeset .cv-compact { margin-top: 0; }
  .md-typeset .cv-compact__header { gap: 14px; margin-bottom: 28px; }
  .md-typeset .cv-compact__header h1 { font-size: 26px; }
  .md-typeset .cv-compact__header img { height: 148px; width: 148px; }
  .md-typeset .cv-compact details.cv-compact__section > summary {
    gap: 2px 14px;
    grid-template-columns: minmax(0, 1fr) 20px;
    padding: 11px 4px;
  }
  .md-typeset .cv-compact details.cv-compact__section > summary::after { grid-column: 2; grid-row: 1; }
  .md-typeset .cv-compact__body { padding-inline: 4px; }
  .md-typeset .cv-compact__about { padding-inline: 4px; }
  .md-typeset .cv-compact__timeline article { gap: 3px; grid-template-columns: 1fr; }
}
@media print {
  .md-typeset .cv-compact details.cv-compact__section > .cv-compact__body { display: block !important; }
  .md-typeset .cv-compact details.cv-compact__section > summary::after { content: none; }
  .md-typeset .cv-compact__timeline article { break-inside: avoid; }
}
[data-md-color-scheme="slate"] .md-typeset .cv-compact a { color: #9dccff; }

/* Quiet metadata and the same reading controls used in the compendium. */
.md-typeset .cv-compact__updated {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  margin: 20px 8px 0;
  text-align: right;
}
.md-typeset .cv-compact__header { flex-wrap: wrap; }
.md-typeset .cv-compact__projects { list-style: none; margin-left: 0; padding: 0; }
.md-typeset .cv-compact__projects li { margin-left: 0; padding: 12px 0; }
.md-typeset .cv-compact__projects li + li { border-top: 1px solid var(--line); }
.md-typeset .cv-compact__projects p { margin: 4px 0 0; }

.md-typeset .cv-compact__skill-list {
  display: grid;
  gap: 4px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 20px;
}
.md-typeset .cv-compact__skill-list li { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .md-typeset .cv-compact__skill-list { grid-template-columns: 1fr; }
}

/* Three matching contact rows, grouped beside the author's introduction. */
section.home-contact-v2 { row-gap: 28px; }
.home-contact-v2 .home-contact-v2__details { align-self: start; grid-template-columns: 1fr; }
.home-contact-v2 .home-contact-v2__details > a {
  align-items: center;
  border-left: 0;
  flex-direction: row;
  gap: 16px;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: .9rem 0;
}
.home-contact-v2 .home-contact-v2__details > a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.home-contact-v2 .home-contact-v2__details > a span { font-size: 16px; }
