:root {
	--tm-ink: #17202a;
	--tm-muted: #5c6875;
	--tm-line: #d9e2e8;
	--tm-surface: #ffffff;
	--tm-soft: #f6f8f5;
	--tm-green: #168060;
	--tm-green-dark: #0f5e4a;
	--tm-blue: #2f6690;
	--tm-teal: #16818b;
	--tm-rose: #b64b5f;
	--tm-red: #b42335;
	--tm-amber: #946b00;
	--tm-shadow: 0 12px 30px rgba(16, 32, 44, 0.08);
}

body.top-modern-active {
	background: var(--tm-soft);
	color: var(--tm-ink);
	font-size: 18px;
	line-height: 1.85;
	letter-spacing: 0;
}

body.home {
	background: var(--tm-soft);
	color: var(--tm-ink);
	font-size: 18px;
	line-height: 1.85;
	letter-spacing: 0;
}

body.top-modern-active .site,
body.top-modern-active .site-inner,
body.top-modern-active .site-content,
body.top-modern-active .top-modern-content {
	background: transparent;
}

body.top-modern-active .site-inner {
	max-width: none;
}

body.top-modern-active .site-content {
	padding: 0;
}

body.top-modern-active .top-modern-content {
	float: none;
	margin: 0;
	width: 100%;
}

body.top-modern-active .site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--tm-line);
	box-shadow: 0 8px 20px rgba(16, 32, 44, 0.05);
}

body.admin-bar.top-modern-active .site-header {
	top: 32px;
}

body.top-modern-active .site-header-main {
	display: flex;
	align-items: center;
	gap: 22px;
	width: min(1180px, calc(100% - 32px));
	min-height: 82px;
	margin: 0 auto;
}

body.top-modern-active .site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 310px;
	max-width: 460px;
}

body.top-modern-active .custom-logo-link {
	flex: 0 0 auto;
}

body.top-modern-active .custom-logo {
	width: 58px;
	height: 58px;
	object-fit: contain;
}

body.top-modern-active .site-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

body.top-modern-active .site-title a {
	color: var(--tm-ink);
	text-decoration: none;
}

body.top-modern-active .site-description {
	display: none;
}

body.top-modern-active .site-header-menu {
	flex: 1 1 auto;
}

body.top-modern-active .main-navigation {
	margin: 0;
}

body.top-modern-active .primary-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: 0;
}

body.top-modern-active .primary-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 11px;
	border-radius: 8px;
	color: #334150;
	font-size: 15px;
	font-weight: 700;
	overflow-wrap: normal;
	text-decoration: none;
	white-space: nowrap;
	word-break: keep-all;
}

body.top-modern-active .primary-menu .fontawesome-text {
	overflow-wrap: normal;
	white-space: nowrap;
	word-break: keep-all;
}

body.top-modern-active .primary-menu a:hover,
body.top-modern-active .primary-menu a:focus {
	background: #e8f2ef;
	color: var(--tm-green-dark);
}

body.top-modern-active .menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: var(--tm-surface);
	color: var(--tm-ink);
	font-weight: 700;
}

body.home .site,
body.home .site-inner,
body.home .site-content,
body.home .top-modern-content {
	background: transparent;
}

body.home .site-inner {
	max-width: none;
}

body.home .site-content {
	padding: 0;
}

body.home .top-modern-content {
	float: none;
	margin: 0;
	width: 100%;
}

body.home .site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--tm-line);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 8px 20px rgba(16, 32, 44, 0.05);
}

body.admin-bar.home .site-header {
	top: 32px;
}

body.home .site-header-main {
	display: flex;
	align-items: center;
	gap: 22px;
	width: min(1180px, calc(100% - 32px));
	min-height: 82px;
	margin: 0 auto;
}

body.home .site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 310px;
	max-width: 460px;
	margin: 0;
}

body.home .custom-logo-link {
	flex: 0 0 auto;
	line-height: 0;
}

body.home .custom-logo {
	width: 58px;
	height: 58px;
	object-fit: contain;
}

body.home .site-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

body.home .site-title a {
	color: var(--tm-ink);
	text-decoration: none;
}

body.home .site-description {
	display: none;
}

body.home .site-header-menu {
	flex: 1 1 auto;
}

body.home .main-navigation {
	margin: 0;
}

body.home .primary-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: 0;
}

body.home .primary-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 11px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: #334150;
	font-size: 15px;
	font-weight: 700;
	overflow-wrap: normal;
	text-decoration: none;
	white-space: nowrap;
	word-break: keep-all;
}

body.home .primary-menu .fontawesome-text {
	overflow-wrap: normal;
	white-space: nowrap;
	word-break: keep-all;
}

body.home .primary-menu a:hover,
body.home .primary-menu a:focus {
	background: #e8f2ef;
	color: var(--tm-green-dark);
}

body.home .menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: var(--tm-surface);
	color: var(--tm-ink);
	font-weight: 700;
}

.top-modern-page {
	margin: 0;
	background: var(--tm-soft);
	color: var(--tm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	font-size: 18px;
	line-height: 1.85;
}

.top-modern-page *,
.top-modern-page *::before,
.top-modern-page *::after {
	box-sizing: border-box;
}

.top-modern-page a {
	color: inherit;
	text-decoration: none;
}

.top-modern-page h1,
.top-modern-page h2,
.top-modern-page h3,
.top-modern-page p,
.top-modern-page a,
.top-modern-page strong,
.top-modern-page span {
	overflow-wrap: anywhere;
}

.top-modern-page img {
	display: block;
	max-width: 100%;
}

.top-modern-page h1,
.top-modern-page h2,
.top-modern-page h3,
.top-modern-page p {
	margin-top: 0;
}

.top-modern-status {
	background: #173b31;
	color: #fff;
}

body.top-modern-disaster .top-modern-status {
	background: #701d2a;
}

.top-modern-status__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 12px 0;
}

.top-modern-status__inner p {
	flex: 1;
	margin: 0;
	font-size: 16px;
}

.top-modern-status__inner a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	color: #d4f4ea;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
}

.top-modern-status__inner a i {
	flex: 0 0 auto;
	line-height: 1;
}

.top-modern-status__badge,
.top-modern-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 9px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.top-modern-status__badge--normal {
	background: #d6f6e9;
	color: var(--tm-green-dark);
}

.top-modern-status__badge--disaster {
	background: #fff0c2;
	color: #6b2600;
}

.top-modern-disaster-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: min(1180px, calc(100% - 32px));
	margin: 18px auto 0;
	padding: 20px;
	background: #fff8df;
	border: 2px solid #e4b347;
	border-radius: 8px;
	box-shadow: var(--tm-shadow);
}

.top-modern-disaster-panel h2 {
	margin-bottom: 4px;
	color: #6b2600;
	font-size: 26px;
	line-height: 1.35;
}

.top-modern-disaster-panel p {
	margin-bottom: 0;
	color: #604312;
}

.top-modern-login-notice {
	width: min(1180px, calc(100% - 32px));
	margin: 18px auto 0;
	padding: 12px 18px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--tm-shadow);
}

.top-modern-login-notice p,
.top-modern-disaster-panel__login {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #334150;
	font-weight: 700;
	line-height: 1.5;
}

.top-modern-disaster-panel__login {
	margin-top: 10px;
	color: #4f2e0b;
}

.top-modern-disaster-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.top-modern-disaster-panel__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 16px;
	border-radius: 8px;
	background: #7f2632;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
}

.top-modern-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	gap: 28px;
	align-items: stretch;
	width: min(1180px, calc(100% - 32px));
	margin: 28px auto 0;
}

.top-modern-page--member .top-modern-hero {
	grid-template-columns: minmax(0, 1fr) 170px;
	align-items: center;
}

.top-modern-hero__copy {
	display: grid;
	grid-template-columns: 1fr;
	gap: 34px;
	align-items: center;
	min-height: 310px;
	padding: 38px 42px;
	border-radius: 8px;
	background: #143f34;
	box-shadow: 0 10px 24px rgba(16, 32, 44, 0.08);
	color: #fff;
}

.top-modern-hero__copy--text-only {
	grid-template-columns: 1fr;
}

body.top-modern-disaster .top-modern-hero__copy {
	background: #7a2330;
}

.top-modern-hero__text {
	min-width: 0;
}

.top-modern-hero__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 150px;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
}

.top-modern-hero__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

body.top-modern-disaster .top-modern-hero__mark img {
	animation: topModernDisasterLogoFlash 3.6s ease-in-out infinite;
	will-change: opacity, filter;
}

@keyframes topModernDisasterLogoFlash {
	0%,
	100% {
		opacity: 1;
		filter: none;
	}

	50% {
		opacity: 0.68;
		filter: brightness(1.08) saturate(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.top-modern-disaster .top-modern-hero__mark img {
		animation: none;
		opacity: 1;
		filter: none;
	}
}

.top-modern-eyebrow {
	margin: 0 0 14px;
	color: #d8f3e9;
	font-size: 16px;
	font-weight: 700;
}

.top-modern-hero h1 {
	max-width: 700px;
	margin-bottom: 18px;
	color: #fff;
	font-size: 40px;
	line-height: 1.25;
}

.top-modern-lead {
	max-width: 720px;
	margin-bottom: 26px;
	color: #fff;
	font-size: 19px;
}

.top-modern-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.top-modern-button,
.top-modern-login-grid a,
.top-modern-small-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	min-height: 52px;
	border-radius: 8px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.top-modern-button i,
.top-modern-login-grid a i,
.top-modern-small-link i,
.top-modern-disaster-panel__actions a i {
	flex: 0 0 auto;
	line-height: 1;
}

.top-modern-button {
	padding: 0 22px;
	font-size: 18px;
}

.top-modern-button span {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.top-modern-button--primary {
	background: #fff;
	color: #0e463d;
}

.top-modern-button--primary,
.top-modern-button--primary:visited,
.top-modern-button--primary:hover,
.top-modern-button--primary:focus,
.top-modern-button--primary i,
.top-modern-button--primary span {
	color: #0e463d !important;
}

.top-modern-button--secondary {
	border: 1px solid rgba(255, 255, 255, 0.58);
	color: #fff;
}

.top-modern-system-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: var(--tm-surface);
	box-shadow: var(--tm-shadow);
}

.top-modern-system-panel h2 {
	margin-bottom: 8px;
	font-size: 28px;
	line-height: 1.35;
}

.top-modern-system-panel p {
	color: var(--tm-muted);
}

.top-modern-login-grid {
	display: grid;
	gap: 10px;
	margin: 12px 0 18px;
}

.top-modern-login-grid a:first-child {
	background: var(--tm-green);
	color: #fff;
}

.top-modern-login-grid a:last-child {
	background: #eef4f7;
	color: #203040;
}

.top-modern-member-grid a:nth-child(1) {
	background: var(--tm-blue);
	color: #fff;
}

.top-modern-member-grid a:nth-child(2) {
	background: var(--tm-green);
	color: #fff;
}

.top-modern-member-grid a:nth-child(3) {
	background: var(--tm-teal);
	color: #fff;
}

.top-modern-member-grid a:nth-child(4) {
	background: #eef4f7;
	color: #203040;
}

.top-modern-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 0;
	font-size: 15px;
	line-height: 1.65;
}

.top-modern-note i {
	flex: 0 0 18px;
	width: 18px;
	margin-top: 0.36em;
	line-height: 1;
	text-align: center;
}

.top-modern-small-link {
	align-self: flex-start;
	min-height: 42px;
	color: var(--tm-green-dark);
	font-size: 16px;
}

.top-modern-action-band,
.top-modern-content-band {
	margin-top: 34px;
	padding: 38px 0;
	border-top: 1px solid var(--tm-line);
	border-bottom: 1px solid var(--tm-line);
	background: var(--tm-surface);
}

.top-modern-content-band {
	margin-top: 0;
	background: var(--tm-soft);
}

.top-modern-section-heading {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto 20px;
}

.top-modern-section-heading--inline {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	width: auto;
	margin-bottom: 18px;
}

.top-modern-section-heading h2 {
	margin-bottom: 4px;
	font-size: 28px;
	line-height: 1.35;
}

.top-modern-section-heading p,
.top-modern-section-heading a {
	margin: 0;
	color: var(--tm-muted);
	font-size: 17px;
}

.top-modern-section-heading a {
	color: var(--tm-green);
	font-weight: 700;
}

.top-modern-action-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.top-modern-action-card {
	--tm-card-accent: var(--tm-blue);
	--tm-card-soft: #e6f1f5;
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto 1fr auto;
	gap: 12px;
	min-height: 304px;
	padding: 20px;
	overflow: hidden;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(16, 32, 44, 0.06);
	color: var(--tm-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.top-modern-action-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: var(--tm-card-accent);
}

.top-modern-action-card:hover,
.top-modern-action-card:focus {
	border-color: var(--tm-card-accent);
	box-shadow: 0 14px 28px rgba(16, 32, 44, 0.12);
	transform: translateY(-2px);
}

.top-modern-action-card__title {
	display: grid;
	gap: 5px;
	min-height: 0;
	align-content: start;
}

.top-modern-action-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 116px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--tm-card-soft);
}

.top-modern-action-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.top-modern-action-card__body {
	display: grid;
	gap: 0;
	min-width: 0;
}

.top-modern-action-card__label {
	color: var(--tm-card-accent);
	font-size: 17px;
	font-weight: 700;
}

.top-modern-action-card__description {
	color: var(--tm-muted);
	font-size: 15px;
	line-height: 1.6;
}

.top-modern-action-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	padding: 0 16px;
	border-radius: 8px;
	background: var(--tm-card-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.top-modern-action-card__cta i {
	font-size: 14px;
	line-height: 1;
}

.top-modern-action-card--blue {
	--tm-card-accent: var(--tm-blue);
	--tm-card-soft: #e6f1f5;
}

.top-modern-action-card--green {
	--tm-card-accent: var(--tm-green);
	--tm-card-soft: #e1f5eb;
}

.top-modern-action-card--teal {
	--tm-card-accent: var(--tm-teal);
	--tm-card-soft: #def3f5;
}

.top-modern-action-card--rose {
	--tm-card-accent: var(--tm-rose);
	--tm-card-soft: #f7e5e9;
}

.top-modern-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	gap: 28px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.top-modern-news-column,
.top-modern-activity-column {
	min-width: 0;
}

.top-modern-featured-news {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: var(--tm-surface);
	box-shadow: var(--tm-shadow);
}

.top-modern-featured-news__image img {
	width: 100%;
	height: 170px;
	border-radius: 6px;
	object-fit: cover;
}

.top-modern-featured-news h3 {
	margin: 10px 0 8px;
	font-size: 24px;
	line-height: 1.45;
}

.top-modern-featured-news h3::before,
.top-modern-featured-news h3::after,
.top-modern-featured-news h3 a::before,
.top-modern-featured-news h3 a::after {
	display: none !important;
	content: none !important;
}

.top-modern-featured-news h3 a {
	color: var(--tm-ink);
}

.top-modern-featured-news p {
	color: var(--tm-muted);
}

.top-modern-emergency-news,
.top-modern-empty {
	margin-top: 14px;
	padding: 18px;
	border-radius: 8px;
}

.top-modern-emergency-news {
	border: 2px solid #e4b347;
	background: #fff8df;
}

.top-modern-emergency-news h3 {
	margin: 10px 0 6px;
	color: #6b2600;
	font-size: 23px;
	line-height: 1.45;
}

.top-modern-emergency-news p {
	margin-bottom: 0;
	color: #604312;
}

.top-modern-empty {
	border: 1px solid var(--tm-line);
	background: var(--tm-surface);
	color: var(--tm-muted);
}

.top-modern-text-link {
	color: var(--tm-green);
	font-weight: 700;
}

.top-modern-news-list {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.top-modern-news-list a {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 14px;
	align-items: baseline;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: #fff;
}

.top-modern-news-list time {
	color: var(--tm-muted);
	font-size: 16px;
	font-weight: 700;
}

.top-modern-news-list span {
	font-weight: 700;
}

.top-modern-activity-list {
	display: grid;
	gap: 12px;
}

.top-modern-activity-card {
	display: grid;
	gap: 10px;
	min-height: 134px;
	padding: 18px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--tm-shadow);
}

.top-modern-activity-card__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
}

.top-modern-activity-card__archive {
	color: var(--tm-green);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.top-modern-activity-card__title {
	color: var(--tm-ink);
	text-decoration: none;
}

.top-modern-activity-card__title:hover,
.top-modern-activity-card__title:focus,
.top-modern-activity-card__archive:hover,
.top-modern-activity-card__archive:focus {
	color: var(--tm-green-dark);
}

.top-modern-activity-card strong {
	font-size: 20px;
	line-height: 1.45;
}

.top-modern-activity-card__empty {
	color: var(--tm-ink);
}

.top-modern-activity-card small {
	color: var(--tm-muted);
	font-size: 15px;
}

.top-modern-label--normal {
	background: #e6f1f5;
	color: #28506f;
}

.top-modern-label--damage {
	background: #ffe0e4;
	color: #8d1f2c;
}

.top-modern-label--request {
	background: #dff5ea;
	color: var(--tm-green-dark);
}

.top-modern-label--offer {
	background: #def3f5;
	color: #0f6068;
}

body.top-modern-active .site-footer {
	border-top: 1px solid var(--tm-line);
	background: #fff;
}

@media (max-width: 1280px) {
	body.top-modern-active .site-header-main {
		flex-wrap: wrap;
		gap: 10px 18px;
		padding: 12px 0;
	}

	body.top-modern-active .site-branding {
		flex: 1 1 360px;
		max-width: none;
	}

	body.top-modern-active .menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	body.top-modern-active .menu-toggle.toggled-on {
		border-color: var(--tm-green);
		background: var(--tm-green);
		color: #fff;
	}

	body.top-modern-active:not(.logged-in) .site-header .header-login,
	body.top-modern-active:not(.logged-in) .site-header .top-modern-header-login {
		display: none;
	}

	body.top-modern-active .site-header-menu {
		display: none;
		flex-basis: 100%;
		width: 100%;
	}

	body.top-modern-active .site-header-menu.toggled-on {
		display: block;
	}

	body.top-modern-active .primary-menu {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
		justify-content: stretch;
	}

	body.top-modern-active .primary-menu li {
		width: 100%;
	}

	body.top-modern-active .primary-menu a {
		justify-content: flex-start;
		width: 100%;
		min-height: 52px;
		padding: 0 14px;
		overflow: hidden;
		background: #f5f8f7;
		text-overflow: ellipsis;
	}

	.top-modern-hero,
	.top-modern-content-layout {
		grid-template-columns: 1fr;
	}

	.top-modern-page--member .top-modern-hero {
		grid-template-columns: 1fr;
	}

	.top-modern-action-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	body.admin-bar.top-modern-active .site-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	body.top-modern-active {
		font-size: 17px;
	}

	body.top-modern-active .site-header {
		position: relative;
		top: auto;
	}

	body.admin-bar.top-modern-active .site-header {
		top: auto;
	}

	body.top-modern-active .site-header-main,
	.top-modern-status__inner,
	.top-modern-disaster-panel,
	.top-modern-hero,
	.top-modern-action-grid,
	.top-modern-content-layout,
	.top-modern-section-heading,
	.top-modern-login-notice {
		width: min(100% - 24px, 1180px);
	}

	body.top-modern-active .site-branding {
		min-width: 0;
	}

	body.top-modern-active .custom-logo {
		width: 48px;
		height: 48px;
	}

	body.top-modern-active .site-title {
		font-size: 16px;
	}

	body.top-modern-active .primary-menu {
		display: grid;
		grid-template-columns: 1fr;
	}

	body.top-modern-active .primary-menu a {
		width: 100%;
	}

	.top-modern-status__inner,
	.top-modern-disaster-panel {
		align-items: flex-start;
		flex-direction: column;
	}

	.top-modern-status__inner a,
	.top-modern-disaster-panel__actions,
	.top-modern-disaster-panel__actions a {
		width: 100%;
	}

	.top-modern-hero__copy {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 30px 22px;
	}

	.top-modern-hero__mark {
		order: -1;
		justify-self: center;
		width: 144px;
		padding: 0;
	}

	.top-modern-hero h1 {
		font-size: 34px;
	}

	.top-modern-lead {
		font-size: 18px;
	}

	.top-modern-system-panel {
		padding: 24px;
	}

	.top-modern-button,
	.top-modern-hero__actions,
	.top-modern-hero__actions a,
	.top-modern-login-grid a {
		width: 100%;
	}

	.top-modern-action-grid,
	.top-modern-featured-news {
		grid-template-columns: 1fr;
	}

	.top-modern-action-card {
		min-height: 0;
	}

	.top-modern-action-card__title {
		min-height: 0;
	}

	.top-modern-action-card__media {
		height: 136px;
	}

	.top-modern-featured-news__image img {
		height: 190px;
	}

	.top-modern-news-list a {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 380px) {
	.top-modern-hero h1 {
		font-size: 30px;
	}

	.top-modern-section-heading h2,
	.top-modern-system-panel h2 {
		font-size: 25px;
	}

	.top-modern-activity-list strong {
		font-size: 19px;
	}
}

/* Keep the modern top page isolated from legacy global rules in style.css. */
body.top-modern-active .site-header,
body.home .site-header {
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
}

body.top-modern-active .site-header-main,
body.home .site-header-main {
	align-items: center !important;
	height: auto !important;
	min-height: 82px !important;
	padding: 0 !important;
}

body.top-modern-active .site-branding,
body.home .site-branding {
	margin: 0 !important;
	overflow: visible !important;
}

body.top-modern-active .custom-logo-link,
body.home .custom-logo-link {
	display: inline-flex !important;
	align-items: center !important;
}

body.top-modern-active .custom-logo,
body.home .custom-logo {
	width: 58px !important;
	height: 58px !important;
	max-width: 58px !important;
}

body.top-modern-active .primary-menu,
body.home .primary-menu {
	border: 0 !important;
}

body.top-modern-active .primary-menu > li,
body.top-modern-active .menu-item,
body.home .primary-menu > li,
body.home .menu-item {
	float: none !important;
	border: 0 !important;
	margin: 0 !important;
	font-size: inherit !important;
}

body.top-modern-active .primary-menu a,
body.home .primary-menu a {
	border: 0 !important;
	box-shadow: none !important;
	gap: 8px !important;
}

body.top-modern-active .primary-menu a i,
body.home .primary-menu a i {
	flex: 0 0 auto;
	line-height: 1;
}

body.top-modern-active .top-modern-button--primary,
body.top-modern-active .top-modern-button--primary:visited,
body.top-modern-active .top-modern-button--primary:hover,
body.top-modern-active .top-modern-button--primary:focus,
body.top-modern-active .top-modern-button--primary i,
body.top-modern-active .top-modern-button--primary span,
body.home .top-modern-button--primary,
body.home .top-modern-button--primary:visited,
body.home .top-modern-button--primary:hover,
body.home .top-modern-button--primary:focus,
body.home .top-modern-button--primary i,
body.home .top-modern-button--primary span {
	color: #0e463d !important;
}

@media (min-width: 1281px) {
	body.top-modern-active .site-header-main,
	body.home .site-header-main {
		flex-wrap: nowrap !important;
	}

	body.top-modern-active .site-header-menu,
	body.home .site-header-menu {
		display: block !important;
		margin: 0 !important;
	}
}

@media (max-width: 1280px) {
	body.top-modern-active .site-header-main,
	body.home .site-header-main {
		flex-wrap: wrap !important;
		min-height: 0 !important;
		padding: 12px 0 !important;
	}

	body.top-modern-active .menu-toggle,
	body.home .menu-toggle {
		display: inline-flex !important;
	}

	body.top-modern-active .site-header-menu,
	body.home .site-header-menu {
		margin: 0 !important;
	}

	body.top-modern-active .site-header-menu:not(.toggled-on),
	body.home .site-header-menu:not(.toggled-on) {
		display: none !important;
	}

	body.top-modern-active .site-header-menu.toggled-on,
	body.home .site-header-menu.toggled-on {
		display: block !important;
	}
}
