/* Sol Portal: the page around Sol UI's bar and doors (docs/navigation.md,
   docs/app-identity.md). Everything else is Sol UI. */

.sol-bar-brand .sol-mark { width: 1.625rem; height: 1.625rem; }
.sol-bar form { display: contents; }
.pt-alert { margin-bottom: var(--sol-space-6); }

/* a page's head: its title, and beside it what needs the person */
.pt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sol-space-4) var(--sol-space-6); margin: var(--sol-space-4) 0 var(--sol-space-8); }
.pt-head h1 { margin: 0; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: var(--sol-weight-semibold); }
.pt-head p { margin: var(--sol-space-2) 0 0; max-width: 40rem; color: var(--sol-text-muted); }

/* a group of doors: an ecosystem */
.pt-group { margin-bottom: var(--sol-space-10); }
.pt-group-head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: var(--sol-space-3); margin-bottom: var(--sol-space-5); }
.pt-group-head:not(:has(.pt-group-mark)) { grid-template-columns: auto 1fr; }
.pt-group-mark .sol-mark { width: 1.375rem; height: 1.375rem; }
.pt-group-head h2 { margin: 0; font-size: var(--sol-text-xl); font-weight: var(--sol-weight-semibold); letter-spacing: -0.01em; }
.pt-count { justify-self: start; color: var(--sol-text-muted); font-size: var(--sol-text-sm); font-variant-numeric: tabular-nums; }
.pt-group-head p { grid-column: 1 / -1; margin: var(--sol-space-1) 0 0; color: var(--sol-text-muted); font-size: var(--sol-text-sm); }
.pt-group-head p a { color: var(--sol-text-link); }

/* the tools for running Sol: a quiet line, not doors */
.pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sol-space-3) var(--sol-space-5); padding-top: var(--sol-space-6); border-top: 1px solid var(--sol-divider); color: var(--sol-text-muted); font-size: var(--sol-text-sm); }
.pt-tools a { display: inline-flex; align-items: center; gap: var(--sol-space-2); color: var(--sol-text); font-weight: var(--sol-weight-medium); text-decoration: none; }
.pt-tools a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.pt-tools .pt-chip { --_c: 1.75rem; }

/* an app small, on its colour: lists and lines */
.pt-chip { --_c: 2.75rem; display: inline-grid; place-items: center; flex: none; width: var(--_c); height: var(--_c); border-radius: calc(var(--_c) * 0.16) calc(var(--_c) * 0.5) calc(var(--_c) * 0.16) calc(var(--_c) * 0.16); background: var(--door-bg, var(--_tone, var(--sol-sunken))); }
.pt-chip sol-sigil { --_s: 62%; width: 62%; height: 62%; color: var(--door-ink, var(--_tone-fg, var(--sol-text))); }
.pt-chip img { width: 70%; height: 70%; object-fit: contain; }
[data-theme^='hc'] .pt-chip { background: none; box-shadow: inset 0 0 0 2px var(--sol-text); }
[data-theme^='hc'] .pt-chip sol-sigil { color: var(--sol-text); }

/* discover: the list */
.pt-find { width: min(20rem, 100%); }
.pt-filter { display: flex; flex-wrap: wrap; gap: var(--sol-space-1); margin: calc(-1 * var(--sol-space-4)) 0 var(--sol-space-5); }
.pt-filter a { padding: var(--sol-space-2) var(--sol-space-3); border-radius: var(--sol-radius-md); color: var(--sol-text-muted); font-weight: var(--sol-weight-medium); text-decoration: none; }
.pt-filter a:hover { background: var(--sol-canvas-hover); color: var(--sol-text); }
.pt-filter a[aria-current='page'] { background: var(--sol-layer-1); color: var(--sol-text); box-shadow: var(--sol-shadow-1), inset 0 0 0 1px var(--sol-border); }
.pt-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sol-divider); }
.pt-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--sol-space-5); padding: var(--sol-space-4) 0; border-bottom: 1px solid var(--sol-divider); }
.pt-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-list-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sol-space-2); }
.pt-list-title a { color: var(--sol-text); font-size: var(--sol-text-lg); font-weight: var(--sol-weight-semibold); text-decoration: none; }
.pt-list-title a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.pt-list-main p { margin: 0; color: var(--sol-text-muted); font-size: var(--sol-text-sm); }
.pt-none { color: var(--sol-text-muted); }
@media (max-width: 40rem) {
	.pt-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
	.pt-list-how { display: none; }
}

/* an app's page */
.pt-app-door { margin: var(--sol-space-2) 0 var(--sol-space-6); }
.pt-facts, .pt-cta, .pt-narrow { max-width: 52rem; }
.pt-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sol-space-4); padding: var(--sol-space-5); margin-top: var(--sol-space-5); }
.pt-notes sol-icon { width: 1.125rem; height: 1.125rem; color: var(--sol-text-muted); }
.pt-unread .sol-list-title { font-weight: var(--sol-weight-semibold); }
.pt-unread sol-icon { color: var(--sol-accent); }
.sol-page-section { margin-top: var(--sol-space-8); max-width: 52rem; }

/* signed out */
.pt-hello { max-width: 42rem; padding: var(--sol-space-8) 0 var(--sol-space-10); }
.pt-hello h1 { margin: 0; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: var(--sol-weight-semibold); }
.pt-hello p { margin: var(--sol-space-4) 0 var(--sol-space-7); color: var(--sol-text-muted); font-size: var(--sol-text-lg); }

.pt-empty { padding: var(--sol-space-10) 0; }
.pt-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sol-space-2) var(--sol-space-5); margin-top: var(--sol-space-11); color: var(--sol-text-muted); font-size: var(--sol-text-xs); }
.pt-foot a { color: var(--sol-text-muted); }
@media (max-width: 30rem) {
	.pt-top-create { display: none; }
}
