/* ================================
       연혁 전체
    ================================ */

    .fkmtu-history-wrap {
        width: 100%;
        min-width: 0;
    }

    /* ================================
       연혁 탭
    ================================ */

    .fkmtu-history-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 14px 0 24px;
        padding: 0 0 4px;
        box-sizing: border-box;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .fkmtu-history-tabs a {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 38px;
        padding: 0 18px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #222;
        font-size: var(--fkmtu-font-size-body);
        font-weight: var(--fkmtu-font-weight-semibold);
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .fkmtu-history-tabs a + a::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 16px;
        background: #c9cdd2;
        transform: translateY(-50%);
    }

    .fkmtu-history-tabs a::after {
        content: "";
        position: absolute;
        right: 18px;
        bottom: 6px;
        left: 18px;
        height: 1px;
        background: transparent;
    }

    .fkmtu-history-tabs a:hover {
        background: transparent;
        color: #222;
    }

    .fkmtu-history-tabs a:hover::after {
        background: #222;
    }

    .fkmtu-history-tabs a.active {
        background: transparent;
        color: #222;
        font-weight: var(--fkmtu-font-weight-bold);
    }

    .fkmtu-history-tabs a.active::after {
        background: #222;
    }

    /* ================================
       기간 제목
    ================================ */

    .fkmtu-history-period-title {
        margin: 30px 0 18px;
        padding-bottom: 10px;
        border-bottom: 2px solid #143b6f;
        color: #143b6f;
        font-size: var(--fkmtu-font-size-section-title);
        font-weight: var(--fkmtu-font-weight-extrabold);
        line-height: 1.3;
    }

    /* ================================
       연혁 카드
    ================================ */

    .fkmtu-history-card {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 26px;
        margin-bottom: 14px;
        padding: 22px 24px;
        border: 1px solid #e1e5ea;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
    }

    .fkmtu-history-year {
        min-width: 0;
        color: #143b6f;
        font-size: var(--fkmtu-font-size-heading);
        font-weight: var(--fkmtu-font-weight-extrabold);
        line-height: 1.4;
    }

    .fkmtu-history-items {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .fkmtu-history-items li {
        position: relative;
        margin: 0 0 8px;
        padding-left: 16px;
        color: #222;
        font-size: var(--fkmtu-font-size-body);
        line-height: 1.65;
    }

    .fkmtu-history-items li:last-child {
        margin-bottom: 0;
    }

    .fkmtu-history-items li::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 0;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #143b6f;
    }

    /* ================================
       모바일
    ================================ */

    @media (max-width: 768px) {
        .fkmtu-history-tabs {
            margin-top: 8px;
            margin-bottom: 18px;
        }

        .fkmtu-history-tabs a {
            height: 36px;
            padding: 0 14px;
            font-size: var(--fkmtu-font-size-meta);
        }

        .fkmtu-history-tabs a::after {
            right: 14px;
            left: 14px;
        }

        .fkmtu-history-period-title {
            margin-top: 22px;
            font-size: 21px;
        }

        .fkmtu-history-card {
            grid-template-columns: 1fr;
            gap: 10px;
            padding: 18px 16px;
        }

        .fkmtu-history-year {
            font-size: var(--fkmtu-font-size-subheading);
        }

        .fkmtu-history-items li {
            font-size: var(--fkmtu-font-size-body);
            line-height: 1.6;
        }
    }

/* Standalone history table window. */
body.fkmtu-history-list-standalone {
	background: var(--fkmtu-color-surface);
}

body.fkmtu-history-list-standalone .site-header,
body.fkmtu-history-list-standalone #colophon.site-footer,
body.fkmtu-history-list-standalone .fkmtu-global-header,
body.fkmtu-history-list-standalone .fkmtu-global-footer,
body.fkmtu-history-list-standalone .entry-header {
	display: none !important;
}

body.fkmtu-history-list-standalone .site-container,
body.fkmtu-history-list-standalone .content-container {
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
	padding: 0;
}

body.fkmtu-history-list-standalone .content-area {
	margin: 0;
	padding: 18px;
}

body.fkmtu-history-list-standalone .entry-content-wrap {
	width: 100%;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding: 18px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.fkmtu-history-list-standalone .fkmtu-page-header {
	margin-bottom: 14px;
}

body.fkmtu-history-list-standalone .fkmtu-page-header h2 {
	margin: 0;
	font-size: var(--fkmtu-font-size-heading);
}

body.fkmtu-history-list-standalone table {
	width: 100%;
	font-size: var(--fkmtu-font-size-meta);
}

body.fkmtu-history-list-standalone table th,
body.fkmtu-history-list-standalone table td {
	padding: 7px 8px;
	line-height: 1.45;
}

body.fkmtu-history-list-standalone table th:first-child,
body.fkmtu-history-list-standalone table td:first-child {
	text-align: center;
}

body.fkmtu-history-list-standalone table th:nth-child(2),
body.fkmtu-history-list-standalone table td:nth-child(2) {
	text-align: center;
}

body.fkmtu-history-list-standalone .wp-block-columns {
	width: 100%;
	justify-content: center;
}

body.fkmtu-history-list-standalone .wp-block-columns > .wp-block-column {
	width: 100%;
	flex-basis: 100% !important;
}

body.fkmtu-history-list-standalone .fkmtu-history-table-wrap {
	width: 100%;
	max-width: 980px;
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 768px) {
	body.fkmtu-history-list-standalone .content-area,
	body.fkmtu-history-list-standalone .entry-content-wrap {
		padding: 10px;
	}

	body.fkmtu-history-list-standalone .fkmtu-page-header h2 {
		font-size: var(--fkmtu-font-size-subheading);
	}
}
