.rf {
  --rf-paper: #f7f5ef;
  --rf-ink: #1e211d;
  --rf-rule: #b4b4a8;
  --rf-soft: #e9d59d;
  color: var(--rf-ink);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.rf [hidden] { display: none !important; }
.rf button, .rf input { font: inherit; }
.rf button, .rf summary { cursor: pointer; }
.rf :is(button, input, summary, a):focus-visible {
  outline: 3px solid #2e5695;
  outline-offset: 3px;
}
.rf-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rf-filter, .rf-reset {
  appearance: none;
  border: 1px solid var(--rf-rule);
  background: transparent;
  border-radius: 2px;
  color: var(--rf-ink);
  font-size: .9rem !important;
  font-weight: 600 !important;
  min-height: 2.75rem;
  padding: .45rem .85rem;
}
.rf-filter:hover, .rf-reset:hover { border-color: var(--rf-ink); background: #e8e6dd; }
.rf-filter[aria-pressed="true"] { color: #fff; background: var(--rf-ink); border-color: var(--rf-ink); }
.rf-search-label, .rf-tools-label, .rf-note-label, .rf-count, .rf-time-meta, .rf-term-example strong {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: .79rem;
  line-height: 1.5;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.rf-gloss-tools { background: #efe7cc; border-block: 1px solid var(--rf-ink); padding: clamp(1rem,2.2vw,1.7rem); }
.rf-gloss-tools .rf-filters { margin-top: 1rem; }
.rf-gloss-tools .rf-filter { border-color: #9f987f; }
.rf-gloss-tools .rf-filter[aria-pressed="true"] { border-color: var(--rf-ink); }
.rf-search-label { display: block; max-width: 42rem; }
.rf-search-wrap { display: flex; align-items: center; position: relative; margin-top: .4rem; }
.rf-search-wrap input {
  min-width: 0; width: 100%; height: 3.1rem;
  padding: .55rem 1rem .55rem 2.9rem;
  color: var(--rf-ink); background: var(--rf-paper);
  border: 1px solid #777564; border-radius: 0;
  font-family: inherit; font-size: 1rem; font-weight: 400;
  letter-spacing: normal; text-transform: none;
}
.rf-search-icon { position: absolute; left: 1.02rem; width: .9rem; height: .9rem; border: 1.65px solid currentColor; border-radius: 100%; pointer-events: none; }
.rf-search-icon::after { content: ""; width: .45rem; height: 1.65px; background: currentColor; position: absolute; right: -.34rem; bottom: -.15rem; transform: rotate(45deg); }
.rf-count { margin: 1.25rem 0 .6rem; color: #4a4d45; }
.rf-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.rf-results-head .rf-count { margin: 0; }
.rf-clear { padding: .35rem 0; background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.rf-term-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: .65rem; }
.rf-term-links a { font-size: .9rem; line-height: 1.5; text-underline-offset: .2em; }
.rf-term { border-top: 1px solid var(--rf-rule); }
.rf-term-list { border-bottom: 1px solid var(--rf-rule); }
.rf details > summary { list-style: none; }
.rf details > summary::-webkit-details-marker { display: none; }
.rf-term summary { display: grid; grid-template-columns: minmax(9rem, .7fr) minmax(10rem, 1.7fr) 1.25rem; align-items: center; column-gap: 1.6rem; padding: 1.2rem .35rem; }
.rf-term summary:hover .rf-term-name, .rf-milestone summary:hover .rf-time-name { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.rf-term-name { font-size: clamp(1.18rem, 2.1vw, 1.65rem); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }
.rf-term-meaning, .rf-term-example p, .rf-astra-note p, .rf-time-body p { font-size: 1rem; line-height: 1.6; }
.rf-toggle { width: 1.05rem; height: 1.05rem; position: relative; justify-self: end; display: block; }
.rf-toggle::before, .rf-toggle::after { content: ""; position: absolute; background-color: currentColor; width: .8rem; height: 1.5px; top: 50%; left: .125rem; }
.rf-toggle::after { transform: rotate(90deg); }
.rf details[open] > summary .rf-toggle::after { display: none; }
.rf-term-example { background: #efe7cc; border-inline-start: .2rem solid #917835; padding: .8rem 1.1rem; margin: 0 0 1.2rem .35rem; }
.rf-term-example p { margin: .3rem 0 0; }
.rf-empty { padding: 2rem .25rem; }
.rf-empty h2 { font-size: 1.5rem; margin: 0; }
.rf-empty p { line-height: 1.6; }
.rf-timeline-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1rem 0; border-block: 1px solid var(--rf-ink); }
.rf-history-layout { display: grid; grid-template-columns: minmax(12rem, .67fr) minmax(0,1.55fr); align-items: start; gap: clamp(1.4rem,4vw,4rem); padding-top: clamp(1.5rem,3.1vw,2.6rem); }
.rf-astra-note { background: #c8d8e5; border-top: 2px solid var(--rf-ink); padding: clamp(1.2rem,2.4vw,2rem); }
.rf-astra-note h2 { margin: .95rem 0; font-size: clamp(1.65rem,2.65vw,2.75rem); line-height: 1.01; letter-spacing: -.052em; }
.rf-astra-note p { margin: .85rem 0 0; }
.rf-chronology .rf-count { margin-top: 0; }
.rf-chronology ol { margin: 1rem 0 0 .4rem; padding: 0; border-left: 1px solid #8296a3; list-style: none; }
.rf-milestone { margin: 0 0 0 1.15rem; border-top: 1px solid var(--rf-rule); position: relative; }
.rf-milestone::before { content: ""; position: absolute; height: .64rem; width: .64rem; box-sizing: border-box; background: #7393a9; border: 1px solid #39566a; border-radius: 50%; top: 1rem; left: -1.5rem; }
.rf-milestone:last-child { border-bottom: 1px solid var(--rf-rule); }
.rf-milestone summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem .6rem; align-items: center; padding: .8rem .2rem .9rem; }
.rf-milestone summary .rf-toggle { grid-area: 1 / 2 / 3 / 3; }
.rf-time-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .7rem; }
.rf-time-meta span { text-transform: none; letter-spacing: 0; font-weight: 400; color: #4b514e; }
.rf-time-name { grid-column: 1; font-size: clamp(1.45rem,2.4vw,2.25rem); line-height: 1.06; font-weight: 650; letter-spacing: -.045em; }
.rf-time-body { padding: .45rem .2rem 1.35rem; }
.rf-time-body h3 { font-size: 1.1rem; margin: 0 0 .4rem; line-height: 1.3; }
.rf-time-body p { margin: .4rem 0 .8rem; }
.rf-time-body .rf-try { border-inline-start: 2px solid #738f9e; padding: .2rem 0 .2rem .85rem; }
.rf-try strong { display: block; }
.rf-time-body a { color: var(--rf-ink); text-decoration: underline; text-underline-offset: .18em; font-size: .92rem; font-weight: 600; }
@media (max-width: 730px) {
  .rf-history-layout { grid-template-columns: 1fr; }
  .rf-astra-note h2 { max-width: 18em; }
  .rf-term summary { column-gap: .8rem; }
}
@media (max-width: 540px) {
  .rf-term summary { grid-template-columns: minmax(0,1fr) 1.25rem; gap: .5rem; padding: 1rem 0; }
  .rf-term-name { grid-area: 1 / 1; }
  .rf-term-meaning { grid-area: 2 / 1 / 3 / 3; }
  .rf-term summary .rf-toggle { grid-area: 1 / 2; }
  .rf-filter { padding-inline: .65rem; }
}

.rf-model-note{margin-top:1.25rem;border-top:1px solid currentColor;padding-top:.9rem}.rf-model-note summary{font:600 1rem/1.4 var(--sans);cursor:pointer}.rf-model-note[open] summary{margin-bottom:.7rem}

.rf-term-links{align-items:center;gap:.5rem 1.25rem}
.rf-term-links .rf-read-lesson{font-weight:650;text-decoration-thickness:1px;min-height:2.75rem;display:inline-flex;align-items:center}
.lesson-index{padding:1.25rem 0}.lesson-index ul{columns:2;line-height:1.75}
