/* Paperboy — single post designs: parts every design shares (inc/single-designs.php).
   Loaded only on posts that use a design, together with that design's own file. Prefix: ppbsd-. */

.ppbsd { --ppbsd-measure: 720px; --ppbsd-wide: 1120px; --ppbsd-tint: var(--ppb-soft, #f6f6f5); overflow-x: clip; }

/* ---------- header parts ---------- */
.ppbsd-hero .ppbpo-crumbs { justify-content: inherit; }
.ppbsd-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.ppbsd-cat { color: var(--ppb-accent-text, currentColor); font-family: var(--ppb-font); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; transition: color .5s ease; text-decoration-line: underline; text-decoration-color: var(--ppb-accent); text-decoration-thickness: 3px; text-underline-offset: .28em; text-decoration-skip-ink: none; }
.ppbsd-cat:hover { color: var(--ppb-ink); }
.ppbsd-kicker .ppbgb-format { margin: 0; }
.ppbsd .ppbsd-title { margin: 0 0 18px; max-width: 980px; font-size: clamp(2.05rem, 1.25rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -.015em; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.ppbsd-dek { max-width: 680px; margin: 0 0 24px; color: var(--ppb-mute); font-size: 1.16rem; line-height: 1.6; text-wrap: pretty; }
.ppbsd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ppb-mute); font-size: 13px; line-height: 1.4; }
.ppbsd-meta .ppbsd-avatar { flex: none; width: 40px; height: 40px; margin: 0 2px 0 0; border-radius: 50%; object-fit: cover; }
.ppbsd-meta a { color: var(--ppb-ink); font-weight: 700; text-decoration: none; transition: color .5s ease; }
.ppbsd-meta a:hover { text-decoration-line: underline; text-decoration-color: var(--ppb-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.ppbsd-meta .ppbsd-coms a { font-weight: 600; color: inherit; }
.ppbsd-when::before, .ppbsd-time::before, .ppbsd-coms::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 14px 0 0; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; }
.ppbsd-meta-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 0; }
.ppbsd-meta-cols > div { padding: 12px 16px; border-left: 1px solid var(--ppb-line); }
.ppbsd-meta-cols > div:first-child { padding-left: 0; border-left: 0; }
.ppbsd-meta-cols dt { margin: 0 0 3px; color: var(--ppb-mute); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ppbsd-meta-cols dd { margin: 0; color: var(--ppb-ink); font-size: 14.5px; font-weight: 600; }
.ppbsd-meta-stack { display: grid; gap: 2px; }
.ppbsd-meta-stack .ppbsd-avatar { width: 56px; height: 56px; margin: 0 0 10px; }
.ppbsd-label { margin-top: 12px; color: var(--ppb-mute); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ppbsd-meta-stack .ppbsd-avatar + .ppbsd-label { margin-top: 0; }
.ppbsd-meta-stack > span:not(.ppbsd-label) { color: var(--ppb-ink); font-size: 14.5px; font-weight: 600; }

/* ---------- photos ---------- */
.ppbsd-fig { margin: 0; }
.ppbsd-fig img { display: block; width: 100%; height: auto; }
.ppbsd-fig figcaption, .ppbsd-credit { margin: 10px 0 0; color: var(--ppb-mute); font-size: 13.5px; line-height: 1.5; text-align: left; }
.ppbsd-credit { margin-top: 12px; margin-bottom: 0; }
.ppbsd-figwrap { margin-top: 8px; }

/* ---------- reading column ---------- */
body.ppbsd-on:not(.ppb-has-sidebar) .ppbsd .ppb-layout > .ppbsd-content { max-width: var(--ppbsd-measure); margin-left: auto; margin-right: auto; }
.ppbsd .entry-content { overflow-wrap: break-word; }
.ppbsd .entry-content > *:first-child { margin-top: 0; }
.ppbsd .post-password-form { padding: 26px 28px; border: 1px solid var(--ppb-line); border-top: 3px solid var(--ppb-ink); border-radius: 0; background: var(--ppb-soft); }
.ppbsd .post-password-form p:last-child { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.ppbsd .post-password-form label { flex: 1 1 220px; }
.ppbsd .page-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; font-weight: 700; }
.ppbsd .ppb-tags { margin-top: 34px; }

/* share buttons in a rail */
.ppbsp-share-rail { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; margin: 22px 0 0; }
.ppbsp-share-rail .ppbsp-share-label { margin: 0 0 4px; }
.ppbsp-share-rail .ppbsp-s { justify-content: center; width: 40px; height: 40px; padding: 0; }
.ppbsp-share-rail .ppbsp-s-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* a rail or contents column beside the text */
.ppbsd-grid { display: grid; grid-template-columns: 220px minmax(0, var(--ppbsd-measure)); justify-content: center; gap: 64px; align-items: start; }
.ppbsd-grid.ppbsd-no-aside { grid-template-columns: minmax(0, var(--ppbsd-measure)); }
.ppbsd-aside { position: relative; height: 100%; }
.ppbsd-rail-in { position: sticky; top: var(--ppb-side-top, 110px); }
body.ppbsd-on .ppbsd .ppbsd-grid .ppbsd-content { max-width: none; margin: 0; }
@media (max-width: 1000px) {
	.ppbsd-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ppbsd-rail-in { position: static; }
}

/* sidebar designs: the post column keeps a comfortable width */
.ppb-has-sidebar .ppbsd .ppbsd-main { gap: 56px; }

/* parts the post asked to hide */
body.ppbpo-hide-meta .ppbsd-meta { display: none !important; }

/* night mode of the Paperboy Dark Mode element */
html.ppbdm-m-palette.ppbdm-dark .ppbsd { --ppb-ink: #f5f5f4; --ppb-text: #d6d3d1; --ppb-mute: #a3a3a3; --ppb-line: #262626; --ppb-soft: #141414; --ppb-bg: #0a0a0a; --ppbsd-tint: #171717; }

/* very soft entrance for the header text */
@media (prefers-reduced-motion: no-preference) {
	.ppbsd-hero .ppbsd-kicker, .ppbsd-hero .ppbsd-title, .ppbsd-hero .ppbsd-dek, .ppbsd-hero .ppbsd-meta { animation: ppbsd-rise 1.1s cubic-bezier(.22, .61, .36, 1) both; }
	.ppbsd-hero .ppbsd-title { animation-delay: .06s; }
	.ppbsd-hero .ppbsd-dek { animation-delay: .12s; }
	.ppbsd-hero .ppbsd-meta { animation-delay: .18s; }
}
@keyframes ppbsd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
	.ppbsd .ppbsd-title { font-size: clamp(1.85rem, 1.2rem + 3.6vw, 2.4rem); }
	.ppbsd-dek { font-size: 1.06rem; }
	.ppbsd-meta { font-size: 13.5px; }
	.ppbsd-when::before, .ppbsd-time::before, .ppbsd-coms::before { display: none; }
	.ppbsd-meta:not(.ppbsd-meta-cols):not(.ppbsd-meta-stack) { gap: 4px 12px; }
	.ppbsd-meta-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ppbsd-meta-cols > div { padding: 10px 0; border-left: 0; border-top: 1px solid var(--ppb-line); }
	.ppbsd-meta-cols > div:nth-child(-n+2) { border-top: 0; }
}

/* full-width blocks stay inside designs whose text column is not centered on the page */
.ppbsd-grid .entry-content .alignfull, .ppbsd-boxed .entry-content :is(.alignfull, .alignwide) { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
