/* =========================================================
   케미연구소 · 콘텐츠 페이지 공통 스타일
   - index.html(앱)은 자체 <style>을 그대로 쓰고, 이 파일은
     guide / faq / privacy / about 페이지에서만 불러옵니다.
   - 외부 CDN·웹폰트 없음. 시스템 폰트만 사용.
   ========================================================= */

:root{
  --bg:#080B18;
  --bg2:#0C1126;
  --card:rgba(255,255,255,.045);
  --card2:rgba(255,255,255,.028);
  --line:rgba(233,201,120,.16);
  --line-soft:rgba(255,255,255,.08);
  --gold:#E9C978;
  --gold-deep:#C9A65B;
  --text:#EDF0F9;
  --muted:#98A1BD;
  --muted2:#6D7794;
  --body:#C7CEE0;
  --ok:#7FD6B0;
  --bad:#F0806E;
  --radius:20px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(233,201,120,.13), transparent 62%),
    radial-gradient(760px 460px at 88% 4%, rgba(96,120,255,.14), transparent 60%),
    linear-gradient(180deg,#0A0E1F 0%, #080B18 46%, #070A14 100%);
  background-attachment:fixed;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Pretendard Variable","Malgun Gothic","맑은 고딕",system-ui,"Segoe UI",Roboto,sans-serif;
  font-size:15.5px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  word-break:keep-all;
  overflow-wrap:break-word;
}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit}

/* ---------------- 사이트 상단 메뉴 ---------------- */
.site-head{
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(8,11,24,.94);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  position:static;
  z-index:40;
}
@media (min-width:700px){
  .site-head{position:sticky;top:0}
}
.sh-in{
  max-width:780px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 16px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--gold);
  flex:0 0 auto;
}
.brand:hover{text-decoration:none}
.brand .mark{
  width:22px;height:22px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  background:rgba(233,201,120,.09);
  font-size:11px;
}
.site-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 15px;
  font-size:12.5px;
  color:var(--muted);
  padding:2px 0;
  flex:1 1 100%;
}
.site-links a{color:var(--muted);font-weight:600}
.site-links a:hover{color:var(--text);text-decoration:none}
.site-links a[aria-current="page"]{color:var(--gold);font-weight:750}
@media (min-width:700px){
  .sh-in{flex-wrap:nowrap}
  .site-links{flex:0 1 auto;justify-content:flex-end}
}

/* ---------------- 본문 레이아웃 ---------------- */
.page{
  max-width:780px;
  margin:0 auto;
  padding:14px 20px 56px;
}
.crumb{
  font-size:11.5px;
  color:var(--muted2);
  padding:14px 0 0;
  letter-spacing:.01em;
}
.crumb a{color:var(--muted2)}
.crumb a:hover{color:var(--muted)}
.crumb span{margin:0 6px;color:rgba(255,255,255,.18)}

.page-head{padding:8px 0 22px;border-bottom:1px solid var(--line-soft);margin-bottom:26px}
.kicker{
  display:inline-block;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--gold);
  border:1px solid var(--line);
  background:rgba(233,201,120,.07);
  padding:6px 12px;
  border-radius:999px;
}
h1{
  font-size:30px;
  line-height:1.32;
  font-weight:850;
  letter-spacing:-.03em;
  margin:16px 0 0;
}
h1 em{font-style:normal;color:var(--gold)}
.lead{
  margin:14px 0 0;
  font-size:15px;
  color:var(--muted);
  line-height:1.8;
}
.meta{
  margin:16px 0 0;
  font-size:11.5px;
  color:var(--muted2);
  letter-spacing:.01em;
}

h2{
  font-size:21px;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.42;
  margin:46px 0 14px;
  display:flex;
  align-items:baseline;
  gap:9px;
}
h2 .num{
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--gold);
  border:1px solid var(--line);
  background:rgba(233,201,120,.08);
  border-radius:6px;
  padding:1px 6px;
  flex:0 0 auto;
  transform:translateY(-2px);
}
h3{
  font-size:16.5px;
  font-weight:750;
  letter-spacing:-.01em;
  margin:28px 0 9px;
  color:var(--text);
}
h3 .tag{
  font-size:10.5px;
  font-weight:700;
  color:var(--gold);
  background:rgba(233,201,120,.1);
  border:1px solid rgba(233,201,120,.22);
  border-radius:5px;
  padding:1px 6px;
  margin-left:6px;
  vertical-align:2px;
  letter-spacing:.02em;
}
p{margin:0 0 15px;color:var(--body);font-size:15px;line-height:1.85}
p:last-child{margin-bottom:0}
strong,b{color:var(--text);font-weight:750}
small{font-size:12.5px;color:var(--muted2)}
ul,ol{margin:0 0 16px;padding-left:19px;color:var(--body)}
li{margin:7px 0;line-height:1.75}
ul li::marker{color:var(--gold)}
ol li::marker{color:var(--gold);font-weight:700}
li b{color:var(--text)}

/* ---------------- 목차 ---------------- */
.toc{
  border:1px solid var(--line-soft);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
  border-radius:16px;
  padding:18px 20px;
  margin:0 0 34px;
}
.toc p{
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--gold);
  margin:0 0 10px;
}
.toc ol{margin:0;padding-left:18px;font-size:13.5px}
.toc li{margin:5px 0}
.toc a{color:var(--body)}
.toc a:hover{color:var(--gold)}

/* ---------------- 표 ---------------- */
.tbl-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--line-soft);
  border-radius:14px;
  margin:10px 0 22px;
  background:rgba(255,255,255,.02);
}
table{width:100%;border-collapse:collapse;font-size:13.5px}
table.narrow{min-width:0}
th,td{
  padding:10px 13px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.065);
  vertical-align:top;
  line-height:1.6;
}
th{
  font-size:11.5px;
  font-weight:750;
  color:var(--gold);
  letter-spacing:.03em;
  background:rgba(233,201,120,.05);
  white-space:nowrap;
}
td{color:var(--body)}
tr:last-child td{border-bottom:0}
td .han{color:var(--gold);font-weight:700;margin-left:3px;font-size:12.5px}
td b{color:var(--text)}

/* ---------------- 박스 / 카드 ---------------- */
.note{
  border-left:2px solid var(--gold);
  background:rgba(233,201,120,.06);
  border-radius:0 12px 12px 0;
  padding:14px 16px;
  margin:18px 0 22px;
  font-size:13.5px;
  color:var(--body);
  line-height:1.8;
}
.note b{color:var(--gold)}
.note .nn{
  display:block;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--gold);
  margin-bottom:5px;
}

.cards{display:grid;grid-template-columns:1fr;gap:10px;margin:6px 0 24px}
@media (min-width:640px){.cards{grid-template-columns:1fr 1fr}}
.card{
  border:1px solid var(--line-soft);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
  border-radius:15px;
  padding:15px 16px;
}
.card h4{
  margin:0 0 5px;
  font-size:14px;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.card h4 .el{
  font-size:10.5px;
  font-weight:800;
  color:#1A1408;
  background:linear-gradient(135deg,#F0D48C,#D9B971);
  border-radius:5px;
  padding:1px 6px;
  letter-spacing:.02em;
}
.card h4 .han{color:var(--muted2);font-size:12px;font-weight:700}
.card p{margin:0;font-size:13.5px;line-height:1.75;color:var(--muted)}
.card p b{color:var(--text)}

/* ---------------- FAQ ---------------- */
.faq{margin:4px 0 8px;border-top:1px solid rgba(255,255,255,.07)}
.faq details{
  border-bottom:1px solid rgba(255,255,255,.07);
  padding:2px 0;
}
.faq summary{
  list-style:none;
  cursor:pointer;
  padding:15px 30px 15px 0;
  font-size:14.5px;
  font-weight:700;
  color:var(--text);
  position:relative;
  line-height:1.55;
  letter-spacing:-.01em;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";
  position:absolute;
  right:4px;
  top:14px;
  font-size:17px;
  font-weight:400;
  color:var(--gold);
  transition:transform .2s ease;
}
.faq details[open] summary::after{content:"–";transform:rotate(180deg)}
.faq details[open] summary{color:var(--gold)}
.faq .a{padding:0 0 16px;font-size:14px;color:var(--body);line-height:1.85}
.faq .a p{margin:0 0 10px;font-size:14px}
.faq .a p:last-child{margin-bottom:0}
.faq .a ul{margin:6px 0 10px;font-size:13.5px}

/* ---------------- CTA ---------------- */
.cta{
  margin:44px 0 0;
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(233,201,120,.14),rgba(233,201,120,.035));
  border-radius:22px;
  padding:24px 20px;
  text-align:center;
}
.cta .c-k{
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--gold);
}
.cta .c-t{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:8px 0 0;
  line-height:1.45;
}
.cta .c-d{
  font-size:13.5px;
  color:var(--muted);
  margin:9px 0 0;
  line-height:1.7;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:52px;
  padding:0 26px;
  border-radius:15px;
  font-size:15px;
  font-weight:750;
  margin-top:18px;
  transition:transform .16s ease,box-shadow .2s ease;
  max-width:100%;
}
.btn:active{transform:scale(.985)}
.btn-primary{
  background:linear-gradient(135deg,#F0D48C 0%,#E0BC6B 52%,#C9A65B 100%);
  color:#1A1408;
  box-shadow:0 10px 26px -12px rgba(233,201,120,.7), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover{text-decoration:none}

/* ---------------- 푸터 ---------------- */
.site-foot{
  border-top:1px solid rgba(255,255,255,.07);
  margin-top:40px;
  padding:28px 20px calc(34px + env(safe-area-inset-bottom));
  background:rgba(6,9,18,.5);
}
.sf-in{max-width:780px;margin:0 auto}
.sf-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--gold);
  margin:0 0 14px;
}
.sf-brand .mark{
  width:20px;height:20px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  background:rgba(233,201,120,.09);
  font-size:10px;
}
.sf-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  font-size:12.5px;
  margin:0 0 16px;
}
.sf-links a{color:var(--muted);font-weight:600}
.sf-links a:hover{color:var(--gold);text-decoration:none}
.sf-note{
  font-size:11.5px;
  color:var(--muted2);
  line-height:1.75;
  margin:0 0 10px;
}
.sf-copy{font-size:11px;color:rgba(120,130,155,.75);margin:0;letter-spacing:.01em}

/* ---------------- 유틸 ---------------- */
.ph{
  color:var(--gold);
  font-weight:700;
  background:rgba(233,201,120,.1);
  border:1px dashed rgba(233,201,120,.4);
  border-radius:6px;
  padding:1px 7px;
  font-size:.95em;
}
/* 문의 이메일처럼 눌러서 바로 쓰는 주소 */
.mailto{
  font-weight:700;
  letter-spacing:.005em;
  border-bottom:1px solid rgba(233,201,120,.4);
  padding-bottom:1px;
  word-break:break-all;
}
.mailto:hover{text-decoration:none;border-bottom-color:var(--gold);color:#F3DCA0}
.hr{height:1px;background:rgba(255,255,255,.07);border:0;margin:34px 0}
.muted{color:var(--muted2)}
.center{text-align:center}

@media (max-width:480px){
  table{font-size:12.5px}
  th,td{padding:9px 9px}
  table.narrow td{padding:9px 8px}
}

@media (max-width:400px){
  h1{font-size:26px}
  h2{font-size:19px}
  .page{padding:12px 17px 48px}
  body{font-size:15px}
  p{font-size:14.5px}
}

@media print{
  body{background:#fff;color:#111}
  .site-head,.site-foot,.cta{display:none}
}
