/**
 * DuSunnah Author - the cross-content publishing archive.
 * ===========================================================================
 * ISOLATED and prefixed. The wrapper carries .dus-home as well as .dus-authorlib,
 * so css/home.css supplies every token and this file adds only the author layer.
 * It is enqueued only on /author/ surfaces and restyles nothing else.
 *
 * ONE TEXT-LED STREAM. Every content type - Article, Audio, Video, Blog - is set
 * as the same editorial row, distinguished by a small type identifier rather
 * than by a card, a poster or a thumbnail. The page opens on the author, not on
 * an "About the Author" heading, and works elegantly with no avatar.
 */

/* The library draws its own measures; the theme wrapper must not add any. */
body.author #main-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

.dus-authorlib {
	--auth: 1040px;
	--read: 760px;
	padding: 0 0 80px;
}

.dus-auth__wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.dus-auth__col {
	max-width: var(--auth);
}

/* ============================================================ PROFILE */

.dus-auth__profile {
	padding: 46px 0 0;
	max-width: var(--read);
}

.dus-auth__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--acc);
}

.dus-auth__name {
	margin: 10px 0 0;
	font-size: 40px;
	line-height: 1.08;
	letter-spacing: -.025em;
	font-weight: 800;
	color: var(--ink);
}

.dus-auth__bio {
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--body);
}

/* Real counts, kept subordinate to the name - a line of type, not statistics. */
.dus-auth__summary {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* ============================================================ TYPE FILTER */

.dus-auth__types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 30px 0 0;
}

.dus-auth__type-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}

.dus-auth__type-link:hover {
	border-color: var(--acc);
	color: var(--acc);
}

.dus-auth__type-link.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.dus-auth__n {
	font-size: 11.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.dus-auth__type-link.is-active .dus-auth__n {
	color: rgba(255, 255, 255, .72);
}

/* ============================================================ BAR */

.dus-auth__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 26px 0 0;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--ink);
}

.dus-auth__count {
	font-size: 13px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.dus-auth__order {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

.dus-auth__order-link {
	color: var(--muted);
	text-decoration: none;
}

.dus-auth__order-link:hover {
	color: var(--acc);
}

.dus-auth__order-link.is-active {
	color: var(--ink);
	font-weight: 700;
}

.dus-auth__order-sep {
	color: #c4bcb4;
}

/* ============================================================ STREAM */

.dus-auth__list {
	margin-top: 4px;
}

.dus-auth__item {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
	max-width: var(--read);
}

.dus-auth__list .dus-auth__item:last-child {
	border-bottom: 0;
}

/*
 * The type identifier is the primary distinction between media - a filled tag
 * in the accent - with the item's own subject beside it as a quieter kicker.
 */
.dus-auth__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
}

.dus-auth__type {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--acc);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.dus-auth__sub {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--muted);
}

.dus-auth__ttl {
	margin: 9px 0 0;
	font-size: 20px;
	line-height: 1.32;
	letter-spacing: -.014em;
	font-weight: 700;
}

.dus-auth__ttl a {
	color: inherit;
	text-decoration: none;
}

.dus-auth__ttl a:hover {
	color: var(--acc);
}

.dus-auth__stand {
	margin: 7px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dus-auth__meta {
	margin: 9px 0 0;
	font-size: 12.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* ============================================================ EMPTY */

.dus-auth__empty {
	padding: 44px 0 4px;
	max-width: 52ch;
}

.dus-auth__empty-lead {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--ink);
}

.dus-auth__empty-act {
	margin: 18px 0 0;
}

.dus-auth__reset {
	font-size: 13.5px;
	color: var(--acc);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* ============================================================ PAGER */

.dus-auth__pager {
	margin: 34px 0 0;
}

.dus-auth__pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dus-auth__pager a,
.dus-auth__pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.dus-auth__pager a:hover {
	border-color: var(--acc);
	color: var(--acc);
}

.dus-auth__pager .current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.dus-auth__pager .dots {
	border-color: transparent;
}

/* ============================================================ 1100 */

@media (max-width: 1100px) {

	.dus-auth__wrap {
		padding: 0 32px;
	}

	.dus-auth__name {
		font-size: 36px;
	}
}

/* ============================================================ 767 */

@media (max-width: 767px) {

	.dus-authorlib {
		--read: 100%;
		padding-bottom: 56px;
	}

	.dus-auth__wrap {
		padding: 0 20px;
	}

	.dus-auth__profile {
		padding-top: 30px;
	}

	.dus-auth__name {
		font-size: 30px;
		letter-spacing: -.02em;
	}

	.dus-auth__bio {
		font-size: 16px;
	}

	.dus-auth__types {
		margin-top: 22px;
	}

	.dus-auth__bar {
		margin-top: 22px;
	}

	.dus-auth__item {
		padding: 18px 0;
	}

	.dus-auth__ttl {
		font-size: 18px;
	}

	.dus-auth__stand {
		font-size: 14px;
	}

	.dus-auth__empty {
		padding: 32px 0 4px;
	}

	.dus-auth__empty-lead {
		font-size: 18px;
	}
}
