/*
 * K1 Home v1 (22/10/2026) — "Hồ sơ tài sản số" hub. Section order per
 * docs/v1-ia.md: positioning → three lines → proof → contact.
 * Composed from the approved Journal A primitives (Newsreader italic labels,
 * hairline rules, numbered rows) — no new palette, no font change, tokens.css
 * and the rail untouched (rail width: tokens.css, 260px at 1200–1439px since K1-UX P2).
 * K1-UX 23/10/2026: row labels and notes are Manrope now (P3); see the
 * P1/P3/P4 block at the end of this file. Scoped under .kts-hx. Mobile-first (390).
 */

.kts-hx {
	--hx-soft: #3F4440;
	--hx-meta: #656A64;
	--hx-rule: rgba(21, 23, 22, 0.12);
	padding-top: var(--kts-space-8);
	color: var(--kts-ink-black);
	font-family: var(--kts-font-sans);
}

.kts-hx a:focus-visible {
	outline: 2px solid var(--kts-focus-ring);
	outline-offset: 3px;
}

/* ---------- 1 · positioning ---------- */

.kts-hx-hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: var(--kts-space-8) 0 var(--kts-space-16);
}

.kts-hx-hero__statement {
	margin: 0;
	max-width: 24em;
	font-family: var(--kts-font-serif);
	font-size: 32px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: -0.015em;
}

.kts-hx-hero__who {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-style: italic;
	font-size: 19px;
	line-height: 1.5;
	color: var(--hx-soft);
}

.kts-hx-btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 4px;
	background: var(--kts-ink-black);
	color: var(--kts-off-white);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.kts-hx-btn:hover {
	background: var(--kts-deep-olive);
	color: var(--kts-off-white);
}

/* ---------- 2 · three lines, 4 · proof (same row grammar) ---------- */

.kts-hx-section {
	margin-top: 56px;
}

.kts-hx-section__title {
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--kts-ink-black);
	font-family: var(--kts-font-serif);
	font-size: 24px;
	font-weight: 400;
	font-style: italic;
}

.kts-hx-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 0;
	border-bottom: 1px solid var(--hx-rule);
	color: inherit;
	text-decoration: none;
}

.kts-hx-row__label {
	font-family: var(--kts-font-serif);
	font-style: italic;
	font-size: 17px;
	line-height: 1.3;
	color: var(--kts-deep-olive);
}

.kts-hx-row__title {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--kts-ink-black);
}

.kts-hx-row__text {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-size: 19px;
	line-height: 1.55;
	color: var(--hx-soft);
}

.kts-hx-row__go {
	margin-top: 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--kts-deep-olive);
}

a.kts-hx-row:hover .kts-hx-row__title,
a.kts-hx-row:focus-visible .kts-hx-row__title {
	color: var(--kts-deep-olive);
}

/* ---------- 5 · contact ---------- */

.kts-hx-contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 64px;
	padding: 32px 0 8px;
	border-top: 1px solid var(--kts-ink-black);
}

.kts-hx-contact__text {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-size: 25px;
	line-height: 1.42;
}

.kts-hx-contact__mail {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 16px;
	font-weight: 600;
	color: var(--kts-ink-black);
}

@media (min-width: 768px) {
	.kts-hx-hero__statement {
		font-size: 40px;
	}
}

@media (min-width: 1200px) {
	.kts-hx {
		max-width: 1000px;
		padding: 24px 24px 0 8px;
	}

	.kts-hx-hero {
		gap: 28px;
		padding-bottom: 24px;
	}

	.kts-hx-hero__statement {
		font-size: clamp(44px, 3.7vw, 56px);
		line-height: 1.15;
		letter-spacing: -0.02em;
	}

	.kts-hx-hero__who {
		font-size: 22px;
	}

	.kts-hx-section {
		margin-top: 80px;
	}

	.kts-hx-section__title {
		padding-bottom: 16px;
		font-size: 28px;
	}

	.kts-hx-row {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		column-gap: 32px;
		align-items: baseline;
		padding: 32px 0;
	}

	.kts-hx-row__label {
		grid-row: 1 / span 3;
		font-size: 19px;
	}

	.kts-hx-row__title {
		grid-column: 2;
		font-size: 30px;
	}

	.kts-hx-row__text {
		grid-column: 2;
		font-size: 20px;
	}

	.kts-hx-row__go {
		grid-column: 2;
	}

	.kts-hx-contact {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 16px 40px;
		margin-top: 96px;
		padding: 40px 0 8px;
	}

	.kts-hx-contact__text {
		flex: 1 1 420px;
		font-size: 30px;
	}
}

/* ---------- K3 (22/10/2026): v1 sub-pages — lists, note, address line ---------- */

.kts-hx-list {
	margin: 0;
	padding: 0 0 0 1.1em;
	font-family: var(--kts-font-serif);
	font-size: 19px;
	line-height: 1.55;
	color: var(--hx-soft);
}

.kts-hx-list li {
	padding: 10px 0 10px 4px;
	border-bottom: 1px solid var(--hx-rule);
}

.kts-hx-section .kts-hx-list li:first-child {
	padding-top: 22px;
}

.kts-hx-contact__mail:not(a) {
	cursor: text;
	user-select: all;
}

.kts-hx-note {
	margin: 32px 0 0;
	font-family: var(--kts-font-serif);
	font-style: italic;
	font-size: 17px;
	line-height: 1.5;
	color: var(--hx-meta);
}

.kts-hx-row > .kts-hx-row__go {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

@media (min-width: 1200px) {
	.kts-hx-list {
		font-size: 20px;
	}

	.kts-hx-section .kts-hx-list li:first-child {
		padding-top: 28px;
	}

	.kts-hx-row > .kts-hx-row__text:only-child,
	.kts-hx-row > .kts-hx-row__text:first-child:not(:only-child) {
		grid-column: 2;
	}
}

/* ---------- K1-UX (23/10/2026) — docs/ux-review-2026-10-23.md D1–D7 ----------
 * Inside the lock: same palette tokens, Newsreader + Manrope only, rail
 * untouched. Newsreader stays for headings, row titles and the quote; long
 * reading text moves to Manrope so the page stops reading like a form. */

.kts-hx {
	--hx-body: color-mix(in srgb, var(--kts-ink-black) 86%, var(--kts-off-white));
}

/* D2 · reading text in Manrope, upright */
.kts-hx-hero__who,
.kts-hx-hero__lead,
.kts-hx-row__text,
.kts-hx-list {
	font-family: var(--kts-font-sans);
	font-style: normal;
	font-size: 17px;
	line-height: 1.65;
	color: var(--hx-body);
}

/* D3 · stronger scale step, varied rhythm */
.kts-hx-hero__statement {
	font-size: 36px;
	line-height: 1.15;
}

.kts-hx-section {
	margin-top: 72px;
}

/* D1 · portrait + who */
.kts-hx-hero__me {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.kts-hx-portrait {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 1490;
	object-fit: cover;
	background: var(--kts-cream-deep);
}

.kts-hx-hero__name {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-size: 21px;
	line-height: 1.3;
	font-weight: 500;
}

.kts-hx-hero__lead {
	margin: 6px 0 0;
}

/* D3 · "Mình làm gì" as three cream panels instead of another ruled list */
.kts-hx-section--lines .kts-hx-section__title {
	border-bottom: 0;
	padding-bottom: 4px;
}

.kts-hx-section--lines .kts-hx-row {
	margin-top: 12px;
	padding: 20px;
	border-bottom: 0;
	background: var(--kts-cream-deep);
}

/* D5 · testimonial */
.kts-hx-quote {
	margin: 40px 0 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--kts-deep-olive);
}

.kts-hx-quote blockquote {
	margin: 0;
}

.kts-hx-quote p {
	margin: 0;
	font-family: var(--kts-font-serif);
	font-style: italic;
	font-size: 21px;
	line-height: 1.5;
	color: var(--kts-ink-black);
}

.kts-hx-quote figcaption {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: center;
	margin-top: 14px;
	font-size: 15px;
}

.kts-hx-quote__who {
	font-weight: 600;
}

.kts-hx-quote figcaption a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--kts-deep-olive);
	text-decoration: none;
}

/* D6 · Zalo first, big thumb target; email is the quiet second line */
.kts-hx-contact__alt {
	margin: 0;
	font-size: 16px;
	color: var(--hx-body);
}

.kts-hx-contact__alt .kts-hx-contact__mail {
	display: inline;
	min-height: 0;
}

@media (max-width: 767px) {
	.kts-hx-btn {
		align-self: stretch;
		min-height: 56px;
		font-size: 17px;
	}
}

/* D7 · light motion, never when the reader asks for less */
@media (prefers-reduced-motion: no-preference) {
	.kts-hx-hero > * {
		animation: kts-hx-rise 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.kts-hx-hero > :nth-child(2) { animation-delay: 70ms; }
	.kts-hx-hero > :nth-child(3) { animation-delay: 140ms; }
	.kts-hx-hero > :nth-child(n+4) { animation-delay: 210ms; }

	.kts-hx-btn {
		transition: background-color 150ms ease, transform 120ms ease;
	}

	.kts-hx-btn:active {
		transform: translateY(1px);
	}

	.kts-hx-row__go,
	.kts-hx-quote figcaption a {
		transition: transform 160ms ease;
	}

	a.kts-hx-row:hover .kts-hx-row__go,
	a.kts-hx-row:active .kts-hx-row__go,
	.kts-hx-quote figcaption a:hover {
		transform: translateX(4px);
	}
}

@keyframes kts-hx-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
	.kts-hx-hero__statement {
		font-size: 44px;
	}
}

@media (min-width: 1200px) {
	.kts-hx-hero__who,
	.kts-hx-hero__lead,
	.kts-hx-row__text,
	.kts-hx-list {
		font-size: 18px;
	}

	.kts-hx-section {
		margin-top: 96px;
	}

	/* Portrait sits right of the text column; __me dissolves into the grid. */
	.kts-hx-hero:has(.kts-hx-portrait) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 280px;
		column-gap: 56px;
		row-gap: 24px;
		align-content: start;
	}

	.kts-hx-hero:has(.kts-hx-portrait) > * {
		grid-column: 1;
	}

	.kts-hx-hero:has(.kts-hx-portrait) > .kts-hx-btn {
		justify-self: start;
	}

	.kts-hx-hero__statement {
		font-size: clamp(44px, 3.7vw, 56px);
	}

	.kts-hx-hero__me {
		display: contents;
	}

	.kts-hx-hero .kts-hx-portrait {
		grid-column: 2;
		grid-row: 1 / span 5;
	}

	.kts-hx-hero__name {
		font-size: 24px;
	}

	.kts-hx-section--lines {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.kts-hx-section--lines .kts-hx-section__title {
		grid-column: 1 / -1;
	}

	.kts-hx-section--lines .kts-hx-row {
		display: flex;
		margin-top: 0;
		padding: 24px;
	}

	.kts-hx-section--lines .kts-hx-row__title {
		font-size: 26px;
	}

	.kts-hx-section--lines .kts-hx-row__text {
		font-size: 17px;
	}

	.kts-hx-section--lines .kts-hx-row__go {
		margin-top: auto;
	}

	.kts-hx-section--case .kts-hx-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.kts-hx-section--case .kts-hx-row > * {
		grid-column: 1;
	}

	.kts-hx-quote {
		max-width: 760px;
		margin: 56px 0 0 232px;
	}

	.kts-hx-quote p {
		font-size: 24px;
	}
}

/* ---------- K1-UX P1/P3/P4 (Kaita approved 23/10/2026) ----------
 * P1 · warm primary CTA: signal-orange 75% + ink 25% (~#A65639) so the
 *      off-white button text passes WCAG AA (~4.8:1); hover stays deep olive.
 * P3 · Newsreader only at >=22px (headings, row titles, quote); small labels
 *      and notes move to Manrope. Journal Design A is not touched.
 * P4 · 8px radius (--kts-radius-sm) on the cream panels and the portrait. */
.kts-hx {
	--hx-cta: color-mix(in srgb, var(--kts-signal-orange) 75%, var(--kts-ink-black));
}

.kts-hx-btn {
	background: var(--hx-cta, var(--kts-ink-black));
}

.kts-hx-row__label,
.kts-hx-note {
	font-family: var(--kts-font-sans);
	font-style: normal;
	font-size: 15px;
	line-height: 1.45;
}

.kts-hx-row__label {
	font-weight: 600;
}

.kts-hx-hero__name,
.kts-hx-quote p {
	font-size: 22px;
}

.kts-hx-section--lines .kts-hx-row,
.kts-hx-portrait {
	border-radius: var(--kts-radius-sm);
}

@media (min-width: 1200px) {
	.kts-hx-hero__name {
		font-size: 24px;
	}

	.kts-hx-quote p {
		font-size: 24px;
	}
}


/* ---------- K1-ASSETS (23/10/2026): less text · Journal on Home · illustrations ----------
 * Same palette, Manrope under 22px, Newsreader for headings only, 8px radius on
 * images/panels (K1-UX P3/P4). Each Home section = 1 heading + <=2 sentences + 1 button. */

.kts-hx-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.kts-hx-block > .kts-hx-section__title {
	align-self: stretch;
}

.kts-hx-block__text {
	margin: 0;
	max-width: 40em;
	font-family: var(--kts-font-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--hx-body);
}

.kts-hx-block--panel {
	padding: 24px 20px 28px;
	border-radius: var(--kts-radius-sm);
	background: var(--kts-cream-deep);
}

.kts-hx-block--panel > .kts-hx-section__title {
	padding-bottom: 4px;
	border-bottom: 0;
}

.kts-hx-btn--ghost {
	background: transparent;
	color: var(--kts-ink-black);
	box-shadow: inset 0 0 0 1.5px var(--kts-ink-black);
}

.kts-hx-btn--ghost:hover {
	background: var(--kts-ink-black);
	color: var(--kts-off-white);
}

/* Quote now lives inside the proof block */
.kts-hx-block .kts-hx-quote {
	margin: 12px 0 0;
}

/* Illustrations (AI) + caption */
.kts-illus {
	margin: 0;
	width: 100%;
}

.kts-illus img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--kts-radius-sm);
	background: var(--kts-cream-deep);
}

.kts-illus__cap {
	margin-top: 8px;
	font-family: var(--kts-font-sans);
	font-size: 14px;
	line-height: 1.4;
	color: var(--hx-meta);
}

.kts-hx-illus--page {
	margin-top: 32px;
	max-width: 560px;
}

.kts-hx-illus--page img,
.kts-hx-illus--wide img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.kts-hx-illus--wide img {
	aspect-ratio: 16 / 9;
}

.kts-hx-illus--square img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.kts-hx-labstrip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

/* Video slot (hidden by PHP when assets/video/home.mp4 is missing) */
.kts-hx-video__el {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	aspect-ratio: 9 / 16;
	border-radius: var(--kts-radius-sm);
	background: var(--kts-ink-black);
}

/* Journal on Home */
.kts-hxj {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.kts-hxj > .kts-hx-section__title {
	align-self: stretch;
}

.kts-hxj__lead {
	margin: 0;
	font-family: var(--kts-font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--hx-body);
}

.kts-hxj-card {
	display: grid;
	gap: 14px;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.kts-hxj-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--kts-radius-sm);
	background: var(--kts-cream-deep);
}

.kts-hxj-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kts-hxj-card__ph {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.kts-hxj-card__ph img {
	width: 40px;
	height: auto;
	opacity: 0.5;
}

.kts-hxj-card__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kts-hxj-card__kicker {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--kts-deep-olive);
}

.kts-hxj-card__title {
	font-family: var(--kts-font-sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--kts-ink-black);
}

.kts-hxj-card__desc {
	font-size: 15px;
	line-height: 1.55;
	color: var(--hx-body);
}

.kts-hxj-card__meta {
	font-size: 14px;
	line-height: 1.4;
	color: var(--hx-meta);
}

.kts-hxj-card:hover .kts-hxj-card__title,
.kts-hxj-card:focus-visible .kts-hxj-card__title {
	color: var(--kts-deep-olive);
}

.kts-hxj-card--featured .kts-hxj-card__media {
	aspect-ratio: 16 / 10;
}

.kts-hxj-card--featured .kts-hxj-card__title {
	font-family: var(--kts-font-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
}

.kts-hxj-card--featured .kts-hxj-card__desc {
	font-size: 17px;
}

.kts-hxj-grid {
	display: grid;
	gap: 20px;
	width: 100%;
	margin-top: 8px;
}

.kts-hxj-card--compact {
	grid-template-columns: 104px minmax(0, 1fr);
	align-items: start;
}

.kts-hxj-card--compact .kts-hxj-card__media {
	aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
	.kts-hxj-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.kts-hxj-card--compact {
		grid-template-columns: minmax(0, 1fr);
	}

	.kts-hxj-card--compact .kts-hxj-card__media {
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 1200px) {
	.kts-hx-block--panel {
		padding: 32px 36px 36px;
	}

	.kts-hxj-card--featured {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 32px;
		align-items: center;
	}

	.kts-hxj-card--featured .kts-hxj-card__title {
		font-size: 32px;
	}

	.kts-hx-block__text,
	.kts-hxj__lead {
		font-size: 18px;
	}

	.kts-hx-labstrip {
		max-width: 780px;
	}
}

/* K1-ASSETS review fix: one short description, never more than 2 lines (3 on the featured card) */
.kts-hxj-card__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.kts-hxj-card--featured .kts-hxj-card__desc {
	-webkit-line-clamp: 3;
}

/* K1-ASSETS review fix: comfortable line length on wide screens; featured card without a cover stays slim */
.kts-hx-hero__who,
.kts-hx-row__text,
.kts-hx-list {
	max-width: 44em;
}

.kts-hxj-card--featured .kts-hxj-card__media:has(.kts-hxj-card__ph) {
	aspect-ratio: 16 / 5;
}
