/**
 * css/guide.css: the destination guide, a card for each category or destination (its picture, its name; a category how many
 * destinations it has), what it is made of wherever it is shown. Its look is the one of its client (View::blockFiles()): in a
 * browser (guide.web.css) a block of the page as the popular places are, in the colours of the theme; in a viewer
 * (guide.viewer.css) the viewers' Destinations panel, dark, one row scrolling sideways. The colours are variables a site may set.
 *
 * @package    way4os/w4os-helpers
 * @license    AGPLv3
 */

#guide {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

#guide .header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 1rem;
}
#guide .header > .category {
	font-weight: bold;
}
#guide a {
	color: var(--guide-text);
	text-decoration: none;
}
#guide a.back {
	font-size: 0.8rem;
	color: var(--guide-muted);
}
#guide a.back:hover {
	color: var(--guide-highlight);
}

#guide .list {
	display: flex;
	gap: 14px;
	padding-top: 14px;
}

#guide .item {
	flex: none;
	display: flex;
	flex-direction: column;
	width: 140px;
}
/* A destination is a teleport link (W4OS\Views\TeleportLink) over its card, the button of its other links in the top right corner
   of its picture */
#guide .item .w4os-tp {
	position: relative;
	display: block;
}
#guide .item .w4os-tp-main {
	display: flex;
	flex-direction: column;
}
#guide .item .w4os-tp-more {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	z-index: 1;
}
#guide .item .w4os-tp-toggle {
	margin: 0;
	padding: 0.35rem;
	border-radius: 50%;
	background: Canvas;
	color: CanvasText;
	box-shadow: 0 0.1rem 0.4rem color-mix(in srgb, CanvasText 25%, transparent);
}
#guide .item .w4os-tp-toggle:hover,
#guide .item .w4os-tp-toggle:focus-visible,
#guide .item .w4os-tp-toggle[aria-expanded="true"] {
	background: color-mix(in srgb, CanvasText 10%, Canvas);
}
/* The menu opens leftwards from the corner */
#guide .item .w4os-tp-menu {
	left: auto;
	right: 0;
}
#guide .thumbnail {
	display: grid;
	width: 140px;
	height: 84px;
	object-fit: cover;
	background: var(--guide-picture);
}
/* What you go to, the largest */
#guide .name {
	margin-top: 6px;
	font-size: 0.85rem;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* How many destinations a category has, on two lines at most */
#guide .data {
	font-size: 0.75rem;
	color: var(--guide-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

#guide .error {
	padding: 14px 0;
}
