/* Homepage service samples. All layout, drawing and interaction styles stay in #s-ring. */
#s-ring.ysv-services {
  --ysv-blue: var(--home-blue, #3265dc);
  --ysv-accent: #2457bd;
  --ysv-ink: #13171e;
  --ysv-muted: #536071;
  --ysv-line: #d8dfe8;
  --ysv-gutter: var(--gut, clamp(18px, 4.25vw, 66px));
  --ysv-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ysv-shadow: 0 12px 28px -14px rgb(31 57 99 / 30%), 0 1px 3px rgb(38 63 100 / 7%);
  padding-block: clamp(50px, 5.6vw, 84px);
  scroll-margin-top: 68px;
  color: var(--ysv-ink);
  background: #fff;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif);
  line-height: 1.5;
}
#s-ring *, #s-ring *::before, #s-ring *::after { box-sizing: border-box; }
#s-ring [hidden] { display: none !important; }
#s-ring .ysv-wrap {
  width: min(var(--wrap, 1248px), calc(100% - var(--ysv-gutter) - var(--ysv-gutter)));
  margin-inline: auto;
}
#s-ring .ysv-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
#s-ring .v10-kicker { margin: 0 0 10px; color: var(--ysv-accent); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: .025em; }
#s-ring .v10-h2 { margin: 0; color: #080a0d; font-size: clamp(30px, 3.55vw, 54px); font-weight: 650; line-height: 1.18; letter-spacing: -.035em; }
#s-ring :is(.ysv-catalog, .ysv-links a) {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  color: var(--ysv-accent);
  font-size: 15px;
  font-weight: 580;
  line-height: 1.45;
  text-decoration: none;
}
#s-ring a:hover { text-decoration: underline; text-underline-offset: .28em; }
#s-ring :is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--ysv-blue); outline-offset: 3px; }
#s-ring .ysv-catalog { flex: none; }
#s-ring .ysv-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 22px);
  margin: clamp(22px, 2.6vw, 38px) 0 0;
}
#s-ring .ysv-tabs button {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 10px 3px 13px;
  border: 0;
  border-bottom: 1px solid #cdd5de;
  border-radius: 0;
  color: #4c5664;
  background: transparent;
  font: inherit;
  font-size: clamp(15px, 1.38vw, 20px);
  font-weight: 560;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 551px) and (hover: hover) and (pointer: fine) {
  #s-ring .ysv-tabs button:hover { color: var(--ysv-accent); border-color: #9aaecb; }
}
#s-ring .ysv-tabs [aria-selected="true"] { color: var(--ysv-accent); font-weight: 650; }
#s-ring .ysv-tabs [aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: currentColor; }

#s-ring .ysv-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.28fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". art" "copy art" "links art" ". art";
  column-gap: clamp(30px, 5.75vw, 84px);
  align-items: start;
  margin-top: clamp(22px, 2.5vw, 36px);
  scroll-margin-top: 85px;
}
#s-ring .ysv-copy { grid-area: copy; }
#s-ring .ysv-copy h3 { margin: 0; color: var(--ysv-ink); font-size: clamp(26px, 2.65vw, 40px); line-height: 1.22; font-weight: 640; letter-spacing: -.035em; }
#s-ring .ysv-copy p { margin: 15px 0 0; max-width: 24em; color: #46515e; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.78; }
#s-ring .ysv-links { grid-area: links; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 19px; }
#s-ring .ysv-links .ysv-group-link { font-size: 14px; font-weight: 450; color: var(--ysv-muted); }
#s-ring .ysv-art { grid-area: art; container-type: inline-size; min-width: 0; margin: 0; }
#s-ring .ysv-art figcaption { margin: 8px 1px 0; color: #626e7d; font-size: 12px; line-height: 1.55; letter-spacing: .01em; }
#s-ring .ysv-direction, #s-ring .ysv-field { display: block; width: 100%; border-radius: 14px; }
#s-ring .ysv-direction { height: auto; aspect-ratio: 3 / 2; }
#s-ring .ysv-field {
  display: grid;
  align-content: center;
  min-height: 66.667cqw;
  padding: clamp(14px, 4.5cqw, 36px) clamp(12px, 6cqw, 46px);
  box-shadow: inset 0 0 0 1px rgb(56 79 112 / 5%);
  color: #233043;
  font-size: clamp(13px, 2.45cqw, 18px);
  line-height: 1.45;
}
#s-ring .ysv-field :is(p, dl, dd, blockquote) { margin: 0; }
#s-ring .ysv-field code, #s-ring .ysv-field-ref { font-family: var(--ysv-mono); font-size: .94em; font-variant-numeric: tabular-nums; }
#s-ring .ysv-filebar {
  display: flex;
  align-items: center;
  gap: .6em;
  min-width: 0;
  padding: .72em .95em;
  border-bottom: 1px solid var(--ysv-line);
  background: linear-gradient(#fcfdff, #f4f7fb);
}
#s-ring .ysv-filebar strong { font-size: 1.05em; font-weight: 620; line-height: 1.35; }
#s-ring .ysv-file-state { margin-left: auto; color: #576270; font-size: .84em; white-space: nowrap; }

/* A selected spreadsheet cell is attached to the quote clerk's review note. */
#s-ring .ysv-quote-field { background: linear-gradient(140deg, #f4f7fb 5%, #e3eefb 76%, #eef4fb); }
#s-ring .ysv-quote-object { width: 100%; }
#s-ring .ysv-sheet, #s-ring .ysv-practice, #s-ring .ysv-revision {
  border: 1px solid #c9d4e3;
  border-radius: clamp(8px, 1.8cqw, 13px);
  background: #fff;
  box-shadow: var(--ysv-shadow);
  overflow: hidden;
}
#s-ring .ysv-sheet { width: 90%; }
#s-ring .ysv-sheet-icon {
  width: 1.04em; height: 1.08em; flex: none; border: 1.4px solid currentColor; border-radius: 2px; color: var(--ysv-accent);
  background: linear-gradient(to right, transparent 32%, currentColor 32% 40%, transparent 40%),
              linear-gradient(to bottom, transparent 29%, currentColor 29% 37%, transparent 37% 62%, currentColor 62% 70%, transparent 70%);
}
#s-ring .ysv-cells { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: inherit; }
#s-ring .ysv-row-index { width: 9%; }
#s-ring .ysv-field-col { width: 38%; }
#s-ring .ysv-cells :is(td, th) { padding: .34em .72em; border: 1px solid #dce4ed; border-width: 0 1px 1px 0; text-align: left; }
#s-ring .ysv-cells tr > :last-child { border-right: 0; }
#s-ring .ysv-cells tbody tr:last-child > * { border-bottom: 0; }
#s-ring .ysv-cells :is(.ysv-coordinates td, tr > :first-child) {
  padding: .16em 0; background: #f4f7fb; color: #56647a; font: 500 .79em/1.45 var(--ysv-mono); text-align: center;
}
#s-ring .ysv-cells thead th { background: #f9fbfd; color: #536071; font-weight: 550; }
#s-ring .ysv-cells tbody th { color: #3d4b5e; font-weight: 500; }
#s-ring .ysv-selected-cell { position: relative; color: var(--ysv-accent); background: #edf4ff; box-shadow: inset 0 0 0 2px var(--ysv-blue); }
#s-ring .ysv-selected-cell::after { content: ""; width: 5px; height: 5px; position: absolute; right: 1px; bottom: 1px; background: var(--ysv-blue); }
#s-ring .ysv-quote-note {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .7em;
  width: fit-content;
  max-width: 90%;
  margin: .9em 0 0 auto;
  padding: .67em .93em;
  border: 1px solid #c2d3eb;
  border-radius: .6em;
  background: #fff;
  box-shadow: var(--ysv-shadow);
}
#s-ring .ysv-quote-note::before { content: ""; position: absolute; bottom: 100%; left: 56%; height: calc(.9em + 1px); border-left: 2px dotted #6890da; }
#s-ring .ysv-field-ref { flex: none; padding: .18em .45em; border: 1px solid #cedef9; border-radius: 4px; background: #eef4ff; color: var(--ysv-accent); }
#s-ring .ysv-quote-note strong, #s-ring .ysv-mentor-note strong, #s-ring .ysv-retest strong { font-size: .94em; font-weight: 650; }
#s-ring .ysv-quote-note p { margin-top: .18em; }

/* One exercise sheet: the transcript, the learner's entry and its marginal comment. */
#s-ring .ysv-practice-field { background: linear-gradient(122deg, #edf1f6, #f6f8fb 48%, #e5ebf5); }
#s-ring .ysv-practice { --ysv-doc-inset: clamp(10px, 3.7cqw, 28px); --ysv-comment-gap: 0px; width: 100%; }
#s-ring .ysv-book-icon { position: relative; width: .98em; height: 1.1em; flex: none; border: 1.4px solid currentColor; border-left-width: 3px; border-radius: 2px; color: #536783; }
#s-ring .ysv-book-icon::after { content: ""; position: absolute; top: 28%; left: 23%; width: 55%; height: 1px; background: currentColor; }
#s-ring .ysv-spread { display: grid; grid-template-columns: .95fr 1.05fr; }
#s-ring .ysv-transcript, #s-ring .ysv-draft { padding: var(--ysv-doc-inset); }
#s-ring .ysv-transcript { border-right: 1px solid #dce2eb; }
#s-ring .ysv-draft { display: flex; flex-direction: column; }
#s-ring .ysv-doc-label { display: block; color: #526070; font-size: .87em; font-weight: 580; }
#s-ring .ysv-transcript blockquote { margin-top: .65em; color: #202d3f; font: 500 clamp(16px, 3.2cqw, 24px)/1.68 "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
#s-ring .ysv-draft dl { display: grid; flex: 1; grid-template-columns: max-content 1fr; gap: .72em .8em; margin-top: 1.05em; align-content: end; align-items: baseline; }
#s-ring .ysv-draft dt { color: #5a6574; font-size: .9em; }
#s-ring .ysv-draft dd { color: #243249; font-weight: 580; }
#s-ring .ysv-draft mark { position: relative; padding: .02em .17em .06em; border-bottom: 2px solid var(--ysv-blue); background: #eaf1ff; color: var(--ysv-accent); }
#s-ring .ysv-draft mark::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  height: calc(var(--ysv-doc-inset) + var(--ysv-comment-gap) + .4em);
  border-left: 1px dashed #7593c8;
}
#s-ring .ysv-mentor-note {
  position: relative;
  width: 61%;
  margin: var(--ysv-comment-gap) 4.5% 4% auto;
  padding: .6em .9em .7em;
  border-left: 2px solid var(--ysv-blue);
  background: #f2f6fe;
}
#s-ring .ysv-mentor-note strong { color: var(--ysv-accent); }
#s-ring .ysv-mentor-note p { margin-top: .18em; }

/* A version diff above a replay of the same question, including the source used. */
#s-ring .ysv-revision-field { background: linear-gradient(150deg, #f1f5fa, #e3eaf4 72%, #eef2f8); }
#s-ring .ysv-revision { width: 100%; }
#s-ring .ysv-history-icon { color: var(--ysv-accent); font: 500 1.35em/1 var(--ysv-mono); }
#s-ring .ysv-diff { padding: .88em 0; }
#s-ring .ysv-diff > div { display: grid; grid-template-columns: 39% minmax(0, 1fr); align-items: baseline; padding: .45em .95em; }
#s-ring .ysv-diff dt { display: flex; align-items: baseline; gap: .45em; color: #5c6879; font-size: .9em; }
#s-ring .ysv-diff dt span { display: inline-block; width: 1em; text-align: center; }
#s-ring .ysv-diff del { color: #657180; }
#s-ring .ysv-diff ins { text-decoration: none; font-weight: 580; }
#s-ring .ysv-diff > div:last-child { color: #244982; background: #edf4fe; }
#s-ring .ysv-diff > div:last-child dt { color: #355d95; }
#s-ring .ysv-retest { padding: 1.05em 1.35em 1.14em; color: #fff; background: #202c40; }
#s-ring .ysv-retest strong { display: flex; align-items: center; gap: .55em; color: #b6cffa; }
#s-ring .ysv-retest strong::before { content: ""; width: .48em; height: .48em; border: 1.5px solid currentColor; border-radius: 100%; }
#s-ring .ysv-retest p { margin: .4em 0 .45em; font-size: 1.08em; font-weight: 530; }
#s-ring .ysv-answer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .4em 1em; padding-top: .55em; border-top: 1px solid #46566d; color: #e6edf8; }
#s-ring .ysv-answer cite { font-size: .86em; color: #c9d8ef; font-style: normal; }

@container (max-width: 415px) {
  #s-ring .ysv-field { padding: 14px 12px; }
  #s-ring .ysv-sheet { width: 94%; }
  #s-ring .ysv-practice { --ysv-doc-inset: 11px; --ysv-comment-gap: .2em; }
  #s-ring .ysv-draft dl { gap: .65em .5em; margin-top: .65em; }
  #s-ring .ysv-transcript, #s-ring .ysv-draft { padding-inline: 12px; }
  #s-ring .ysv-mentor-note { width: 83%; margin-right: 4%; }
}
@container (max-width: 309px) {
  #s-ring .ysv-draft dl { grid-template-columns: 1fr; gap: 0; }
  #s-ring .ysv-draft dt:not(:first-child) { margin-top: .36em; }
}
@media (max-width: 760px) {
  #s-ring .ysv-panel { grid-template: "copy" auto "art" auto "links" auto / minmax(0, 1fr); gap: 14px; scroll-margin-top: 108px; }
  #s-ring .ysv-copy p { max-width: 38em; margin-top: 8px; font-size: 16px; line-height: 1.7; }
  #s-ring .ysv-art { width: 100%; }
  #s-ring .ysv-links { margin-top: -5px; }
  #s-ring .ysv-direction, #s-ring .ysv-field { border-radius: 10px; }
}
@media (max-width: 550px) {
  #s-ring.ysv-services { padding-block: 42px; }
  #s-ring .ysv-heading { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
  #s-ring .ysv-heading > div { display: contents; }
  #s-ring .v10-kicker { grid-row: 1; align-self: center; margin: 0; }
  #s-ring .ysv-catalog { grid-area: 1 / 2; font-size: 13px; }
  #s-ring .v10-h2 { grid-area: 2 / 1 / 3 / -1; font-size: clamp(27px, 6.9vw, 37px); }
  #s-ring .ysv-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 16px; }
  #s-ring .ysv-tabs button { min-height: 44px; padding: 9px 2px; font-size: 15px; }
  #s-ring .ysv-panel { margin-top: 20px; gap: 12px; }
  #s-ring .ysv-copy h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) #s-ring[data-ysv-switched] .ysv-panel:not([hidden]) .ysv-art > :first-child {
    animation: ysv-sample-in 180ms ease-out;
  }
  @keyframes ysv-sample-in { from { opacity: .75; } to { opacity: 1; } }
}
@media (forced-colors: active) {
  #s-ring .ysv-tabs [aria-selected="true"] { border-bottom: 3px solid Highlight; }
  #s-ring .ysv-selected-cell, #s-ring .ysv-draft mark { outline: 2px solid Highlight; outline-offset: -2px; }
}
