/* Filters and in-page topic links use the Courses controls. */
.content-choice {
  appearance: none;
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  padding: .32rem .58rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: .3rem;
  background: transparent;
  font: inherit;
  line-height: 1.4;
  text-decoration: none;
  text-align: start;
  cursor: pointer;
}
.content-choice[aria-pressed="true"], .content-choice[aria-current="location"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--wash);
  font-weight: 600;
}
.content-choice:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* A syllabus, paper, and resource download share the same link treatment. */
.content-material {
  display: inline;
  padding: 0;
  color: var(--accent);
  background: transparent;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
.content-material:hover { text-decoration-thickness: 2px; }
main :is(.content-choice,.content-material):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Shared native disclosure controls. Compact rows keep their title and metadata visible. */
details.vgr-disclosure { margin: 0; padding: 0; }
.vgr-disclosure > summary {
  box-sizing: border-box;
  position: absolute;
  inset-block-start: var(--vgr-toggle-top, .45rem);
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  color: var(--accent);
  background: transparent;
  list-style: none;
  cursor: pointer;
}
.vgr-disclosure > summary::marker { content: ''; }
.vgr-disclosure > summary::-webkit-details-marker { display: none; }
.vgr-disclosure > summary:hover .vgr-disclosure-mark { background: var(--wash); }
.vgr-disclosure > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.vgr-disclosure-mark {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: .25rem;
  color: var(--accent);
}
.vgr-disclosure-mark::before,
.vgr-disclosure-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: currentColor;
  content: '';
}
.vgr-disclosure-mark::after { width: 2px; height: 16px; }
.vgr-disclosure[open] > summary .vgr-disclosure-mark::after { display: none; }

/* An interior record has one native control for its title and trailing mark. */
.vgr-title-disclosure > summary {
  position: static;
  display: block;
  place-items: start;
  width: auto;
  height: auto;
  color: var(--ink);
  text-align: start;
  -webkit-user-select: text;
  user-select: text;
}
.vgr-title-disclosure > summary .vgr-disclosure-mark {
  position: absolute;
  inset-block-start: var(--vgr-toggle-top, .45rem);
  inset-inline-end: 0;
}
.vgr-title-disclosure > summary:is(:hover,:focus-visible) h3 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .17em;
}
.vgr-disclosure-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.vgr-disclosure.vgr-disclosure-row > summary {
  position: static;
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 44px;
  color: var(--ink);
}
.vgr-disclosure-row > summary .vgr-disclosure-mark { margin-inline-start: auto; }
.news-year.vgr-disclosure-row > summary {
  min-height: 3.5rem;
  padding-block: .22rem;
}
.news-year.vgr-disclosure-row > summary h2 { width: 100%; align-items: center; }
.rp-area:has(> .vgr-disclosure) { position: relative; --vgr-toggle-top: .85rem; }
.rp-area:has(> .vgr-disclosure) h3 { margin-inline-end: calc(44px + .65rem); }
.rp-area-papers .vgr-work-count { margin: .85rem 0 .4rem; font-weight: 600; line-height: 1.4; }
@media (forced-colors: active) {
  .vgr-disclosure > summary:focus-visible { outline-color: Highlight; }
  .vgr-disclosure-mark::before, .vgr-disclosure-mark::after {
    background: ButtonText;
    forced-color-adjust: none;
  }
}
