/* ============================================================
   Exchanged Timeline — Author Page Styles (author.css)
   Used by the [et_author] shortcode
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.et-author-page {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
	line-height: 1.7;
}

/* ── Header ──────────────────────────────────────────────── */
.et-author-header {
	display: flex;
	gap: 1.75rem;
	align-items: flex-start;
	margin-bottom: 2rem;
}

@media ( max-width: 540px ) {
	.et-author-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Photo */
.et-author-photo {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #dcdcde;
	background: #f0f0f1;
}

.et-author-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Placeholder initials */
.et-author-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8edf4;
}

.et-author-photo--placeholder span {
	font-size: 2.2rem;
	font-weight: 700;
	color: #2271b1;
	letter-spacing: .05em;
	line-height: 1;
}

/* Header text */
.et-author-header-text {
	flex: 1;
	padding-top: .25rem;
}

.et-author-name {
	margin: 0 0 .3rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.et-author-lifespan {
	margin: 0 0 .2rem;
	font-size: 1rem;
	color: #646970;
}

.et-author-aka {
	margin: 0 0 .2rem;
	font-size: .85rem;
	color: #8c8f94;
	font-style: italic;
}

.et-author-tradition {
	margin: 0;
	font-size: .9rem;
	color: #646970;
	font-style: italic;
}
/* v2.0.261 — "More Patristic & early church works →", into the find surface. */
.et-author-browse {
	margin: .2rem 0 0;
	font-size: .85rem;
}

/* ── Biography ───────────────────────────────────────────── */
.et-author-bio {
	margin-bottom: 2.5rem;
}

.et-author-bio p {
	margin-top: 0;
	margin-bottom: 1.1em;
}

/* Section break (h2 inside bio_text if author chooses to use one) */
.et-author-bio h2 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 1.75em 0 .6em;
	padding-bottom: .3em;
	border-bottom: 1px solid #e5e5e5;
}

/* ── Bio truncation toggle ─────────────────────────────── */
/* JS adds the "--collapsible" class on long bios, then toggles "--collapsed".
   No-JS users see the full bio always — markup is in the DOM regardless. */
.et-author-bio-content {
	position: relative;
}

.et-author-bio--collapsible.et-author-bio--collapsed .et-author-bio-content {
	max-height: 10em;
	overflow: hidden;
}

.et-author-bio--collapsible.et-author-bio--collapsed .et-author-bio-content::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 3em;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.et-bio-toggle {
	display: none;
	margin-top: .4rem;
	padding: .25rem 0;
	background: none;
	border: none;
	color: #2271b1;
	cursor: pointer;
	font-size: .9rem;
	font-weight: 600;
}

.et-bio-toggle:hover {
	text-decoration: underline;
}

.et-author-bio--collapsible .et-bio-toggle {
	display: inline-block;
}

/* ── Section headings ────────────────────────────────────── */
.et-section-heading {
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #3c434a;
	margin: 0 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid #e5e5e5;
}

/* ── Works list ──────────────────────────────────────────── */
.et-author-works {
	margin-bottom: 2.5rem;
}

.et-works-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

.et-work-item {
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	background: #fafafa;
	padding: .75rem 1rem;
	transition: box-shadow .15s;
}

.et-work-item:hover {
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.et-work-item-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.et-work-item-info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .4rem .75rem;
}

.et-work-title {
	font-weight: 600;
	font-size: .95rem;
}

.et-work-subtitle {
	font-size: .85rem;
	color: #646970;
	font-style: italic;
}

.et-work-year {
	font-size: .8rem;
	color: #8c8f94;
	white-space: nowrap;
}

.et-work-item-actions {
	display: flex;
	gap: .5rem;
	flex-shrink: 0;
}

.et-work-btn {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .7rem;
	border-radius: 4px;
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}

.et-work-btn--free {
	background: #e8f4ea;
	color: #1a7a2a;
	border: 1px solid #b5debb;
}

.et-work-btn--free:hover {
	background: #d0ecda;
	border-color: #8fcfa0;
	color: #1a7a2a;
}

.et-work-btn--store {
	background: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
}

.et-work-btn--store:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

/* Combined count button — shown when a work has 2+ editions on either side. */
.et-work-btn--options {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #c3c4c7;
}

.et-work-btn--options:hover {
	background: #e0e0e0;
	border-color: #8c8f94;
	color: #1d2327;
}

/* ── Resources list ──────────────────────────────────────── */
.et-author-resources {
	margin-bottom: 2.5rem;
}

.et-resources-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.et-resource-item {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	font-size: .9rem;
}

.et-resource-item a {
	color: #2271b1;
	text-decoration: none;
}

.et-resource-item a:hover {
	text-decoration: underline;
}

.et-resource-type {
	font-size: .75rem;
	color: #8c8f94;
	background: #f0f0f1;
	padding: .1rem .4rem;
	border-radius: 3px;
	white-space: nowrap;
}

/* ── Action bar: Report (left) + Add to reading list (right) ── */
.et-author-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0;
}

/* Inside the flex bar the inner containers no longer need their own
   margins or alignment — flex `justify-content: space-between` does it. */
.et-author-actions .et-author-feedback,
.et-author-actions .et-author-reading-list {
	margin: 0;
}

/* Legacy rule — kept for any custom CSS that still targets this class
   when it's used outside the action bar. */
.et-author-feedback {
	margin-bottom: 1.5rem;
	text-align: right;
}

.et-feedback-btn {
	display: inline-block;
	padding: .35rem .85rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #646970;
	font-size: .8rem;
	text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}

.et-feedback-btn:hover {
	border-color: #8c8f94;
	color: #3c434a;
	background: #ececed;
	text-decoration: none;
}

/* ── Disclosure ──────────────────────────────────────────── */
.et-author-disclosure {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e5e5e5;
}

.et-author-disclosure p {
	font-size: .8rem;
	color: #8c8f94;
	margin: 0;
	font-style: italic;
	line-height: 1.6;
}

/* ── Error (admin only) ──────────────────────────────────── */
.et-author-error {
	background: #fcf0f1;
	border: 1px solid #f0b5b7;
	border-radius: 4px;
	padding: .75rem 1rem;
	color: #8a1f24;
	font-size: .9rem;
}

/* External link indicator */
.et-ext-indicator {
	display: inline-block;
	font-size: .7em;
	vertical-align: super;
	opacity: .7;
	margin-left: .15em;
	line-height: 1;
}

/* ── Influence (v2.0.255, genealogy phase 7a) ─────────────── */
.et-author-influence {
	margin-bottom: 2.5rem;
}

.et-author-influence-note {
	color: #646970;
	font-size: .9em;
	margin: -.25rem 0 .9rem;
}

.et-influence-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem 2rem;
}

.et-influence-heading {
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #50575e;
	margin: 0 0 .5rem;
	font-weight: 600;
}

.et-influence-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.et-influence-item {
	line-height: 1.5;
	padding-left: .9rem;
	border-left: 3px solid #d9d9d9;
}

.et-influence-tag {
	display: inline-block;
	margin-left: .45em;
	font-size: .78em;
	color: #8a4b00;
	font-style: italic;
}

.et-influence-other {
	font-weight: 600;
	color: #1d2327;
}

a.et-influence-other:hover {
	text-decoration: underline;
}

.et-influence-years {
	color: #8c8f94;
	font-size: .85em;
	margin-left: .35em;
	white-space: nowrap;
}

.et-influence-via {
	display: block;
	color: #646970;
	font-size: .85em;
}

.et-influence-pubnote {
	display: block;
	color: #646970;
	font-size: .85em;
	font-style: italic;
}

.et-influence-more {
	margin: .9rem 0 0;
	font-size: .9em;
}

/* ── Start here (v2.0.257) ──────────────────────────────────── */
.et-author-start-here {
	margin: 0 0 1.25rem;
	padding: .7rem 1rem;
	border: 1px solid #e5e5e5;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	background: #fafbfc;
}
.et-author-start-here-label {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #2271b1;
	margin-bottom: .25rem;
}
.et-author-start-here p {
	margin: 0;
	line-height: 1.6;
}

/* ── A context author (v2.0.282) ────────────────────────────── */
.et-author-context {
	margin: 1.5rem 0;
	padding: .8rem 1rem;
	border: 1px solid #e5e5e5;
	border-left: 4px solid #8c8f94;
	border-radius: 4px;
	background: #fafbfc;
}
.et-author-context .et-section-heading {
	margin-top: 0;
}
.et-author-context p {
	margin: 0 0 .5rem;
	line-height: 1.6;
}
.et-author-context p:last-child {
	margin-bottom: 0;
}
