/* ==========================================================================
   guide/guide.css — QR 진입용 업무별 안내서
   화면 구성은 「노안중학교 AI교육 포털」 시안을 그대로 옮긴 것이다.
   ========================================================================== */

:root {
  --g-navy: #16233A;
  --g-navy2: #12203A;
  --g-blue: #1877E6;
  --g-blue-dark: #0B5FC0;
  --g-blue-soft: #2A7DE1;
  --g-sky: #E9F2FF;
  --g-muted: #5D6C80;
  --g-muted2: #78889C;
  --g-border: #E6ECF3;
  --g-border2: #E8EDF4;
  --g-shadow: 0 1px 3px rgba(20, 50, 90, .06);
  --g-shadow-up: 0 6px 18px rgba(30, 80, 150, .10);
  --g-max: 1560px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, #F8FBFF 0%, #EEF4FB 45%, #E9F0FA 100%);
  color: var(--g-navy);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.g-wrap {
  width: 100%;
  max-width: var(--g-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: 28px;
  padding-left: 28px;
}

.g-muted {
  width: 100%;
  padding: 32px 0;
  color: var(--g-muted);
}

.g-muted a {
  color: var(--g-blue);
  font-weight: 700;
}

/* ==========================================================================
   헤더
   ========================================================================== */

.g-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--g-border);
}

.g-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.g-brand img {
  height: 38px;
  width: auto;
}

.g-brand-ai {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--g-navy);
  white-space: nowrap;
}

.g-nav {
  display: flex;
  align-items: center;
  gap: 14px 34px;
  flex-wrap: wrap;
}

.g-nav > a {
  color: #3D4A5C;
  font-size: 15px;
  font-weight: 600;
}

.g-nav > a:hover {
  color: var(--g-blue);
}

.g-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g-blue);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(24, 119, 230, .28);
  white-space: nowrap;
}

.g-nav-cta:hover {
  background: var(--g-blue-dark);
}

.g-nav-cta svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ==========================================================================
   인쇄용 PDF 안내
   ========================================================================== */

.g-printbar {
  background: rgba(24, 119, 230, .06);
  border-bottom: 1px solid var(--g-border);
  font-size: 14px;
  color: var(--g-muted);
}

.g-printbar .g-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.g-printbar a {
  color: var(--g-blue);
  font-weight: 700;
}

.g-printbar a:hover {
  color: var(--g-blue-dark);
}

/* ==========================================================================
   히어로
   ========================================================================== */

.g-hero {
  padding-top: 22px;
}

.g-hero-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--g-sky);
  box-shadow: var(--g-shadow);
  min-height: 430px;
}

.g-hero-visual {
  position: absolute;
  inset: 0;
  margin: 0;
}

.g-hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.g-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 22%;
}

.g-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    var(--g-sky) 0%,
    var(--g-sky) 32%,
    rgba(233, 242, 255, .9) 47%,
    rgba(233, 242, 255, .3) 63%,
    rgba(233, 242, 255, 0) 76%);
}

.g-hero-visual.is-empty::after {
  background: var(--g-sky);
}

.g-hero-copy {
  position: relative;
  padding: 40px 44px 34px;
  min-width: 0;
  max-width: min(660px, 66%);
}

.g-hero-badge {
  display: block;
  color: var(--g-blue-soft);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.g-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  color: #0F1D33;
  letter-spacing: -2.5px;
}

.g-hero-copy > p {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 600;
  color: #2C3B52;
  letter-spacing: -.6px;
}

.g-hero-tagline {
  margin-top: 26px;
  font-size: clamp(17px, 1.85vw, 25px);
  font-weight: 800;
  color: var(--g-navy);
  letter-spacing: -1px;
}

/* 검색창 */

.g-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 2px solid #BCD8F8;
  border-radius: 999px;
  padding: 6px 8px 6px 22px;
  max-width: 100%;
  box-shadow: var(--g-shadow-up);
}

.g-search-icon {
  flex: none;
  display: flex;
  color: var(--g-blue);
}

.g-search-icon svg {
  width: 24px;
  height: 24px;
}

.g-search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 17px;
  color: var(--g-navy);
  padding: 14px 6px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.g-search-form input::placeholder {
  color: #9AA6B6;
}

.g-search-form button {
  flex: none;
  border: none;
  cursor: pointer;
  background: var(--g-blue);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  padding: 0 34px;
  min-height: 52px;
  border-radius: 999px;
}

.g-search-form button:hover {
  background: var(--g-blue-dark);
}

/* 자주 찾는 낱말 */

.g-popular-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.g-popular-scroll::-webkit-scrollbar {
  display: none;
}

.g-popular-scroll button {
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #CFE0F5;
  border-radius: 999px;
  padding: 0 22px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: #2C4360;
  white-space: nowrap;
}

.g-popular-scroll button:hover {
  border-color: var(--g-blue);
  color: var(--g-blue);
}

/* ==========================================================================
   업무별 안내서 카드
   ========================================================================== */

.g-guide-section {
  padding-top: 20px;
}

.g-panel {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 26px 28px 28px;
  box-shadow: var(--g-shadow);
}

.g-section-heading {
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.g-section-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--g-navy2);
  letter-spacing: -1px;
}

.g-section-heading p {
  margin: 0;
  font-size: 15px;
  color: var(--g-muted2);
  font-weight: 500;
}

.g-all-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--g-blue-soft);
  padding: 0;
  min-height: 0;
}

.g-all-toggle:hover {
  color: var(--g-blue-dark);
}

.g-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.g-quick-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 30px;
  grid-template-areas:
    "ico ttl arw"
    "ico dsc arw"
    "ico bot arw";
  align-items: center;
  column-gap: 18px;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid #E2ECFC;
  background: #F2F7FF;
  transition: border-color .15s ease, transform .15s ease;
}

.g-quick-card:hover {
  transform: translateY(-2px);
}

.g-card-icon {
  grid-area: ico;
  align-self: center;
  justify-self: start;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E0ECFF;
  color: #3B82F6;
}

.g-card-icon svg {
  width: 30px;
  height: 30px;
}

.g-quick-card h3 {
  grid-area: ttl;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--g-navy);
  letter-spacing: -.5px;
}

.g-card-desc {
  grid-area: dsc;
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--g-muted);
}

.g-card-bottom {
  grid-area: bot;
  margin-top: 9px;
}

.g-tool-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.g-tool-pill {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(20, 80, 160, .14);
  color: #2A6FC4;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  line-height: 1.5;
}

.g-card-arrow {
  grid-area: arw;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3F7CC4;
  font-size: 15px;
  font-weight: 700;
}

/* 카드 여섯 가지 색 */

.g-pastel-1 { background: #F2F7FF; border-color: #E2ECFC; }
.g-pastel-1:hover { border-color: #B9D5F8; }
.g-pastel-1 .g-card-icon { background: #E0ECFF; color: #3B82F6; }

.g-pastel-2 { background: #FFF8F0; border-color: #FBECDB; }
.g-pastel-2:hover { border-color: #F6CFA4; }
.g-pastel-2 .g-card-icon { background: #FFE9D2; color: #C46A12; }

.g-pastel-3 { background: #F1FAF4; border-color: #DDF0E5; }
.g-pastel-3:hover { border-color: #A9DCC0; }
.g-pastel-3 .g-card-icon { background: #D8F2E2; color: #1F7A4A; }

.g-pastel-4 { background: #F7F4FF; border-color: #EBE4FD; }
.g-pastel-4:hover { border-color: #C9B6F8; }
.g-pastel-4 .g-card-icon { background: #E9E0FF; color: #6D3ED6; }

.g-pastel-5 { background: #FFFBF0; border-color: #FBF1D9; }
.g-pastel-5:hover { border-color: #F5DA9B; }
.g-pastel-5 .g-card-icon { background: #FFEEC2; color: #8A6500; }

.g-pastel-6 { background: #FFF3F6; border-color: #FCE0E8; }
.g-pastel-6:hover { border-color: #F6B3C8; }
.g-pastel-6 .g-card-icon { background: #FFD9E3; color: #C02D6B; }

/* ==========================================================================
   전체 17장 목록과 검색 결과
   ========================================================================== */

.g-all-tasks {
  margin-top: 22px;
  border-top: 1px solid var(--g-border2);
  padding-top: 18px;
}

.g-all-tasks > summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  color: var(--g-navy2);
  list-style: none;
  padding: 8px 0;
}

.g-all-tasks > summary::-webkit-details-marker {
  display: none;
}

.g-all-tasks > summary::before {
  content: "＋ ";
  color: var(--g-blue);
}

.g-all-tasks[open] > summary::before {
  content: "－ ";
}

.g-results {
  padding-top: 10px;
}

.g-result-group + .g-result-group {
  margin-top: 26px;
}

.g-result-heading h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--g-navy2);
}

.g-result-heading p {
  margin: 2px 0 12px;
  font-size: 14px;
  color: var(--g-muted2);
}

.g-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.g-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7FAFF;
  border: 1px solid #E4EDF8;
  border-radius: 12px;
  padding: 14px 16px;
}

.g-result-card:hover {
  border-color: #B9D5F8;
  background: #EFF6FF;
}

.g-result-no {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--g-blue);
  font-variant-numeric: tabular-nums;
}

.g-result-copy {
  flex: 1;
  min-width: 0;
}

.g-result-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--g-navy);
}

.g-result-copy > span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-muted);
}

.g-result-arrow {
  flex: none;
  color: #9FB3CA;
  font-weight: 700;
}

.g-empty {
  margin: 0;
  padding: 12px 0;
  font-size: 15px;
  color: var(--g-muted2);
}

.g-empty-all {
  font-weight: 700;
  color: var(--g-navy2);
}

.g-tip {
  margin-top: 22px;
  background: rgba(24, 119, 230, .07);
  border: 1px solid rgba(24, 119, 230, .16);
  border-radius: 14px;
  padding: 16px 20px;
}

.g-tip b {
  display: block;
  font-size: 16px;
  color: var(--g-navy2);
}

.g-tip p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--g-muted);
}

/* ==========================================================================
   처음 오셨나요
   ========================================================================== */

.g-first-section {
  padding-top: 16px;
}

.g-first-panel {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  align-items: center;
  gap: 20px 24px;
  box-shadow: var(--g-shadow);
}

.g-first-heading h2 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 800;
  color: var(--g-navy2);
  letter-spacing: -1px;
}

.g-first-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--g-muted2);
}

.g-first-steps {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-first-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--g-border2);
  padding-left: 22px;
}

.g-first-number {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--g-blue);
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-first-steps li > div {
  flex: 1;
  min-width: 0;
}

.g-first-steps h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--g-navy);
}

.g-first-steps p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-muted);
}

.g-first-arrow {
  flex: none;
  color: #9FB3CA;
  font-weight: 700;
}

/* ==========================================================================
   지원 카드
   ========================================================================== */

.g-support-section {
  padding-top: 16px;
  padding-bottom: 22px;
}

.g-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}

.g-support-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  box-shadow: var(--g-shadow);
}

.g-support-card.g-support-ask {
  background: linear-gradient(100deg, #EAF3FF, #F2F8FF);
}

.g-support-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F6FD0;
}

.g-support-icon svg {
  width: 40px;
  height: 40px;
}

.g-support-copy {
  flex: 1 1 200px;
  min-width: 0;
}

.g-support-copy h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--g-navy);
}

.g-support-copy p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--g-muted);
}

.g-support-divider {
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: var(--g-border2);
}

.g-support-qr img {
  width: 76px;
  height: 76px;
}

.g-support-qrtext {
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-muted);
}

.g-support-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--g-blue);
  color: #FFFFFF !important;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(24, 119, 230, .28);
}

.g-support-cta:hover {
  background: var(--g-blue-dark);
}

/* ==========================================================================
   상세 화면
   ========================================================================== */

#gDetailView {
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 72px;
}

.g-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.g-detail-actions,
.g-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.g-detail-actions a,
.g-pager a,
.g-pager span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--g-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--g-navy);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.g-detail-actions a:hover,
.g-pager a:hover {
  border-color: #BCD3F1;
  background: #EFF6FF;
  color: var(--g-blue);
}

.g-detail-actions .g-request {
  border-color: var(--g-blue);
  background: var(--g-blue);
  color: #FFFFFF;
}

.g-detail-actions .g-request:hover {
  background: #1D4ED8;
  color: #FFFFFF;
}

.g-pager span[aria-disabled="true"] {
  color: #9AA7B7;
}

.g-detail-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid #DFE9F5;
  border-radius: 22px;
  background: var(--g-section-a);
}

.g-big-number {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  border-radius: 20px;
  background: var(--g-blue);
  color: #FFFFFF;
  font-size: 23px;
  font-weight: 900;
}

.g-detail-head h1 {
  color: var(--g-navy);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.g-group-tag {
  display: inline-flex;
  min-height: 30px;
  margin-top: 9px;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--g-sky);
  color: var(--g-blue);
  font-size: 14px;
  font-weight: 800;
}

.g-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: 8px;
}

.g-detail-body.g-has-shot {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 32px;
}

.g-section {
  min-width: 0;
  grid-column: 1;
  padding: 26px 0;
  border-bottom: 1px solid var(--g-border);
}

.g-section h2 {
  margin-bottom: 14px;
  color: var(--g-navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.g-when-detail {
  max-width: 62ch;
  color: #23456F;
  font-size: 18px;
  line-height: 1.65;
}

.g-mins {
  margin-top: 13px;
  color: var(--g-muted);
  font-size: 16px;
  line-height: 1.6;
}

.g-mins b {
  color: var(--g-blue);
}

.g-tool-line {
  color: #23456F;
  font-size: 18px;
  font-weight: 800;
}

.g-path {
  margin-top: 9px;
  color: #49627E;
  font-size: 17px;
  line-height: 1.6;
}

.g-path b {
  color: var(--g-blue);
}

.g-detail-steps {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 13px;
  list-style: none;
  counter-reset: g-detail-step;
}

.g-detail-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #23456F;
  font-size: 18px;
  line-height: 1.58;
  counter-increment: g-detail-step;
}

.g-detail-steps li::before {
  content: counter(g-detail-step);
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: var(--g-navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
}

/* 검은 프롬프트 박스 — 기존 안내서의 핵심 형태 유지 */
.g-prompt {
  position: relative;
  margin: 0;
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #EAF6F2;
}

.g-prompt + .g-note {
  margin-top: 14px;
}

.g-prompt-lab {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--gold);
  color: #3A2C00;
  font-size: 14px;
  font-weight: 700;
}

 .g-prompt pre {
  margin: 16px 0 0;
  overflow-x: auto;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.g-copybtn {
  display: inline-flex;
  min-width: 82px;
  min-height: 44px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.g-copybtn:hover {
  background: #EAF4FF;
}

/* 카드 하나만 인쇄 — 제목 줄 오른쪽 끝 */
.g-printcard {
  display: inline-flex;
  min-height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--g-blue);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--g-blue);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.g-printcard:hover {
  background: var(--g-sky);
}

.g-copyhint {
  display: inline-block;
  margin-left: 12px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.g-copyhint[hidden] {
  display: none;
}

.g-note {
  padding: 17px 20px;
  border: 1px solid #AFCFF6;
  border-radius: var(--radius);
  background: #F2F7FF;
  color: #23456F;
  font-size: 17px;
  line-height: 1.62;
}

.g-fold {
  padding: 0;
}

.g-fold summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--g-navy);
  font-size: 21px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.g-fold summary::-webkit-details-marker {
  display: none;
}

.g-fold summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--g-sky);
  color: var(--g-blue);
  font-size: 22px;
  line-height: 1;
}

.g-fold[open] summary::after {
  content: "−";
}

.g-fold-body {
  padding: 0 0 24px;
}

.g-caution {
  padding: 18px 20px;
  border: 1px solid #F0D3B9;
  border-radius: 14px;
  background: #FFF8F3;
  color: #72411E;
  font-size: 17px;
  line-height: 1.65;
}

.g-manuals {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.g-manuals li {
  display: flex;
  min-height: 52px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 14px;
  border: 1px solid var(--g-border);
  border-radius: 12px;
  background: var(--g-section-a);
}

.g-manuals a {
  color: var(--g-blue);
  font-size: 16px;
  font-weight: 750;
}

.g-manuals span {
  color: var(--g-muted);
  font-size: 13px;
}

.g-shot-section {
  position: sticky;
  top: 94px;
  grid-column: 2;
  grid-row: 1 / span 7;
  border-bottom: 0;
}

.g-shot-section[hidden] {
  display: none;
}

.g-shot-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  background: var(--g-section-a);
  box-shadow: var(--g-shadow);
}

.g-shot-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 캡처가 여러 장일 때만 사이를 띄운다. 한 장짜리 카드는 그대로다. */
.g-shot-wrap + .g-shot-wrap {
  margin-top: 12px;
}

.g-mark {
  position: absolute;
  border: 3px solid #E5484D;
  border-radius: 8px;
  pointer-events: none;
}

.g-mark span {
  position: absolute;
  top: -31px;
  left: -3px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px 6px 6px 0;
  background: #E5484D;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   푸터
   ========================================================================== */

.g-footer {
  margin-top: 22px;
  background: #FFFFFF;
  border-top: 1px solid var(--g-border);
}

.g-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
  color: #8494A8;
}

.g-footer-brand img {
  height: 24px;
  width: auto;
}

.g-footer-coordinator strong {
  font-weight: 700;
  color: var(--g-muted);
}

.g-footer-coordinator p {
  margin: 2px 0 0;
}

.g-footer-slogan {
  margin: 0;
}

/* ==========================================================================
   태블릿: 1099px 이하
   ========================================================================== */

@media (max-width: 1099px) {
  .g-hero-copy {
    max-width: min(660px, 78%);
    padding: 34px 32px 30px;
  }

  .g-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }

  .g-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-detail-body.g-has-shot {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-shot-section {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

}

/* ==========================================================================
   히어로 세로 쌓기: 860px 이하
   ========================================================================== */

@media (max-width: 860px) {
  .g-hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .g-hero-visual {
    position: relative;
    order: -1;
    height: 190px;
    flex: none;
  }

  .g-hero-visual img {
    object-position: right center;
  }

  .g-hero-visual::after {
    background: linear-gradient(180deg, rgba(233, 242, 255, 0) 45%, var(--g-sky) 100%);
  }

  .g-hero-copy {
    max-width: 100%;
    padding: 22px 22px 26px;
  }

  .g-first-steps li {
    border-left: none;
    padding-left: 0;
  }
}

/* ==========================================================================
   모바일: 767px 이하
   ========================================================================== */

@media (max-width: 767px) {
  .g-wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .g-header-inner {
    min-height: 0;
    gap: 12px 18px;
  }

  .g-brand img {
    height: 32px;
  }

  .g-brand-ai {
    font-size: 20px;
  }

  .g-nav {
    width: 100%;
    gap: 12px 20px;
  }

  .g-nav > a {
    font-size: 14px;
  }

  .g-nav-cta {
    margin-left: auto;
    padding: 10px 14px;
  }

  .g-printbar {
    font-size: 13px;
  }

  .g-hero {
    padding-top: 14px;
  }

  .g-hero-inner {
    border-radius: 16px;
  }

  .g-hero-visual {
    height: 150px;
  }

  .g-hero-copy h1 {
    letter-spacing: -1.4px;
  }

  .g-hero-copy > p {
    margin-bottom: 20px;
  }

  .g-search-form {
    padding: 6px 6px 6px 16px;
    gap: 8px;
  }

  .g-search-form input {
    font-size: 16px;
    padding: 12px 4px;
  }

  .g-search-form button {
    font-size: 16px;
    padding: 0 20px;
    min-height: 46px;
  }

  .g-popular-scroll {
    flex-wrap: nowrap;
    margin-right: -18px;
    padding-right: 18px;
  }

  .g-popular-scroll button {
    padding: 0 16px;
    font-size: 14px;
  }

  .g-hero-tagline {
    letter-spacing: -.6px;
  }

  .g-panel,
  .g-first-panel,
  .g-support-card {
    border-radius: 16px;
    padding: 20px 18px;
  }

  .g-section-heading h2 {
    font-size: 22px;
  }

  .g-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-quick-card {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    column-gap: 14px;
    padding: 16px 16px;
  }

  .g-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .g-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .g-quick-card h3 {
    font-size: 17px;
  }

  .g-card-desc {
    font-size: 14px;
  }

  .g-card-arrow {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .g-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-first-heading h2 {
    font-size: 22px;
  }

  .g-support-cta {
    width: 100%;
    justify-content: center;
  }

  .g-support-divider {
    display: none;
  }

  .g-support-copy {
    flex-basis: 100%;
  }

  .g-support-qr img {
    width: 68px;
    height: 68px;
  }

  .g-footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 26px;
  }

  #gDetailView {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .g-detail-top {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .g-detail-actions,
  .g-pager {
    justify-content: space-between;
  }

  .g-detail-actions a,
  .g-pager a,
  .g-pager span {
    flex: 1 1 0;
  }

  .g-detail-head {
    gap: 15px;
    margin-top: 24px;
    padding: 22px 18px;
    flex-wrap: wrap;
  }

  /* 좁은 화면에서는 인쇄 버튼이 제목을 밀지 않게 아랫줄로 내린다. */
  .g-printcard {
    width: 100%;
    margin-left: 0;
  }

  .g-big-number {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 16px;
    font-size: 18px;
  }

  .g-detail-head h1 {
    font-size: 28px;
  }

  .g-section {
    padding: 23px 0;
  }

  .g-section h2,
  .g-fold summary {
    font-size: 20px;
  }

  .g-when-detail,
  .g-tool-line,
  .g-detail-steps li {
    font-size: 16px;
  }

  .g-path,
  .g-note,
  .g-caution {
    font-size: 16px;
  }

  .g-prompt {
    padding: 18px;
  }

  .g-prompt pre {
    font-size: 16px;
    line-height: 1.65;
  }

  .g-copybtn {
    width: 100%;
    margin-top: 18px;
  }

  .g-copyhint {
    display: block;
    width: 100%;
    margin: 9px 0 0;
    text-align: center;
  }

}

/* ==========================================================================
   390px 확인
   ========================================================================== */

@media (max-width: 390px) {
  .g-brand-ai {
    font-size: 18px;
  }

  .g-nav > a {
    font-size: 13px;
  }

  .g-hero-copy {
    padding: 18px 16px 22px;
  }

  .g-search-form {
    padding-left: 12px;
  }

  .g-search-form button {
    padding: 0 16px;
  }

  .g-detail-head {
    align-items: flex-start;
  }

  .g-detail-head h1 {
    font-size: 25px;
  }

}

/* ==========================================================================
   포커스와 모션
   ========================================================================== */

.g-header a:focus-visible,
.g-search-form input:focus-visible,
.g-search-form button:focus-visible,
.g-popular-scroll button:focus-visible,
.g-all-toggle:focus-visible,
.g-quick-card:focus-visible,
.g-result-card:focus-visible,
.g-first-steps li:focus-within,
.g-support-copy a:focus-visible,
.g-detail-actions a:focus-visible,
.g-pager a:focus-visible,
.g-fold summary:focus-visible,
.g-copybtn:focus-visible {
  outline: 3px solid #A84F13;
  outline-offset: 3px;
}

.g-search-form:focus-within {
  border-color: var(--g-blue);
  box-shadow:
    0 10px 28px rgba(37, 99, 235, .12),
    0 0 0 3px rgba(37, 99, 235, .10);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .g-quick-card {
    transition: none;
  }

  .g-quick-card:hover,
  .g-quick-card:focus-visible {
    transform: none;
  }
}

/* ==========================================================================
   인쇄
   ========================================================================== */

@media print {
  .g-header,
  .g-printbar,
  #gListView,
  .g-detail-top,
  .g-footer,
  .skip,
  .g-copybtn,
  .g-copyhint,
  .g-printcard {
    display: none !important;
  }

  html,
  body {
    background: #FFFFFF;
  }

  body {
    color: #123B74;
    font-size: 11pt;
  }

  #gDetailView {
    display: block !important;
    max-width: none;
    min-height: 0;
    padding: 0;
  }

  .g-detail-head {
    margin-top: 0;
    padding: 14pt;
    break-inside: avoid;
  }

  .g-detail-body,
  .g-detail-body.g-has-shot {
    display: block;
  }

  .g-section,
  .g-shot-section {
    position: static;
    display: block;
    padding: 12pt 0;
    break-inside: avoid;
  }

  /* 캡처가 여러 장이면 한 쪽에 다 못 들어간다.
     칸은 쪽을 넘게 두고, 사진 한 장이 잘리지 않게만 막는다. */
  .g-shot-section {
    break-inside: auto;
  }

  .g-shot-wrap {
    break-inside: avoid;
  }

  .g-shot-img {
    max-height: 105mm;
    object-fit: contain;
  }

  /* 네 장짜리 카드는 두 장씩 나란히 놓아 A4 두 쪽 안에 들어가게 한다. */
  .g-shot-many {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6pt;
  }

  .g-shot-many > h2 {
    grid-column: 1 / -1;
  }

  .g-shot-many .g-shot-wrap + .g-shot-wrap {
    margin-top: 0;
  }

  .g-shot-many .g-shot-img {
    max-height: 70mm;
  }

  .g-fold > summary {
    display: none;
  }

  .g-fold > .g-fold-body {
    display: block;
    padding-bottom: 0;
  }

  .g-prompt {
    background: #102A43 !important;
    color: #FFFFFF !important;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  a[href]::after {
    content: "";
  }

  @page {
    size: A4 portrait;
    margin: 12mm;
  }
}

/* ==========================================================================
   안내서 상세 — 2026-09-09 목업 「연수 안내서 - 문서 검토」 적용
   단계마다 흰 카드 하나에 번호·문장·그 단계의 화면을 담는다.
   색과 그림자는 위에 이미 있는 토큰을 그대로 쓴다.
   ========================================================================== */

/* 제목 옆 시간 배지 */
.g-time-pill {
  display: inline-flex;
  min-height: 30px;
  margin: 9px 0 0 8px;
  align-items: center;
  padding: 3px 12px;
  border: 1.5px solid #CDD9E6;
  border-radius: 8px;
  color: #3D4A5C;
  font-size: 14px;
  font-weight: 700;
}

/* 「이런 때 씁니다」 — 목업의 옅은 파랑 띠 */
.g-when-strip {
  display: flex;
  margin-top: 22px;
  align-items: baseline;
  gap: 20px;
  padding: 15px 22px;
  border-radius: 14px;
  background: #EEF5FF;
  flex-wrap: wrap;
}

.g-when-lab {
  flex: none;
  color: #1A6FD0;
  font-size: 16px;
  font-weight: 800;
}

.g-when-text {
  flex: 1;
  min-width: 240px;
  color: #33455C;
  font-size: 17px;
  line-height: 1.6;
}

.g-detail-body > .g-mins {
  margin: 11px 2px 0;
}

/* 단계 카드 */
.g-steps-section {
  border-bottom: 0;
}

.g-steps {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.g-step {
  display: flex;
  gap: 16px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--g-shadow);
}

.g-step-no {
  display: flex;
  width: 42px;
  height: 42px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--g-blue);
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 800;
}

.g-step-main {
  flex: 1;
  min-width: 0;
}

.g-step-main h3 {
  margin: 5px 0 0;
  color: var(--g-navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-wrap: pretty;
}

.g-step-shot {
  margin-top: 18px;
  background: #F7FAFD;
}

/* 주의 — 목업의 호박색 상자. 접어두지 않고 늘 펴 둔다. */
.g-caution-box {
  display: flex;
  margin-top: 22px;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid #F7E0BD;
  border-radius: 16px;
  background: #FFF8EE;
}

.g-caution-mark {
  display: flex;
  width: 28px;
  height: 28px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #F08C25;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
}

.g-caution-main {
  flex: 1;
  min-width: 0;
}

.g-caution-lab {
  color: #A35A0D;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.g-caution-text {
  margin-top: 4px;
  color: #7A5C33;
  font-size: 16px;
  line-height: 1.6;
}

/* 단계 카드 안에 들어간 프롬프트 — 시안의 「그대로 치실 문장」 자리 */
.g-step-main > .g-prompt {
  margin-top: 18px;
}

.g-step-main > .g-note {
  margin-top: 14px;
}

/* 도구 로고 — 시안의 로고 칸 */
.g-tool-logo {
  display: flex;
  width: 150px;
  height: 64px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--g-border);
  border-radius: 14px;
  background: #FFFFFF;
}

.g-tool-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 단계 캡처 위의 클릭 자리 — 동그라미로 */
.g-step-shot .g-mark {
  border-radius: 50%;
}

@media (max-width: 767px) {
  .g-tool-logo {
    width: 116px;
    height: 48px;
  }

  /* 좁은 화면에서는 말풍선이 캡처 밖으로 나가기 쉽다 */
  .g-step-shot .g-mark span {
    top: -24px;
    font-size: 11px;
    min-height: 22px;
  }
}

/* 검은 프롬프트 상자 — 글과 복사 버튼을 좌우로 (시안) */
.g-prompt-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.g-prompt-row > pre {
  flex: 1;
  min-width: 240px;
}

.g-prompt-act {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.g-prompt-row .g-copybtn {
  margin-top: 0;
}

@media (max-width: 767px) {
  .g-prompt-act {
    width: 100%;
    margin-top: 0;
  }

  .g-prompt-row .g-copybtn {
    flex: 1;
  }
}

/* 아래쪽 이동 줄 — 카드 이름이 보인다 */
.g-pager-bottom {
  display: flex;
  margin-top: 26px;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.g-pager-bottom a {
  display: flex;
  max-width: 100%;
  min-height: 44px;
  flex-direction: column;
  gap: 3px;
  padding: 13px 22px;
  border: 1px solid #DFE8F3;
  border-radius: 12px;
  background: #FFFFFF;
}

.g-pager-next {
  align-items: flex-end;
  border-color: var(--g-blue) !important;
  background: var(--g-blue) !important;
  box-shadow: 0 2px 6px rgba(24, 119, 230, .28);
}

.g-pager-lab {
  color: var(--g-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.g-pager-title {
  color: #2C4360;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.g-pager-next .g-pager-lab,
.g-pager-next .g-pager-title {
  color: #FFFFFF;
}

.g-pager-bottom a:hover {
  border-color: var(--g-blue);
}

.g-pager-bottom a:hover .g-pager-title {
  color: var(--g-blue);
}

.g-pager-next:hover {
  border-color: var(--g-blue-dark) !important;
  background: var(--g-blue-dark) !important;
}

.g-pager-next:hover .g-pager-title {
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .g-step {
    gap: 12px;
    padding: 20px 18px;
  }

  .g-step-no {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .g-step-main h3 {
    font-size: 18px;
  }

  .g-pager-bottom a {
    width: 100%;
  }

  .g-pager-next {
    align-items: flex-start;
  }
}

@media print {
  /* 단계 카드는 종이에서 테두리만 남긴다 — 그림자는 인쇄되면 지저분하다. */
  .g-step {
    padding: 10pt 0;
    border-bottom: 1px solid #D8E2F0;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }

  .g-steps {
    gap: 0;
  }

  .g-step-shot {
    margin-top: 8pt;
  }

  .g-step-shot .g-shot-img {
    max-height: 62mm;
    object-fit: contain;
  }

  .g-when-strip,
  .g-caution-box {
    break-inside: avoid;
  }

  .g-pager-bottom {
    display: none !important;
  }
}

/* 안내서가 사이트 첫 화면이 된 뒤 — 푸터의 나머지 쪽 링크 */
.g-footer-links {
  margin: 0;
}

.g-footer-links a {
  color: #8494A8;
}

.g-footer-links a:hover {
  color: var(--g-blue);
}
