/* A quiet index of words: short covers, complete handouts inside. */
.vocabulary-studio {
  margin: 48px 0;
  container-type: inline-size;
}
.vocabulary-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
.vocabulary-heading h3 {
  font: 400 30px/1.5 var(--serif);
  margin: 8px 0;
}
.vocabulary-heading p {
  font: 14px/1.8 var(--serif);
  color: #74745f;
  margin: 0;
}
.vocabulary-heading .eyebrow {
  font: 9px var(--ui);
  letter-spacing: 1.5px;
}
.vocabulary-total {
  font: 42px/1 var(--serif);
  color: #7b895e;
  white-space: nowrap;
}
.vocabulary-total small {
  display: block;
  font: 11px/2 var(--serif);
  text-align: right;
}
.vocabulary-controls {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vocabulary-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.vocabulary-filters button {
  font: 13px var(--serif);
  padding: 8px 13px;
  background: transparent;
  color: #777965;
  border: 1px solid transparent;
}
.vocabulary-filters button[aria-pressed="true"] {
  color: #42533b;
  border-color: #c7cdb7;
  background: #e6eadb;
}
.vocabulary-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b805f;
  border-bottom: 1px solid #c6c9b5;
  max-width: 220px;
}
.vocabulary-search input {
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-width: 0;
  width: 100%;
  font: 13px var(--serif);
  outline: 0 !important;
  box-shadow: none;
}
.vocabulary-search:focus-within {
  border-bottom-color: #4c6140;
}
.vocabulary-result {
  font: 11px/1.6 var(--serif);
  color: #797b64;
  margin: 15px 0;
}
.vocabulary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.vocabulary-card {
  border: 1px solid #d9d7c6;
  background: #f7f4eb;
  padding: 18px 22px;
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.vocabulary-card[hidden] {
  display: none;
}
.vocabulary-card:hover {
  border-color: #aab799;
}
.vocabulary-card.is-focus {
  border-top: 3px solid #82966d;
}
.vocabulary-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8c8b71;
  font: 9px/1.4 var(--ui);
  letter-spacing: 1px;
}
.vocabulary-card-meta button {
  font-size: 23px;
  background: transparent;
  color: #8d8050;
  padding: 2px 5px;
  min-height: 34px;
  min-width: 34px;
}
.vocabulary-card details {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.vocabulary-card summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 10px 0 0 !important;
}
.vocabulary-card summary::-webkit-details-marker {
  display: none;
}
.vocabulary-card h4 {
  font: 500 29px/1.13 var(--serif) !important;
  margin: 5px 0 13px !important;
  overflow-wrap: anywhere;
  color: #4c6040;
}
.vocabulary-card summary > p {
  font: 14px/1.85 var(--serif);
  color: #777761;
  margin: 0;
  min-height: 3.7em;
}
.vocabulary-expand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font: 11px var(--serif);
  color: #85866e;
}
.vocabulary-expand i {
  font: 22px var(--serif);
  transition: transform 0.2s;
}
.when-open {
  display: none;
}
.vocabulary-card details[open] .when-closed {
  display: none;
}
.vocabulary-card details[open] .when-open {
  display: inline;
}
.vocabulary-card details[open] .vocabulary-expand i {
  transform: rotate(45deg);
}
.vocabulary-detail-body {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 15px !important;
  line-height: 1.9 !important;
}
.vocabulary-detail-body > :first-child {
  margin-top: 0;
}
.vocabulary-empty {
  padding: 30px 0;
  text-align: center;
  color: #7c8067;
  font-size: 14px;
}
.article-more > .vocabulary-studio {
  margin-top: 0;
}
.review-content > .vocabulary-studio {
  margin-top: 0;
}
.vocabulary-studio button:focus-visible,
.vocabulary-card summary:focus-visible {
  outline: 2px solid #71845d;
  outline-offset: 3px;
}
.vocabulary-detail-body blockquote {
  font-size: 16px;
}
.vocabulary-card:has(details[open]) {
  background: #f2f1e5;
}
@container (max-width:560px) {
  .vocabulary-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .vocabulary-search {
    max-width: none;
  }
  .vocabulary-cards {
    grid-template-columns: 1fr;
  }
  .vocabulary-heading h3 {
    font-size: 25px;
  }
  .vocabulary-card h4 {
    font-size: 27px !important;
  }
  .vocabulary-card summary > p {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vocabulary-card,
  .vocabulary-expand i {
    transition: none;
  }
}
.syntax-neutral {
  --syntax: #ebe9e2;
  --syntax-ink: #555b55;
  background: var(--syntax);
  color: var(--syntax-ink);
  border-bottom: 1px dotted #9a9d90;
}
.scroll-ink {
  color: #858774;
  background-image: linear-gradient(
    90deg,
    #405139 var(--ink-fill, 100%),
    #858774 var(--ink-fill, 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.atelier-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  pointer-events: none;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  display: grid;
  place-items: center;
  border: 1px solid #958252;
  color: #7b663c;
  background: #f7f3eaaa;
  font: 25px/1 var(--serif);
  border-radius: 50%;
  will-change: transform;
}
.atelier-cursor[hidden] {
  display: none;
}
.atelier-cursor[data-action="true"] {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: #536447ed;
  border-color: transparent;
  color: #fff8e6;
  font: 12px var(--serif);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .atelier-cursor-active
    :is(.course-cover, .reading-blueprint, .image-zoom, .exam-art),
  .atelier-cursor-active
    :is(.course-cover, .reading-blueprint, .image-zoom, .exam-art)
    * {
    cursor: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-ink {
    -webkit-text-fill-color: currentColor;
    background: none;
    color: #405139;
  }
  .atelier-cursor {
    display: none !important;
  }
}

.records-dialog {
  height: fit-content;
  width: min(540px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 36px;
  background: #f7f4eb;
  color: #45523e;
  border: 1px solid #c3c7b4;
}
.records-dialog::backdrop {
  background: #27332266;
}
.records-dialog h2 {
  font: 400 30px/1.4 var(--serif);
  margin: 14px 0;
}
.records-dialog p,
.records-dialog label {
  font: 14px/1.9 var(--serif);
}
.records-dialog label {
  display: block;
  margin-bottom: 12px;
}
.records-dialog input {
  max-width: 100%;
  font: 13px var(--serif);
}
.records-dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.records-dialog button[disabled] {
  opacity: 0.5;
  cursor: default;
}
.records-close {
  width: 34px;
  height: 34px;
  padding: 0;
  float: right;
}

.syntax-note {
  color: #626956;
  text-decoration: underline dotted #9a9d90;
  text-underline-offset: 3px;
}

.records-dialog input::file-selector-button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  margin: 0 10px 12px 0;
  cursor: pointer;
}
