/*
 * MyCartak Editorial System 0.3.0
 *
 * Editorial selectors are scoped to the article wrapper or the post editor.
 * The existing .mycartak-finder component remains owned by mycartak-core.
 */

.mycartak-editorial-skin,
.editor-styles-wrapper {
	--mycartak-editorial-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--mycartak-editorial-ink: #172033;
	--mycartak-editorial-muted: #4b5565;
	--mycartak-editorial-border: #d9e2f0;
	--mycartak-editorial-surface: #f7f9fc;
	--mycartak-editorial-link: #0b57d0;
	--mycartak-editorial-accent: #1d5f8a;
	--mycartak-editorial-accent-soft: #eef6fb;
	--mycartak-editorial-radius: 12px;
	--mycartak-editorial-width: 720px;
}

.mycartak-editorial-skin .entry-title {
	max-width: var(--mycartak-editorial-width);
	margin-inline: auto;
	color: var(--mycartak-editorial-ink);
	font-family: var(--mycartak-editorial-font);
	font-size: clamp(2rem, 1.65rem + 1.25vw, 2.625rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.28;
	text-wrap: balance;
	word-break: keep-all;
}

.mycartak-editorial-skin .entry-meta {
	max-width: var(--mycartak-editorial-width);
	margin: 12px auto 24px;
	color: var(--mycartak-editorial-muted);
	font-family: var(--mycartak-editorial-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

/*
 * Keep the post heading first and align the featured image with the 720px
 * article/finder column. The order rules also act as a visual fallback if a
 * future GeneratePress version changes the featured-image hook location.
 */
.mycartak-editorial-skin.single-post article > .inside-article {
	display: flex;
	flex-direction: column;
}

.mycartak-editorial-skin.single-post
	article
	> .inside-article
	> .entry-header {
	order: 1;
}

.mycartak-editorial-skin.single-post
	article
	> .inside-article
	> .featured-image.page-header-image-single {
	order: 2;
	width: 100%;
	max-width: var(--mycartak-editorial-width);
	margin: 0 auto 2.2rem;
}

.mycartak-editorial-skin.single-post
	article
	> .inside-article
	> .featured-image.page-header-image-single
	img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: var(--mycartak-editorial-radius);
}

.mycartak-editorial-skin.single-post
	article
	> .inside-article
	> .entry-content {
	order: 3;
}

.mycartak-editorial-skin.single-post
	article
	> .inside-article
	> .entry-meta {
	order: 4;
}

.mycartak-editorial-article {
	max-width: var(--mycartak-editorial-width);
	margin-inline: auto;
	color: var(--mycartak-editorial-ink);
	font-family: var(--mycartak-editorial-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.78;
	letter-spacing: -0.01em;
	text-align: left;
	font-synthesis: none;
}

.mycartak-editorial-article > :first-child {
	margin-top: 0;
}

.mycartak-editorial-article > p,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) p {
	margin: 0 0 1.22em;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.mycartak-editorial-article > h2,
.mycartak-editorial-article > h3,
.mycartak-editorial-article > h4,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) :is(h2, h3, h4) {
	color: var(--mycartak-editorial-ink);
	font-family: var(--mycartak-editorial-font);
	text-wrap: balance;
	word-break: keep-all;
	scroll-margin-top: 88px;
}

.mycartak-editorial-article > h2 {
	margin: 3.1em 0 0.82em;
	font-size: clamp(1.5rem, 1.35rem + 0.55vw, 1.8125rem);
	font-weight: 720;
	letter-spacing: -0.022em;
	line-height: 1.38;
}

.mycartak-editorial-article > h3 {
	margin: 2.15em 0 0.68em;
	font-size: clamp(1.25rem, 1.17rem + 0.3vw, 1.4375rem);
	font-weight: 700;
	letter-spacing: -0.017em;
	line-height: 1.45;
}

.mycartak-editorial-article > h4 {
	margin: 1.8em 0 0.58em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.55;
}

.mycartak-editorial-article > ul,
.mycartak-editorial-article > ol {
	margin: 0 0 1.45em;
	padding-inline-start: 1.4em;
}

.mycartak-editorial-article > :is(ul, ol) li {
	margin: 0 0 0.48em;
	padding-inline-start: 0.12em;
}

.mycartak-editorial-article > :is(ul, ol) li::marker {
	color: var(--mycartak-editorial-accent);
	font-weight: 700;
}

.mycartak-editorial-article > p a,
.mycartak-editorial-article > :is(ul, ol) a,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) a,
.mycartak-editorial-article > figure a {
	color: var(--mycartak-editorial-link);
	text-decoration-line: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	text-decoration-skip-ink: auto;
}

.mycartak-editorial-article > p a:hover,
.mycartak-editorial-article > p a:focus-visible,
.mycartak-editorial-article > :is(ul, ol) a:hover,
.mycartak-editorial-article > :is(ul, ol) a:focus-visible,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) a:hover,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) a:focus-visible {
	color: #073b8f;
	text-decoration-thickness: 0.12em;
}

.mycartak-editorial-article > p a:focus-visible,
.mycartak-editorial-article > :is(ul, ol) a:focus-visible,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) a:focus-visible,
.mycartak-editorial-article > figure a:focus-visible {
	outline: 3px solid rgba(11, 87, 208, 0.28);
	outline-offset: 3px;
	border-radius: 2px;
}

.mycartak-editorial-article > p strong,
.mycartak-editorial-article > :is(ul, ol) strong,
.mycartak-editorial-article > .wp-block-group:not(.mycartak-finder) strong,
.mycartak-editorial-article > .wp-block-table strong {
	font-weight: 750;
}

.mycartak-editorial-article > p em,
.mycartak-editorial-article > :is(ul, ol) em {
	font-style: normal;
	font-weight: 600;
}

.mycartak-editorial-article > p mark,
.mycartak-editorial-article > :is(ul, ol) mark {
	padding: 0.08em 0.18em;
	color: var(--mycartak-editorial-ink);
	background: #fff2a8;
	border-radius: 3px;
}

.mycartak-editorial-article > hr {
	width: 100%;
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--mycartak-editorial-border);
}

.mycartak-editorial-article > .has-small-font-size {
	color: var(--mycartak-editorial-muted);
	font-size: 14px !important;
	line-height: 1.65;
}

/* Existing content compatibility during the staged migration. */
.mycartak-editorial-article > .mycartak-article__lead {
	margin: 1.65em 0;
	padding: 22px 24px;
	border: 1px solid var(--mycartak-editorial-border);
	border-radius: var(--mycartak-editorial-radius);
	background: #ffffff;
	box-shadow: none;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.68;
}

.mycartak-editorial-article > .mycartak-article__lead:last-child {
	margin-bottom: 0;
}

.mycartak-editorial-article > blockquote {
	margin: 1.65em 0;
	padding: 22px 24px;
	border: 1px solid #dfe4ec;
	border-radius: var(--mycartak-editorial-radius);
	background: #f8fafc;
	color: #344054;
	font-size: 16.5px;
	font-style: normal;
	line-height: 1.68;
}

.mycartak-editorial-article > blockquote p:last-child {
	margin-bottom: 0;
}

.mycartak-editorial-article > figure.wp-block-embed {
	margin: 1.85em 0 0;
	overflow: hidden;
	border-radius: var(--mycartak-editorial-radius);
	background: #000000;
	box-shadow: 0 0.5rem 1.5rem rgba(23, 32, 51, 0.08);
}

.mycartak-editorial-article > .wp-block-buttons {
	margin: 1.65em 0 2em;
}

.mycartak-editorial-article > .wp-block-buttons .wp-block-button__link {
	border-radius: 10px;
	background: #155eef;
	font-size: 16px;
	font-weight: 720;
}

/* Keep the finder spacing in the article rhythm without restyling its UI. */
.mycartak-editorial-article > .mycartak-finder {
	margin-top: 1.75em;
	margin-bottom: 2.4em;
	font-size: 16px;
	line-height: 1.55;
	letter-spacing: normal;
}

/*
 * A quiet, desktop-only table of contents that occupies the unused side
 * gutter instead of reducing the 720px reading column. JavaScript adds the
 * markup only when at least three article headings are available.
 */
.mycartak-floating-toc {
	display: none;
}

@media (min-width: 1440px) {
	.mycartak-floating-toc {
		position: fixed;
		top: clamp(104px, 19vh, 176px);
		right: max(16px, calc((100vw - 1180px) / 2));
		z-index: 20;
		display: block;
		width: 220px;
		max-height: min(62vh, 520px);
		padding: 15px 14px 14px;
		overflow: auto;
		color: #344054;
		background: rgba(255, 255, 255, 0.74);
		border: 1px solid rgba(148, 163, 184, 0.34);
		border-radius: 12px;
		box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		opacity: 0.64;
		transition: opacity 160ms ease, box-shadow 160ms ease;
		scrollbar-width: thin;
		scrollbar-color: rgba(71, 84, 103, 0.28) transparent;
	}

	.mycartak-floating-toc:hover,
	.mycartak-floating-toc:focus-within {
		box-shadow: 0 10px 28px rgba(23, 32, 51, 0.11);
		opacity: 0.96;
	}

	.mycartak-floating-toc__title {
		display: block;
		margin: 0 0 9px;
		color: #172033;
		font-family: var(--mycartak-editorial-font);
		font-size: 13px;
		font-weight: 750;
		letter-spacing: -0.01em;
		line-height: 1.4;
	}

	.mycartak-floating-toc__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.mycartak-floating-toc__item {
		margin: 0;
		padding: 0;
	}

	.mycartak-floating-toc__item--level-3 {
		padding-left: 10px;
	}

	.mycartak-floating-toc__link {
		display: block;
		padding: 5px 7px;
		color: #475467;
		border-left: 2px solid transparent;
		border-radius: 0 6px 6px 0;
		font-family: var(--mycartak-editorial-font);
		font-size: 12.5px;
		font-weight: 560;
		letter-spacing: -0.012em;
		line-height: 1.45;
		text-decoration: none;
		word-break: keep-all;
		overflow-wrap: break-word;
		transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
	}

	.mycartak-floating-toc__link:hover,
	.mycartak-floating-toc__link:focus-visible {
		color: #0b57d0;
		background: rgba(238, 246, 251, 0.86);
		outline: none;
	}

	.mycartak-floating-toc__link.is-active {
		color: #174f78;
		background: rgba(238, 246, 251, 0.82);
		border-left-color: #1d5f8a;
		font-weight: 700;
	}
}

/* Shared decorated block shell. */
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	:is(
		.is-style-mycartak-answer,
		.is-style-mycartak-note,
		.is-style-mycartak-checklist,
		.is-style-mycartak-references
	) {
	margin-top: 1.65em;
	margin-bottom: 1.65em;
	padding: 22px 24px;
	border: 1px solid var(--mycartak-editorial-border);
	border-radius: var(--mycartak-editorial-radius);
	background: var(--mycartak-editorial-surface);
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.wp-block-group[class*="is-style-mycartak-"]
	> .wp-block-group__inner-container {
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	:is(.is-style-mycartak-note, .is-style-mycartak-checklist)
	> :is(h2, h3):first-child,
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	:is(.is-style-mycartak-note, .is-style-mycartak-checklist)
	> .wp-block-group__inner-container
	> :is(h2, h3):first-child {
	margin: 0 0 0.55em;
	color: var(--mycartak-editorial-ink);
	font-family: var(--mycartak-editorial-font);
	font-size: 20px;
	font-weight: 720;
	letter-spacing: -0.018em;
	line-height: 1.4;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	:is(
		.is-style-mycartak-answer,
		.is-style-mycartak-note,
		.is-style-mycartak-checklist,
		.is-style-mycartak-references
	)
	p:last-child {
	margin-bottom: 0;
}

/* Compact Q/A opening. Q and A are visual labels only. */
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-answer.mycartak-qa-summary {
	border-color: #d9e2f0;
	background: #ffffff;
	color: var(--mycartak-editorial-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.68;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-qa-summary
	:is(.mycartak-qa-question, .mycartak-qa-answer) {
	display: block;
	position: relative;
	min-width: 0;
	padding-left: 2.15em;
	word-break: keep-all;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-qa-summary
	.mycartak-qa-question {
	font-weight: 750;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-qa-summary
	.mycartak-qa-question::before {
	position: absolute;
	top: 0;
	left: 0;
	color: #b42318;
	content: "Q";
	font-weight: 800;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-qa-summary
	.mycartak-qa-answer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e3e9f2;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-qa-summary
	.mycartak-qa-answer::before {
	position: absolute;
	top: 14px;
	left: 0;
	color: #175cd3;
	content: "A";
	font-weight: 800;
}

/* Neutral explanation card for fitment notes and exceptions. */
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-note {
	border-color: #dfe4ec;
	background: #f8fafc;
	box-shadow: none;
	color: var(--mycartak-editorial-ink);
	font-size: 16.5px;
	line-height: 1.68;
}

/* Vehicle specification table plus a safe fallback for pre-migration tables. */
.mycartak-editorial-article > .wp-block-table,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table {
	margin-top: 1.65em;
	margin-bottom: 1.65em;
	overflow-x: auto;
	border: 1px solid var(--mycartak-editorial-border);
	border-radius: var(--mycartak-editorial-radius);
	background: #ffffff;
	-webkit-overflow-scrolling: touch;
}

.mycartak-editorial-article > .wp-block-table table,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table table,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border-collapse: collapse;
	color: var(--mycartak-editorial-ink);
	font-size: 15.5px;
	line-height: 1.58;
}

.mycartak-editorial-article > .wp-block-table :is(th, td),
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table :is(th, td),
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table :is(th, td) {
	padding: 13px 14px;
	border: 0;
	border-bottom: 1px solid var(--mycartak-editorial-border);
	text-align: left;
	vertical-align: top;
}

.mycartak-editorial-article > .wp-block-table th,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table th,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table th {
	color: var(--mycartak-editorial-ink);
	background: var(--mycartak-editorial-accent-soft);
	font-weight: 720;
}

.mycartak-editorial-article > .wp-block-table tbody tr:nth-child(even) td,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table tbody tr:nth-child(even) td,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table tbody tr:nth-child(even) td {
	background: #fbfcfd;
}

.mycartak-editorial-article > .wp-block-table tr:last-child > *,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table tr:last-child > *,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table tr:last-child > * {
	border-bottom: 0;
}

.mycartak-editorial-article > .wp-block-table figcaption,
.mycartak-editorial-article .wp-block-table.is-style-mycartak-spec-table figcaption,
.editor-styles-wrapper .wp-block-table.is-style-mycartak-spec-table figcaption {
	margin: 0;
	padding: 10px 14px;
	color: var(--mycartak-editorial-muted);
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
}

/* Independent checks use a check; ordered procedures use a number. */
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist {
	position: relative;
	border-color: #cfdcf0;
	background: #f7faff;
	box-shadow: none;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist::before {
	display: flex;
	width: max-content;
	min-height: 24px;
	margin-bottom: 10px;
	padding: 3px 9px 4px;
	align-items: center;
	color: #175cd3;
	background: #eaf2ff;
	border: 1px solid #bfd1f2;
	border-radius: 999px;
	content: "확인";
	font-family: var(--mycartak-editorial-font);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist
	:is(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist
	li {
	display: block;
	position: relative;
	margin-bottom: 0.7em;
	padding-left: 2em;
	list-style: none;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist
	li:last-child {
	margin-bottom: 0;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist
	li::marker {
	content: "" !important;
	font-size: 0;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist
	li::before {
	position: absolute;
	top: 0.28em;
	left: 0;
	display: grid;
	width: 1.25em;
	height: 1.25em;
	place-items: center;
	color: #175cd3;
	background: #ffffff;
	border: 1px solid #a9c1ea;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 800;
	line-height: 1;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist:not(.mycartak-action-sequence)
	ul
	li::before {
	content: "✓";
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist.mycartak-action-sequence
	ol {
	counter-reset: mycartak-action-step;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-checklist.mycartak-action-sequence
	ol
	li::before {
	content: counter(mycartak-action-step);
	counter-increment: mycartak-action-step;
	font-size: 0.72em;
	font-variant-numeric: tabular-nums;
}

/* One exterior box for related posts and official sources. */
:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.is-style-mycartak-references {
	border-color: #d9e2f0;
	background: #ffffff;
	box-shadow: none;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section
	> .wp-block-group__inner-container {
	min-height: 0;
	margin: 0;
	padding: 0;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section
	+ .mycartak-reference-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section::before {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 9px 4px;
	color: var(--mycartak-editorial-muted);
	background: #f1f4f8;
	border: 1px solid #dce3ec;
	border-radius: 999px;
	font-family: var(--mycartak-editorial-font);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-related::before {
	content: "관련 글";
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-sources::before {
	content: "공식 자료";
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section
	:is(ul, ol) {
	margin: 10px 0 0;
	padding-inline-start: 1.35em;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section
	li {
	margin-bottom: 0.45em;
}

:is(.mycartak-editorial-article, .editor-styles-wrapper)
	.mycartak-reference-section
	li:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.mycartak-editorial-article *,
	.mycartak-editorial-article *::before,
	.mycartak-editorial-article *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (max-width: 680px) {
	.mycartak-editorial-skin .entry-title {
		font-size: clamp(1.9rem, 8.3vw, 2.15rem);
		line-height: 1.32;
	}

	.mycartak-editorial-article {
		font-size: 17px;
		line-height: 1.82;
	}

	.mycartak-editorial-article > h2 {
		margin-top: 2.75em;
	}

	.mycartak-editorial-article > .mycartak-article__lead,
	.mycartak-editorial-article > blockquote,
	:is(.mycartak-editorial-article, .editor-styles-wrapper)
		:is(
			.is-style-mycartak-answer,
			.is-style-mycartak-note,
			.is-style-mycartak-checklist,
			.is-style-mycartak-references
		) {
		padding: 18px;
	}

	:is(.mycartak-editorial-article, .editor-styles-wrapper)
		.is-style-mycartak-answer.mycartak-qa-summary {
		font-size: 17px;
		line-height: 1.72;
	}

	:is(.mycartak-editorial-article, .editor-styles-wrapper)
		.mycartak-qa-summary
		.mycartak-qa-answer {
		margin-top: 12px;
		padding-top: 12px;
	}

	:is(.mycartak-editorial-article, .editor-styles-wrapper)
		.mycartak-qa-summary
		.mycartak-qa-answer::before {
		top: 12px;
	}

	.mycartak-editorial-article > .wp-block-table table,
	.mycartak-editorial-article
		.wp-block-table.is-style-mycartak-spec-table
		table {
		font-size: 15px;
	}
}

@media print {
	.mycartak-floating-toc {
		display: none !important;
	}

	.mycartak-editorial-article {
		max-width: none;
		color: #000000;
		font-size: 11pt;
		line-height: 1.55;
	}

	.mycartak-editorial-article a {
		color: #000000;
		text-decoration: none;
	}
}

/*
 * Post listing cards
 * Text-only cards are the safe default. Adding a featured image automatically
 * switches the card to the same compact two-column pattern used by the main
 * editorial site.
 */
.mycartak-editorial-index {
	--mycartak-index-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--mycartak-index-ink: #172033;
	--mycartak-index-muted: #4b5565;
	--mycartak-index-border: #e2e8f0;
	--mycartak-index-link: #0b57d0;
}

.mycartak-editorial-index .site-main > article {
	margin-bottom: 18px;
}

.mycartak-editorial-index .site-main > article .inside-article {
	padding: 26px 28px;
	border: 1px solid var(--mycartak-index-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(23, 32, 51, 0.05);
}

.mycartak-editorial-index .site-main > article.has-post-thumbnail .inside-article {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-areas:
		"image header"
		"image summary";
	column-gap: 24px;
	row-gap: 12px;
	align-items: start;
}

.mycartak-editorial-index .site-main > article .entry-header {
	grid-area: header;
	min-width: 0;
}

.mycartak-editorial-index .site-main > article .entry-title {
	margin: 0;
	color: var(--mycartak-index-ink);
	font-family: var(--mycartak-index-font);
	font-size: clamp(1.35rem, 1.16rem + 0.48vw, 1.6rem);
	font-weight: 730;
	letter-spacing: -0.022em;
	line-height: 1.38;
	text-wrap: balance;
	word-break: keep-all;
}

.mycartak-editorial-index .site-main > article .entry-title a {
	color: inherit;
	text-decoration: none;
}

.mycartak-editorial-index .site-main > article .entry-title a:hover,
.mycartak-editorial-index .site-main > article .entry-title a:focus-visible {
	color: var(--mycartak-index-link);
}

.mycartak-editorial-index .site-main > article .entry-title a:focus-visible {
	outline: 3px solid rgba(11, 87, 208, 0.24);
	outline-offset: 3px;
	border-radius: 3px;
}

.mycartak-editorial-index .site-main > article .entry-header .entry-meta {
	margin-top: 8px;
	color: var(--mycartak-index-muted);
	font-family: var(--mycartak-index-font);
	font-size: 13.5px;
	line-height: 1.5;
}

.mycartak-editorial-index .site-main > article .entry-header .byline {
	display: none;
}

.mycartak-editorial-index .site-main > article .post-image {
	grid-area: image;
	width: 100%;
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 10px;
	background: #eef2f7;
}

.mycartak-editorial-index .site-main > article .post-image a,
.mycartak-editorial-index .site-main > article .post-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.mycartak-editorial-index .site-main > article .post-image img {
	object-fit: contain;
	object-position: center;
}

.mycartak-editorial-index .site-main > article .entry-summary,
.mycartak-editorial-index .site-main > article .entry-content {
	grid-area: summary;
	min-width: 0;
	margin: 0;
	color: var(--mycartak-index-muted);
	font-family: var(--mycartak-index-font);
	font-size: 15.5px;
	line-height: 1.7;
}

.mycartak-editorial-index .site-main > article .entry-summary p,
.mycartak-editorial-index .site-main > article .entry-content p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.mycartak-editorial-index .site-main > article .read-more,
.mycartak-editorial-index .site-main > article footer.entry-meta {
	display: none;
}

@media (max-width: 768px) {
	.mycartak-editorial-index .site-main > article {
		margin-bottom: 14px;
	}

	.mycartak-editorial-index .site-main > article .inside-article {
		padding: 18px;
		border-radius: 12px;
	}

	.mycartak-editorial-index .site-main > article.has-post-thumbnail .inside-article {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"header"
			"image"
			"summary";
		row-gap: 14px;
	}

	.mycartak-editorial-index .site-main > article .entry-title {
		font-size: 1.375rem;
		line-height: 1.42;
	}

	.mycartak-editorial-index .site-main > article .entry-header .entry-meta {
		margin-top: 6px;
	}

	.mycartak-editorial-index .site-main > article .entry-summary,
	.mycartak-editorial-index .site-main > article .entry-content {
		font-size: 15px;
		line-height: 1.68;
	}
}
