/* Shared frame refresh for pages rebuilt by jk_swap_frame.cgi. */
:root {
	--frame-ink: #263238;
	--frame-muted: #5f676b;
	--frame-line: #d7dedb;
	--frame-green: #256455;
	--frame-green-light: #eef6f2;
	--frame-accent: #b23a2e;
	--frame-link: #01588d;
	--frame-page: #f7f8f6;
	--frame-panel: #ffffff;
}

body {
	background: var(--frame-page);
	color: var(--frame-ink);
	font-size: 16px;
	line-height: 1.65;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid rgba(1, 88, 141, 0.35);
	outline-offset: 3px;
}

.site-header.header {
	width: 100%;
	max-width: none;
	padding: 0;
	background: var(--frame-panel);
	border-top: 5px solid var(--frame-green);
	border-bottom: 1px solid var(--frame-line);
	box-shadow: 0 1px 8px rgba(38, 50, 56, 0.08);
}

.site-header-inner {
	max-width: 1100px;
	min-height: 88px;
	margin: 0 auto;
	padding: 18px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	max-width: 380px;
}

.site-logo img {
	width: auto;
	max-height: 58px;
}

.menu-bar {
	gap: 10px;
}

.menu-bar button {
	width: 46px;
	height: 42px;
	border: 1px solid var(--frame-line);
	background: var(--frame-panel);
	color: var(--frame-green);
	cursor: pointer;
	font-size: 1.25rem;
}

.menu-bar button:hover {
	background: var(--frame-green-light);
	color: var(--frame-accent);
}

.search {
	position: static;
	width: auto;
	min-width: 280px;
}

.site-search-form {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
}

.site-search-form label {
	font-size: 0.95rem;
	color: var(--frame-muted);
}

.search_input {
	width: min(26vw, 260px);
	min-width: 180px;
	height: 38px;
	border: 1px solid var(--frame-line);
	padding: 7px 10px;
	background: #fff;
	color: var(--frame-ink);
}

.search_btn {
	width: 38px;
	height: 38px;
	margin: 0;
	border: 1px solid var(--frame-line);
	background: var(--frame-green);
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
}

.search_btn:hover {
	background: var(--frame-accent);
	color: #fff;
}

.topmenu {
	width: 100%;
	max-width: none;
	background: var(--frame-panel);
	border-bottom: 1px solid var(--frame-line);
}

.topmenu ul {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	justify-content: center;
	gap: 2px;
	border: 0;
	border-radius: 0;
	white-space: normal;
}

.topmenu li {
	margin: 0;
	padding: 0;
	border: 0;
}

.topmenu li > a {
	padding: 15px 20px 13px;
	border-bottom: 3px solid transparent;
	font-size: 0.98rem;
	color: var(--frame-ink);
}

.topmenu li:hover > a,
.topmenu li.active > a {
	color: var(--frame-link);
	border-bottom-color: var(--frame-accent);
}

.topmenu li.active a {
	margin: 0;
	padding: 15px 20px 13px;
	border-top: 0;
}

.show.site-hero {
	width: 100%;
	max-width: 1100px;
	margin: 22px auto 0;
	padding: 0 28px;
}

.site-hero img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	border: 1px solid var(--frame-line);
}

.main.site-main {
	width: 100%;
	max-width: 980px;
	margin: 0 auto 34px;
	padding: 26px 34px 44px;
	background: var(--frame-panel);
	border: 1px solid var(--frame-line);
	border-top: 0;
	text-align: left;
	box-shadow: 0 3px 18px rgba(38, 50, 56, 0.07);
}

.translate-shell {
	display: flex;
	justify-content: flex-end;
	min-height: 32px;
	margin-bottom: 14px;
}

.site-main h1 {
	margin-top: 26px;
	padding-bottom: 8px;
	line-height: 1.35;
}

.site-main h2 {
	margin-top: 28px;
}

.site-main p {
	max-width: 74ch;
	font-size: 1rem;
	line-height: 1.72;
}

.site-main .writing_box p,
.site-main .three_row_box p,
.site-main .four_row_box p,
.site-main .box p {
	max-width: none;
}

.site-footer {
	padding: 28px 22px;
	background: var(--frame-green);
	color: #fff;
	font-size: 0.95rem;
}

.footer-separator::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 1em;
	margin: 0 16px -2px;
	background: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 800px) {
	.site-header-inner {
		min-height: auto;
		padding: 14px 18px 10px;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}

	.site-logo {
		max-width: calc(100% - 112px);
	}

	.site-logo img {
		max-height: 52px;
	}

	.menu-bar {
		display: flex;
		width: auto;
		margin: 0;
	}

	.search {
		display: none;
		width: 100%;
		min-width: 100%;
		background: transparent;
	}

	.site-search-form {
		justify-content: center;
		padding: 10px 0 4px;
	}

	.search_input {
		width: min(70vw, 420px);
		min-width: 0;
	}

	.topmenu {
		display: none;
		background: var(--frame-green);
	}

	.topmenu ul {
		padding: 0;
		display: block;
		background: transparent;
	}

	.topmenu li {
		background: transparent;
		border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	}

	.topmenu li a,
	.topmenu li.active a {
		padding: 11px 18px;
		color: #fff;
		border: 0;
		text-align: center;
	}

	.topmenu li:hover > a,
	.topmenu li.active > a {
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
	}

	.show.site-hero {
		margin-top: 0;
		padding: 0;
	}

	.site-hero img {
		height: auto;
		max-height: none;
		border-left: 0;
		border-right: 0;
	}

	.main.site-main {
		width: 100%;
		margin: 0 auto 24px;
		padding: 20px 22px 34px;
		border-left: 0;
		border-right: 0;
	}

	.translate-shell {
		justify-content: center;
	}
}

@media screen and (max-width: 500px) {
	.site-logo {
		max-width: 100%;
	}

	.menu-bar {
		width: 100%;
		justify-content: center;
	}

	.site-search-form {
		align-items: stretch;
	}

	.site-search-form label {
		position: absolute;
		left: -9999px;
	}

	.search_input {
		width: calc(100% - 48px);
	}

	.site-main h1 {
		font-size: 18pt;
	}

	.site-main h2,
	.site-main h2 a {
		font-size: 14pt;
	}

	.footer-separator {
		display: block;
		margin-top: 8px;
	}

	.footer-separator::before {
		display: none;
	}
}