/* Batch 11: compact touch layout for Speaking Part 3 only.
   Leave the original connected map, timing, and printable prompts intact. */
@media screen and (max-width: 600px) and (pointer: coarse) and (hover: none) {
  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) {
    padding: .7rem .65rem;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-role {
    margin-block: 0 .2rem;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-title {
    margin-block: .2rem .45rem;
    font-size: clamp(1.1rem, 4.6vw, 1.35rem);
    line-height: 1.25;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-map {
    display: block;
    margin-block: .45rem .6rem;
    padding: .4rem;
    text-align: start;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-hub {
    inline-size: 100%;
    margin: 0 0 .45rem;
    padding: .6rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-branches {
    display: none;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-list li {
    display: grid;
    grid-area: auto;
    place-items: center;
    inline-size: 100%;
    min-block-size: 2.25rem;
    padding: .35rem .45rem;
    text-align: center;
    font-size: .9rem;
    line-height: 1.3;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-topic-list li:last-child {
    grid-column: 1 / -1;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-prompt.sp-decision-instruction {
    margin-block: .45rem .55rem;
    padding: .5rem .6rem;
    background: #fff2e6;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-prompt.sp-decision-instruction p {
    margin-block: .2rem 0;
    font-size: .95rem;
    line-height: 1.35;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-hints {
    margin-block: .5rem;
    padding-block: 0;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-hints summary {
    min-block-size: 44px;
    padding-block: .55rem;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: .4rem;
    margin-block: .5rem;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) .sp-actions button {
    min-inline-size: 0;
    padding-inline: .4rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-clock {
    font-size: 1.2rem;
  }

  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-next {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 600px) and (pointer: coarse) and (hover: none) and (min-height: 390px) {
  .sp[data-b2-speaking] #sp-work:has(> #sp-options > .sp-topic-map) #sp-prompt.sp-decision-instruction {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
  }
}
