
#roby-ster-tour {
  color-scheme: light;
  --ink: #182c34;
  --muted: #415960;
  --paper: #f1f5f4;
  --line: #cbd9d8;
  --teal: #175c53;
  --accent: #ebbe65;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
#roby-ster-tour * { box-sizing: border-box; }
#roby-ster-tour [hidden] { display: none !important; }
#roby-ster-tour .shell { width: min(100% - 2rem, 75rem); margin-inline: auto; }
#roby-ster-tour .masthead { background: #172f37; color: #fff; }
#roby-ster-tour .head { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between; padding-block: .9rem; }
#roby-ster-tour .brand { font-size: 1.05rem; }
#roby-ster-tour .brand span { color: #fff; font-weight: 800; font-size: 1.28rem; margin-right: .45rem; }
#roby-ster-tour .heading { padding-block: 1.55rem .9rem; }
#roby-ster-tour h1 { font-size: clamp(1.9rem, 5.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; margin: .35rem 0 .6rem; }
#roby-ster-tour h2 { font-size: 1.3rem; margin: 0; }
#roby-ster-tour h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
#roby-ster-tour p { line-height: 1.55; }
#roby-ster-tour #chapters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
#roby-ster-tour button { cursor: pointer; border: 1px solid var(--teal); border-radius: .5rem; padding: .56rem .8rem; min-height: 44px; font: inherit; font-weight: 650; color: #fff; background: var(--teal); }
#roby-ster-tour button:focus-visible, #roby-ster-tour a:focus-visible, #roby-ster-tour summary:focus-visible, #roby-ster-tour input:focus-visible { outline: 3px solid #98600d; outline-offset: 3px; }
#roby-ster-tour button:disabled { opacity: .56; cursor: default; }
#roby-ster-tour button.secondary, #roby-ster-tour #chapters button, #roby-ster-tour #steps button { background: #fff; color: var(--teal); border-color: var(--line); }
#roby-ster-tour .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.2rem; align-items: start; padding-bottom: 2rem; }
#roby-ster-tour aside, #roby-ster-tour .card { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(.9rem, 2.4vw, 1.35rem); min-width: 0; }
#roby-ster-tour aside p { color: var(--muted); margin-block: .5rem .85rem; }
#roby-ster-tour #steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
#roby-ster-tour #steps button { width: 100%; text-align: left; }
#roby-ster-tour #steps button[aria-current="step"] { color: var(--ink); background: #e9f3ef; border-color: var(--teal); }
#roby-ster-tour .controls { display: flex; gap: .55rem; flex-wrap: wrap; }
#roby-ster-tour #audio-status { color: var(--muted); margin-block: .25rem; }
#roby-ster-tour #audio-status:empty { display: none; }
#roby-ster-tour #target { min-width: 0; background: #fff9ed; border: 2px solid #ab7122; box-shadow: inset 0 .18rem var(--accent); border-radius: .55rem; padding: .65rem .8rem; }
#roby-ster-tour dl { margin: 0; }
#roby-ster-tour dl div + div { border-top: 1px solid #dbd6c9; }
#roby-ster-tour dl div { padding: .38rem 0; }
#roby-ster-tour dt { font-size: .86rem; color: var(--muted); }
#roby-ster-tour dd { margin: .15rem 0 0; font-weight: 630; overflow-wrap: anywhere; }
#roby-ster-tour .document { padding: .85rem; margin-top: .5rem; background: #f3f7f6; border: 1px solid var(--line); border-radius: .5rem; }
#roby-ster-tour summary { color: var(--teal); cursor: pointer; }
#roby-ster-tour .next { padding-top: .85rem; }
#roby-ster-tour fieldset { margin: .8rem 0 1rem; padding: .65rem; border: 1px solid var(--line); border-radius: .5rem; min-width: 0; }
#roby-ster-tour legend { font-weight: 650; max-width: 100%; }
#roby-ster-tour #feedback { font-weight: 650; }
@media (max-width: 760px) {
#roby-ster-tour .layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
#roby-ster-tour .shell { width: calc(100% - 1rem); }
#roby-ster-tour .heading { padding-top: 1.15rem; }
}
@media (max-width: 420px) {
#roby-ster-tour #target { padding: .52rem; }
}
#roby-ster-tour #open-document { margin-top: .45rem; }
#roby-ster-tour .head > span { color: #d6e7e4; }
#roby-ster-tour .heading p { color: var(--muted); margin-bottom: .3rem; }
#roby-ster-tour .course-progress {
  display: grid;
  gap: .38rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 700;
}
#roby-ster-tour progress { width: 100%; height: .62rem; accent-color: var(--teal); }
#roby-ster-tour .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
#roby-ster-tour #chapters button[aria-current="true"] { color: #fff; background: var(--teal); border-color: var(--teal); }
#roby-ster-tour .map { position: relative; margin-bottom: .9rem; overflow: hidden; border-radius: .4rem; cursor: pointer; }
#roby-ster-tour .map img { display: block; width: 100%; height: auto; }
#roby-ster-tour #highlight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#roby-ster-tour .card > section { margin-top: .85rem; }
#roby-ster-tour #target.crop { width: fit-content; padding: 0; border-color: var(--teal); }
#roby-ster-tour #detail { display: block; height: auto; width: auto; max-width: 100%; max-height: 17rem; object-fit: contain; border-radius: .38rem; }
#roby-ster-tour #questions label { display: flex; gap: .55rem; align-items: baseline; padding-block: .45rem; }
#roby-ster-tour #continue, #roby-ster-tour #review-missing { margin-bottom: .55rem; }
#roby-ster-tour #transcription p { margin-top: .45rem; }
#roby-ster-tour #steps li + li { margin-top: .12rem; }
#roby-ster-tour dialog { width: min(64rem, calc(100% - 1.5rem)); border: 1px solid var(--line); border-radius: .85rem; padding: .8rem; }
#roby-ster-tour dialog::backdrop { background: #122a31ae; }
#roby-ster-tour dialog header { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
#roby-ster-tour .zoom-image { overflow: auto; max-height: 65vh; }
#roby-ster-tour .zoom-image img { display: block; width: max-content; min-width: 100%; height: auto; }
@media (max-width: 760px) {
#roby-ster-tour .layout { grid-template-columns: minmax(0, 1fr); }
#roby-ster-tour .heading h1 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
#roby-ster-tour #steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#roby-ster-tour #steps li + li { margin-top: 0; }
#roby-ster-tour #steps button { height: 100%; padding-inline: .52rem; font-size: .9rem; }
}
@media (max-width: 760px) {
#roby-ster-tour .card { grid-row: 1; }
}
#roby-ster-tour #demo { margin: .9rem 0; }
#roby-ster-tour #actor, #roby-ster-tour #cue {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2;
}
#roby-ster-tour #actor { width: 244px; height: 136px; }
#roby-ster-tour #actor[data-still="true"] { opacity: 0; }
#roby-ster-tour #cue {
  width: 0;
  height: 0;
  z-index: 1;
}
#roby-ster-tour #cue::before {
  content: "";
  display: block;
  width: .78rem;
  height: .78rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a36312;
  box-shadow: 0 0 0 2px #a36312;
}
#roby-ster-tour .bersaglio { outline: 2px solid #a36312; outline-offset: 2px; }
#roby-ster-tour #fields .bersaglio { border-radius: .24rem; }
#roby-ster-tour .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dialog-aperto #roby-ster-tour #actor, .dialog-aperto #roby-ster-tour #cue { visibility: hidden; }
