/*
 * Powerstone-only presentation candidate.
 * Every selector is rooted at .lani-powerstone-hub so shared Section
 * Platform styles remain untouched.
 */

.lani-powerstone-hub {
	--lani-powerstone-blue: #1769aa;
	--lani-powerstone-blue-dark: #124e80;
	--lani-powerstone-blue-soft: #edf6ff;
	--lani-powerstone-border: #d6e5f1;
	color: #233241;
}

.lani-powerstone-hub__inner {
	box-sizing: border-box;
	width: min(1120px, calc(100% - 32px));
	margin-inline: auto;
}

.lani-powerstone-hub__header {
	margin-block: 0 28px;
	padding-block: 34px 30px;
	background: linear-gradient(135deg, var(--lani-powerstone-blue-dark), var(--lani-powerstone-blue));
	color: #fff;
}

.lani-powerstone-hub__header h1 {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	line-height: 1.35;
	letter-spacing: .04em;
}

.lani-powerstone-hub__custom {
	margin-block: 0 42px;
}

.lani-powerstone-hub__custom > * {
	box-sizing: border-box;
}

.lani-powerstone-hub__custom a {
	color: var(--lani-powerstone-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.lani-powerstone-hub__custom h2,
.lani-powerstone-hub__custom h3,
.lani-powerstone-hub__custom h4 {
	color: var(--lani-powerstone-blue-dark);
	line-height: 1.5;
}

.lani-powerstone-hub__custom h2 {
	margin-block: 2.2em .8em;
	padding: .5em .7em;
	border-left: 5px solid var(--lani-powerstone-blue);
	background: var(--lani-powerstone-blue-soft);
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.lani-powerstone-hub__custom h3 {
	margin-block: 1.8em .65em;
	padding-bottom: .35em;
	border-bottom: 2px solid var(--lani-powerstone-border);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lani-powerstone-hub__custom p,
.lani-powerstone-hub__custom li {
	line-height: 1.85;
}

.lani-powerstone-hub__custom .power-stones {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
	gap: 12px;
	margin: 1.4rem 0 2rem;
	padding: 0;
	list-style: none;
}

.lani-powerstone-hub__custom .power-stones > * {
	min-width: 0;
}

.lani-powerstone-hub__custom .stone {
	box-sizing: border-box;
	min-height: 100%;
	padding: 10px;
	border: 1px solid var(--lani-powerstone-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(18 78 128 / 8%);
	text-align: center;
}

.lani-powerstone-hub__custom .stone a {
	display: block;
	font-weight: 700;
	line-height: 1.45;
}

.lani-powerstone-hub__custom .stone img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 180px;
	margin-inline: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.lani-powerstone-hub__custom .stone p {
	margin: .55rem 0 0;
	font-size: .9rem;
}

.lani-powerstone-hub__custom .scrollable-table,
.lani-powerstone-hub__custom .noscroll_table01,
.lani-powerstone-hub__custom .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	margin-block: 1.3rem 2rem;
}

.lani-powerstone-hub__custom table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: .95rem;
}

.lani-powerstone-hub__custom th,
.lani-powerstone-hub__custom td {
	padding: .65em .75em;
	border: 1px solid var(--lani-powerstone-border);
	vertical-align: top;
}

.lani-powerstone-hub__custom th {
	background: var(--lani-powerstone-blue-soft);
	color: var(--lani-powerstone-blue-dark);
	font-weight: 700;
}

.lani-powerstone-hub__custom img {
	max-width: 100%;
	height: auto;
}

.lani-powerstone-hub__articles {
	margin-block: 0 56px;
}

.lani-powerstone-hub__articles > h2 {
	margin: 0 0 18px;
	padding-bottom: .55em;
	border-bottom: 3px solid var(--lani-powerstone-blue);
	color: var(--lani-powerstone-blue-dark);
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.lani-powerstone-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.lani-powerstone-hub__card {
	min-width: 0;
	border: 1px solid var(--lani-powerstone-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(18 78 128 / 7%);
	overflow: hidden;
}

.lani-powerstone-hub__card .lani-section-archive-card__link {
	display: flex;
	height: 100%;
	flex-direction: column;
	border: 0;
	border-radius: 0;
	color: inherit;
	text-decoration: none;
}

.lani-powerstone-hub__card .lani-section-archive-card__image {
	aspect-ratio: auto;
	height: 180px;
	background: transparent;
}

.lani-powerstone-hub__card .lani-section-archive-card__image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.lani-powerstone-hub__card .lani-section-archive-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 15px;
}

.lani-powerstone-hub__card .lani-section-archive-card__title {
	color: var(--lani-powerstone-blue-dark);
	font-weight: 700;
	line-height: 1.55;
}

.lani-powerstone-hub__card .lani-section-archive-card__excerpt {
	color: #53616d;
	font-size: .9rem;
	line-height: 1.6;
}

.lani-powerstone-hub__card .lani-section-archive-card__date {
	margin-top: auto;
	color: #6c7b87;
	font-size: .8rem;
}

.lani-powerstone-hub__pagination {
	margin-top: 30px;
}

.lani-powerstone-hub__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lani-powerstone-hub__pagination a,
.lani-powerstone-hub__pagination span {
	display: inline-flex;
	min-width: 2.35em;
	min-height: 2.35em;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: .35em .65em;
	border: 1px solid var(--lani-powerstone-border);
	border-radius: 5px;
	color: var(--lani-powerstone-blue-dark);
	text-decoration: none;
}

.lani-powerstone-hub__pagination .current {
	border-color: var(--lani-powerstone-blue);
	background: var(--lani-powerstone-blue);
	color: #fff;
}

.lani-powerstone-hub__dependency-error {
	padding: 1rem;
	border: 1px solid #e0b4b4;
	background: #fff7f7;
	color: #8a2727;
}

@media (max-width: 760px) {
	.lani-powerstone-hub__inner {
		width: min(100% - 24px, 1120px);
	}

	.lani-powerstone-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.lani-powerstone-hub__card .lani-section-archive-card__image,
	.lani-powerstone-hub__card .lani-section-archive-card__image img {
		height: 145px;
	}
}

@media (max-width: 460px) {
	.lani-powerstone-hub__custom .power-stones {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lani-powerstone-hub__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
