/* 財政シグナル共通表示 */
.fiscal-signal {
	box-sizing: border-box;
	width: 100%;
	max-width: 74rem;
	margin: 0.8rem auto 1rem;
	padding: 0.8rem 1rem;
	background: #fff;
	border: 2px solid #9a6700;
	border-left-width: 6px;
	border-radius: 6px;
}

.fiscal-signal--warning {
	background: #fff;
	border-color: #b42318;
}

.fiscal-signal--reference {
	background: #fff;
	border-color: #245b63;
}

.fiscal-signal--inline {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.75rem;
}

.chart-panel-footer .fiscal-signal--inline {
	margin: 0;
}

.fiscal-signal--summary {
	margin: 0;
	padding: 0.55rem 0.75rem;
}

.fiscal-signal-list {
	display: grid;
	box-sizing: border-box;
	gap: 0.35rem;
	width: 100%;
	max-width: 74rem;
	margin: 0.8rem auto 1rem;
}

.fiscal-signal .fiscal-signal__summary-line {
	margin: 0;
	color: #5f4100;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
}

.fiscal-signal--warning .fiscal-signal__summary-line {
	color: #8f1d14;
}

.fiscal-signal--reference .fiscal-signal__summary-line {
	color: #245b63;
}

.fiscal-signal__metric-link {
	color: inherit;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.fiscal-signal__metric-link:hover,
.fiscal-signal__metric-link:focus-visible {
	background: #fff3cd;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

#fiscal-signal-debt-service-detail,
#fiscal-signal-fund-balance-detail,
#fiscal-signal-redemption-fund-shortfall-detail {
	scroll-margin-top: 4rem;
}

.fiscal-signal__badge {
	display: inline-block;
	margin-right: 0.45em;
	padding: 0.12em 0.42em;
	background: #8a5a00;
	border-radius: 3px;
	color: #fff !important;
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
}

.fiscal-signal--warning .fiscal-signal__badge {
	background: #b42318;
}

.fiscal-signal--reference .fiscal-signal__badge {
	background: #245b63;
}

.fiscal-signal .fiscal-signal__title {
	margin: 0 0 0.4rem;
	padding: 0;
	background: transparent;
	color: #5f4100 !important;
	font-size: 1.08rem;
	line-height: 1.45;
}

.fiscal-signal--warning .fiscal-signal__title {
	color: #8f1d14 !important;
}

.fiscal-signal--reference .fiscal-signal__title {
	color: #245b63 !important;
}

/* 制度用語の説明ポップアップ */
.fiscal-term__trigger {
	appearance: none;
	margin: 0;
	padding: 0 0.05em;
	background: transparent;
	border: 0;
	border-bottom: 2px dotted currentColor;
	color: inherit;
	cursor: help;
	font: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.fiscal-term__trigger:hover,
.fiscal-term__trigger:focus-visible {
	background: #fff3cd;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.fiscal-term__info {
	margin-left: 0.15em;
	font-size: 0.72em;
	vertical-align: 0.12em;
}

.fiscal-term__popover {
	box-sizing: border-box;
	width: min(32rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 1rem 1.1rem;
	background: #fff;
	border: 2px solid #25313c;
	border-radius: 6px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
	color: #1f2933;
	overflow: auto;
}

.fiscal-term__popover::backdrop {
	background: rgba(15, 23, 42, 0.42);
}

.fiscal-term__popover p {
	margin: 0.45rem 0;
	line-height: 1.7;
}

.fiscal-term__popover .fiscal-term__title {
	margin-top: 0;
	padding-right: 2rem;
	color: #111827;
	font-size: 1.05rem;
	font-weight: 700;
}

.fiscal-term__source {
	font-size: 0.86rem;
}

.fiscal-term__close {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	background: #25313c;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
}

.fiscal-signal p {
	margin: 0.35rem 0;
	line-height: 1.7;
}

.fiscal-signal .fiscal-signal__note {
	color: #56616a;
	font-size: 0.86rem;
}
