/*
Theme Name: Reasoned Leadership
Theme URI: https://www.reasonedleadership.org
Author: GrassFire Industries LLC
Description: Block theme for ReasonedLeadership.org. Global styles live in theme.json; component styles below are exposed as block styles in the editor (Styles panel), so page content stays editable.
Version: 1.0.8
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: reasoned-leadership
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.has-primary-night-background-color :focus-visible,
.has-primary-deep-background-color :focus-visible { outline-color: var(--wp--preset--color--sky); }

/* ---------- Header ---------- */
.rl-site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.96);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .rl-site-header { top: 32px; }
@media (min-width: 600px) { .rl-site-header { backdrop-filter: saturate(1.4) blur(8px); } }
@media (max-width: 782px) { .admin-bar .rl-site-header { top: 46px; } }
.rl-site-header .wp-block-site-logo img { height: auto; }
.rl-site-header .wp-block-navigation a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--contrast); text-decoration: none; }
.rl-site-header .wp-block-navigation a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--primary); }
.rl-site-header .wp-block-navigation-item.is-style-cta > a,
.rl-site-header .wp-block-navigation .rl-nav-cta > a {
	background: var(--wp--preset--color--primary); color: #fff !important;
	padding: 0.55rem 1rem; border-radius: 6px; font-weight: 600;
}
.rl-site-header .wp-block-navigation .rl-nav-cta > a:hover { background: var(--wp--preset--color--primary-deep); }
.wp-block-navigation__responsive-container.is-menu-open .rl-nav-cta > a { display: inline-block; margin-top: 0.5rem; }

/* ---------- Eyebrow label (paragraph style) ---------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.has-primary-night-background-color .is-style-eyebrow,
.has-primary-deep-background-color .is-style-eyebrow { color: var(--wp--preset--color--sky); }

/* ---------- Lead paragraph (paragraph style) ---------- */
.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }

/* ---------- Card (group style) ---------- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: clamp(1.25rem, 2.4vw, 2rem);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.wp-block-group.is-style-card:hover { box-shadow: 0 1px 2px rgba(0,43,66,.06), 0 10px 28px rgba(0,43,66,.10); border-color: #c3cdd6; }
.wp-block-group.is-style-card > .wp-block-image:first-child { margin: calc(-1 * clamp(1.25rem, 2.4vw, 2rem)) calc(-1 * clamp(1.25rem, 2.4vw, 2rem)) 1.25rem; }
.wp-block-group.is-style-card > .wp-block-image:first-child img { border-radius: 10px 10px 0 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wp-block-columns > .wp-block-column > .wp-block-group.is-style-card:only-child { display: flex; flex-direction: column; height: 100%; }
.wp-block-columns > .wp-block-column > .wp-block-group.is-style-card:only-child > * { margin-block-start: 0; }
.wp-block-columns > .wp-block-column > .wp-block-group.is-style-card:only-child > * + * { margin-block-start: var(--wp--style--block-gap, 1rem); }
.wp-block-group.is-style-card > .wp-block-buttons:last-child,
.wp-block-group.is-style-card > p:last-child.is-style-arrow-link { margin-top: auto; padding-top: .5rem; }

/* Numbered card marker (paragraph style) */
.is-style-step-number {
	font-family: var(--wp--preset--font-family--serif); font-size: 2.2rem !important; line-height: 1;
	color: var(--wp--preset--color--primary); font-weight: 500; margin-bottom: .25rem !important;
}

/* Arrow link (paragraph style) */
.is-style-arrow-link a { font-weight: 600; text-decoration: none; }
.is-style-arrow-link a::after { content: " \2192"; transition: margin .15s ease; }
.is-style-arrow-link a:hover::after { margin-left: .2em; }

/* ---------- Decision chain (list style + list-item styles) ---------- */
.wp-block-list.is-style-chain {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0;
	counter-reset: chain;
}
.wp-block-list.is-style-chain > li {
	position: relative; flex: 1 1 0; min-width: 0;
	margin: 0 1.6rem 0 0; padding: 1rem .5rem;
	text-align: center; font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large); font-weight: 600;
	border: 1.5px solid var(--wp--preset--color--line); border-radius: 8px;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary-night);
}
.wp-block-list.is-style-chain > li:last-child { margin-right: 0; }
.wp-block-list.is-style-chain > li:not(:last-child)::after {
	content: ""; position: absolute; right: -1.35rem; top: 50%;
	width: 1.1rem; height: 1.1rem; transform: translateY(-50%);
	background: var(--rl-arrow, var(--wp--preset--color--logo-gray));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-list.is-style-chain > li.is-style-intervene {
	background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff;
}
.wp-block-list.is-style-chain > li.is-style-typical {
	border-style: dashed; border-color: var(--wp--preset--color--logo-gray); color: var(--wp--preset--color--muted);
}
/* On dark sections */
.has-primary-night-background-color, .has-primary-deep-background-color { --rl-arrow: rgba(255,255,255,.7); }
.has-primary-night-background-color .wp-block-list.is-style-chain > li,
.has-primary-deep-background-color .wp-block-list.is-style-chain > li {
	background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff;
}
.has-primary-night-background-color .wp-block-list.is-style-chain > li.is-style-intervene,
.has-primary-deep-background-color .wp-block-list.is-style-chain > li.is-style-intervene {
	background: #fff; border-color: #fff; color: var(--wp--preset--color--primary-night);
}
.has-primary-night-background-color .wp-block-list.is-style-chain > li.is-style-typical,
.has-primary-deep-background-color .wp-block-list.is-style-chain > li.is-style-typical {
	border-style: dashed; border-color: rgba(255,255,255,.55); color: rgba(255,255,255,.85); background: transparent;
}
/* Large variant for the key-insight band */
.wp-block-list.is-style-chain.is-large > li { font-size: var(--wp--preset--font-size--x-large); padding: 1.4rem .5rem; }

@media (max-width: 781px) {
	.wp-block-list.is-style-chain { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
	.wp-block-list.is-style-chain > li { margin: 0 0 1.5rem 0; padding: .75rem; }
	.wp-block-list.is-style-chain > li:last-child { margin-bottom: 0; }
	.wp-block-list.is-style-chain > li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1.35rem; transform: translateX(-50%) rotate(90deg); }
}

/* Chain legend (paragraph styles) */
.is-style-key-intervene, .is-style-key-typical { display: flex; align-items: center; gap: .6rem; font-size: var(--wp--preset--font-size--small) !important; }
.is-style-key-intervene::before, .is-style-key-typical::before { content: ""; flex: 0 0 auto; width: 1.6rem; height: .7rem; border-radius: 3px; }
.is-style-key-intervene::before { background: var(--wp--preset--color--primary); }
.is-style-key-typical::before { border: 1.5px dashed var(--wp--preset--color--logo-gray); }
.has-primary-night-background-color .is-style-key-intervene::before,
.has-primary-deep-background-color .is-style-key-intervene::before { background: #fff; }
.has-primary-night-background-color .is-style-key-typical::before,
.has-primary-deep-background-color .is-style-key-typical::before { border-color: rgba(255,255,255,.7); }

/* ---------- Layer stack (group style) ---------- */
.wp-block-group.is-style-layer-stack { display: flex; flex-direction: column; gap: 2rem !important; }
.wp-block-group.is-style-layer-stack > .wp-block-group {
	position: relative; border-radius: 10px; padding: 1.4rem 1.6rem;
	background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line);
	border-left: 6px solid var(--wp--preset--color--primary);
}
.wp-block-group.is-style-layer-stack > .wp-block-group:nth-child(1) { border-left-color: var(--wp--preset--color--primary); }
.wp-block-group.is-style-layer-stack > .wp-block-group:nth-child(2) { border-left-color: var(--wp--preset--color--primary-deep); }
.wp-block-group.is-style-layer-stack > .wp-block-group:nth-child(3) { border-left-color: var(--wp--preset--color--primary-night); }
.wp-block-group.is-style-layer-stack > .wp-block-group:not(:last-child)::after {
	content: ""; position: absolute; left: 50%; bottom: -1.75rem; width: 1.5rem; height: 1.5rem; transform: translateX(-50%) rotate(-90deg);
	background: var(--wp--preset--color--logo-gray);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-group.is-style-layer-stack h3 { margin: 0; }
.wp-block-group.is-style-layer-stack .is-style-eyebrow { margin: 0 0 .15rem; }

/* ---------- Comparison table (table style) ---------- */
.wp-block-table.is-style-compare { overflow-x: auto; }
.wp-block-table.is-style-compare table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; }
.wp-block-table.is-style-compare th, .wp-block-table.is-style-compare td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem 1.1rem; vertical-align: top; text-align: left; line-height: 1.55; }
.wp-block-table.is-style-compare tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-compare thead th { background: var(--wp--preset--color--surface); font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted); border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-table.is-style-compare thead th:last-child { background: var(--wp--preset--color--primary); color: #fff; }
.wp-block-table.is-style-compare td:first-child { font-weight: 600; color: var(--wp--preset--color--primary-night); width: 22%; }
.wp-block-table.is-style-compare td:last-child { background: var(--wp--preset--color--tint); }
.wp-block-table.is-style-compare figcaption { text-align: left; margin-top: .75rem; }

/* ---------- Question list (numbered criteria) ---------- */
.wp-block-list.is-style-criteria { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 2rem; counter-reset: q; }
.wp-block-list.is-style-criteria > li { counter-increment: q; position: relative; padding-left: 2.6rem; }
.wp-block-list.is-style-criteria > li::before { content: counter(q); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary-deep); }
@media (max-width: 781px) { .wp-block-list.is-style-criteria { grid-template-columns: 1fr; } }

/* ---------- Check list (list style) ---------- */
.wp-block-list.is-style-check { list-style: none; padding-left: 0; }
.wp-block-list.is-style-check > li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.wp-block-list.is-style-check > li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; border-radius: 2px; background: var(--wp--preset--color--primary); }

/* ---------- Hero ---------- */
.rl-hero .wp-block-cover__background { background: linear-gradient(115deg, rgba(0,43,66,.97) 0%, rgba(0,43,66,.92) 45%, rgba(0,69,105,.80) 100%) !important; opacity: 1 !important; }

/* ---------- Pull statement ---------- */
.is-style-statement { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }

/* ---------- Timeline (Kodak) ---------- */
.wp-block-group.is-style-timeline { border-left: 2px solid var(--wp--preset--color--line); padding-left: 1.5rem !important; }
.wp-block-group.is-style-timeline > * { position: relative; }
.wp-block-group.is-style-timeline > h4::before { content: ""; position: absolute; left: calc(-1.5rem - 7px); top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px var(--wp--preset--color--base); }
.wp-block-group.is-style-timeline > h4 { margin-bottom: .1rem; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); letter-spacing: .06em; color: var(--wp--preset--color--primary); }
.wp-block-group.is-style-timeline > p { margin-top: 0; }

/* ---------- Logo tiles (Research & Practice) ---------- */
.rl-logo-tile .wp-block-image { height: 64px; display: flex; align-items: center; margin-bottom: 1rem; }
.rl-logo-tile .wp-block-image img { max-height: 64px; width: auto; max-width: 220px; object-fit: contain; }

/* ---------- Articles ---------- */
.rl-article .wp-block-post-content > p:first-of-type { font-size: var(--wp--preset--font-size--large); line-height: 1.6; }
.rl-article .wp-block-post-content :where(h2) { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.rl-article .wp-block-post-content :where(h3) { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }
.rl-article .wp-block-post-content hr.wp-block-separator { margin: 2.5rem auto; width: 4rem; border-top-width: 2px; }
.rl-article .wp-block-post-content .wp-block-image img { border-radius: 8px; }
.rl-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px 10px 0 0; }
.rl-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--primary-night); }
.rl-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.rl-post-card { height: 100%; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .rl-post-card { flex: 1; }

/* ---------- Footer ---------- */
.rl-site-footer a { color: #fff; text-decoration: none; }
.rl-site-footer a:hover { text-decoration: underline; }
.rl-site-footer .wp-block-site-logo img { filter: brightness(0) invert(1); opacity: .95; }
.rl-site-footer h2 { font-family: var(--wp--preset--font-family--sans); }

/* ---------- Utility ---------- */
.rl-dark-links a { color: #fff; }
.rl-center-mobile { }
@media (max-width: 781px) {
	.wp-block-columns.rl-stack-reverse { flex-direction: column-reverse; }
}

/* ---------- Section-specific ---------- */
.rl-hero-chain { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.rl-insight-chain .wp-block-list.is-style-chain > li { font-size: var(--wp--preset--font-size--x-large); padding-block: 1.35rem; }
.rl-operator { font-family: var(--wp--preset--font-family--serif); line-height: 1; margin: 0; }
.rl-hero .wp-block-button.is-style-outline > .wp-block-button__link { border-color: rgba(255,255,255,.7); color: #fff; }
.rl-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.rl-hero h1 { max-width: 20ch; }
@media (max-width: 781px) {
	.rl-operator { transform: rotate(0); }
}

.rl-hero-image img { max-height: 560px; width: 100%; object-fit: cover; }
@media (max-width: 781px) { .rl-hero-image img { max-height: 260px; } }
.wp-block-columns > .wp-block-column > .wp-block-group.is-style-card:only-child > .wp-block-image:first-child { margin: calc(-1 * clamp(1.25rem, 2.4vw, 2rem)) calc(-1 * clamp(1.25rem, 2.4vw, 2rem)) .5rem; }
.wp-block-list.is-style-criteria { margin-block: 1rem 1.5rem !important; }
.rl-hero h1 { max-width: 22ch; }
/* Logo tiles keep their images inset and uncropped */
.wp-block-group.is-style-card.rl-logo-tile > .wp-block-image:first-child,
.wp-block-columns > .wp-block-column > .wp-block-group.is-style-card.rl-logo-tile:only-child > .wp-block-image:first-child { margin: 0 0 .75rem; height: 72px; display: flex; align-items: center; }
.wp-block-group.is-style-card.rl-logo-tile > .wp-block-image:first-child img { aspect-ratio: auto; width: auto; max-width: 220px; max-height: 72px; object-fit: contain; border-radius: 0; }
@media (max-width: 781px) { .rl-hero-image { display: none; } }
.rl-plain-list { list-style: none; }
.rl-hero-image.is-compass img { max-height: 520px; width: 100%; object-fit: contain; }
.rl-hero-image.is-king img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
@media (max-width: 781px) { .rl-hero-image.is-compass { display: block; } .rl-hero-image.is-compass img { max-height: 220px; } }
.rl-hero-image.is-emblem { display: flex; justify-content: center; }
.rl-hero-image.is-emblem img { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
@media (max-width: 781px) { .rl-hero-image.is-emblem { display: flex; } .rl-hero-image.is-emblem img { max-width: 240px; } }
.is-style-stat { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.4rem, 4vw, 3.2rem) !important; line-height: 1; font-weight: 600; color: var(--wp--preset--color--primary); letter-spacing: -.02em; margin-bottom: .35rem !important; }

/* ---------- Source index (/research) ---------- */
.rl-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.rl-chip { font: 600 var(--wp--preset--font-size--x-small)/1 var(--wp--preset--font-family--sans); letter-spacing: .04em; padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); cursor: pointer; }
.rl-chip:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.rl-chip.is-active { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.rl-source-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.rl-source-table th, .rl-source-table td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--wp--preset--color--line); line-height: 1.5; }
.rl-source-table thead th { background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted); }
.rl-source-table thead th { white-space: nowrap; }
.rl-source-table tbody tr:last-child > * { border-bottom: 0; }
.rl-source-table tbody th { width: 18%; font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--medium); }
.rl-source-table tbody tr:target { background: var(--wp--preset--color--tint); }
.rl-construct { font-weight: 600; color: var(--wp--preset--color--primary-night); }
a.rl-construct { color: var(--wp--preset--color--primary); }
.rl-related { display: block; margin-top: .35rem; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }
.rl-type { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 4px; background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary-deep); white-space: nowrap; }
.rl-empty { color: var(--wp--preset--color--logo-gray); }
.rl-source-foot { margin-top: 1rem; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }
@media (max-width: 781px) {
	.rl-source-table, .rl-source-table tbody, .rl-source-table tr, .rl-source-table th, .rl-source-table td { display: block; width: auto; }
	.rl-source-table { border: 0; background: none; }
	.rl-source-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rl-source-table tbody tr { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; margin-bottom: 1rem; padding: .5rem 0; }
	.rl-source-table tbody tr[hidden] { display: none; }
	.rl-source-table tbody th, .rl-source-table td { border: 0; padding: .45rem 1rem; }
	.rl-source-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted); margin-bottom: .15rem; }
}

/* ---------- Article sources box ---------- */
.rl-article-sources { max-width: 720px; margin: 0 auto var(--wp--preset--spacing--50); padding: 1.25rem 1.5rem; border: 1px solid var(--wp--preset--color--line); border-left: 4px solid var(--wp--preset--color--primary); border-radius: 8px; background: var(--wp--preset--color--base); font-size: var(--wp--preset--font-size--small); }
.rl-article-sources ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.rl-article-sources li { margin-bottom: .75rem; line-height: 1.55; }
.rl-article-sources .rl-type { margin-left: .35rem; }
.rl-source-table td:nth-child(4), .rl-source-table td:nth-child(5), .rl-source-table td:nth-child(6) { white-space: nowrap; }
.rl-source-table td:nth-child(2) { width: 42%; }
@media (max-width: 781px) { .rl-source-table tbody th, .rl-source-table td { width: auto !important; white-space: normal !important; } }

/* ---------- Decision chain: return loop (Outcomes feed Emotion) ---------- */
.wp-block-list.is-style-chain { position: relative; padding-bottom: 2.4rem !important; }
.wp-block-list.is-style-chain::after {
	content: ""; position: absolute; left: 9.5%; right: 9.5%; bottom: .3rem; height: 1.9rem;
	border: 1.5px solid var(--rl-arrow, var(--wp--preset--color--logo-gray)); border-top: 0; border-radius: 0 0 16px 16px; pointer-events: none;
}
.wp-block-list.is-style-chain::before {
	content: ""; position: absolute; left: calc(9.5% - .5rem); bottom: 1.45rem; width: 1rem; height: 1rem; z-index: 2;
	background: var(--rl-arrow, var(--wp--preset--color--logo-gray)); transform: rotate(-90deg);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-loop-label { margin-top: .4rem !important; color: var(--wp--preset--color--muted); font-style: italic; }
.has-primary-night-background-color .is-style-loop-label,
.has-primary-deep-background-color .is-style-loop-label { color: var(--wp--preset--color--sky); }
@media (max-width: 781px) {
	.wp-block-list.is-style-chain { padding-bottom: 0 !important; padding-right: 2.2rem !important; }
	.wp-block-list.is-style-chain::after { left: auto; right: .3rem; top: 1.4rem; bottom: 1.4rem; width: 1.6rem; height: auto; border: 1.5px solid var(--rl-arrow, var(--wp--preset--color--logo-gray)); border-left: 0; border-radius: 0 16px 16px 0; }
	.wp-block-list.is-style-chain::before { left: auto; right: 1.35rem; bottom: auto; top: .9rem; transform: rotate(180deg); }
}
/* Phone menu: keep links off the screen edge */
.wp-block-navigation__responsive-container.is-menu-open { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; }
.wp-block-navigation__responsive-container.is-menu-open .rl-nav-cta > a { padding: .65rem 1.2rem !important; margin-top: .5rem; }
