.idc-author-page {
	display: flex;
	flex-direction: column;
}

.idc-author-hero {
	order: 10;
}

.idc-author-overview {
	order: 20;
}

.idc-author-profile-tabs {
	order: 30;
}

.idc-author-section--featured-work {
	order: 40;
}

.idc-author-works {
	order: 50;
}

.idc-author-world {
	order: 60;
}

.idc-author-works {
	width: min(100% - 8rem, 1320px);
	margin: 3.4rem auto 4rem;
}

.idc-author-works > .idc-section-heading,
.idc-author-works > .idc-grid {
	display: none;
}

.idc-author-stories__heading {
	display: flex;
	gap: 2rem;
	align-items: flex-end;
	justify-content: space-between;
	margin: 0 0 2.2rem;
}

.idc-author-stories__heading h2 {
	margin: 0;
	color: #171717;
	font-family: var(--idc-font-display);
	font-size: 4.25rem;
	font-weight: 500;
	line-height: 1;
}

.idc-author-stories__heading p {
	margin: 0.8rem 0 0;
	color: var(--idc-color-primary);
	font-family: var(--idc-font-body);
	font-size: 1.18rem;
	font-weight: 400;
	line-height: 1.45;
}

.idc-author-stories__heading a {
	display: inline-flex;
	gap: 0.65rem;
	align-items: center;
	margin-bottom: 0.5rem;
	color: var(--idc-color-primary);
	font-family: var(--idc-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.idc-author-stories__heading a:hover {
	color: var(--idc-color-primary-hover);
}

.idc-author-stories__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
}

.idc-author-story-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(32, 32, 32, 0.08);
	border-radius: 8px;
	box-shadow: 0 18px 46px rgba(32, 32, 32, 0.07);
}

.idc-author-story-card__cover {
	position: relative;
	display: flex;
	margin: 1.25rem 1.25rem 0;
	aspect-ratio: 0.83;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: inherit;
	background: var(--idc-color-bg-paper);
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(32, 32, 32, 0.13);
}

.idc-author-story-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.idc-author-story-card__placeholder {
	display: grid;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 4.9rem 1.2rem 1.35rem;
	align-content: center;
	justify-items: center;
	color: #ffffff;
	font-family: var(--idc-font-body);
	font-size: 1rem;
	line-height: 1.25;
	text-align: center;
	background:
		linear-gradient(145deg, rgba(20, 25, 30, 0.9), rgba(122, 46, 58, 0.82)),
		#29222a;
}

.idc-author-story-card__placeholder strong {
	max-width: 100%;
	font-family: var(--idc-font-display);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.05;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.idc-author-story-card__placeholder em {
	display: block;
	max-width: 100%;
	margin-top: 0.95rem;
	font-family: var(--idc-font-body);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.idc-author-story-card__placeholder small {
	display: block;
	max-width: 100%;
	margin-top: 1.35rem;
	font-family: var(--idc-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.idc-author-story-card--genre-fantasy .idc-author-story-card__placeholder {
	background:
		linear-gradient(145deg, rgba(26, 62, 51, 0.96), rgba(143, 103, 52, 0.74)),
		#1f3d35;
}

.idc-author-story-card--genre-horror .idc-author-story-card__placeholder,
.idc-author-story-card--genre-krimi .idc-author-story-card__placeholder {
	background:
		linear-gradient(145deg, rgba(14, 17, 22, 0.98), rgba(104, 30, 43, 0.82)),
		#171b22;
}

.idc-author-story-card--genre-sci-fi .idc-author-story-card__placeholder,
.idc-author-story-card--genre-sci .idc-author-story-card__placeholder {
	background:
		linear-gradient(145deg, rgba(42, 74, 105, 0.95), rgba(96, 67, 128, 0.8)),
		#273a5a;
}

.idc-author-story-card--genre-romantikus .idc-author-story-card__placeholder {
	color: #6a2936;
	background:
		linear-gradient(145deg, rgba(247, 219, 215, 0.96), rgba(226, 185, 200, 0.86)),
		#f3dfdd;
}

.idc-author-story-card--genre-szepirodalom .idc-author-story-card__placeholder {
	color: #2c3037;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 225, 220, 0.9)),
		#f6f2ef;
}
.idc-author-story-card__status {
	position: absolute;
	z-index: 2;
	left: 1rem;
	top: 1rem;
	display: inline-flex;
	gap: 0.55rem;
	align-items: center;
	max-width: calc(100% - 2rem);
	min-height: 2.75rem;
	padding: 0.65rem 0.9rem;
	color: var(--idc-color-primary);
	font-family: var(--idc-font-body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.15;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(122, 46, 58, 0.12);
	border-radius: 8px;
	box-shadow: 0 12px 24px rgba(32, 32, 32, 0.12);
}

.idc-author-story-card__status > span {
	width: 1.2rem;
	height: 1.2rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.idc-author-story-card__status--published > span {
	background-image: var(--idc-icon-banner);
}

.idc-author-story-card__status--free > span {
	background-image: var(--idc-icon-books);
}

.idc-author-story-card__status--progress > span {
	background-image: var(--idc-icon-pen);
}

.idc-author-story-card__status--beta > span {
	background-image: var(--idc-icon-avatar);
}

.idc-author-story-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.35rem 1.45rem 1.55rem;
}

.idc-author-story-card__body h3 {
	margin: 0;
	color: #171717;
	font-family: var(--idc-font-display);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.1;
}

.idc-author-story-card__body h3 a {
	color: inherit;
	text-decoration: none;
}

.idc-author-story-card__body h3 a:hover {
	color: var(--idc-color-primary);
}

.idc-author-story-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	color: var(--idc-color-primary);
	font-family: var(--idc-font-body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

.idc-author-story-card__text {
	margin: 0;
	color: #343945;
	font-family: var(--idc-font-body);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.55;
}

.idc-author-story-card__link {
	display: inline-flex;
	gap: 0.55rem;
	align-items: center;
	margin-top: auto;
	color: var(--idc-color-primary);
	font-family: var(--idc-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.idc-author-story-card__link:hover {
	color: var(--idc-color-primary-hover);
}

@media (max-width: 1100px) {
	.idc-author-works {
		width: min(100% - 3rem, 1320px);
	}

	.idc-author-stories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.idc-author-stories__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.idc-author-stories__heading h2 {
		font-size: 3rem;
	}

	.idc-author-stories__heading a {
		margin-bottom: 0;
	}
}

@media (max-width: 620px) {
	.idc-author-works {
		width: min(100% - 1rem, 1320px);
		margin-top: 2.4rem;
	}

	.idc-author-stories__heading h2 {
		font-size: 2.45rem;
	}

	.idc-author-stories__heading p {
		font-size: 1rem;
	}

	.idc-author-stories__grid {
		grid-template-columns: 1fr;
	}

	.idc-author-story-card__cover {
		margin: 1rem 1rem 0;
	}
}
/* Mobile MVP: keep all author works visible without turning the page into a long cover list. */
@media (max-width: 620px) {
	.idc-author-stories__grid {
		gap: 0.85rem;
	}

	.idc-author-story-card {
		display: grid;
		grid-template-columns: minmax(6.6rem, 29%) minmax(0, 1fr);
		min-height: 11rem;
	}

	.idc-author-story-card__cover {
		align-self: stretch;
		width: 100%;
		height: 100%;
		min-height: 11rem;
		margin: 0;
		aspect-ratio: auto;
		border-radius: 8px 0 0 8px;
		box-shadow: none;
	}

	.idc-author-story-card__placeholder {
		padding: 2.6rem 0.55rem 0.7rem;
	}

	.idc-author-story-card__placeholder strong {
		font-size: 0.95rem;
		line-height: 1.08;
	}

	.idc-author-story-card__placeholder em,
	.idc-author-story-card__placeholder small {
		margin-top: 0.42rem;
		font-size: 0.58rem;
		line-height: 1.15;
	}

	.idc-author-story-card__status {
		top: 0.5rem;
		left: 0.5rem;
		gap: 0.3rem;
		max-width: calc(100% - 1rem);
		min-height: 1.75rem;
		padding: 0.35rem 0.45rem;
		border-radius: 6px;
		font-size: 0.68rem;
		line-height: 1.05;
	}

	.idc-author-story-card__status > span {
		width: 0.8rem;
		height: 0.8rem;
	}

	.idc-author-story-card__body {
		gap: 0.45rem;
		padding: 0.85rem 0.95rem 0.9rem;
	}

	.idc-author-story-card__body h3 {
		display: -webkit-box;
		overflow: hidden;
		font-size: 1.35rem;
		line-height: 1.08;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.idc-author-story-card__meta {
		gap: 0.35rem;
		font-size: 0.78rem;
		line-height: 1.25;
	}

	.idc-author-story-card__text {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.86rem;
		line-height: 1.35;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.idc-author-story-card__link {
		margin-top: 0.1rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 380px) {
	.idc-author-story-card {
		grid-template-columns: 6.15rem minmax(0, 1fr);
	}

	.idc-author-story-card__body {
		padding: 0.75rem 0.8rem;
	}

	.idc-author-story-card__body h3 {
		font-size: 1.25rem;
	}
}
