/* =========================================================
   서래바이오 — 세부페이지(sub-page) 컴포넌트
   styles.css 토큰을 그대로 사용. styles.css 뒤에 로드.
   ========================================================= */

/* ---------- breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 22px; }
.crumb a { color: var(--ink-3); transition: color .2s; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: var(--line-2); }
.crumb .cur { color: var(--primary-2); }

/* ---------- sub hero ---------- */
.subhero { padding-top: 138px; padding-bottom: clamp(40px, 5vw, 72px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.subhero::before {
  content: ""; position: absolute; z-index: -1; top: -30%; right: -8%;
  width: 48vw; height: 90vh; background: radial-gradient(circle at center, var(--green-100), transparent 66%);
}
.subhero .grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.subhero h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin: 8px 0 0; }
.subhero h1 .grn { color: var(--primary); }
.subhero .lead { margin-top: 22px; max-width: 42ch; }
.subhero .meta { display: flex; flex-direction: column; gap: 0; }
.subhero .meta .mrow { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.subhero .meta .mrow .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.subhero .meta .mrow .v { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- in-page sticky anchor nav ---------- */
.pagenav { position: sticky; top: 76px; z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pagenav .wrap { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-block: 0; }
.pagenav a { white-space: nowrap; padding: 16px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.pagenav a:hover, .pagenav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- section intro ---------- */
.intro { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.intro .eyebrow { margin-bottom: 16px; }
.intro h2 { font-size: clamp(26px, 3.4vw, 44px); }
.intro p { margin-top: 18px; }

/* ---------- process (numbered vertical steps) ---------- */
.process { display: grid; gap: 0; }
.pstep { display: grid; grid-template-columns: 88px 1fr; gap: clamp(20px, 3vw, 44px); padding: 30px 0; border-top: 1px solid var(--line); position: relative; }
.pstep:last-child { border-bottom: 1px solid var(--line); }
.pstep .pnum { font-family: var(--mono); font-size: 14px; color: var(--primary); padding-top: 5px; letter-spacing: 0.04em; }
.pstep h3 { font-size: clamp(20px, 2.2vw, 27px); }
.pstep .pbody { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pstep p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; max-width: 64ch; }
.pstep .ptags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pstep .ptags span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- formulation / spec cards ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -30px rgba(11,45,32,.32); }
.fcard .ph { aspect-ratio: 16/10; border: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.fcard .fbody { padding: 20px 22px 24px; }
.fcard .fk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-500); }
.fcard h4 { font-size: 18px; margin: 8px 0 7px; }
.fcard p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ---------- feature split (text + visual, alternating) ---------- */
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.fsplit.rev .fsplit-media { order: -1; }
.fsplit h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 16px; }
.fsplit p { font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.fsplit .checks { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.fsplit .checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--ink); }
.fsplit .checks li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.fsplit-media .ph { aspect-ratio: 4/3; }

/* ---------- timeline (연혁) ---------- */
.timeline { display: grid; gap: 0; max-width: 880px; }
.tline { display: grid; grid-template-columns: 130px 1fr; gap: clamp(20px, 3vw, 40px); padding: 26px 0; border-top: 1px solid var(--line); }
.tline:last-child { border-bottom: 1px solid var(--line); }
.tline .ty { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--primary); letter-spacing: -0.02em; }
.tline h4 { font-size: 18px; margin-bottom: 6px; }
.tline p { font-size: 15px; color: var(--ink-2); }

/* ---------- team / leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tcard .ph { aspect-ratio: 1/1; border: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.tcard .tbody { padding: 20px 22px 24px; }
.tcard .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-500); }
.tcard h4 { font-size: 18px; margin: 8px 0 10px; }
.tcard ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tcard ul li { font-size: 13.5px; color: var(--ink-2); padding-left: 13px; position: relative; line-height: 1.5; }
.tcard ul li::before { content: "—"; position: absolute; left: 0; color: var(--green-300); }

/* ---------- stat strip (light) ---------- */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.statrow .s { background: var(--surface); padding: 28px clamp(18px,2vw,30px); }
.statrow .s .n { font-family: var(--mono); font-size: clamp(26px,3.2vw,40px); font-weight: 500; color: var(--primary); letter-spacing: -0.03em; }
.statrow .s .l { font-size: 13.5px; color: var(--ink-3); margin-top: 7px; }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl { font-family: var(--mono); color: var(--primary); transition: transform .25s; font-weight: 400; }
.faq details[open] summary .pl { transform: rotate(45deg); }
.faq .ans { padding: 0 4px 26px; font-size: 15.5px; color: var(--ink-2); line-height: 1.75; max-width: 70ch; }

/* ---------- CTA mini ---------- */
.cta-mini { background: linear-gradient(150deg, var(--green-700), var(--green-950)); border-radius: 20px; padding: clamp(40px,5vw,72px); color: #fff; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.cta-mini h2 { color: #fff; font-size: clamp(26px,3.2vw,40px); }
.cta-mini p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 16px; }
.cta-mini .acts { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-mini .btn-primary { background: #fff; color: var(--green-800); }
.cta-mini .btn-primary:hover { background: var(--green-100); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .subhero .grid { grid-template-columns: 1fr; align-items: start; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .fsplit { grid-template-columns: 1fr; }
  .fsplit.rev .fsplit-media { order: 0; }
  .cta-mini { grid-template-columns: 1fr; }
  .cta-mini .acts { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .fgrid, .team-grid, .statrow { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: 1fr; gap: 10px; }
  .tline { grid-template-columns: 1fr; gap: 6px; }
}
