/*
 * Towakomyu Top Page Discovery Hub v1.3.8
 * Mobile-first: 375px / 390pxを基準に、既存CCC01の実測色だけを使用する。
 */

#twkm-top-main,
.twkm-top-hub,
.twkm-top-hub * {
	box-sizing: border-box;
}

#twkm-top-main {
	display: block;
	min-width: 0;
}

.twkm-top-hub {
	--twkm-hub-text: #18384d;
	--twkm-hub-text-strong: #172a22;
	--twkm-hub-muted: #475569;
	--twkm-hub-border: #d8e8ec;
	--twkm-hub-aqua: #4fc3d7;
	--twkm-hub-aqua-dark: #0d5b73;
	--twkm-hub-aqua-soft: #f2fbfd;
	--twkm-hub-yellow: #ffe24a;
	--twkm-hub-yellow-soft: #fff2b8;
	--twkm-hub-green: #63b96c;
	--twkm-hub-intro-inline-end: 16px;
	--twkm-hub-section-inline-end: 10px;
	--twkm-hub-fab-search-safe-end: max(0px, calc(var(--twkm-fab-interaction-corridor, 0px) - var(--twkm-hub-intro-inline-end)));
	--twkm-hub-fab-section-safe-end: max(0px, calc(var(--twkm-fab-interaction-corridor, 0px) - var(--twkm-hub-section-inline-end)));
	width: min(calc(100% - 20px), 1140px);
	margin: 18px auto 42px;
	color: var(--twkm-hub-text);
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.twkm-top-hub a {
	color: inherit;
}

.twkm-top-hub__intro {
	padding: 28px 16px;
	border-top: 6px solid var(--twkm-hub-yellow);
	border-bottom: 1px solid var(--twkm-hub-border);
	background: #fffef7;
}

.twkm-top-hub__eyebrow {
	margin: 0 0 9px;
	color: var(--twkm-hub-aqua-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .04em;
}

.twkm-top-hub__intro h1 {
	max-width: 900px;
	margin: 0;
	color: var(--twkm-hub-text-strong);
	font-size: clamp(25px, 7.1vw, 43px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.015em;
}

.twkm-top-hub__lead {
	max-width: 760px;
	margin: 14px 0 0;
	color: var(--twkm-hub-muted);
	font-size: 15px;
	line-height: 1.8;
}

.twkm-top-hub__search {
	max-width: 680px;
	margin-top: 22px;
}

.twkm-top-hub__search > label {
	display: block;
	margin-bottom: 7px;
	color: var(--twkm-hub-text-strong);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.5;
}

.twkm-top-hub__search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.twkm-top-hub__search-row input,
.twkm-top-hub__search-row button {
	min-width: 0;
	min-height: 48px;
	margin: 0;
	border-radius: 8px;
	font: inherit;
}

.twkm-top-hub__search-row input {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #78cada;
	color: var(--twkm-hub-text-strong);
	background: #ffffff;
	font-size: 16px;
}

.twkm-top-hub__search-row input::placeholder {
	color: #64748b;
	opacity: 1;
}

.twkm-top-hub__search-row button {
	padding: 9px 18px;
	border: 2px solid #111111;
	color: #111111;
	background: var(--twkm-hub-yellow);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.twkm-top-hub__intents,
.twkm-top-hub__categories,
.twkm-top-hub__regions {
	padding: 30px 10px 0;
}

.twkm-top-hub__intents h2,
.twkm-top-hub__categories h2,
.twkm-top-hub__regions h2 {
	margin: 0;
	color: var(--twkm-hub-text-strong);
	font-size: clamp(21px, 5.8vw, 30px);
	font-weight: 800;
	line-height: 1.4;
}

.twkm-top-hub__intents h2::after,
.twkm-top-hub__categories h2::after,
.twkm-top-hub__regions h2::after {
	display: block;
	width: 52px;
	height: 5px;
	margin-top: 9px;
	content: "";
	background: linear-gradient(90deg, var(--twkm-hub-yellow) 0 33%, var(--twkm-hub-aqua) 33% 66%, var(--twkm-hub-green) 66% 100%);
}

.twkm-top-hub__intent-list,
.twkm-top-hub__type-list,
.twkm-top-hub__categories ul,
.twkm-top-hub__region-details ul,
.twkm-top-hub__region-fallback ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.twkm-top-hub__intent-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 18px;
}

.twkm-top-hub__intent-list > li:last-child {
	grid-column: 1 / -1;
}

.twkm-top-hub__event-tabs {
	display: flex;
	max-width: 560px;
	gap: 6px;
	margin-top: 18px;
	padding: 5px;
	border: 1px solid var(--twkm-hub-border);
	border-radius: 12px;
	background: var(--twkm-hub-aqua-soft);
}

.twkm-top-hub__event-tabs label { position: relative; display: flex; flex: 1 1 0; }

.twkm-top-hub__event-tabs .twkm-top-hub__event-tab {
	min-height: 44px;
	flex: 1 1 0;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--twkm-hub-text-strong);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	text-align: center;
	cursor: pointer;
}

.twkm-top-hub__event-tabs .twkm-top-hub__event-tab[aria-selected="true"] {
	border-color: #78cada;
	background: #ffffff;
	box-shadow: 0 2px 7px rgba(24, 56, 77, .08);
}

/* Theme / Elementor の汎用 button state をこのタブ内へ流入させない。 */
.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab {
	color: var(--twkm-hub-text-strong);
	background: transparent;
}

.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab:active {
	border-color: var(--twkm-hub-aqua);
	color: var(--twkm-hub-aqua-dark);
	background: #dff5f9;
}

.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab[aria-selected="true"],
.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab[aria-selected="true"]:active {
	border-color: var(--twkm-hub-aqua);
	color: var(--twkm-hub-text-strong);
	background: #ffffff;
	box-shadow: 0 2px 7px rgba(24, 56, 77, .08);
}

@media (hover: hover) and (pointer: fine) {
	.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab:hover {
		border-color: var(--twkm-hub-aqua);
		color: var(--twkm-hub-aqua-dark);
		background: #eaf8fb;
		box-shadow: 0 3px 10px rgba(24, 56, 77, .08);
	}

	.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab[aria-selected="true"]:hover {
		color: var(--twkm-hub-text-strong);
		background: #ffffff;
	}
}

.twkm-top-hub__event-panel--types {
	margin-top: 22px;
}

/* Contain active-panel margins; inactive content must not reserve blank space. */
.twkm-top-hub__event-panels {
	display: flow-root;
}

/* Native inputs cover each target until enhancement completes. A real first
 * input activates the radio before delayed JS; failed JS leaves it usable. */
.twkm-top-hub__event-tabs .twkm-top-hub__event-choice {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.twkm-top-hub__intents.is-enhanced .twkm-top-hub__event-choice { display: none; }
.twkm-top-hub__event-switcher:has(.twkm-top-hub__event-choice--schedule:checked) > .twkm-top-hub__event-panels > .twkm-top-hub__event-panel--types,
.twkm-top-hub__event-switcher:has(.twkm-top-hub__event-choice--types:checked) > .twkm-top-hub__event-panels > .twkm-top-hub__event-panel:not(.twkm-top-hub__event-panel--types) {
	display: none;
}
.twkm-top-hub .twkm-top-hub__event-tabs label:has(:checked) .twkm-top-hub__event-tab {
	border-color: var(--twkm-hub-aqua);
	color: var(--twkm-hub-text-strong);
	background: #ffffff;
	box-shadow: 0 2px 7px rgba(24, 56, 77, .08);
}
.twkm-top-hub .twkm-top-hub__event-tabs label:has(input:focus-visible) .twkm-top-hub__event-tab {
	outline: 3px solid var(--twkm-hub-aqua-dark);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--twkm-hub-yellow-soft);
}

.twkm-top-hub__type-list {
	display: flex;
	gap: 8px;
	margin-top: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 18px 8px 1px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.twkm-top-hub__type-list li {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.twkm-top-hub__type-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid #78cada;
	border-radius: 999px;
	background: #ffffff;
	color: var(--twkm-hub-aqua-dark);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.twkm-top-hub__type-link:hover {
	background: var(--twkm-hub-aqua-soft);
}

.twkm-top-hub .twkm-top-hub__type-label {
	display: inline-block;
	padding-bottom: 3px;
	background-image: linear-gradient(90deg, var(--twkm-hub-yellow) 0 33%, var(--twkm-hub-aqua) 33% 66%, var(--twkm-hub-green) 66% 100%);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 3px;
	transition: background-size 200ms ease;
}

.twkm-top-hub__type-empty {
	margin: 18px 0 0;
	color: var(--twkm-hub-muted);
}

.twkm-top-hub__intent-link {
	display: flex;
	min-height: 70px;
	padding: 10px 11px;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	border: 1px solid #78cada;
	border-radius: 8px;
	background: var(--twkm-hub-aqua-soft);
	text-decoration: none;
}

.twkm-top-hub__intent-link strong {
	color: var(--twkm-hub-aqua-dark);
	font-size: 15px;
	line-height: 1.35;
}

.twkm-top-hub__intent-link span {
	margin-top: 3px;
	color: var(--twkm-hub-muted);
	font-size: 12px;
	line-height: 1.45;
}

.twkm-top-hub .twkm-top-hub__intent-link,
.twkm-top-hub .twkm-top-hub__intent-link:visited,
.twkm-top-hub .twkm-top-hub__intent-link strong,
.twkm-top-hub .twkm-top-hub__intent-link span {
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__intent-link:visited,
.twkm-top-hub .twkm-top-hub__intent-link:visited strong {
	color: var(--twkm-hub-aqua-dark);
}

.twkm-top-hub .twkm-top-hub__intent-link:visited span {
	color: var(--twkm-hub-muted);
}

.twkm-top-hub .twkm-top-hub__intent-link:active {
	border-color: var(--twkm-hub-aqua);
	color: var(--twkm-hub-aqua-dark);
	background: #dff5f9;
	box-shadow: 0 1px 4px rgba(24, 56, 77, .08);
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__intent-link:focus-visible {
	border-color: var(--twkm-hub-aqua);
	color: var(--twkm-hub-aqua-dark);
	background: #eaf8fb;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.twkm-top-hub .twkm-top-hub__intent-link:hover {
		border-color: var(--twkm-hub-aqua);
		color: var(--twkm-hub-aqua-dark);
		background: #eaf8fb;
		box-shadow: 0 3px 10px rgba(24, 56, 77, .08);
		text-decoration: none;
	}

	.twkm-top-hub .twkm-top-hub__intent-link:hover strong {
		color: var(--twkm-hub-aqua-dark);
		text-decoration: none;
	}

	.twkm-top-hub .twkm-top-hub__intent-link:hover span {
		color: var(--twkm-hub-muted);
		text-decoration: none;
	}
}

.twkm-top-hub__categories ul {
	display: grid;
	gap: 0;
	margin-top: 16px;
	border-top: 1px solid var(--twkm-hub-border);
}

.twkm-top-hub__categories li {
	border-bottom: 1px solid var(--twkm-hub-border);
}

.twkm-top-hub__category-link {
	display: grid;
	grid-template-columns: minmax(116px, .7fr) minmax(0, 1.3fr);
	gap: 12px;
	min-height: 56px;
	padding: 10px 8px;
	align-items: center;
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__category-link strong {
	justify-self: start;
	padding-bottom: 3px;
	color: var(--twkm-hub-text-strong);
	background-image: linear-gradient(90deg, var(--twkm-hub-yellow) 0 33%, var(--twkm-hub-aqua) 33% 66%, var(--twkm-hub-green) 66% 100%);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 3px;
	font-size: 15px;
	line-height: 1.4;
	transition: background-size 200ms ease;
}

.twkm-top-hub__category-link span {
	color: var(--twkm-hub-muted);
	font-size: 13px;
	line-height: 1.5;
}

.twkm-top-hub__category-link.is-primary {
	border-left: 5px solid var(--twkm-hub-yellow);
	background: #fffef7;
}

.twkm-top-hub__regions > header p {
	margin: 11px 0 0;
	color: var(--twkm-hub-muted);
	font-size: 14px;
	line-height: 1.7;
}

.twkm-top-hub__region-details {
	display: grid;
	gap: 0;
	margin-top: 17px;
	border-top: 1px solid var(--twkm-hub-border);
}

.twkm-top-hub__region {
	border-bottom: 1px solid var(--twkm-hub-border);
	background: #ffffff;
}

.twkm-top-hub__region.is-towada-region {
	border-left: 5px solid var(--twkm-hub-yellow);
	background: #fffef7;
}

.twkm-top-hub__region summary {
	display: flex;
	min-height: 52px;
	padding: 11px 8px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--twkm-hub-text-strong);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.45;
	cursor: pointer;
}

.twkm-top-hub .twkm-top-hub__region summary > span {
	display: inline-block;
	padding-bottom: 3px;
	background-image: linear-gradient(90deg, var(--twkm-hub-yellow) 0 33%, var(--twkm-hub-aqua) 33% 66%, var(--twkm-hub-green) 66% 100%);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 3px;
	transition: background-size 200ms ease;
}

.twkm-top-hub__region summary small {
	flex: 0 0 auto;
	color: var(--twkm-hub-muted);
	font-size: 12px;
	font-weight: 600;
}

.twkm-top-hub__region ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 8px;
	padding: 2px 8px 14px;
}

.twkm-top-hub__municipality-link {
	display: flex;
	min-height: 44px;
	padding: 8px;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	border-bottom: 1px solid #e8eff1;
	color: var(--twkm-hub-aqua-dark) !important;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
	text-decoration: none;
}

.twkm-top-hub__municipality-link.is-towada {
	border: 2px solid #111111;
	border-radius: 7px;
	color: #111111 !important;
	background: var(--twkm-hub-yellow);
	font-weight: 800;
}

.twkm-top-hub__municipality-link small {
	padding: 2px 5px;
	border: 1px solid #111111;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
}

.twkm-top-hub__municipality-link > span {
	display: inline-block;
	padding-bottom: 3px;
	background-image: linear-gradient(90deg, var(--twkm-hub-yellow) 0 33%, var(--twkm-hub-aqua) 33% 66%, var(--twkm-hub-green) 66% 100%);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 3px;
	transition: background-size 200ms ease;
}

.twkm-top-hub__region-fallback ul {
	display: grid;
	gap: 7px;
	margin-top: 17px;
}

.twkm-top-hub__region-fallback-link {
	display: flex;
	min-height: 48px;
	padding: 10px 12px;
	align-items: center;
	border: 1px solid #78cada;
	border-radius: 8px;
	color: var(--twkm-hub-aqua-dark) !important;
	background: var(--twkm-hub-aqua-soft);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.twkm-top-hub a:hover,
.twkm-top-hub summary:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.twkm-top-hub__search-row button:hover,
.twkm-top-hub__municipality-link.is-towada:hover {
	color: var(--twkm-hub-text-strong) !important;
	background: var(--twkm-hub-yellow-soft);
}

.twkm-top-hub .twkm-top-hub__category-link:hover,
.twkm-top-hub .twkm-top-hub__category-link:focus-visible,
.twkm-top-hub .twkm-top-hub__municipality-link:hover,
.twkm-top-hub .twkm-top-hub__municipality-link:focus-visible {
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__type-link:hover,
.twkm-top-hub .twkm-top-hub__type-link:focus-visible {
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__region summary:hover,
.twkm-top-hub .twkm-top-hub__region summary:focus-visible {
	text-decoration: none;
}

.twkm-top-hub__category-link:hover,
.twkm-top-hub__category-link:focus-visible,
.twkm-top-hub__municipality-link:not(.is-towada):hover,
.twkm-top-hub__municipality-link:not(.is-towada):focus-visible {
	background-color: rgba(79, 195, 215, .08);
}

.twkm-top-hub .twkm-top-hub__category-link:hover strong,
.twkm-top-hub .twkm-top-hub__category-link:focus-visible strong,
.twkm-top-hub__municipality-link:hover > span,
.twkm-top-hub__municipality-link:focus-visible > span {
	background-size: 100% 3px;
}

.twkm-top-hub .twkm-top-hub__region summary:hover > span,
.twkm-top-hub .twkm-top-hub__region summary:focus-visible > span {
	background-size: 100% 3px;
}

.twkm-top-hub .twkm-top-hub__type-link:hover .twkm-top-hub__type-label,
.twkm-top-hub .twkm-top-hub__type-link:focus-visible .twkm-top-hub__type-label {
	background-size: 100% 3px;
}

.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab:focus:not(:focus-visible) {
	outline: none;
}

.twkm-top-hub a:focus-visible,
.twkm-top-hub summary:focus-visible,
.twkm-top-hub input:focus-visible,
.twkm-top-hub button:focus-visible {
	outline: 3px solid #102a43;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--twkm-hub-yellow-soft);
}

.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab:focus-visible,
.twkm-top-hub .twkm-top-hub__type-link:focus-visible {
	outline: 3px solid var(--twkm-hub-aqua-dark);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--twkm-hub-yellow-soft);
}

.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab[aria-selected="true"]:focus-visible {
	box-shadow: 0 2px 7px rgba(24, 56, 77, .08), 0 0 0 6px var(--twkm-hub-yellow-soft);
}

.twkm-top-hub .twkm-top-hub__intent-link:focus-visible {
	outline: 3px solid #102a43;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--twkm-hub-yellow-soft);
}

/* Kokuspo CTA stays yellow across theme and browser interaction states. */
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:visited,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:hover,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:focus-visible,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:active {
	border: 2px solid #111111;
	background: var(--twkm-hub-yellow);
	color: #111111;
	text-decoration: none;
}

.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026 strong,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:visited strong,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:hover strong,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:focus-visible strong,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:active strong,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026 span,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:visited span,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:hover span,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:focus-visible span,
.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:active span {
	color: #111111;
}

.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026 strong {
	font-weight: 800;
}

.twkm-top-hub .twkm-top-hub__intent-link.is-kokuspo-2026:focus-visible {
	outline: 3px solid #102a43;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--twkm-hub-yellow-soft);
}

@media (prefers-reduced-motion: reduce) {
	.twkm-top-hub__category-link strong,
	.twkm-top-hub__municipality-link > span,
	.twkm-top-hub__region summary > span,
	.twkm-top-hub__type-label {
		transition: none;
	}
}

/* TOP既存コンポーネントの実測コントラスト不足だけを局所補正する。 */
#twkm-top-main .twkm-top-tourist-more {
	color: #075985 !important;
}

#twkm-top-main .twkm-hff-badge-cat,
#twkm-top-main .twkm-hff-badge-scene,
#twkm-top-main .twkm-hff-badge-area,
#twkm-top-main .twkm-hff-nav:hover,
#twkm-top-main .twkm-hff-nav:focus-visible {
	border-color: #9a3412 !important;
	background: #9a3412 !important;
}

#twkm-top-main .twkm-hff-noimg-text {
	color: #595959 !important;
}

#twkm-top-main .twkm-hff-nav:focus-visible,
#twkm-top-main .twkm-top-tourist-more:focus-visible {
	outline: 3px solid #102a43 !important;
	outline-offset: 3px !important;
}

/* 固定FABのright-side interaction corridorへHubの操作要素を侵入させない。 */
.twkm-top-hub__search {
	margin-inline-end: var(--twkm-hub-fab-search-safe-end);
}

.twkm-top-hub__intent-list,
.twkm-top-hub__type-list,
.twkm-top-hub__categories ul,
.twkm-top-hub__region-details,
.twkm-top-hub__region-fallback ul {
	margin-inline-end: var(--twkm-hub-fab-section-safe-end);
}

@media (max-width: 767px) {
	.twkm-top-hub__search-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.twkm-top-hub__search-row button {
		width: min(160px, 100%);
		justify-self: start;
	}
}

@media (min-width: 700px) {
	.twkm-top-hub {
		--twkm-hub-intro-inline-end: 34px;
		--twkm-hub-section-inline-end: 24px;
		width: min(calc(100% - 40px), 1140px);
		margin-top: 28px;
	}

	.twkm-top-hub__intro {
		padding: 42px 34px;
	}

	.twkm-top-hub__intents,
	.twkm-top-hub__categories,
	.twkm-top-hub__regions {
		padding: 42px 24px 0;
	}

	.twkm-top-hub__intent-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.twkm-top-hub__intent-list > li:last-child {
		grid-column: auto;
	}

	.twkm-top-hub__type-list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
		padding-right: 1px;
	}

	.twkm-top-hub__type-list li,
	.twkm-top-hub__type-link {
		width: 100%;
	}

	.twkm-top-hub__type-link {
		justify-content: center;
		white-space: normal;
		text-align: center;
	}

	.twkm-top-hub__categories ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
	}

	.twkm-top-hub__category-link {
		grid-template-columns: minmax(132px, .8fr) minmax(0, 1.2fr);
	}

	.twkm-top-hub__region-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
	}

	.twkm-top-hub__region-fallback ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 699px) {
	.twkm-top-hub__intent-list.has-kokuspo-2026 > li:last-child {
		grid-column: auto;
	}
}

@media (min-width: 960px) {
	.twkm-top-hub {
		--twkm-hub-intro-inline-end: 48px;
		--twkm-hub-section-inline-end: 34px;
	}

	.twkm-top-hub__intro {
		padding: 52px 48px;
	}

	.twkm-top-hub__intents,
	.twkm-top-hub__categories,
	.twkm-top-hub__regions {
		padding-inline: 34px;
	}

	.twkm-top-hub__region-fallback ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* v4: keep the existing SSR navigation; compact its layout without cloning links. */
.twkm-top-hub { color: #172a22; margin-block: 14px 22px; }
.twkm-top-hub__hero {
    padding: clamp(16px, 2.4vw, 28px);
    border: 1px solid #d8e8ec;
    border-top: 5px solid #ffe24a;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(150deg, #fff 36%, #f0fbfd 76%, #f5fbef);
}
.twkm-top-hub__hero-core { display: grid; gap: 20px; align-items: center; min-width: 0; }
.twkm-top-hub__hero .twkm-top-hub__intro { min-width: 0; padding: 0; border: 0; background: transparent; }
.twkm-top-hub__hero .twkm-top-hub__intro h1 {
    font-size: 13px; line-height: 1.6; font-weight: 600; max-width: 62ch;
    color: #385c56; letter-spacing: 0; margin: 0 0 12px;
}
.twkm-top-hub__catch { margin: 0; font-size: clamp(27px, 3.1vw, 43px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.twkm-top-hub__ai-word { position: relative; color: #146d61; padding-inline-end: .14em; }
.twkm-top-hub__ai-word > span { position: absolute; color: #ff7694; font-size: .6em; inset-inline-end: -.25em; top: -.5em; }
.twkm-top-hub__hero .twkm-top-hub__lead { font-size: 14px; line-height: 1.75; margin-top: 12px; }
.twkm-top-hub__hero .twkm-top-hub__search { margin-top: 14px; }
.twkm-top-hub__hero .twkm-top-hub__search-row { grid-template-columns: minmax(0, 1fr) auto; }
.twkm-top-hub__hero .twkm-top-hub__search-row button { width: auto; padding-inline: 14px; }
.twkm-top-hub__availability { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: #385c56; }
.twkm-top-hub__suggestions { min-width: 0; margin-top: 10px; margin-inline-end: var(--twkm-hub-fab-search-safe-end); }
.twkm-top-hub__suggestions > p { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.twkm-top-hub__questions { display: flex; gap: 8px; padding: 4px; }
.twkm-top-hub__questions button {
    flex: 0 0 auto; min-height: 44px; border: 1px solid #b4dcd7; border-radius: 999px;
    padding: 8px 14px; background: #fff; color: #172a22; font: inherit; font-size: 13px; cursor: pointer;
}
.twkm-top-hub__guide { min-width: 0; padding: 16px; border: 1px solid #bedcd6; border-radius: 18px; background: #fff; }
.twkm-top-hub__guide-label { margin: 0; font-size: 15px; font-weight: 800; }
.twkm-top-hub__guide-notice { margin: 6px 0 10px; color: #475569; font-size: 12px; line-height: 1.65; }
.twkm-top-hub__guide-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.twkm-top-hub__guide-choices label { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.twkm-top-hub__guide-choices input { flex: 0 0 auto; margin: 0; accent-color: #146d61; }
.twkm-top-hub__guide-choices label:has(:checked) { background: #ecf8ef; font-weight: 750; }
.twkm-top-hub__guide-choices label:has(:focus-visible) { outline: 3px solid #102a43; outline-offset: 2px; }
.twkm-top-hub__scenes { display: grid; margin-top: 8px; }
.twkm-top-hub__scene { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.twkm-top-hub__guide:has(input[value="0"]:checked) .twkm-top-hub__scene:nth-child(1),
.twkm-top-hub__guide:has(input[value="1"]:checked) .twkm-top-hub__scene:nth-child(2),
.twkm-top-hub__guide:has(input[value="2"]:checked) .twkm-top-hub__scene:nth-child(3),
.twkm-top-hub__guide:has(input[value="3"]:checked) .twkm-top-hub__scene:nth-child(4) { visibility: visible; opacity: 1; pointer-events: auto; }
.twkm-top-hub__scene h3 { margin: 0; color: #172a22; font-size: 18px; line-height: 1.5; }
.twkm-top-hub__scene p { margin: 8px 0; font-size: 14px; line-height: 1.7; }
.twkm-top-hub__scene a { display: inline-flex; min-height: 44px; align-items: center; color: #075985; font-size: 14px; font-weight: 700; }
.twkm-top-hub__motion { display: none; min-height: 44px; padding: 8px 12px; background: #ecf8ef; color: #172a22; border: 1px solid #63b96c; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.twkm-top-hub__hero.is-motion-ready .twkm-top-hub__motion { display: inline-block; }
.twkm-top-hub__intents, .twkm-top-hub__categories, .twkm-top-hub__regions { min-width: 0; padding-top: 20px; }
.twkm-top-hub__intents h2, .twkm-top-hub__categories h2, .twkm-top-hub__regions h2 { font-size: clamp(19px, 3vw, 24px); }
.twkm-top-hub__event-tabs { margin-top: 12px; }
.twkm-top-hub [data-twkm-rail] {
    min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
    scroll-padding-inline: 4px; -webkit-overflow-scrolling: touch;
}
.twkm-top-hub [data-twkm-rail] > * { scroll-snap-align: start; }
/* The three discovery sections share a soft-yellow native scrollbar.
 * Keep system high-contrast colors and the native scrollbar geometry/controls. */
@media (forced-colors: none) {
    .twkm-top-hub :is(.twkm-top-hub__intents, .twkm-top-hub__categories, .twkm-top-hub__regions) [data-twkm-rail] {
        scrollbar-color: var(--twkm-hub-yellow-soft) transparent;
    }
}
.twkm-top-hub .twkm-top-hub__intent-list,
.twkm-top-hub .twkm-top-hub__type-list,
.twkm-top-hub .twkm-top-hub__categories ul,
.twkm-top-hub .twkm-top-hub__region-fallback ul {
    display: flex; gap: 8px; margin-top: 10px; padding: 5px 5px 10px; border: 0;
}
.twkm-top-hub .twkm-top-hub__intent-list > li { flex: 0 0 172px; }
.twkm-top-hub .twkm-top-hub__type-list > li { flex: 0 0 auto; width: auto; }
.twkm-top-hub .twkm-top-hub__type-link { width: auto; white-space: nowrap; }
.twkm-top-hub .twkm-top-hub__categories ul > li { flex: 0 0 180px; border: 0; }
.twkm-top-hub .twkm-top-hub__category-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 78px; border: 1px solid #d8e8ec; border-radius: 10px; padding: 10px; }
.twkm-top-hub .twkm-top-hub__category-link.is-primary { border-inline-start: 5px solid #ffe24a; }
.twkm-top-hub .twkm-top-hub__region-details { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 5px 5px 10px; border: 0; }
.twkm-top-hub .twkm-top-hub__region { flex: 0 0 min(340px, 92%); min-width: 0; border: 1px solid #d8e8ec; border-radius: 10px; }
.twkm-top-hub .twkm-top-hub__region.is-towada-region { border-inline-start: 5px solid #ffe24a; }
.twkm-top-hub .twkm-top-hub__region ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding-inline: 4px; }
.twkm-top-hub .twkm-top-hub__municipality-link { padding: 6px 3px; font-size: 12px; overflow-wrap: anywhere; }
.twkm-top-hub .twkm-top-hub__municipality-link small { font-size: 9px; padding: 1px 2px; }
.twkm-top-hub .twkm-top-hub__region-fallback li { flex: 0 0 220px; }
.twkm-top-hub__rail-controls { display: none; gap: 6px; justify-content: flex-end; margin-inline-end: var(--twkm-hub-fab-section-safe-end); }
.twkm-top-hub__rail-controls button { min-width: 44px; min-height: 44px; border: 1px solid #b4dcd7; border-radius: 50%; background: #fff; color: #172a22; font: inherit; cursor: pointer; }
.twkm-top-hub__rail-controls button:disabled { opacity: .45; cursor: default; }
.twkm-top-hub [data-twkm-rail]:focus-visible { outline: 3px solid #102a43; outline-offset: 2px; }
@media (min-width: 700px) {
    .twkm-top-hub__hero-core { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .twkm-top-hub__rail-controls.is-overflowing { display: flex; }
}
@media (max-width: 699px) {
    .twkm-top-hub__guide { padding: 12px; }
    .twkm-top-hub__guide-notice { margin-bottom: 6px; }
    .twkm-top-hub__guide-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .twkm-top-hub__scene h3 { font-size: 16px; }
    .twkm-top-hub__scene p { font-size: 13px; margin: 4px 0; }
    .twkm-top-hub__hero-core { gap: 14px; }
}
@keyframes twkm-hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.twkm-top-hub__hero.is-motion-active .twkm-top-hub__scene { transition: opacity .5s ease; }
.twkm-top-hub__hero.is-motion-active .twkm-top-hub__questions { scroll-snap-type: none; }
@media (prefers-reduced-motion: reduce) {
    .twkm-top-hub__hero *, .twkm-top-hub [data-twkm-rail] { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Initial-viewport budget: natural content height, never crop important controls. */
.twkm-top-hub__hero {
    display: grid;
    gap: clamp(6px, 1svh, 12px);
    padding-block: clamp(8px, 1.4svh, 20px);
    margin-block-start: var(--twkm-hero-header-clearance, 0px);
}
.twkm-top-hub__hero-core { gap: clamp(12px, 1.8svh, 24px); }
/* The site's global H1 size is !important; keep this existing SEO title secondary. */
.twkm-top-hub__hero .twkm-top-hub__intro h1 { font-size: 14px !important; line-height: 1.45; margin-bottom: 8px; }
.twkm-top-hub__hero .twkm-top-hub__catch { font-size: clamp(26px, 3vw, 42px); line-height: 1.25; }
.twkm-top-hub__hero .twkm-top-hub__lead { margin-top: 8px; font-size: 14px; line-height: 1.65; }
.twkm-top-hub__hero .twkm-top-hub__search { margin-top: 10px; }
.twkm-top-hub__hero .twkm-top-hub__search-row input { font-size: 16px; }
.twkm-top-hub__hero .twkm-top-hub__search-row input,
.twkm-top-hub__hero .twkm-top-hub__search-row button,
.twkm-top-hub__hero [data-ai-mic] { min-height: 44px; }
.twkm-top-hub__hero [data-ai-home-panel] { min-width: 0; }
.twkm-top-hub__hero [data-ai-home-panel] .twkm-ai-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.twkm-top-hub__hero [data-ai-mic] { background: #e7f7eb; color: #172a22; border-color: #63b96c; }
/* HOME owns the layout; MU7 continues to own every action and state. */
.twkm-top-hub__hero [data-ai-home-panel] { padding: 0; margin: 6px 0 0; border: 0; border-radius: 0; background: transparent; }
.twkm-top-hub__hero [data-ai-home-panel] .twkm-ai-note { margin: 4px 0; font-size: 12px; line-height: 1.5; }
.twkm-top-hub__hero [data-ai-home-panel] [data-ai-status]:empty,
.twkm-top-hub__hero [data-ai-home-panel] [data-ai-results]:empty { margin: 0; padding: 0; min-height: 0; }
.twkm-top-hub__hero [data-ai-normal-search] { font-size: 12px; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row > button { margin: 0; padding: 9px 6px; min-height: 44px; font-size: 14px; line-height: 22px; white-space: nowrap; }
.twkm-top-hub__hero.has-ai-actions [data-ai-home-panel] { margin: 0; box-shadow: none; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools { grid-column: 1 / -1; display: flex; align-items: start; gap: 8px; min-width: 0; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools summary { min-height: 44px; padding: 10px 0; font-size: 14px; line-height: 22px; color: #172a22; cursor: pointer; white-space: nowrap; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools > [data-ai-normal-search] { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools:has(details[open]) { flex-wrap: wrap; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools details[open] { flex-basis: 100%; }
.twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools .twkm-ai-note { margin: 4px 0; font-size: 12px; line-height: 1.5; }
.twkm-top-hub__hero .twkm-top-hub__guide { padding: clamp(10px, 1.6svh, 16px); }
.twkm-top-hub__hero .twkm-top-hub__guide-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twkm-top-hub__hero .twkm-top-hub__guide-choices label { overflow-wrap: anywhere; }
.twkm-top-hub__hero .twkm-top-hub__motion:disabled { cursor: default; opacity: .75; }
.twkm-top-hub__hero .twkm-top-hub__motion { transition: none !important; }
@media (min-width: 960px) {
    .twkm-top-hub__hero .twkm-top-hub__suggestions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
    .twkm-top-hub__hero .twkm-top-hub__suggestions > p { grid-column: 1; grid-row: 1; align-self: center; margin: 0; }
    .twkm-top-hub__hero .twkm-top-hub__questions { grid-column: 1 / -1; grid-row: 2; }
}
.twkm-top-hub__hero[data-twkm-height-tier="compact"],
.twkm-top-hub__hero[data-twkm-height-tier="no-guide"],
.twkm-top-hub__hero[data-twkm-height-tier="essential"],
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] { padding: 8px 12px; gap: 6px; }
.twkm-top-hub__hero[data-twkm-height-tier="compact"] .twkm-top-hub__catch,
.twkm-top-hub__hero[data-twkm-height-tier="no-guide"] .twkm-top-hub__catch,
.twkm-top-hub__hero[data-twkm-height-tier="essential"] .twkm-top-hub__catch,
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] .twkm-top-hub__catch { font-size: clamp(26px, 2.7vw, 36px); }
.twkm-top-hub__hero[data-twkm-height-tier="no-guide"] .twkm-top-hub__hero-core,
.twkm-top-hub__hero[data-twkm-height-tier="essential"] .twkm-top-hub__hero-core,
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] .twkm-top-hub__hero-core { grid-template-columns: minmax(0, 1fr); }
.twkm-top-hub__hero[data-twkm-height-tier="no-guide"] .twkm-top-hub__guide,
.twkm-top-hub__hero[data-twkm-height-tier="essential"] .twkm-top-hub__guide,
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] .twkm-top-hub__guide { display: none; }
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] .twkm-top-hub__suggestions { display: none; }
/* JS-delayed/disabled fallback uses viewport height only; no guessed header size. */
@media (max-width: 699px), (max-height: 540px) {
    .twkm-top-hub__hero .twkm-top-hub__hero-core { grid-template-columns: minmax(0, 1fr); }
    .twkm-top-hub__hero .twkm-top-hub__guide { display: none; }
    .twkm-top-hub__hero { padding: 10px 12px; }
}
@media (max-width: 699px) and (max-height: 740px), (max-height: 540px) {
}
@media (max-width: 699px) and (max-height: 690px), (max-height: 440px) {
    .twkm-top-hub__hero .twkm-top-hub__suggestions { display: none; }
}
@media (max-height: 540px) {
    .twkm-top-hub__hero .twkm-top-hub__catch { font-size: 26px; }
    .twkm-top-hub__hero .twkm-top-hub__catch br { display: none; }
    .twkm-top-hub__hero .twkm-top-hub__hero-core { gap: 6px; }
}
@media (min-width: 700px) and (max-height: 540px) {
    .twkm-top-hub__hero:not(.has-ai-actions) { padding-block: 4px; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__intro h1 { margin-bottom: 2px; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search { margin-top: 4px; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search-row { grid-template-columns: minmax(172px, 1fr) auto auto; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search-row input,
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search-row > button { padding-block: 8px; line-height: 22px; min-height: 44px; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__compact-lead summary { min-height: 44px; padding-block: 10px; font-size: 14px; line-height: 22px; }
    .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__compact-lead[open] { grid-column: 1 / -1; }
    .twkm-top-hub__hero.has-ai-actions { padding-block: 4px; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__intro h1 { margin-bottom: 2px; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search { margin-top: 4px; max-width: none; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row { grid-template-columns: minmax(172px, 1fr) auto auto auto; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row input,
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row > button { padding-block: 8px; font-size: 16px; line-height: 22px; min-height: 44px; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__compact-tools { grid-column: 4; grid-row: 1; }
}

@media (max-width: 360px) {
    .twkm-top-hub__hero .twkm-top-hub__search-row { grid-template-columns: minmax(0, 1fr); }
    .twkm-top-hub__hero .twkm-top-hub__search-row button { min-inline-size: 84px; justify-self: start; }
}
/* Keep the same content gutter outside landscape safe-area cutouts. */
.twkm-top-hub__hero { --twkm-hero-gutter: clamp(12px, 2vw, 28px); }
.twkm-top-hub__hero[data-twkm-height-tier="compact"],
.twkm-top-hub__hero[data-twkm-height-tier="no-guide"],
.twkm-top-hub__hero[data-twkm-height-tier="essential"],
.twkm-top-hub__hero[data-twkm-height-tier="minimal"] { --twkm-hero-gutter: 12px; }
.twkm-top-hub__hero,
.twkm-top-hub__hero[data-twkm-height-tier] {
    padding-inline-start: max(var(--twkm-hero-gutter), env(safe-area-inset-left, 0px));
    padding-inline-end: max(var(--twkm-hero-gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 699px) and (max-height: 690px) {
    .twkm-top-hub:has(> .twkm-top-hub__hero) { margin-block-start: 0; }
    .twkm-top-hub__hero,
    .twkm-top-hub__hero[data-twkm-height-tier] { padding-block: 6px; }
    .twkm-top-hub__hero .twkm-top-hub__intro h1 { margin-bottom: 4px; }
    .twkm-top-hub__hero .twkm-top-hub__lead { margin-top: 6px; line-height: 1.5; }
    .twkm-top-hub__hero .twkm-top-hub__search { margin-top: 6px; }
    /* Keep the form's native accessible name; only its repeated visual label collapses. */
    .twkm-top-hub__hero .twkm-top-hub__search > label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap;
    }
    .twkm-top-hub__hero .twkm-top-hub__search-row input,
    .twkm-top-hub__hero .twkm-top-hub__search-row button {
        line-height: 1.4 !important; padding: 8px 10px; min-height: 44px;
    }
    .twkm-top-hub__hero .twkm-top-hub__availability { line-height: 1.5; }
}
.twkm-top-hub__hero[data-twkm-height-tier="no-photos"] {
    --twkm-hero-gutter: 12px; padding-block: 8px; gap: 6px;
}
.twkm-top-hub__hero[data-twkm-height-tier="no-photos"] .twkm-top-hub__catch { font-size: clamp(26px, 2.7vw, 36px); }
.twkm-top-hub__hero[data-twkm-height-tier]:not([data-twkm-height-tier="full"]) .twkm-top-hub__guide { align-self: start; }
.twkm-top-hub__hero[data-twkm-height-tier]:not([data-twkm-height-tier="full"]) .twkm-top-hub__motion:disabled {
    min-height: 0; padding: 0; border: 0; background: transparent;
}
@media (min-width: 1200px) {
}
@media (max-width: 699px) {
    .twkm-top-hub__hero[data-twkm-height-tier="compact"] { padding-block: 7px; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row { grid-template-columns: minmax(0, 1fr) auto; }
    .twkm-top-hub__hero.has-ai-actions .twkm-top-hub__search-row input { grid-column: 1 / -1; }
}
@media (max-width: 699px) and (max-height: 740px) {
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search,
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search-row { width: 172px; max-width: 100%; margin-inline-end: 0; }
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search-row > button { min-width: 0; }
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead [data-ai-home-panel] { margin-top: 0; }
    .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search-row > button { padding-inline: 4px; font-size: 12px; gap: 4px; }
    .twkm-top-hub__compact-tools { grid-column: 1 / -1; display: flex; align-items: start; gap: 6px; min-width: 0; }
    .twkm-top-hub__compact-tools .twkm-top-hub__compact-lead { flex: 0 0 44px; }
    .twkm-top-hub__compact-tools summary { min-height: 44px; padding: 10px 0; font-size: 14px; line-height: 22px; color: #172a22; cursor: pointer; white-space: nowrap; }
    .twkm-top-hub__compact-tools > [data-ai-normal-search] { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
    .twkm-top-hub__compact-tools:has(details[open]) { flex-wrap: wrap; }
    .twkm-top-hub__compact-tools details[open] { flex-basis: 100%; }
    .twkm-top-hub__compact-tools .twkm-ai-note { font-size: 12px; line-height: 1.5; }
}
@media (min-width: 700px) and (max-width: 959px) {
    .twkm-top-hub__hero .twkm-top-hub__guide-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 361px) and (max-width: 699px) and (max-height: 690px) {
    .twkm-top-hub__hero .twkm-top-hub__availability { margin-inline-end: var(--twkm-hub-fab-search-safe-end); }
}
@media (min-width: 361px) and (max-width: 699px) and (min-height: 620px) and (max-height: 690px) {
    .twkm-top-hub__hero.has-ai-actions:not([data-twkm-height-tier="minimal"]) .twkm-top-hub__suggestions { display: block; }
}
@media (max-width: 360px) and (max-height: 690px) {
    .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search { width: 172px; max-width: 100%; }
    .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search-row {
        width: 172px; max-width: 100%; margin-inline-end: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    }
    .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search-row input { grid-column: 1 / -1; }
    .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search-row > button { min-inline-size: 66px; }
    .twkm-top-hub__compact-lead { min-width: 0; }
    .twkm-top-hub__compact-lead summary {
        min-height: 44px; padding: 10px 2px; font-size: 14px; line-height: 22px;
        color: #172a22; cursor: pointer; white-space: nowrap;
    }
    .twkm-top-hub__compact-lead summary:focus-visible { outline: 3px solid #102a43; outline-offset: 2px; }
    .twkm-top-hub__compact-lead[open] { grid-column: 1 / -1; }
    .twkm-top-hub__compact-lead .twkm-top-hub__lead { font-size: 14px; white-space: normal; }
    .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__availability { margin-inline-end: min(var(--twkm-hub-fab-search-safe-end), 80px); }
}

/* v1.2.3: editorial guide removed; keep the search area full-width. */
.twkm-top-hub__hero .twkm-top-hub__hero-core {
    grid-template-columns: minmax(0, 1fr);
}
.twkm-top-hub__hero .twkm-top-hub__intro {
    width: 100%;
}
@media (max-width: 360px) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__catch {
        margin-inline-end: min(var(--twkm-hub-fab-search-safe-end), 80px);
        font-size: clamp(18px, 5.55vw, 20px);
    }
    .twkm-top-hub__hero .twkm-top-hub__catch br { display: none; }
}

/* AI search and microphone retain visible text labels. */
.twkm-top-hub__hero .twkm-top-hub__search-row > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.twkm-top-hub__hero .twkm-top-hub__search-row .twkm-ai-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; }
.twkm-top-hub__hero [data-ai-send] { box-shadow: 0 3px 8px rgb(23 42 34 / 12%); }
@media (max-width: 699px) and (max-height: 740px) {
 .twkm-top-hub__hero.has-ai-actions.has-compact-lead .twkm-top-hub__search-row > button { gap: 4px; }
}

/* v1.2.5: keep suggestions inside the same search/AI surface, but use the
 * desktop space beside the heading and form. Mobile keeps its existing flow. */
@media (min-width: 960px) {
    .twkm-top-hub__hero .twkm-top-hub__intro {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        column-gap: clamp(24px, 3vw, 42px);
        align-items: start;
    }
    .twkm-top-hub__hero .twkm-top-hub__intro > * { grid-column: 1; min-width: 0; }
    .twkm-top-hub__hero .twkm-top-hub__intro > .twkm-top-hub__suggestions {
        grid-column: 2;
        grid-row: 1 / span 5;
        align-self: center;
        margin-block: 0;
    }
    .twkm-top-hub__hero .twkm-top-hub__suggestions > p {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .twkm-top-hub__hero .twkm-top-hub__questions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .twkm-top-hub__hero .twkm-top-hub__questions button {
        width: 100%;
        min-width: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Own all pointer/keyboard states: theme button colors must not turn these
 * search suggestions or rail controls burgundy. Keep the existing brand palette. */
.twkm-top-hub .twkm-top-hub__questions button:is(:hover, :focus, :active),
.twkm-top-hub .twkm-top-hub__rail-controls button:is(:hover, :focus, :active) {
    border-color: var(--twkm-hub-aqua);
    color: var(--twkm-hub-aqua-dark);
    background: #eaf8fb;
}
.twkm-top-hub .twkm-top-hub__questions button:active,
.twkm-top-hub .twkm-top-hub__rail-controls button:active { background: #dff5f9; }
.twkm-top-hub .twkm-top-hub__questions button:focus-visible,
.twkm-top-hub .twkm-top-hub__rail-controls button:focus-visible {
    outline: 3px solid var(--twkm-hub-aqua-dark);
    outline-offset: 2px;
}
.twkm-top-hub .twkm-top-hub__search-row button[type="submit"]:is(:hover, :focus, :active) {
    border-color: #111111;
    color: #111111;
    background: var(--twkm-hub-yellow-soft);
}
.twkm-top-hub .twkm-top-hub__hero [data-ai-mic]:is(:hover, :focus, :active) {
    border-color: var(--twkm-hub-green);
    color: var(--twkm-hub-text-strong);
    background: #ecf8ef;
}

/* v1.2.6: lighter typography and fine brand-color boundaries. Keep visible
 * keyboard focus without the previous heavy dark/yellow double frame. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__intro h1 {
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.6;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__catch {
    color: #244c48;
    font-size: clamp(24px, 2.7vw, 36px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__lead { font-size: 14px; line-height: 1.8; }
.twkm-top-hub .twkm-top-hub__search > label,
.twkm-top-hub .twkm-top-hub__suggestions > p { font-size: 13px; font-weight: 600; }
.twkm-top-hub .twkm-top-hub__questions button { font-size: 13px; font-weight: 500; }
.twkm-top-hub .twkm-top-hub__intents h2,
.twkm-top-hub .twkm-top-hub__categories h2,
.twkm-top-hub .twkm-top-hub__regions h2 { font-size: clamp(19px, 2.3vw, 23px); font-weight: 600; }
.twkm-top-hub .twkm-top-hub__intent-link strong,
.twkm-top-hub .twkm-top-hub__category-link strong,
.twkm-top-hub .twkm-top-hub__type-link,
.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab{ font-weight: 600; }
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row input,
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row button {
    min-height: 44px;
    border: 1px solid #a7ceca;
    color: var(--twkm-hub-text-strong);
    box-shadow: none;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row input { font-size: 16px; }
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row button { font-size: 14px; font-weight: 600; }
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row button[type="submit"]:is(:hover, :focus, :active) {
    border-color: #68aaa3;
    color: var(--twkm-hub-text-strong);
    background: var(--twkm-hub-yellow-soft);
}
.twkm-top-hub .twkm-top-hub__hero :is(input, button, a, summary):focus-visible,
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row input:focus,
.twkm-top-hub .twkm-top-hub__hero [data-twkm-rail]:focus-visible {
    outline: 2px solid #167d96;
    outline-offset: 2px;
    box-shadow: none;
}
.twkm-top-hub .twkm-top-hub__municipality-link.is-towada {
    border: 1px solid #a7ceca;
    color: var(--twkm-hub-text-strong) !important;
    font-weight: 600;
}
.twkm-top-hub .twkm-top-hub__municipality-link small { border-color: #a7ceca; font-weight: 600; }
.twkm-top-hub .twkm-top-hub__preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-end: var(--twkm-hub-fab-search-safe-end);
}
.twkm-top-hub .twkm-top-hub__preview-actions button:disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid #d0dedb;
    border-radius: 8px;
    color: #526e69;
    background: #f2f7f5;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 1;
    cursor: not-allowed;
}
.twkm-top-hub .twkm-top-hub__preview-actions button:disabled:is(:hover, :focus, :active) {
    color: #526e69;
    background: #f2f7f5;
    border-color: #d0dedb;
}
.twkm-top-hub .twkm-top-hub__preview-actions small { display: block; font-size: 10px; font-weight: 400; }
.twkm-top-hub .twkm-top-hub__preview-actions .twkm-ai-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.twkm-top-hub .twkm-top-hub__availability-note { margin: 6px 0 0; font-size: 12px; line-height: 1.65; }
@media (max-width: 699px) {
    /* Keep the FAB corridor, but let the field use its entire available row.
     * Do not restore the legacy 172px hard cap on compact AI/fallback forms. */
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search,
    .twkm-top-hub .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search { width: auto; max-width: 100%; margin-inline-end: var(--twkm-hub-fab-search-safe-end); }
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row,
    .twkm-top-hub .twkm-top-hub__hero.has-compact-lead .twkm-top-hub__search-row {
        width: auto;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row input { grid-column: 1 / -1; }
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row button {
        min-width: 0;
        width: auto;
        padding-inline: 8px;
        white-space: normal;
    }
    .twkm-top-hub .twkm-top-hub__hero:not(.has-ai-actions) .twkm-top-hub__search-row > button[type="submit"] { grid-column: 1 / -1; justify-self: start; }
    .twkm-top-hub .twkm-top-hub__preview-actions button { flex: 1 1 90px; }
}
@media (max-width: 360px) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__catch { font-size: clamp(20px, 5.6vw, 24px); }
}
@media (forced-colors: active) {
    .twkm-top-hub .twkm-top-hub__hero :is(input, button, a, summary):focus-visible,
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__search-row input:focus { outline-color: Highlight; }
}

/* v1.3.8: subtle AI wordmark color only; keep every control/layout unchanged. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
    color: #176b63;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
    color: #8c6b13;
    -webkit-text-fill-color: #8c6b13;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
        background-image: linear-gradient(115deg, #176b63 0%, #167d96 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
@media (forced-colors: active) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word,
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
        background-image: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }
}
@media print {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
        background-image: none;
        color: #176b63;
        -webkit-text-fill-color: currentColor;
    }
}

/* v1.3.8: blue-only wordmark, emphasized heart, neutral blue-charcoal heading. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__catch { color: #334155; }
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
    color: #2455ad;
    -webkit-text-fill-color: #2455ad;
    background-image: none;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
    color: #3268bc;
    -webkit-text-fill-color: #3268bc;
    font-size: .74em;
    font-weight: 700;
    -webkit-text-stroke: .45px currentColor;
    top: -.56em;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
        background-image: linear-gradient(115deg, #244fa3 0%, #3576ca 100%);
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
@media (forced-colors: active) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word,
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
        background-image: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }
}
@media print {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
        background-image: none;
        color: #2455ad;
        -webkit-text-fill-color: currentColor;
    }
}

/* v1.3.8: requested bright blue AI and emphasized pink heart only. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word {
    background-image: none;
    color: #148dcc;
    -webkit-text-fill-color: #148dcc;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
    color: #e84a8c;
    -webkit-text-fill-color: #e84a8c;
}
@media (forced-colors: active) {
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word,
    .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__ai-word > span {
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }
}

/* v1.3.8: mobile two-row municipality rail inside each open region. */
@media (max-width: 699px) {
 .twkm-top-hub .twkm-top-hub__region ul {
  display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto);
  grid-auto-flow: column; grid-auto-columns: minmax(108px, 42%);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  gap: 6px; padding: 6px; -webkit-overflow-scrolling: touch;
 }
 .twkm-top-hub .twkm-top-hub__region ul > li { scroll-snap-align: start; }
 .twkm-top-hub .twkm-top-hub__municipality-link,
 .twkm-top-hub .twkm-top-hub__type-link { min-height: 44px; }
}

/* Stage 1: quiet search suggestions; keep touch targets generous. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__suggestions > p {font-size:12px;line-height:1.6;}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__questions button {font-size:12px;line-height:1.6;min-height:44px;font-weight:500;}

/* v1.3.8: center both SSR radio-label spans and enhanced tabs. */
.twkm-top-hub .twkm-top-hub__event-tabs .twkm-top-hub__event-tab {
 display: flex; align-items: center; justify-content: center;
 box-sizing: border-box; line-height: 1.5; min-height: 44px;
}
/* Narrow theme override: keyword suggestions only, never the search input. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__suggestions .twkm-top-hub__questions > button[data-twkm-question] {
 font-size: 12px !important; line-height: 1.6; min-height: 44px;
}

/* v1.3.8: visible compact HOME action row above existing bottom navigation.
 * Content can scroll clear of the overlay; horizontal rail width stays intact. */
@media all {
 body.home.page-id-423 #towakomyu-fab-container {
  position: fixed !important;
  inset: auto !important;
  right: 14px !important; bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  display: flex !important; flex-direction: row; flex-wrap: nowrap;
  justify-content: center; align-items: center; gap: 8px;
  width: auto; max-width: calc(100vw - 28px); margin: 0;
  z-index: 9990;
 }
 body.home.page-id-423 #towakomyu-fab-container > .towa-fab-btn {
  box-sizing: border-box; min-width: 44px; min-height: 44px;
  margin: 0;
 }
 body.home.page-id-423 {
  padding-bottom: calc(176px + env(safe-area-inset-bottom));
 }
 body.home.page-id-423 .twkm-top-hub {
  --twkm-hub-fab-search-safe-end: 0px;
  --twkm-hub-fab-section-safe-end: 0px;
 }
 body.home.page-id-423 .twkm-top-hub :is(a, button, input, summary) {
  scroll-margin-bottom: calc(176px + env(safe-area-inset-bottom));
 }
}

@media all {
 body.home.page-id-423.twkm-home-actions-in-nav #towakomyu-fab-container { display: none !important; }
 body.home.page-id-423.twkm-home-actions-in-nav #twk-tab-bar {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
 }
 body.home.page-id-423.twkm-home-actions-in-nav #twkScrollContainer {
  grid-column: 1; grid-row: 1; min-width: 0; width: 100%; overflow-x: auto;
 }
 body.home.page-id-423 .twkm-home-nav-actions {
  grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 4px; padding: 4px;
 }
 body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn {
  position: static !important; box-sizing: border-box; flex: 0 0 44px;
  width: 44px !important; min-width: 44px; height: 44px !important; min-height: 44px;
  margin: 0 !important; padding: 4px !important; font-size: 11px; line-height: 1.2;
 }
}

/* Integrated controls fit the existing navigation height at narrow widths. */
@media all {
 body.home.page-id-423.twkm-home-actions-in-nav #twk-tab-bar {
  box-sizing: border-box; width: calc(100vw - 28px); max-width: 720px;
 }
 body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px !important; font-size: 10px !important; line-height: 1.1;
 }
 body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn svg {
  width: 14px !important; height: 14px !important; flex: 0 0 14px;
 }
 body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn span {
  font-size: 10px !important; line-height: 1.1; white-space: nowrap;
 }
 body.home.page-id-423.twkm-home-actions-in-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* v1.3.8: navigation shell is click-through; explicitly enable action hit testing. */
@media all {
 body.home.page-id-423 .twkm-home-nav-actions,
 body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn {
  pointer-events: auto !important;
 }
 body.home.page-id-423 .twkm-home-nav-actions {
  position: relative; z-index: 1;
 }
}

/* v1.3.8: accessible static preparation notice, no AI network operation. */
.twkm-top-hub .twkm-top-hub__ai-preparing {
 position: fixed; inset: 0; margin: auto; box-sizing: border-box;
 width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
 overflow: auto; padding: 24px; border: 1px solid #b4dcd7; border-radius: 16px;
 background: #fff; color: #18384d; z-index: 100001;
}
.twkm-top-hub .twkm-top-hub__ai-preparing:not([open]) { display: none; }
.twkm-top-hub .twkm-top-hub__ai-preparing::backdrop { background: rgb(0 0 0 / .35); }
.twkm-top-hub .twkm-top-hub__ai-preparing h2 { font-size: 20px; line-height: 1.5; }
.twkm-top-hub .twkm-top-hub__ai-preparing button { min-width: 88px; min-height: 44px; }

/* v1.3.8: equal-height actions and centered shared bar at every width. */
body.home.page-id-423.twkm-home-actions-in-nav #twk-tab-bar {
 left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
 grid-template-columns: minmax(0, 1fr) 120px; padding: 0; min-height: 58px;
}
body.home.page-id-423 .twkm-home-nav-actions { gap: 4px; padding: 0; height: 58px; }
body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn {
 flex: 0 0 58px; width: 58px !important; min-width: 58px;
 height: 58px !important; min-height: 58px; border-radius: 12px;
}
body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn svg {
 width: 18px !important; height: 18px !important; flex-basis: 18px;
}
body.home.page-id-423 .twkm-home-nav-actions > .towa-fab-btn span { font-size: 11px !important; }

/* v1.3.8: retain the original pill share and circular AI silhouettes. */
body.home.page-id-423.twkm-home-actions-in-nav #twk-tab-bar {
 grid-template-columns: minmax(0, 1fr) 158px;
}
body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-share {
 flex: 0 0 96px; width: 96px !important; min-width: 96px;
 height: 58px !important; min-height: 58px; border-radius: 9999px !important;
 flex-direction: row; gap: 6px !important;
}
body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-ai {
 flex: 0 0 58px; width: 58px !important; min-width: 58px;
 height: 58px !important; min-height: 58px; border-radius: 50% !important;
}

body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-share span {
 font-size: 14px !important;
}
body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-share svg {
 width: 22px !important; height: 22px !important; flex-basis: 22px;
}
body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-ai,
body.home.page-id-423 .twkm-home-nav-actions > #towa-trig-ai span {
 font-size: 20px !important;
}

/* HOME only: quiet regular-search link and no compact guidance toggle. */
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > details.twkm-top-hub__compact-lead {
 display: none;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools {
 max-inline-size: 100%; flex-wrap: wrap;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > [data-ai-normal-search] {
 box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
 flex: 0 1 auto; min-inline-size: 44px; min-block-size: 44px; max-inline-size: 100%;
 padding: 9px 12px; border: 1px solid #cbd5d1; border-radius: 10px;
 background: #f1f5f4; color: #46564f; font-size: 14px; line-height: 22px;
 text-decoration: none; white-space: normal; overflow-wrap: anywhere;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > [data-ai-normal-search]:hover {
 background: #e7eeeb; border-color: #9baea4; color: #253b31;
}
.twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > [data-ai-normal-search]:focus-visible {
 outline: 3px solid #167d96; outline-offset: 3px;
}
@media (forced-colors: active) {
 .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > [data-ai-normal-search] {
  background: ButtonFace; color: ButtonText; border-color: ButtonText;
 }
 .twkm-top-hub .twkm-top-hub__hero .twkm-top-hub__compact-tools > [data-ai-normal-search]:focus-visible {
  outline-color: Highlight;
 }
}
