/* AltStore sources (F9, screens/altstore.js): the source page in the source's tint, news cards and screenshots
   (the version history has its own page, F29). --alt-tint comes from the source's (or app's, or news item's) tintColor, hex only. */
.alt-source, .alt-app { --alt-tint: var(--detail); }

.alt-header { position: relative; margin: 10px 10px 0; border-radius: 10px; overflow: hidden; background: var(--alt-tint, #385487); min-height: 96px; }
.alt-banner { display: block; width: 100%; max-height: 160px; object-fit: cover; }
.alt-id { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.45)); color: #fff; }
.alt-header:not(:has(.alt-banner)) { min-height: 0; }
.alt-header:not(:has(.alt-banner)) .alt-id { position: static; background: none; }
.alt-icon { width: 57px; height: 57px; border-radius: 10px; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.alt-names { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 -1px 0 rgba(0,0,0,.4); }
.alt-name { font-size: 20px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alt-subtitle { font-size: 14px; opacity: .9; }

.alt-news { display: block; margin-bottom: 10px; overflow: hidden; color: var(--text); text-decoration: none; border-left: 5px solid var(--alt-tint); }
.alt-news-image { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.alt-news-text { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; }
.alt-news-title { font-size: 16px; font-weight: bold; }
.alt-news-caption { font-size: 14px; line-height: 18px; }
.alt-news-date { font-size: 12px; color: var(--subtitle); }

.alt-app-icon { overflow: hidden; }
.alt-app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.alt-app-icon img.loaded { opacity: 1; }
.alt-whatsnew { white-space: pre-wrap; text-align: left; }

.alt-shots { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.alt-shot { flex: none; height: 360px; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 10px; scroll-snap-align: start;
  border: 1px solid rgba(0,0,0,.2); background: rgba(0,0,0,.05); }

/* Permissions' "N More Permissions" row (screens/altstore.js): centred in iOS 6's table-button blue, a small down
   chevron after it; tapping lists the rest in place. */
.perm-more .cell-inner { justify-content: center; }
.perm-more .cell-label { flex: none; color: #385487; font-weight: bold; text-align: center; }
.perm-more .cell-label::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; vertical-align: middle;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.perm-more.up .cell-label::after { transform: rotate(-135deg); margin-bottom: -1px; }
.perm-more .cell-inner.is-pressed .cell-label { color: #fff; }
html[data-theme="dark"] .perm-more .cell-label { color: #8fb0e8; }
/* F96: the website's Install on the Website row before its warning was accepted: greyed out like a disabled cell
   (a tap opens the warning, websign-gate.js). */
.websign-off .cell-label { color: var(--subtitle); }

/* F122: the screenshots gallery (screens/altstore.js galleryImage): a landscape picture (a banner, an iPad or Mac
   screenshot) fills the width at its own aspect instead of a phone-tall crop. */
.alt-shot.wide { height: auto; width: calc(100% - 24px); max-height: 360px; object-fit: contain; }
