/* site.css: what this site adds around sebaro's parts. Only app-* classes and var(--sb-*) tokens of the copy; a
   length without a token says why („no sebaro token“). Never restyle an sb-* class here. */

/* a text page: breadcrumb, title and date above the prose */
.app-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sb-space-3);
}
.app-text > * {
  margin: 0;
}
.app-text > .sb-prose {
  margin-block-start: var(--sb-spacing-group);
}
.app-text__meta {
  color: var(--sb-color-text-muted);
  font: var(--sb-type-caption);
  letter-spacing: var(--sb-type-caption-tracking);
}

/* a licence in its own words and line breaks */
.app-licence {
  max-inline-size: var(--sb-size-measure-prose);
  margin: 0;
  font: var(--sb-type-caption);
  letter-spacing: var(--sb-type-caption-tracking);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* back from a privacy text to its app */
.app-text__back {
  margin-block-start: var(--sb-spacing-group);
}

/* the start page: the three facts under the opening sentence, one per line on a phone */
.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sb-space-2) var(--sb-space-6);
  margin: var(--sb-space-4) 0 0;
  padding: 0;
  list-style: none;
}

/* the count and the link under a section title */
.app-section-meta {
  margin: 0 0 var(--sb-space-4);
  color: var(--sb-color-text-muted);
}

/* a group of apps inside the section „Android-Apps“ */
.app-group + .app-group {
  margin-block-start: var(--sb-spacing-group);
}
.app-group__title {
  margin: 0 0 var(--sb-space-2);
  font: var(--sb-type-label);
  letter-spacing: var(--sb-type-label-tracking);
  color: var(--sb-color-text-muted);
}

/* the page of one product: blocks one under the other */
.app-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sb-spacing-group);
}
.app-detail > *,
.app-detail p {
  margin: 0;
}
.app-detail .app-text__meta {
  margin-block-start: var(--sb-space-2);
}

/* tile beside the title, the status under it */
.app-head {
  display: flex;
  align-items: center;
  gap: var(--sb-space-4);
}
.app-head > h1 {
  margin: 0;
}
.app-head__text {
  display: grid;
  gap: var(--sb-space-1);
  min-inline-size: 0;
}
.app-head__text > * {
  margin: 0;
}

/* what it does and its facts: side by side from 1024 px */
.app-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sb-spacing-group);
}
@media (min-width: 64rem) {
  .app-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.app-features {
  margin: 0;
  padding-inline-start: var(--sb-space-5);
  max-inline-size: var(--sb-size-measure-prose);
}
.app-features > li + li {
  margin-block-start: var(--sb-space-2);
}

/* the way to the store or the site, and the privacy text */
.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sb-space-4) var(--sb-space-6);
}

/* phone screenshots: sebaro's grid, kept to the width where three pictures stand at about 15 rem each, and a frame
   that keeps the picture's own ratio (store screenshots are 1 : 2, sb-shot__frame is 390 : 844; docs/sebaro-luecken.md) */
.app-shots {
  max-inline-size: 52rem; /* no sebaro token: three phone pictures of about 15 rem with two gaps */
}
.app-shot__frame {
  overflow: hidden;
  box-sizing: border-box;
  border: var(--sb-border-width-control) solid var(--sb-color-border-strong);
  border-radius: var(--sb-radius-container);
}
.app-shot__frame > img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* the one screenshot of a website on its page */
.app-window-shot {
  max-inline-size: 52rem; /* no sebaro token: the width of the phone screenshot row, so both kinds of page align */
}

/* running text beside the facts keeps the reading measure */
.app-measure {
  max-inline-size: var(--sb-size-measure-prose);
}
