/* The Plumbline 0.9: homepage top (Home3), masthead extras, Pray the week series cards, action bars. */

/* ---------------------------------------------------------------- masthead extras */
.pl-mast-x { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--pl-ui); font-size: 12.5px; line-height: 1.3; color: rgba(255,255,255,.75); max-width: 230px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.pl-mast-x:first-of-type { margin-left: auto; }
.pl-mast-x:hover { color: #fff; }
.pl-mast-x svg { flex: none; color: #fff; }
.pl-mast-x b { display: block; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pl-mast-strip { display: flex; height: 5px; }
.pl-mast-strip i { flex: 1; }
/* 0.9.1: one quiet menu. No colour squares or strip; the underline is ink, and Campaigns is ink like the rest. */
.pl-pillar-list a:hover, .pl-pillar-list .current-menu-item a, .pl-pillar-list .current-post-ancestor a { border-bottom-color: var(--pl-ink) !important; }
.pl-pillar-list .pl-p-act a { color: var(--pl-ink) !important; }
.pl-pillar-list .pl-p-home.current-menu-item a { border-bottom-color: var(--pl-ink); }
@media (max-width: 1080px) { .pl-mast-x { display: none; } }

/* ---------------------------------------------------------------- homepage top */
.pl-ht { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr) 220px; gap: 0; align-items: start; margin-top: 6px; }
.pl-ht > * { padding: 0 24px; }
.pl-ht > :first-child { padding-left: 0; }
.pl-ht > :last-child { padding-right: 0; }
.pl-ht > * + * { border-left: 1px solid var(--pl-line); }
.pl-ht a { color: var(--pl-ink); text-decoration: none; }
.pl-ht a:hover .pl-ht-h, .pl-ht a:hover .pl-ht-h3, .pl-ht-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pl-ht-pic { position: relative; }
.pl-ht-pic img { display: block; width: 100%; height: auto; }
.pl-ht-pic .pl-riso img { aspect-ratio: 3 / 2; object-fit: cover; }
.pl-ht-tag { position: absolute; top: 0; left: 0; z-index: 2; background: var(--pl-ink); color: #fff; font-family: var(--pl-ui); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; }
.pl-ht-tag.is-flat { position: static; display: inline-block; margin-bottom: 10px; }
.pl-ht-k { margin: 12px 0 6px; font-family: var(--pl-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--pl-ink); }
body .pl-ht-h { font-family: var(--pl-head) !important; font-size: clamp(30px, 3.3vw, 42px) !important; font-weight: 800 !important; line-height: 1.04 !important; letter-spacing: -.03em; margin: 0 !important; }
.pl-ht-dek { font-family: var(--pl-body); font-size: 19px; line-height: 1.45; color: #3d3842; margin: 12px 0 0; }
.pl-ht-m { font-family: var(--pl-ui); font-size: 12.5px; color: var(--pl-muted); margin: 8px 0 0; }
.pl-ht .pl-credit { display: block; margin-top: 6px; }
.pl-ht-item a { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.pl-ht-item:first-child a { padding-top: 0; }
.pl-ht-item + .pl-ht-item { border-top: 1px solid var(--pl-line); }
.pl-ht-item a:not(:has(.pl-ht-sq)) { grid-template-columns: minmax(0, 1fr); }
.pl-ht-sq { width: 80px; height: 80px; overflow: hidden; }
.pl-ht-sq img { width: 80px; height: 80px; object-fit: cover; display: block; }
.pl-ht-sq .pl-sc { width: 80px; height: 80px; aspect-ratio: auto; }
.pl-ht-item .pl-ht-k { margin-top: 0; }
body .pl-ht-h3 { font-family: var(--pl-head) !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.15 !important; margin: 0 !important; }
.pl-ht-item.is-comment a { background: #fff4cc; padding: 14px; }
.pl-ht-item .pl-tag { display: inline-block; margin-bottom: 6px; }
.pl-ht-lh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
body .pl-ht-lh h2 { font-family: var(--pl-ui) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; margin: 0 !important; }
.pl-ht-lh a { font-family: var(--pl-ui); font-size: 12.5px; color: var(--pl-muted); }
.pl-ht-list ul { list-style: none; margin: 0; padding: 0; }
.pl-ht-list li { position: relative; padding: 0 0 14px 16px; }
.pl-ht-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--pc, var(--pl-ink)); }
.pl-ht-list li a { font-family: var(--pl-body); font-size: 16.5px; line-height: 1.35; display: block; }
.pl-ht-list li span { display: block; font-family: var(--pl-ui); font-size: 12px; color: var(--pl-muted); margin-top: 3px; }
@media (max-width: 1080px) {
	.pl-ht { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); row-gap: 28px; }
	.pl-ht-list { grid-column: 1 / -1; border-left: 0 !important; padding: 18px 0 0 !important; border-top: 2px solid var(--pl-ink); }
	.pl-ht-list ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 760px) {
	.pl-ht { grid-template-columns: minmax(0, 1fr); }
	.pl-ht > * { padding: 0 !important; border-left: 0 !important; }
	.pl-ht-mid { border-top: 1px solid var(--pl-line) !important; padding-top: 16px !important; }
	.pl-ht-list ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------------------------------------------------------------- Pray the week series cards */
.pl-sc { --sc: #6a3c8e; position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sc); container-type: inline-size; color: #fff; font-family: var(--pl-head); }
.pl-sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-sc-panel { position: absolute; z-index: 1; display: flex; flex-direction: column; }
.pl-sc-name { font-family: var(--pl-head); font-weight: 800; letter-spacing: -.03em; line-height: .92; font-size: 11cqw; }
.pl-sc-dates { font-family: var(--pl-ui); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 2.4cqw; margin-top: 2.6cqw; }
.pl-sc-tab { font-family: var(--pl-ui); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 2.2cqw; }
/* P1: colour block in the corner */
.pl-sc-p1 .pl-sc-panel { left: 0; bottom: 0; background: var(--sc); padding: 4.5cqw 5cqw; max-width: 52%; }
/* P2: stacked label, top left */
.pl-sc-p2 .pl-sc-panel { left: 4cqw; top: 4cqw; align-items: flex-start; }
.pl-sc-p2 .pl-sc-name { background: var(--sc); padding: 2cqw 2.6cqw; font-size: 6.4cqw; }
.pl-sc-p2 .pl-sc-dates { background: #fff; color: var(--pl-ink); padding: 1.2cqw 2.6cqw; margin-top: 0; }
/* P3: purple frame, white title card */
.pl-sc-p3 { border: 3.2cqw solid var(--sc); box-sizing: border-box; }
.pl-sc-p3 .pl-sc-panel { left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--pl-ink); padding: 4cqw 5cqw; text-align: center; align-items: center; min-width: 46%; }
.pl-sc-p3 .pl-sc-tab { color: var(--sc); margin-bottom: 1.6cqw; }
.pl-sc-p3 .pl-sc-name { font-size: 8cqw; }
.pl-sc-p3 .pl-sc-dates { color: var(--pl-muted); }
/* P4: big type over a dark band */
.pl-sc-p4 .pl-sc-panel { left: 0; right: 0; bottom: 0; background: rgba(18,18,18,.86); border-left: 2.2cqw solid var(--sc); padding: 3.6cqw 4.4cqw; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 3cqw; }
.pl-sc-p4 .pl-sc-name { font-size: 9cqw; }
.pl-sc-p4 .pl-sc-dates { margin: 0; white-space: nowrap; }
/* P5: colour column on the right, picture running underneath */
.pl-sc-p5 .pl-sc-panel { top: 0; right: 0; bottom: 0; width: 38%; background: color-mix(in srgb, var(--sc) 92%, transparent); padding: 5cqw 4cqw; justify-content: flex-end; }
.pl-sc-p5 .pl-sc-name { font-size: 8.6cqw; }
/* P6: dates as the hero */
.pl-sc-p6::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(18,18,18,.78)); }
.pl-sc-p6 .pl-sc-tab { position: absolute; z-index: 1; top: 0; left: 4cqw; background: var(--sc); padding: 1.8cqw 2.4cqw; }
.pl-sc-p6 .pl-sc-panel { left: 4cqw; right: 4cqw; bottom: 3.6cqw; }
.pl-sc-p6 .pl-sc-dates { font-family: var(--pl-head); font-weight: 800; text-transform: none; letter-spacing: -.03em; font-size: 10cqw; line-height: .95; margin: 0; }
/* T1: split, colour panel and picture side by side */
.pl-sc-t1 { display: grid; grid-template-columns: 46% 54%; }
.pl-sc-t1 .pl-sc-panel { position: static; background: var(--sc); padding: 6cqw 5cqw; justify-content: flex-end; }
.pl-sc-t1 .pl-sc-pic { position: relative; }
.pl-sc-t1 .pl-sc-name { font-size: 10cqw; }
/* Tiny cards (homepage squares): only the colour block and a short name survive. */
.pl-ht-sq .pl-sc .pl-sc-dates, .pl-ht-sq .pl-sc .pl-sc-tab { display: none; }
.pl-ht-sq .pl-sc .pl-sc-name { font-size: 22cqw; }
.pl-ht-sq .pl-sc-panel { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none !important; width: auto !important; max-width: none !important; background: var(--sc) !important; color: #fff !important; padding: 8cqw !important; border: 0 !important; }
.pl-ht-sq .pl-sc { border: 0; }
.pl-ht-sq .pl-sc-t1 { display: block; }
.pl-ht-sq .pl-sc-t1 .pl-sc-pic { position: absolute; inset: 0; }
.pl-ht-sq .pl-sc-p6 .pl-sc-panel { display: none; }
.pl-ht-sq .pl-sc-p6 .pl-sc-tab { display: block; left: 0; right: 0; bottom: 0; top: auto; font-family: var(--pl-head); font-size: 20cqw; letter-spacing: -.02em; text-transform: none; line-height: .95; padding: 8cqw; }

/* ---------------------------------------------------------------- action bars */
.pl-ab { width: 100vw; margin-left: calc(50% - 50vw); background: #fff; border-bottom: 1px solid var(--pl-line); box-shadow: 0 2px 6px rgba(0,0,0,.05); margin-top: -28px; margin-bottom: 28px; }
.pl-ab-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; box-sizing: border-box; font-family: var(--pl-ui); font-size: 14.5px; position: relative; }
.pl-ab-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 18px; background: var(--pl-line); color: var(--pl-ink); }
.pl-ab-text { min-width: 0; flex: 1 1 auto; }
.pl-ab-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pl-muted); }
.pl-ab-title { display: block; font-weight: 700; line-height: 1.3; }
.pl-ab-act { flex: none; display: flex; align-items: center; gap: 8px; }
.pl-ab-form { display: flex; align-items: center; gap: 8px; }
.pl-ab-form label { font-size: 12.5px; color: var(--pl-muted); }
.pl-ab-form input { font-family: var(--pl-ui); font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--pl-ink); border-radius: 3px; width: 110px; }
.pl-ab .pl-btn { padding: 9px 14px; font-size: 14px; }
.pl-ab-prog { flex: 0 0 180px; display: grid; gap: 4px; }
.pl-ab-prog .pl-bar { height: 6px; background: var(--pl-line); display: block; }
.pl-ab-prog .pl-bar i { display: block; height: 6px; background: var(--pl-ink); }
.pl-ab-prog small, .pl-ab-fine { font-size: 12.5px; color: var(--pl-muted); }
.pl-ab-big { flex: none; font-size: 13px; color: var(--pl-muted); }
.pl-ab-big b { font-family: var(--pl-head); font-size: 26px; color: var(--pl-ink); }
.pl-ab-date { flex: none; width: 44px; text-align: center; border: 1.5px solid var(--pl-ink); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; padding: 3px 0 4px; }
.pl-ab-date b { display: block; font-family: var(--pl-head); font-size: 22px; letter-spacing: 0; }
.pl-ab-amounts { display: flex; align-items: center; gap: 6px; }
.pl-ab-other { background: none; border: 0; padding: 4px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--pl-ink); text-decoration: underline; cursor: pointer; }
.pl-ab-pray .pl-ab-title { font-family: var(--pl-body); font-style: italic; font-weight: 400; }
.pl-ab .pl-tool-note { position: absolute; right: 16px; top: 100%; background: var(--pl-ink); color: #fff; font-size: 13px; padding: 6px 10px; z-index: 5; }
@media (max-width: 900px) {
	.pl-ab { margin-top: -16px; }
	.pl-ab-in { flex-wrap: wrap; gap: 10px 12px; }
	.pl-ab-text { flex-basis: calc(100% - 52px); }
	.pl-ab-act { flex: 1 1 100%; }
	.pl-ab-prog { flex: 1 1 100%; }
	.pl-ab-form { flex: 1; }
	.pl-ab-form input { flex: 1; width: auto; }
}

/* 0.9.3: the card's picture always fills the card, even inside story figures (which set 16:9 on images). */
.pl-sc .pl-sc-img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; max-width: none !important; margin: 0 !important; }
