/* ============================================================
   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;
}

/* ── 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;
}

/* ── 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;
}

/* ── 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;
}

/* ── 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;
}
