:root {
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --soft: #f7f9fc;
    --blue: #155eef;
    --white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   SITE WIDTH
======================================== */

.tms-wrap {
    width: 100%;
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 16px;
    padding-right: 16px;
}


/* ========================================
   HEADER
======================================== */

.tms-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(8px);
}

.tms-header__inner {
    min-height: 66px;

    display: flex;
    align-items: center;

    gap: 16px;
}

.tms-brand {
    margin-right: auto;
    flex-shrink: 0;
}

.tms-brand img {
    display: block;

    width: auto;
    height: 37px;
}

.tms-brand strong {
    font-size: 20px;
    letter-spacing: -.03em;
}


/* ========================================
   DESKTOP NAVIGATION
======================================== */

.tms-nav {
    display: none;
}

.tms-nav--final a {
    color: #344054;
    white-space: nowrap;
}


/* ========================================
   MOBILE MENU
======================================== */

.tms-menu {
    position: relative;
}

.tms-menu summary {
    cursor: pointer;
    list-style: none;

    padding: 9px 12px;

    border: 1px solid var(--line);
    border-radius: 8px;

    font-size: 14px;
    font-weight: 650;
}

.tms-menu summary::-webkit-details-marker {
    display: none;
}

.tms-menu__panel {
    position: absolute;

    right: 0;
    top: calc(100% + 8px);

    width: 180px;
    padding: 8px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 10px;

    box-shadow:
        0 12px 30px rgba(16,24,40,.10);
}

.tms-menu__panel a {
    display: block;

    padding: 11px 10px;

    border-radius: 6px;

    font-size: 14px;
}

.tms-menu__panel a + a {
    border-top: 1px solid #f0f2f5;
}

.tms-menu__panel a:hover {
    background: var(--soft);
}


/* ========================================
   FOOTER
======================================== */

.tms-footer {
    padding: 25px 0 34px;

    border-top: 1px solid var(--line);

    color: var(--muted);
}

.tms-footer .tms-wrap {
    display: flex;

    justify-content: space-between;

    gap: 16px;

    font-size: 12px;
}

.tms-footer strong {
    color: var(--ink);
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 760px) {

    .tms-wrap {
        padding-left: 28px;
        padding-right: 28px;
    }

    .tms-header__inner {
        min-height: 76px;
    }

    .tms-brand img {
        height: 44px;
    }

    .tms-nav {
        display: flex;

        align-items: center;

        gap: 28px;

        font-size: 14px;
        font-weight: 650;
    }

    .tms-menu {
        display: none;
    }
}


/* ========================================
   DESKTOP
======================================== */

@media (min-width: 900px) {

    .tms-wrap {
        max-width: 1240px;

        padding-left: 32px;
        padding-right: 32px;
    }

    .tms-header__inner {
        min-height: 78px;
    }

    .tms-brand img {
        height: 46px;
    }

    .tms-nav--final {
        display: flex;

        align-items: center;

        gap: 30px;

        margin-left: auto;

        color: #344054;

        font-size: 15px;
        font-weight: 650;
    }

    .tms-nav--final a {
        transition: color .15s ease;
    }

    .tms-nav--final a:hover {
        color: var(--blue);
    }
}


/* WordPress admin bar */

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

@media (max-width: 782px) {

    body.admin-bar .tms-header {
        top: 46px;
    }
}
