/* Pilgrim link page — [pilgrim_links] and the "Pilgrim Link Page" template */
.pgl-body { margin: 0; background: var(--pg-stone, #F5F3EE); }
.pgl-page { min-height: 100vh; min-height: 100dvh; padding: 56px 20px 40px; box-sizing: border-box; }
.pgl { max-width: 580px; margin: 0 auto; font-family: var(--pg-sans, 'Jost', sans-serif); color: var(--pg-black, #0F1512); text-align: center; }
.pgl *, .pgl *::before, .pgl *::after { box-sizing: border-box; }

/* Profile */
.pgl-profile { display: flex; flex-direction: column; align-items: center; margin: 0 0 32px; }
html body .pgl-profile__photo { display: block; width: 112px; height: 112px; margin: 0 0 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--pg-stone, #F5F3EE), 0 0 0 5px rgba(15, 21, 18, .12); }
.pgl-profile__photo--logo { display: grid !important; place-items: center; background: var(--pg-black, #0F1512); }
.pgl-profile__photo--logo img { width: 74%; height: auto; margin: 0; }
html body .pgl-profile__name { margin: 0 0 10px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: 0; text-transform: none; color: inherit; }
.pgl-profile__bio { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--pg-muted, #4A4A44); }

/* Links */
.pgl-links { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pgl-links > li { margin: 0; }
html body .pgl-link {
	position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 52px; border: 1px solid var(--pg-black, #0F1512);
	background: #fff; color: var(--pg-black, #0F1512); text-decoration: none; text-align: center;
	transition: background-color .2s, color .2s, transform .2s;
}
html body .pgl-link:hover, html body .pgl-link:focus-visible { background: var(--pg-black, #0F1512); color: #fff; transform: translateY(-1px); }
html body .pgl-link:focus-visible { outline: 2px solid var(--pg-push, #B34A55); outline-offset: 3px; }
html body .pgl-link--highlight { background: var(--pg-blush, #EFC5C5); border-color: var(--pg-blush, #EFC5C5); }
html body .pgl-link--highlight:hover { background: var(--pg-black, #0F1512); border-color: var(--pg-black, #0F1512); }
.pgl-link__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pgl-link__title { font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: .02em; }
.pgl-link__sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
html body .pgl-link__thumb { position: absolute; left: 8px; top: 50%; width: 48px; height: 48px; margin: 0; object-fit: cover; transform: translateY(-50%); }
.pgl-link__arrow { position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; fill: currentColor; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .2s; }
.pgl-link:hover .pgl-link__arrow, .pgl-link:focus-visible .pgl-link__arrow { opacity: 1; transform: translate(0, -50%); }
.pgl-heading { margin: 18px 0 2px !important; }
html body .pgl-heading h2 { margin: 0; font-family: var(--pg-sans, 'Jost', sans-serif); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }

/* Socials and footer */
.pgl-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.pgl-socials li { margin: 0; }
html body .pgl-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--pg-black, #0F1512); transition: background-color .2s, color .2s; }
html body .pgl-socials a:hover { background: var(--pg-black, #0F1512); color: #fff; }
.pgl-socials svg { width: 22px; height: 22px; fill: currentColor; }
.pgl-footer { margin: 28px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }
.pgl-home { margin: 10px 0 0; }
html body .pgl-home a { font-size: 12px; letter-spacing: .1em; color: var(--pg-muted, #4A4A44); text-decoration: none; }
html body .pgl-home a:hover { text-decoration: underline; }
.pgl-extra { max-width: 580px; margin: 32px auto 0; }

@media (max-width: 480px) {
	.pgl-page { padding-top: 40px; }
	html body .pgl-profile__name { font-size: 34px; }
	html body .pgl-link { padding: 12px 44px 12px 64px; text-align: left; }
	html body .pgl-link:not(.has-thumb) { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { html body .pgl-link, .pgl-link__arrow { transition: none; } html body .pgl-link:hover { transform: none; } }

/* Big image layouts */
html body .pgl-link--featured, html body .pgl-link--image { display: block; padding: 10px; text-align: center; }
.pgl-link__media { display: block; overflow: hidden; background: var(--pg-sand, #EBE8E1); }
html body .pgl-link__img { display: block; width: 100%; height: auto; margin: 0; transition: transform .4s var(--pg-ease, ease); }
.pgl-link--featured:hover .pgl-link__img, .pgl-link--image:hover .pgl-link__img { transform: scale(1.025); }
.pgl-link--featured .pgl-link__text { padding: 14px 36px 6px; }
.pgl-link--featured .pgl-link__arrow { top: auto; bottom: 18px; transform: translate(-6px, 0); }
.pgl-link--featured:hover .pgl-link__arrow { transform: none; }
html body .pgl-link--image { padding: 0; border: 0; background: none; }
html body .pgl-link--image:hover { background: none; }
.pgl-link--image .pgl-link__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pgl-link--image .pgl-link__arrow { display: none; }
html body .pgl-link--featured.pgl-link--highlight:hover { background: var(--pg-black, #0F1512); }
@media (max-width: 480px) {
	html body .pgl-link--featured { padding: 8px; text-align: center; }
	.pgl-link--featured .pgl-link__text { padding: 12px 28px 4px; }
}

/* Icons (from the Feature Cards library) on Classic links */
.pgl-link__icon { position: absolute; left: 10px; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translateY(-50%); color: currentColor; }
.pgl-link__icon svg { width: 36px; height: 36px; }
.pgl-link__icon svg [fill="#B34A55"], .pgl-link__icon svg [fill="#C9A63E"], .pgl-link__icon svg [fill="#4E6B56"] { fill: currentColor; }
@media (max-width: 480px) { html body .pgl-link:has(.pgl-link__icon) { padding-left: 64px; } }

/* Circle: a large round image on the left */
html body .pgl-link.pgl-link--circle { min-height: 104px; padding: 14px 48px 14px 112px; text-align: left; }
.pgl-link__circle { position: absolute; left: 14px; top: 50%; width: 80px; height: 80px; overflow: hidden; border-radius: 50%; transform: translateY(-50%); background: var(--pg-sand, #EBE8E1); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(15, 21, 18, .12); }
html body .pgl-link__circle-img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .4s var(--pg-ease, ease); }
.pgl-link--circle:hover .pgl-link__circle-img { transform: scale(1.06); }
.pgl-link--circle:hover .pgl-link__circle { box-shadow: 0 0 0 3px var(--pg-black, #0F1512), 0 0 0 4px rgba(255, 255, 255, .3); }
.pgl-link--circle .pgl-link__title { font-size: 16px; }
@media (max-width: 480px) {
	html body .pgl-link.pgl-link--circle { min-height: 92px; padding: 12px 36px 12px 98px; text-align: left; }
	.pgl-link__circle { left: 12px; width: 70px; height: 70px; }
}
