/* =========================================================
   코딩두잇 이용가이드 (WEB-INF/etc/useGuide.jsp)
   공통 헤더·하단·색상 변수는 resources/main/style.css를 그대로 사용
   ========================================================= */
.guide { --pl: 80px; --pr: 34px; background: linear-gradient(180deg, #f3f8fe 0, #fff 340px); padding-bottom: 80px; }
.guide .wrap { padding-left: var(--pl); padding-right: var(--pr); }
.guide ul, .guide ol { list-style: none; }
.guide em { font-style: normal; font-weight: 700; color: var(--title); }

/* ---------- 제목·목차 ---------- */
.g-top { padding: 28px 0 26px; }
.g-crumb { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #4b5563; }
.g-crumb a { display: grid; place-items: center; color: #1f2937; }
.g-crumb a:hover { color: var(--blue); }
.g-top h1 { margin-top: 26px; font-size: 38px; font-weight: 800; letter-spacing: -1.2px; color: var(--title); }
.g-top p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #4b5563; }
.g-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.g-toc a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #d5dbe4; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: #374151; transition: .15s; }
.g-toc a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 본문 ---------- */
.g-body { display: grid; gap: 24px; }
.g-sec, .g-card, .g-mentor { scroll-margin-top: 110px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 16px rgba(30, 70, 140, .05); }
.g-sec { padding: 30px 32px; }
.g-sec > h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--title); }
.g-lead { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--blue-tint); font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--blue-ink); }

/* 단계 */
.g-steps { position: relative; display: grid; gap: 22px; margin-top: 24px; }
.g-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: #e3ebf7; }
.g-steps li { position: relative; display: flex; gap: 16px; }
.g-num { z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; }
.g-steps h3 { padding-top: 5px; font-size: 18.5px; font-weight: 800; color: var(--title); }
.g-steps p { margin-top: 6px; font-size: 15.5px; line-height: 1.7; color: #374151; }
.g-alert { display: inline-flex; align-items: center; min-height: 28px; margin-top: 8px; padding: 3px 10px; border-radius: 8px; background: #fff7d6; font-size: 13.5px; font-weight: 700; color: #6b5200; }
.g-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.g-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border: 1px solid #dbe7fb; border-radius: 999px; background: #f5f9ff; font-size: 14.5px; font-weight: 700; color: var(--blue); }
.g-links a:hover { border-color: var(--blue); color: var(--blue-d); }

/* 소개 카드 */
.g-cards { display: grid; grid-template-columns: 1.3fr 1.1fr .9fr; gap: 16px; align-items: stretch; }
.g-card { padding: 24px; }
.g-card h2 { font-size: 20px; font-weight: 800; color: var(--title); }
.g-card ul { display: grid; gap: 8px; margin-top: 12px; }
.g-card li, .g-mentor li { position: relative; padding-left: 13px; font-size: 15px; line-height: 1.65; color: #374151; }
.g-card li::before, .g-mentor li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.g-card strong { color: var(--blue); font-weight: 800; }
.g-point { margin-top: 10px; font-size: 15px; font-weight: 700; color: #374151; }
.g-point strong { font-size: 30px; letter-spacing: -.5px; }
.g-free { padding: 14px 18px; border-radius: 12px; background: #eef9f3; font-size: 15.5px; font-weight: 700; color: #1e7a50; }

/* 멘토 안내: 접어 두기 */
.g-mentor summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 16px 24px; font-size: 20px; font-weight: 800; color: var(--title); cursor: pointer; list-style: none; }
.g-mentor summary::-webkit-details-marker { display: none; }
.g-mentor summary::after { content: ""; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg); transition: .15s; }
.g-mentor[open] summary::after { transform: rotate(-135deg); }
.g-mentor summary:focus-visible { outline: 3px solid rgba(17, 102, 240, .35); outline-offset: -3px; border-radius: 20px; }
.g-mentor-body { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; padding: 4px 24px 26px; border-top: 1px solid var(--line); }
.g-mentor-body section { padding-top: 18px; }
.g-mentor h3 { font-size: 17px; font-weight: 800; color: var(--title); }
.g-mentor ul { display: grid; gap: 7px; margin-top: 10px; }
.g-calc { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.g-calc caption { padding-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-align: left; }
.g-calc th, .g-calc td { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 500; color: #374151; }
.g-calc th { text-align: left; }
.g-calc td { text-align: right; white-space: nowrap; }
.g-total th, .g-total td { font-weight: 800; color: var(--title); }

/* 문의 안내 */
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(120deg, #eaf2ff, #f5f9ff); }
.g-cta strong { font-size: 17px; font-weight: 800; color: var(--title); }
.g-cta p { margin-top: 4px; font-size: 14.5px; color: #4b5563; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 44px; padding: 0 22px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; transition: .15s; }
.g-btn:hover { background: var(--blue-d); }

.g-cta { scroll-margin-top: 110px; }
.g-cta-btns { display: flex; flex-shrink: 0; gap: 8px; }
.g-btn.ghost { background: #fff; border: 1px solid #cfd8e6; color: #374151; }
.g-btn.ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
.g-refund > h2 { font-size: 20px; }
.g-refund ul { display: grid; gap: 8px; margin-top: 12px; }
.g-refund li { position: relative; padding-left: 13px; font-size: 15px; line-height: 1.65; color: #374151; }
.g-refund li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.g-calc thead th { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.g-calc thead th:first-child { text-align: left; }
/* ---------- 반응형 ---------- */
@media (max-width: 1240px) { .guide { --pl: 32px; --pr: 24px; } }
@media (max-width: 1100px) {
  .guide { --pl: 20px; --pr: 20px; }
  .g-cards { grid-template-columns: 1fr 1fr; }
  .g-cards #review { grid-column: 1 / -1; }
  .g-mentor-body { grid-template-columns: 1fr 1fr; }
  .g-mentor-body section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) { .guide { --pl: 16px; --pr: 16px; } .g-sec, .g-card, .g-mentor { scroll-margin-top: 86px; } }
@media (max-width: 760px) {
  .g-top { padding: 18px 0 18px; }
  .g-crumb { font-size: 13.5px; }
  .g-top h1 { margin-top: 16px; font-size: 26px; }
  .g-top p { font-size: 14.5px; }
  .g-toc { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .g-toc::-webkit-scrollbar { display: none; }
  .g-toc a { flex-shrink: 0; height: 38px; padding: 0 13px; font-size: 14px; }
  .g-body { gap: 16px; }
  .g-sec { padding: 22px 16px; border-radius: 16px; }
  .g-sec > h2 { font-size: 20px; }
  .g-lead { font-size: 14.5px; }
  .g-steps li { gap: 12px; }
  .g-steps h3 { font-size: 17px; }
  .g-steps p { font-size: 14.5px; }
  .g-cards, .g-mentor-body { grid-template-columns: 1fr; }
  .g-card { padding: 20px 16px; border-radius: 16px; }
  .g-mentor { border-radius: 16px; }
  .g-mentor summary { min-height: 56px; padding: 14px 16px; font-size: 18px; }
  .g-mentor-body { gap: 8px; padding: 0 16px 20px; }
  .g-cta { flex-direction: column; align-items: stretch; padding: 18px; scroll-margin-top: 86px; }
  .g-cta-btns .g-btn { flex: 1; padding: 0 10px; }
  .g-calc th, .g-calc td { font-size: 13.5px; }
  .g-calc td { white-space: normal; }
}
