/* MCTech: 2 independent pages per business unit.
   Scoped to the cosmetics/bio content pages; do not alter default.css or index. */

/* Legacy nav selectors are suppressed defensively, but the previous
   visible.js and bio.js are no longer loaded on these split pages. */
#bio-page.biz-split-page ~ #bio-chapter-nav { display: none !important; }

.biz-split-page .biz-page-intro {
    position: relative;
    width: min(calc(100% - 72px), 1400px);
    margin: 0 auto 32px;
    padding: 24px 0 26px;
    border-bottom: 1px solid #dde5ef;
    color: #172b46;
    font-family: 'NanumSquare', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    text-align: left;
}
#bio-page.biz-split-page .biz-page-intro { width: var(--bio-content-width); }
.biz-split-page .biz-page-kicker {
    color: #4677a4;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .12em;
}
.biz-split-page .biz-page-title {
    margin: 7px 0 6px;
    color: #172b46;
    font-size: clamp(27px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.045em;
}
.biz-split-page .biz-page-caption {
    margin: 0 0 26px;
    color: #687485;
    font-size: clamp(14px, 1.12vw, 17px);
    font-weight: 400;
    line-height: 1.65;
}
.biz-split-page .biz-page-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 620px);
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d8e2ec;
}
.biz-split-page .biz-page-tabs a {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 12px;
    position: relative;
    min-width: 0;
    padding: 16px 12px;
    color: #6e7c8e;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
    word-break: keep-all;
    transition: color .18s ease, background .18s ease;
}
.biz-split-page .biz-page-tabs a small {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}
.biz-split-page .biz-page-tabs a:hover { color: #205d9b; background: #f5f9fd; }
.biz-split-page .biz-page-tabs a.is-current { color: #1d558d; }
.biz-split-page .biz-page-tabs a.is-current::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2d659f;
}
.biz-split-page .biz-page-tabs a:focus-visible { outline: 2px solid #2d659f; outline-offset: 2px; }
/* Keep the first section visually connected to the new top tabs. */
#visible-page.biz-split-page > .vp-section:first-of-type { padding-top: 28px; }
#bio-page.biz-split-page > .bio-section:first-of-type { padding-top: 26px; }
/* Original bio.css treated the first bio-section as the first child;
   the new intro block precedes it, so suppress its unnecessary divider. */
#bio-page.biz-split-page > .bio-section[data-bio-chapter]:first-of-type::before { display: none; }
.biz-split-page > section[id] { scroll-margin-top: calc(var(--gnb-header-height, 80px) + 20px); }

/* One universal in-page indicator, independent of the previous JS modules. */
.biz-chapter-nav {
    --biz-nav-color: #243b53;
    --biz-nav-dot: #91a3b7;
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 1450; /* fixed header remains above */
    margin: 0;
    padding: 0;
    font-family: 'NanumSquare', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
.biz-chapter-nav ul {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    margin: 0;
    padding: 15px 6px;
    list-style: none;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(197,211,225,.8);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(36,59,83,.10);
}
.biz-chapter-nav li:not(.biz-nav-marker) {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.biz-chapter-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}
.biz-chapter-nav a::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--biz-nav-dot);
}
.biz-chapter-nav a[aria-current="location"]::before { opacity: 0; }
.biz-chapter-nav a:hover::before { background: #276aa5; }
.biz-chapter-nav a:focus-visible { outline: 2px solid #276aa5; outline-offset: 3px; border-radius: 50%; }
.biz-chapter-nav .biz-nav-marker {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 29px;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--biz-nav-color);
    box-shadow: 0 0 0 4px rgba(36,59,83,.12);
    transform: translate(-50%, -50%);
    transition: top .32s cubic-bezier(.22,1,.36,1), left .32s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.biz-chapter-nav .biz-nav-label {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    display: block;
    padding: 9px 13px;
    color: #fff;
    background: #243b53;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(5px,-50%);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .biz-chapter-nav li:hover > a > .biz-nav-label {
        visibility: visible;
        opacity: 1;
        transform: translate(0,-50%);
    }
}
.biz-chapter-nav li > a:focus-visible > .biz-nav-label {
    visibility: visible;
    opacity: 1;
    transform: translate(0,-50%);
}
/* Headings are not hidden behind the fixed header on hash navigation. */
#visible-page.biz-split-page .vp-section[id],
#bio-page.biz-split-page .bio-section[id] {
    scroll-margin-top: calc(var(--gnb-header-height, 80px) + 20px);
}
@media (max-width: 767px) {
    .biz-split-page .biz-page-intro,
    #bio-page.biz-split-page .biz-page-intro { width: calc(100% - 40px); margin-bottom: 20px; padding-top: 18px; }
    .biz-split-page .biz-page-title { font-size: 28px; }
    .biz-split-page .biz-page-caption { margin-bottom: 18px; font-size: 14px; }
    .biz-split-page .biz-page-tabs { width: 100%; }
    .biz-split-page .biz-page-tabs a { padding: 13px 6px; font-size: 15px; }
    .biz-split-page .biz-page-tabs a small { font-size: 11px; }
    .biz-chapter-nav {
        top: auto;
        right: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
    }
    .biz-chapter-nav ul { flex-direction: row; gap: 7px; padding: 7px 10px; }
    .biz-chapter-nav a { width: 27px; height: 29px; }
    .biz-chapter-nav .biz-nav-label {
        top: auto;
        bottom: calc(100% + 14px);
        right: auto;
        left: 50%;
        max-width: 210px;
        width: max-content;
        white-space: normal;
        text-align: center;
        transform: translate(-50%,5px);
        font-size: 12px;
    }
    .biz-chapter-nav li > a:focus-visible > .biz-nav-label { transform: translate(-50%,0); }
    .biz-split-page > section:last-of-type { padding-bottom: 110px; }
}
@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
    .biz-chapter-nav li:hover > a > .biz-nav-label { transform: translate(-50%,0); }
}
@media (prefers-reduced-motion: reduce) {
    .biz-chapter-nav .biz-nav-marker,
    .biz-chapter-nav .biz-nav-label { transition: none; }
}
@media print {
    .biz-chapter-nav, .biz-page-tabs { display: none !important; }
}

/* 바이오 2개 독립 페이지의 주제 바로가기 카드: 기존 본문 디자인은 그대로. */
#bio-page.biz-split-page > .biz-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: var(--bio-content-width);
    margin: 0 auto 36px;
    padding: 0;
}
#bio-page.biz-split-page .biz-category-grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 148px;
    min-width: 0;
    padding: 24px 23px;
    border: 1px solid #dde7f1;
    border-radius: 15px;
    background: #f7fafd;
    box-shadow: 0 8px 22px rgba(23,43,70,.04);
    color: #172b46;
    text-decoration: none;
    transition: transform .18s, border-color .18s, background .18s;
}
#bio-page.biz-split-page .biz-category-grid a:hover {
    transform: translateY(-3px);
    border-color: #a6c4df;
    background: #eef5fc;
}
#bio-page.biz-split-page .biz-category-grid a:focus-visible { outline: 3px solid #2d659f; outline-offset: 3px; }
#bio-page.biz-split-page .biz-category-grid a span { font-size: 13px; color: #2d659f; font-weight: 800; letter-spacing: .09em; }
#bio-page.biz-split-page .biz-category-grid a strong { font-size: clamp(17px,1.5vw,21px); line-height: 1.45; word-break: keep-all; }
#bio-page.biz-split-page .biz-category-grid a small { font-size: 12px; color: #687485; line-height: 1.5; }
@media (max-width: 900px) {
  #bio-page.biz-split-page > .biz-category-grid { gap: 12px; }
  #bio-page.biz-split-page .biz-category-grid a { min-height: 120px; padding: 16px 12px; }
  #bio-page.biz-split-page .biz-category-grid a strong { font-size: 17px; }
}
@media (max-width: 650px) {
  #bio-page.biz-split-page > .biz-category-grid { grid-template-columns: minmax(0,1fr); gap: 10px; width: calc(100% - 40px); margin-bottom: 22px; }
  #bio-page.biz-split-page .biz-category-grid a { min-height: 83px; padding: 13px 17px; gap: 2px; }
  #bio-page.biz-split-page .biz-category-grid a strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #bio-page.biz-split-page .biz-category-grid a { transition: none; }
}
