/* ============================================================
   The Local Guide's sections (alternating paper and sand) and their place
   cards: a dotted rule on top, the drive time with a gold pin, the name,
   a line about it, Website and Directions links. One column on phones,
   two from 761px, three from 1181px. (prototype: .gsec, .gcard)
   ============================================================ */

/* A jump link lands the section's top just under the small header. */
.guide {
	scroll-margin-top: var(--header-h-scrolled);
}

.guide__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px 40px;
	margin-bottom: 36px;
}

.guide__title {
	font-size: var(--size-h2);
	line-height: 1.08;
}

.guide__intro {
	max-width: 420px;
	padding-bottom: 8px;
	font-size: 15px;
	line-height: 1.7;
}

.guide__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide__note {
	margin-top: 56px;
	font-size: 13px;
}

.place-card {
	display: grid;
	align-content: start;
	gap: 14px;
	padding-top: 22px;
	background: var(--dots-line) 0 0 / 8px 3px space no-repeat;
}

.place-card__drive {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
}

.place-card__drive .icon {
	color: var(--color-accent);
}

.place-card__name {
	font-size: clamp(28px, 2.4vw, 34px);
	line-height: 1.1;
}

.place-card__text {
	max-width: 340px;
	font-size: 14px;
	line-height: 1.75;
}

.place-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 4px;
	font-size: 12px;
}

/* Website / Directions: the arrow links' style (no rule at rest; on hover
   the dotted rule comes in under the word and the arrow nudges up and
   out). */
.place-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 6px;
	font-size: var(--size-label);
	font-weight: 800;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
}

.place-card__link-label {
	position: relative;
}

.place-card__link-label::after {
	content: "";
	position: absolute;
	right: 0.18em;
	bottom: -6px;
	left: 0;
	height: 3px;
	background: var(--dots);
	-webkit-mask: var(--dots-mask);
	mask: var(--dots-mask);
	-webkit-mask-position: var(--dots-hidden);
	mask-position: var(--dots-hidden);
	transition: var(--dots-transition);
}

.place-card__link .icon {
	flex: none;
	transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.place-card__link:focus-visible .place-card__link-label::after {
	-webkit-mask-position: var(--dots-shown);
	mask-position: var(--dots-shown);
}

/* Like the arrow links: only the arrow turns gold. */
.place-card__link:focus-visible .icon {
	color: var(--color-hover);
	transform: translate(2px, -2px);
}

@media (hover: hover) {
	.place-card__link:hover .place-card__link-label::after {
		-webkit-mask-position: var(--dots-shown);
		mask-position: var(--dots-shown);
	}

	.place-card__link:hover .icon {
		color: var(--color-hover);
		transform: translate(2px, -2px);
	}
}

@media (min-width: 761px) {
	.guide__head {
		margin-bottom: 52px;
	}

	.guide__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px 48px;
	}
}

@media (min-width: 1181px) {
	.guide__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
