.ghir-market-market-entry-page {
	background: #f4f6f8;
}

.ghir-market-market-entry-page .wp-site-blocks {
	min-height: 100vh;
}

.gm-market-entry {
	box-sizing: border-box;
	min-height: 70vh;
	padding: 40px 16px 64px;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Tahoma,
		Arial,
		sans-serif;
	color: #17212b;
}

.gm-market-entry *,
.gm-market-entry *::before,
.gm-market-entry *::after {
	box-sizing: border-box;
}

.gm-market-entry__container {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
}

.gm-market-entry__header {
	margin-bottom: 24px;
	padding: 32px;
	border: 1px solid #e2e7ec;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(23, 33, 43, 0.07);
}

.gm-market-entry__eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #75551f;
}

.gm-market-entry__title {
	margin: 0;
	font-size: clamp(27px, 5vw, 40px);
	line-height: 1.45;
	color: #17212b;
}

.gm-market-entry__description {
	max-width: 700px;
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.9;
	color: #5c6670;
}

.gm-market-entry__form {
	padding: 28px;
	border: 1px solid #e2e7ec;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(23, 33, 43, 0.06);
}

.gm-market-entry__status {
	margin-bottom: 22px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.8;
}

.gm-market-entry__status--error {
	border: 1px solid #e1b1b1;
	background: #fff1f1;
	color: #8c2525;
}

.gm-market-entry__status--loading {
	border: 1px solid #c9d5df;
	background: #f2f6f9;
	color: #354b5d;
}

.gm-market-entry__fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.gm-market-entry__fieldset +
.gm-market-entry__fieldset {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #e7ebef;
}

.gm-market-entry__legend {
	padding: 0;
	font-size: 19px;
	font-weight: 750;
	color: #17212b;
}

.gm-market-entry__legend span {
	color: #a22626;
}

.gm-market-entry__hint {
	margin: 8px 0 16px;
	font-size: 14px;
	line-height: 1.8;
	color: #66717b;
}

.gm-market-entry__choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.gm-market-entry__choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.gm-market-entry__choice-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.gm-market-entry__choice-content {
	display: block;
	min-height: 150px;
	padding: 22px;
	border: 2px solid #dfe5ea;
	border-radius: 15px;
	background: #fafbfc;
	transition:
		border-color 160ms ease,
		background 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

.gm-market-entry__choice:hover
.gm-market-entry__choice-content {
	border-color: #aeb9c3;
	transform: translateY(-1px);
}

.gm-market-entry__choice-input:focus-visible +
.gm-market-entry__choice-content {
	outline: 3px solid rgba(23, 100, 56, 0.2);
	outline-offset: 2px;
}

.gm-market-entry__choice-input:checked +
.gm-market-entry__choice-content {
	border-color: #176438;
	background: #eff8f2;
	box-shadow: 0 8px 24px rgba(23, 100, 56, 0.1);
}

.gm-market-entry__choice-title {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
	color: #17212b;
}

.gm-market-entry__choice-text {
	display: block;
	font-size: 14px;
	line-height: 1.9;
	color: #626d77;
}

.gm-market-entry__summary {
	margin-top: 28px;
	padding: 18px;
	border: 1px solid #b8dfc7;
	border-radius: 14px;
	background: #edf9f1;
}

.gm-market-entry__summary-title {
	margin: 0;
	font-size: 15px;
	color: #14572f;
}

.gm-market-entry__summary-text {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 700;
	color: #176438;
}

.gm-market-entry__notice {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid #e3d6b9;
	border-radius: 12px;
	background: #fffaf0;
}

.gm-market-entry__notice p {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: #69562f;
}

.gm-market-entry__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
}

.gm-market-entry__primary-action,
.gm-market-entry__secondary-action {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border-radius: 11px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.gm-market-entry__primary-action {
	border: 0;
	background: #17212b;
	color: #ffffff;
	cursor: pointer;
}

.gm-market-entry__primary-action:disabled {
	background: #aeb6bd;
	cursor: not-allowed;
}

.gm-market-entry__secondary-action {
	border: 1px solid #bdc6ce;
	background: #ffffff;
	color: #35404a;
}

@media (max-width: 720px) {
	.gm-market-entry {
		padding: 20px 12px 40px;
	}

	.gm-market-entry__header,
	.gm-market-entry__form {
		padding: 22px 16px;
		border-radius: 16px;
	}

	.gm-market-entry__choice-grid {
		grid-template-columns: 1fr;
	}

	.gm-market-entry__choice-content {
		min-height: 0;
	}

	.gm-market-entry__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.gm-market-entry__primary-action,
	.gm-market-entry__secondary-action {
		width: 100%;
	}
}

.gm-market-entry__public-link {
	margin-block: 1rem;
}

.gm-market-entry__public-link a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Whole-product composition: consumes shared foundation tokens without replacing domain semantics. */
:where(.gm-template, .gm-surface)
:where(button, a, input, select, textarea) {
	font-family: var(--gm-font, inherit);
}

/* === GM PRODUCT VISUAL TRANSFORMATION CORRECTIVE LAYER ===
 * Current Production presentation responsibilities above are intentionally retained.
 * Rules below establish the new canonical visual precedence without orphaning active selectors.
 */
/* Domain adapter over canonical Ghir Market design system. */
.gm-market-entry{--gm-context-accent:var(--gm-domestic)}.gm-market-entry__card,.gm-market-entry__form,.gm-market-entry__panel{background:var(--gm-white);border:1px solid var(--gm-line);border-radius:var(--gm-radius);padding:1.25rem}.gm-market-entry__title{border-inline-start:4px solid var(--gm-domestic);padding-inline-start:.75rem}

/* === GM WHOLE-PRODUCT DOMESTIC LISTING LAYER ===
 * Domestic Market Discovery only. Presentation consumes the safe public DTO;
 * business authority and publication remain server-owned.
 */
.ghir-market-market-entry-page .gm-template--listing-discovery {
	padding-bottom: 0;
}

.ghir-market-market-entry-page .gm-template--listing-discovery .gm-template__masthead {
	margin-bottom: 12px;
}

.ghir-market-market-entry-page .gm-template--listing-discovery .gm-template__context {
	margin-bottom: 6px;
}

.ghir-market-market-entry-page .gm-template--listing-discovery .gm-surface-header {
	gap: 4px;
}

.ghir-market-market-entry-page .gm-template--listing-discovery .gm-surface-title {
	font-size: clamp(24px, 5vw, 32px);
}

.ghir-market-market-entry-page .gm-template--listing-discovery .gm-surface-description {
	max-width: 720px;
	margin-top: 4px;
}

.gm-market-listing--domestic {
	--gm-context-accent: var(--gm-domestic, #176438);
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding: 0 0 48px;
}

.gm-market-listing--domestic *,
.gm-market-listing--domestic *::before,
.gm-market-listing--domestic *::after {
	box-sizing: border-box;
}

.gm-domestic-discovery-controls {
	display: grid;
	gap: 10px;
}

.gm-opportunity-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	padding: 4px;
	border: 1px solid var(--gm-line, #dfe5ea);
	border-radius: 14px;
	background: var(--gm-white, #ffffff);
}

.gm-opportunity-tabs [role="tab"],
.gm-opportunity-tabs__filter {
	display: inline-flex;
	min-width: 0;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #4d5963;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.gm-opportunity-tabs [role="tab"]:focus-visible,
.gm-opportunity-tabs__filter:focus-visible,
.gm-filter-chip:focus-visible {
	outline: 3px solid rgba(23, 100, 56, 0.2);
	outline-offset: 2px;
}

.gm-opportunity-tabs [role="tab"][aria-selected="true"] {
	background: #edf7f1;
	color: #14572f;
	box-shadow: inset 0 0 0 1px rgba(23, 100, 56, 0.28);
}

.gm-opportunity-tabs__filter[aria-expanded="true"] {
	background: #f3f5f7;
	color: #17212b;
}

.gm-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	min-height: 0;
}

.gm-filter-chips:empty {
	display: none;
}

.gm-filter-chip {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border: 1px solid #cfe2d5;
	border-radius: 999px;
	background: #f1f8f3;
	color: #14572f;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.gm-filter-chip > span:last-child {
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
}

.gm-filter-sheet {
	padding: 16px;
	border: 1px solid var(--gm-line, #dfe5ea);
	border-radius: 14px;
	background: var(--gm-white, #ffffff);
	box-shadow: 0 12px 30px rgba(23, 33, 43, 0.05);
}

.gm-filter-sheet[hidden] {
	display: none !important;
}

.gm-filter-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.gm-field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.gm-field > span {
	font-size: 13px;
	font-weight: 700;
	color: #35404a;
}

.gm-field input,
.gm-field select {
	width: 100%;
	min-height: 44px;
	padding: 8px 11px;
	border: 1px solid var(--gm-line, #cfd7de);
	border-radius: 10px;
	background: #ffffff;
	color: #17212b;
	font: inherit;
}

.gm-field input:focus-visible,
.gm-field select:focus-visible {
	outline: 3px solid rgba(23, 100, 56, 0.18);
	outline-offset: 1px;
	border-color: var(--gm-context-accent);
}

.gm-filter-sheet__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.gm-domestic-state {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	border: 1px solid #dfe5ea;
	border-radius: 12px;
	background: #ffffff;
	font-size: 14px;
	line-height: 1.8;
}

.gm-domestic-state[hidden] {
	display: none !important;
}

.gm-domestic-state--loading {
	border-color: #c9d5df;
	background: #f4f7f9;
	color: #354b5d;
}

.gm-domestic-state--empty,
.gm-domestic-state--zero-result {
	border-color: #e3d6b9;
	background: #fffaf0;
	color: #69562f;
}

.gm-domestic-state--error {
	border-color: #e1b1b1;
	background: #fff1f1;
	color: #8c2525;
}

.gm-domestic-state--runtime-disabled {
	border-color: #d8dce2;
	background: #f5f6f8;
	color: #4c5661;
}

.gm-domestic-state__copy {
	min-width: 0;
}

.gm-domestic-state__retry {
	flex: 0 0 auto;
}

.gm-opportunity-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.gm-opportunity-card {
	display: grid;
	align-content: start;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--gm-line, #dfe5ea);
	border-radius: 15px;
	background: var(--gm-white, #ffffff);
	box-shadow: 0 7px 22px rgba(23, 33, 43, 0.045);
}

.gm-opportunity-card--domestic {
	border-block-start: 3px solid var(--gm-context-accent);
}

.gm-opportunity-card--demand {
	border-block-start-color: #9a6b21;
}

.gm-opportunity-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.gm-opportunity-card__direction {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.gm-opportunity-card__direction--supply {
	background: #edf7f1;
	color: #14572f;
}

.gm-opportunity-card__direction--demand {
	background: #fff7e8;
	color: #75551f;
}

.gm-opportunity-card__published {
	color: #75808a;
	font-size: 12px;
	white-space: nowrap;
}

.gm-opportunity-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: #17212b;
}

.gm-opportunity-card__meta {
	display: grid;
	gap: 7px;
	padding: 10px 0;
	border-block: 1px solid #edf0f2;
}

.gm-opportunity-card__meta-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	line-height: 1.7;
}

.gm-opportunity-card__meta-key {
	flex: 0 0 auto;
	color: #73808a;
}

.gm-opportunity-card__meta-value {
	min-width: 0;
	color: #35404a;
	font-weight: 700;
	text-align: end;
}

.gm-opportunity-card__context {
	display: grid;
	gap: 3px;
}

.gm-opportunity-card__price {
	font-size: 15px;
	color: #17212b;
}

.gm-opportunity-card__context span {
	font-size: 11px;
	color: #7a848d;
}

.gm-opportunity-card__action {
	justify-self: start;
}

.gm-opportunity-card--skeleton {
	min-height: 246px;
	border-block-start: 3px solid #e0e5e9;
	overflow: hidden;
}

.gm-skeleton-line {
	display: block;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #edf0f2 25%, #f7f8f9 50%, #edf0f2 75%);
	background-size: 200% 100%;
	animation: gm-market-entry-skeleton 1.25s ease-in-out infinite;
}

.gm-skeleton-line--1 { width: 28%; }
.gm-skeleton-line--2 { width: 62%; height: 20px; }
.gm-skeleton-line--3 { width: 86%; }
.gm-skeleton-line--4 { width: 72%; }
.gm-skeleton-line--5 { width: 44%; margin-top: 18px; }

@keyframes gm-market-entry-skeleton {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.gm-skeleton-line {
		animation: none;
	}
}

.gm-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
}

.gm-pagination[hidden] {
	display: none !important;
}

.gm-pagination [data-gm-page-label] {
	min-width: 72px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #5c6670;
}

.gm-legal-boundary {
	padding: 11px 13px;
	border: 1px solid #e8dfcb;
	border-inline-start: 3px solid #b58b3c;
	border-radius: 10px;
	background: #fffdf8;
}

.gm-legal-boundary p {
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
	color: #756540;
}

/* Page-scoped footer compaction; footer.php stays untouched. */
.ghir-market-market-entry-page .gm-product-footer {
	margin-top: 0;
	padding-block: 10px 82px;
}

.ghir-market-market-entry-page .gm-product-footer__inner {
	min-height: 0;
	gap: 8px;
}

.ghir-market-market-entry-page .gm-footer-brand__logo {
	max-height: 24px;
	width: auto;
}

.ghir-market-market-entry-page .gm-footer-utility-nav {
	font-size: 12px;
}

@media (max-width: 720px) {
	.ghir-market-market-entry-page .gm-template--listing-discovery .gm-shell {
		padding-inline: 12px;
	}

	.ghir-market-market-entry-page .gm-template--listing-discovery .gm-template__masthead {
		padding-block: 8px 4px;
	}

	.ghir-market-market-entry-page .gm-template--listing-discovery .gm-template__context {
		display: none;
	}

	.ghir-market-market-entry-page .gm-template--listing-discovery .gm-surface-description {
		font-size: 13px;
		line-height: 1.75;
	}

	.gm-market-listing--domestic {
		gap: 12px;
		padding-bottom: 104px;
	}

	.gm-opportunity-tabs {
		position: sticky;
		top: 8px;
		z-index: 8;
		gap: 3px;
		padding: 3px;
		box-shadow: 0 7px 22px rgba(23, 33, 43, 0.08);
	}

	.gm-opportunity-tabs [role="tab"],
	.gm-opportunity-tabs__filter {
		min-height: 40px;
		padding-inline: 5px;
		font-size: 12px;
	}

	.gm-filter-sheet {
		padding: 14px;
	}

	.gm-filter-grid,
	.gm-opportunity-list {
		grid-template-columns: 1fr;
	}

	.gm-filter-sheet__actions {
		align-items: stretch;
	}

	.gm-filter-sheet__actions .gm-button {
		flex: 1 1 0;
	}

	.gm-domestic-state {
		align-items: stretch;
		flex-direction: column;
	}

	.gm-domestic-state__retry {
		width: 100%;
	}

	.gm-opportunity-card {
		gap: 10px;
		padding: 14px;
	}

	.gm-opportunity-card__action {
		width: 100%;
	}

	.gm-legal-boundary {
		margin-top: 2px;
	}

	.ghir-market-market-entry-page .gm-product-footer {
		padding-block: 8px 86px;
	}

	.ghir-market-market-entry-page .gm-product-footer__inner {
		align-items: center;
		flex-direction: row;
		justify-content: center;
	}

	.ghir-market-market-entry-page .gm-footer-brand {
		display: none;
	}
}

@media (min-width: 721px) and (max-width: 1100px) {
	.gm-market-listing--domestic {
		padding-inline: 0;
	}
}