/* Signal's two small forms (FRAME-13): `glance`, a watch's, and `remote`, a television's. The screen's size never
   changes a form: the device says it. A glance is a title, one line, the press that leads and a few more, each as wide
   as the room and as tall as a thumb finds it; a remote is the same column read from across a room, its type large
   and its focus unmistakable, since nothing points. No hover decides anything here: hover is a pointer's, and a
   focus is where a key or a crown stands. A press's words are the lobe's own, never the design's. */

.signal-small {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0.75rem;
  color: var(--signal-body);
  font-family: var(--signal-font);
  font-size: calc(var(--signal-size-base) * var(--access-text-size, 1));
  line-height: 1.4;
}
.signal-glance {
  max-width: 22rem;
}
/* The home lays its way out over the page, a pill at an edge the host names: a page at a glance keeps room under its
   last press, so it scrolls clear of the pill, as a page in a pocket does. */
section.signal-small.signal-glance {
  padding-bottom: 4rem;
}
.signal-remote {
  max-width: 64rem;
  gap: 2rem;
  padding: 3rem 4rem;
  font-size: calc(1.5rem * var(--access-text-size, 1));
}

.signal-small-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.signal-small-title {
  margin: 0;
  color: var(--signal-text);
  font-family: var(--signal-font-display);
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.2;
  /* A title read at a glance or from a distance stands on one line, as a watch's own titles do: what runs longer ends
     in an ellipsis, never broken inside a word. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-remote .signal-small-title {
  font-size: 2.5em;
}
.signal-small-brief {
  margin: 0;
  color: var(--signal-muted);
  font-size: 0.9375em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.signal-remote .signal-small-brief {
  max-width: var(--signal-measure);
  font-size: 1em;
}
.signal-small-answer {
  margin: 0.25rem 0 0;
  color: var(--signal-muted);
  font-family: var(--signal-font-mono);
  font-size: 0.8125em;
  overflow-wrap: anywhere;
}
.signal-remote .signal-small-answer {
  margin-top: 0.5rem;
  font-size: 0.75em;
}

.signal-small-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.signal-remote .signal-small-list,
.signal-remote.signal-small-list {
  gap: 1rem;
}
.signal-small-row {
  display: flex;
  flex-direction: column;
}

.signal-small-press {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--signal-line-strong);
  border-radius: var(--signal-radius-control);
  background: var(--signal-raised);
  color: var(--signal-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.signal-remote .signal-small-press {
  min-height: 4.5rem;
  padding: 1rem 1.75rem;
  border-width: 2px;
  border-radius: calc(var(--signal-radius-control) * 1.5);
}
.signal-small-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.signal-small-lead {
  border-color: var(--signal-accent);
  background: var(--signal-accent);
  color: var(--signal-on-accent);
}
.signal-small-still {
  border-style: dashed;
  color: var(--signal-muted);
  cursor: default;
}
.signal-small-still[aria-current='page'] {
  border-style: solid;
  border-color: var(--signal-accent);
}

/* Focus is where a crown, a key or a remote stands: one ring, in the accent, never lost against any ground. */
.signal-small-press:focus-visible {
  outline: 3px solid var(--signal-accent);
  outline-offset: 2px;
}
.signal-small-lead:focus-visible {
  outline-color: var(--signal-text);
}
.signal-remote .signal-small-press:focus-visible {
  outline-width: 5px;
  outline-offset: 4px;
}
@media (hover: hover) {
  .signal-small-press:not(.signal-small-still):hover {
    border-color: var(--signal-accent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .signal-small-press {
    transition:
      transform 120ms ease,
      border-color 120ms ease;
  }
  .signal-remote .signal-small-press:focus-visible {
    transform: scale(1.02);
  }
}

.signal-small-frame {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 0;
}
.signal-small-frame.signal-remote {
  max-width: 64rem;
  padding: 3rem 4rem 0;
}
.signal-small-frame:empty {
  display: none;
}
.signal-small-back {
  color: var(--signal-muted);
  font-size: 1.25rem;
  text-decoration: none;
}
.signal-small-back:focus-visible {
  outline: 4px solid var(--signal-accent);
  outline-offset: 4px;
}
