: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%;
}

.tms-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}


/* Header */

.tms-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
}

.tms-header__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tms-brand {
    margin-right: auto;
}

.tms-brand img {
    display: block;
    width: auto;
    height: 37px;
}

.tms-nav {
    display: none;
}

.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: #fff;
    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:hover {
    background: var(--soft);
}


/* Hero */

.tms-hero {
    padding: 38px 0 34px;
    border-bottom: 1px solid var(--line);
}

.tms-kicker {
    margin: 0;
    color: var(--blue);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
}

.tms-subjects {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tms-hero h1 {
    max-width: 590px;
    margin: 16px 0 0;
    font-size: clamp(31px, 8.4vw, 40px);
    line-height: 1.17;
    letter-spacing: -.045em;
    word-break: keep-all;
}

.tms-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 26px;
}

.tms-btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 750;
}

.tms-btn--primary {
    color: #fff;
    background: var(--ink);
}

.tms-btn--secondary {
    border: 1px solid #cfd4dc;
    background: #fff;
}


/* Sections */

.tms-section {
    padding: 32px 0;
}

.tms-section + .tms-section {
    border-top: 1px solid var(--line);
}

.tms-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.tms-section__head h2 {
    margin: 7px 0 0;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.tms-section__note {
    display: none;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* Research areas */

.tms-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tms-area {
    min-width: 0;
    min-height: 116px;
    padding: 15px;
    background: var(--soft);
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.tms-area span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.tms-area h3 {
    margin: 17px 0 6px;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -.02em;
    word-break: keep-all;
}

.tms-area p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    word-break: keep-all;
}


/* Latest */

.tms-section--latest {
    padding-bottom: 42px;
}

.tms-feature {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.tms-feature > a {
    display: block;
}

.tms-feature__image,
.tms-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background:
        linear-gradient(
            135deg,
            #eef2f7,
            #f8fafc
        );
}

.tms-feature__copy {
    padding: 16px;
}

.tms-feature h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.42;
    letter-spacing: -.02em;
    word-break: keep-all;
}

.tms-feature time,
.tms-latest-row time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tms-latest-list {
    margin-top: 18px;
}

.tms-latest-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.tms-latest-row__image {
    display: block;
}

.tms-latest-row__image img,
.tms-latest-row__image .tms-image-placeholder {
    display: block;
    width: 96px;
    height: 64px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 7px;
}

.tms-latest-row h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: -.015em;
    word-break: keep-all;
}

.tms-latest-row time {
    margin-top: 5px;
}


/* 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);
}


/* Desktop expansion */

@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;
        gap: 28px;
        font-size: 14px;
        font-weight: 650;
    }

    .tms-menu {
        display: none;
    }

    .tms-hero {
        padding: 76px 0 68px;
    }

    .tms-hero h1 {
        font-size: 56px;
    }

    .tms-actions {
        display: flex;
    }

    .tms-btn {
        min-width: 150px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .tms-section {
        padding: 62px 0;
    }

    .tms-section__note {
        display: block;
    }

    .tms-area-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .tms-area {
        min-height: 150px;
        padding: 22px;
    }

    .tms-area h3 {
        margin-top: 28px;
        font-size: 18px;
    }

    .tms-area p {
        font-size: 13px;
    }

    .tms-section--latest .tms-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
        column-gap: 36px;
    }

    .tms-section--latest .tms-section__head {
        grid-column: 1 / -1;
    }

    .tms-latest-list {
        margin-top: 0;
    }

    .tms-latest-row:first-child {
        border-top: 0;
        padding-top: 0;
    }
}

/* === HERO TWO LINE TUNE === */
@media (max-width: 759px) {

    .tms-hero h1.tms-hero-title {
        max-width: none;
        font-size: 22px;
        line-height: 1.20;
        letter-spacing: -0.045em;
    }

    .tms-hero-title span {
        display: block;
        white-space: nowrap;
    }
}
/* === /HERO TWO LINE TUNE === */

/* === RESEARCH AREA REFINE V1 === */

.tms-area-grid {
    gap: 9px;
}

.tms-area {
    position: relative;
    min-height: 118px;
    padding: 16px 16px 15px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
}

.tms-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #155eef;
}

.tms-area span {
    display: inline-block;
    color: #155eef;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
}

.tms-area h3 {
    margin: 20px 0 7px;
    color: #101828;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -.02em;
}

.tms-area p {
    margin: 0;
    color: #667085;
    font-size: 11.5px;
    line-height: 1.4;
    white-space: nowrap;
}

@media (min-width: 760px) {

    .tms-area {
        min-height: 145px;
        padding: 21px;
        transition:
            border-color .18s ease,
            transform .18s ease;
    }

    .tms-area:hover {
        border-color: #b9c7e8;
        transform: translateY(-2px);
    }

    .tms-area h3 {
        margin-top: 28px;
        font-size: 18px;
    }

    .tms-area p {
        font-size: 13px;
    }
}

/* === /RESEARCH AREA REFINE V1 === */


/* === PC HERO V2 SAFE === */

@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-hero {
        padding: 0;
    }

    .tms-hero-grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(300px, .65fr);
        gap: 86px;
        align-items: center;

        min-height: 405px;
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .tms-hero__copy {
        min-width: 0;
    }

    .tms-hero h1.tms-hero-title {
        max-width: 750px;
        margin-top: 18px;
        font-size: 50px;
        line-height: 1.08;
        letter-spacing: -.045em;
    }

    .tms-hero-title span {
        display: block;
    }

    .tms-actions {
        margin-top: 30px;
    }

    .tms-hero-latest {
        padding: 30px 0 30px 34px;
        border-left: 1px solid var(--line);
    }

    .tms-hero-latest__label {
        margin: 0 0 20px;
        color: var(--blue);
        font-size: 11px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: .12em;
    }

    .tms-hero-latest h2 {
        max-width: 330px;
        margin: 0;
        color: var(--ink);
        font-size: 20px;
        line-height: 1.42;
        letter-spacing: -.025em;
        word-break: keep-all;
    }

    .tms-hero-latest h2 a {
        color: inherit;
    }

    .tms-hero-latest time {
        display: block;
        margin-top: 14px;
        color: var(--muted);
        font-size: 12px;
    }

    .tms-hero-latest__link {
        display: inline-block;
        margin-top: 26px;
        color: var(--blue);
        font-size: 13px;
        font-weight: 750;
    }
}

/* === /PC HERO V2 SAFE === */


/* === PC HEADER + HERO BALANCE V1 === */

@media (min-width: 900px) {

    /* Final desktop navigation */

    .tms-nav--final {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-left: auto;

        color: #344054;
        font-size: 13px;
        font-weight: 650;
    }

    .tms-nav--final span {
        white-space: nowrap;
    }


    /* Better Hero balance */

    .tms-hero-grid {
        grid-template-columns:
            minmax(0, 1.42fr)
            minmax(340px, .72fr);

        gap: 70px;
    }

    .tms-hero__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .tms-actions {
        width: 100%;
        max-width: 470px;

        justify-content: center;
        gap: 12px;
    }

    .tms-actions .tms-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 220px;
    }

    .tms-hero-latest {
        padding-left: 42px;
    }

}

/* === /PC HEADER + HERO BALANCE V1 === */


/* === PC TYPOGRAPHY DENSITY FINAL === */

@media (min-width: 900px) {

    /* Header */
    .tms-nav--final {
        font-size: 15px;
        gap: 30px;
    }

    /* Hero */
    .tms-hero-grid {
        min-height: 360px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .tms-kicker,
    .tms-hero-latest__label {
        font-size: 12px;
    }

    .tms-subjects {
        font-size: 15px;
    }

    .tms-hero-latest h2 {
        font-size: 22px;
        line-height: 1.4;
    }

    .tms-hero-latest time {
        font-size: 13px;
    }

    .tms-hero-latest__link {
        font-size: 14px;
    }

    /* Section density */
    .tms-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .tms-section__head {
        margin-bottom: 26px;
    }

    .tms-section__head h2 {
        font-size: 28px;
    }

    .tms-section__note {
        font-size: 14px;
    }

    /* Research cards */
    .tms-area {
        min-height: 132px;
        padding: 20px;
    }

    .tms-area span {
        font-size: 11px;
    }

    .tms-area h3 {
        margin-top: 24px;
        font-size: 20px;
    }

    .tms-area p {
        font-size: 14px;
    }

    /* Latest */
    .tms-section--latest {
        padding-top: 50px;
        padding-bottom: 58px;
    }

    .tms-feature h3 {
        font-size: 19px;
    }

    .tms-latest-row h3 {
        font-size: 15px;
    }

    .tms-feature time,
    .tms-latest-row time {
        font-size: 13px;
    }
}

/* === /PC TYPOGRAPHY DENSITY FINAL === */


/* === MOBILE HERO LATEST HIDE === */
@media (max-width: 899px) {
    .tms-hero-latest {
        display: none;
    }
}
/* === /MOBILE HERO LATEST HIDE === */


/* === FINAL NAVIGATION LINKS === */

.tms-nav--final a {
    color: #344054;
    text-decoration: none;
}

.tms-area {
    display: block;
    color: inherit;
    text-decoration: none;
}

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

@media (min-width: 900px) {

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

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

/* === /FINAL NAVIGATION LINKS === */

