/**
 * AI Link — Buyer's Guide CSS
 * /guides/css/guides.css
 */

:root {
  --g-brand: #6366f1;
  --g-brand-d: #4338ca;
  --g-accent: #f59e0b;
  --g-success: #10b981;
  --g-bg: #fafafa;
  --g-card: #fff;
  --g-text: #1f2937;
  --g-text-mid: #4b5563;
  --g-text-light: #9ca3af;
  --g-border: #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════════════
 * Hub
 * ═══════════════════════════════════════════════════════════════════════ */
.g-wrap { background: var(--g-bg); min-height: 100vh; padding-bottom: 60px; }
.g-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fef3c7 100%);
  padding: 50px 24px 40px; text-align: center;
}
.g-hero-inner { max-width: 900px; margin: 0 auto; }
.g-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(99,102,241,0.1); color: var(--g-brand-d);
  border-radius: 99px; font-size: .82rem; font-weight: 600; margin-bottom: 16px;
}
.g-hero-title {
  font-size: 2.6rem; font-weight: 800; color: var(--g-text);
  margin: 0 0 12px; line-height: 1.2;
}
.g-accent { color: var(--g-accent); }
.g-hero-desc {
  font-size: 1.1rem; color: var(--g-text-mid);
  margin: 0 0 24px; line-height: 1.6;
}
.g-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.g-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .15s; font-size: .9rem;
}
.g-btn-pri { background: var(--g-brand); color: #fff; }
.g-btn-pri:hover { background: var(--g-brand-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.3); }
.g-btn-sec { background: #fff; color: var(--g-brand); border: 1px solid var(--g-border); }
.g-btn-sec:hover { border-color: var(--g-brand); }
.g-btn-ghost { background: transparent; color: var(--g-text-mid); }
.g-btn-ghost:hover { color: var(--g-text); background: rgba(0,0,0,.04); }
.g-btn-sm { padding: 7px 14px; font-size: .78rem; }

.g-hero-stats { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.g-hero-stat { text-align: center; }
.g-hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--g-brand-d); font-family: 'JetBrains Mono', monospace; }
.g-hero-stat .lbl { font-size: .75rem; color: var(--g-text-mid); margin-top: 2px; }

.g-filter-bar {
  max-width: 1200px; margin: 30px auto 24px; padding: 0 24px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.g-search {
  flex: 1; min-width: 260px; position: relative;
  background: #fff; border-radius: 10px; border: 1px solid var(--g-border);
  display: flex; align-items: center; padding: 0 14px;
}
.g-search i { color: var(--g-text-light); }
.g-search input {
  flex: 1; padding: 12px 12px; border: none; background: transparent;
  font-size: .9rem; outline: none;
}
.g-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.g-chip {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--g-border);
  background: #fff; cursor: pointer; font-size: .78rem; color: var(--g-text-mid);
  transition: all .12s;
}
.g-chip:hover { border-color: var(--g-brand); color: var(--g-brand); }
.g-chip.on { background: var(--g-brand); color: #fff; border-color: var(--g-brand); font-weight: 600; }

/* v856 — full-size (솔루션 랭킹 패턴): .al2-main이 padding 제공 */
.g-list-section { max-width: none; margin: 0; padding: 0; }
.g-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.g-list-header h2 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.g-sort select {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--g-border);
  background: #fff; font-size: .82rem;
}
.g-list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.g-list-card {
  background: var(--g-card); padding: 20px; border-radius: 12px;
  border: 1px solid var(--g-border); text-decoration: none; color: var(--g-text);
  transition: all .15s; display: flex; flex-direction: column; gap: 10px;
}
.g-list-card:hover {
  border-color: var(--g-brand); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99,102,241,.12);
}
.g-card-head { display: flex; justify-content: space-between; align-items: center; }
.g-cat-badge {
  display: inline-block; padding: 3px 10px; background: #eef2ff;
  color: var(--g-brand-d); border-radius: 99px; font-size: .7rem; font-weight: 600;
}
.g-status-draft { color: var(--g-accent); font-size: .7rem; font-weight: 600; }
.g-list-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.g-card-sub { margin: 0; font-size: .82rem; color: var(--g-text-mid); line-height: 1.5; }
.g-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.g-tag {
  padding: 2px 8px; background: var(--g-bg); border-radius: 4px;
  font-size: .68rem; color: var(--g-text-mid);
}
.g-card-foot {
  display: flex; gap: 12px; font-size: .72rem; color: var(--g-text-light);
  padding-top: 8px; border-top: 1px solid var(--g-border);
}

.g-skeleton {
  height: 200px; background: linear-gradient(90deg, #f3f4f6 0%, #fafafa 50%, #f3f4f6 100%);
  background-size: 200% 100%; animation: g-skel 1.4s ease-in-out infinite;
  border-radius: 12px;
}
@keyframes g-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.g-empty {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px;
  color: var(--g-text-light); font-size: .9rem; line-height: 1.6;
}
.g-empty i { font-size: 2.5rem; color: var(--g-border); margin-bottom: 12px; display: block; }
.g-empty a { color: var(--g-brand); text-decoration: none; font-weight: 600; }

.g-why { max-width: none; margin: 60px 0 0; padding: 0; }
.g-why h2 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.g-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.g-why-card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--g-border); }
.g-why-card .ic { font-size: 1.8rem; margin-bottom: 8px; }
.g-why-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.g-why-card p { margin: 0; font-size: .82rem; color: var(--g-text-mid); line-height: 1.5; }

.g-workflow { max-width: none; margin: 60px 0 0; padding: 0; }
.g-workflow h2 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.g-workflow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.g-workflow-steps .step { background: #fff; padding: 18px; border-radius: 12px; border: 1px solid var(--g-border); text-align: center; }
.g-workflow-steps .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-brand), #8b5cf6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 8px;
}
.g-workflow-steps h4 { margin: 4px 0 6px; font-size: .88rem; }
.g-workflow-steps p { margin: 0; font-size: .74rem; color: var(--g-text-mid); }

/* ═══════════════════════════════════════════════════════════════════════
 * Detail
 * ═══════════════════════════════════════════════════════════════════════ */
.g-detail-wrap { background: var(--g-bg); min-height: 100vh; }
.g-detail-loading {
  text-align: center; padding: 80px 20px; color: var(--g-text-light); font-size: .9rem;
}
/* v855 — 3-column 레이아웃 (Stripe·Vercel docs 패턴): ToC | Main | Right Rail */
.g-detail-grid {
  max-width: 1380px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 28px;
}
@media (max-width: 1200px) {
  .g-detail-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .g-rail { display: none; }
}
@media (max-width: 920px) {
  .g-detail-grid { grid-template-columns: 1fr; }
  .g-toc { display: none; }
}

/* 우측 Right Rail */
.g-rail {
  position: sticky; top: 20px; align-self: start;
  max-height: calc(100vh - 80px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.g-rail::-webkit-scrollbar { width: 4px; }
.g-rail::-webkit-scrollbar-thumb { background: var(--al2-g200, #e5e7eb); border-radius: 2px; }

.g-rail-card {
  background: #fff; border: 1px solid var(--g-border, #e5e7eb);
  border-radius: 10px; padding: 14px 14px;
}
.g-rail-card.cta {
  background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  border-color: #c7d2fe;
}
.g-rail-card-title {
  font-size: .76rem; font-weight: 700; color: var(--g-text, #1e293b);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.g-rail-card-title i { color: var(--al2-brand, #6c3ae0); }
.g-rail-card p {
  font-size: .76rem; color: var(--g-text-mid, #475569); line-height: 1.55; margin: 0 0 10px;
}
.g-rail-card .g-btn { width: 100%; justify-content: center; }
.g-rail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.g-rail-list a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px;
  font-size: .76rem; color: var(--g-text-mid, #475569); text-decoration: none;
  transition: background .12s, color .12s;
}
.g-rail-list a:hover { background: var(--g-bg, #f8fafc); color: var(--al2-brand, #6c3ae0); }
.g-rail-list a i { font-size: .68rem; opacity: .6; }
.g-toc {
  position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 80px);
  overflow-y: auto; background: #fff; padding: 14px 14px;
  border-radius: 10px; border: 1px solid var(--g-border);
}
.g-toc-head { font-size: .8rem; font-weight: 700; color: var(--g-text-mid); margin-bottom: 10px; }
.g-toc-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.g-toc-list a {
  padding: 6px 10px; border-radius: 6px; font-size: .76rem;
  color: var(--g-text-mid); text-decoration: none;
  border-left: 2px solid transparent;
}
.g-toc-list a:hover { background: var(--g-bg); color: var(--g-text); }
.g-toc-list a.on { background: #eef2ff; color: var(--g-brand-d); border-left-color: var(--g-brand); font-weight: 600; }
.g-toc-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--g-border); }
.g-toc-actions .g-btn { justify-content: center; }

.g-detail-main { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid var(--g-border); }
.g-bc { font-size: .76rem; color: var(--g-text-light); margin-bottom: 12px; }
.g-bc a { color: var(--g-brand); text-decoration: none; }
.g-bc i { font-size: .55rem; margin: 0 4px; }
.g-detail-hero h1 { margin: 0 0 8px; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.g-d-subtitle { margin: 0 0 14px; color: var(--g-text-mid); font-size: 1rem; line-height: 1.5; }
.g-d-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--g-text-light); margin-bottom: 16px; }
.g-d-meta i { margin-right: 4px; }
.g-d-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 0; border-bottom: none; }
@media (max-width: 720px) {
  .g-d-actions .g-btn { font-size: .78rem; padding: 8px 12px; }
  .g-detail-hero h1 { font-size: 1.5rem; }
  .g-detail-main { padding: 18px !important; }
}

.g-section { margin-top: 36px; scroll-margin-top: 80px; }
@media (max-width: 720px) { .g-section { scroll-margin-top: 110px; } /* mobile sticky tabs */ }
.g-section h2 {
  margin: 0 0 16px; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.g-section h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-brand), #8b5cf6); color: #fff;
  font-size: .78rem; font-family: 'JetBrains Mono', monospace; padding: 0 8px;
}
.g-section h3 { margin: 18px 0 10px; font-size: 1rem; font-weight: 700; }
.g-section h4 { margin: 0 0 6px; font-size: .9rem; font-weight: 700; }
.g-section-sub { font-size: .72rem; color: var(--g-text-light); font-weight: 400; margin-left: 6px; }
.g-section-intro { font-size: .85rem; color: var(--g-text-mid); margin-bottom: 14px; line-height: 1.6; }

.g-empty-section, .g-empty-mini {
  padding: 16px; background: var(--g-bg); border-radius: 8px;
  color: var(--g-text-light); font-size: .82rem; text-align: center;
}

/* Section: market */
.g-market-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.g-stat-card {
  background: linear-gradient(135deg, #eef2ff, #fff); padding: 14px 18px;
  border-radius: 10px; border: 1px solid #c7d2fe; min-width: 140px;
}
.g-stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--g-brand-d); }
.g-stat-card .lbl { font-size: .72rem; color: var(--g-text-mid); }
.g-market-note { font-size: .85rem; color: var(--g-text-mid); line-height: 1.6; }
.g-players-table, .g-pricing-table, .g-tco-table, .g-decision-table, .g-scoring-table {
  width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .82rem;
}
.g-players-table th, .g-pricing-table th, .g-tco-table th, .g-decision-table th, .g-scoring-table th {
  text-align: left; padding: 10px 12px; background: var(--g-bg);
  font-weight: 700; color: var(--g-text-mid); font-size: .76rem;
  border-bottom: 1px solid var(--g-border);
}
.g-players-table td, .g-pricing-table td, .g-tco-table td, .g-decision-table td, .g-scoring-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--g-border);
}
.g-share-bar, .g-weight-bar {
  position: relative; background: var(--g-bg); border-radius: 4px; height: 18px;
}
.g-share-bar .fill, .g-weight-bar .fill {
  background: linear-gradient(90deg, var(--g-brand), #8b5cf6);
  height: 100%; border-radius: 4px; transition: width .3s;
}
.g-share-bar span, .g-weight-bar span {
  position: absolute; top: 0; left: 8px; line-height: 18px;
  font-size: .68rem; font-weight: 700; color: #fff; mix-blend-mode: difference;
}
.g-callout {
  padding: 14px 16px; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; margin: 14px 0;
}
.g-callout.korea { background: #ecfdf5; border-color: #a7f3d0; }
.g-callout h4 { margin: 0 0 6px; color: #92400e; }
.g-callout.korea h4 { color: #065f46; }
.g-callout p { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--g-text); }
.g-trends { padding-left: 22px; }
.g-trends li { margin-bottom: 6px; font-size: .85rem; color: var(--g-text-mid); }

/* Personas */
.g-persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.g-persona-card {
  background: linear-gradient(135deg, #f9fafb, #fff); padding: 16px;
  border-radius: 10px; border: 1px solid var(--g-border);
}
.g-persona-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.g-persona-head h4 { margin: 0; font-size: .92rem; }
.g-persona-fit {
  position: relative; min-width: 140px; height: 20px;
  background: var(--g-bg); border-radius: 99px; overflow: hidden;
}
.g-persona-fit .fill {
  height: 100%; min-width: 90px;  /* 🆕 텍스트 항상 fit */
  background: linear-gradient(90deg, var(--g-success), #34d399);
  border-radius: 99px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 9px;
  font-size: .68rem; font-weight: 700; color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.g-persona-fit span { display: none; }  /* legacy span 사용 안 함 */
.g-persona-scenario { margin: 0 0 8px; font-size: .8rem; color: var(--g-text-mid); line-height: 1.5; }
.g-persona-card > div { font-size: .76rem; margin-bottom: 4px; color: var(--g-text-mid); }
.g-mini-chip {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font-size: .68rem; font-weight: 600; margin: 2px;
}
.g-mini-chip.ok { background: #d1fae5; color: #065f46; }
.g-mini-chip.warn { background: #fee2e2; color: #991b1b; }

/* Features */
.g-features { display: flex; flex-direction: column; gap: 16px; }
.g-feat-group { padding: 14px; border-radius: 10px; border: 1px solid var(--g-border); }
.g-feat-group.must { border-left: 4px solid var(--g-success); background: #f0fdf4; }
.g-feat-group.should { border-left: 4px solid var(--g-brand); background: #f8fafc; }
.g-feat-group.nice { border-left: 4px solid var(--g-text-light); background: #fafafa; }
.g-feat-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.g-feat-list li { padding: 10px; background: #fff; border-radius: 7px; border: 1px solid var(--g-border); }
.g-feat-label { font-size: .82rem; font-weight: 700; color: var(--g-text); margin-bottom: 3px; }
.g-feat-why { font-size: .72rem; color: var(--g-text-mid); line-height: 1.5; }

/* Certifications */
.g-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.g-cert-card { padding: 14px; background: #fff; border-radius: 10px; border: 1px solid var(--g-border); }
.g-cert-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.g-cert-chip {
  padding: 4px 12px; background: #ede9fe; color: #5b21b6;
  border-radius: 99px; font-size: .72rem; font-weight: 700;
}
.g-cert-chip.rec { background: #dbeafe; color: #1e40af; }
.g-cert-notes { display: flex; flex-direction: column; gap: 10px; }
.g-cert-note { padding: 14px; background: var(--g-bg); border-radius: 10px; border-left: 3px solid var(--g-brand); }
.g-cert-note p { margin: 4px 0; font-size: .82rem; color: var(--g-text-mid); }
.g-cert-note p b { color: var(--g-text); }

/* Deployment */
.g-deploy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.g-deploy-card { padding: 14px; background: #fff; border-radius: 10px; border: 1px solid var(--g-border); }
.g-deploy-card h4 { margin: 0 0 6px; }
.g-deploy-card p { margin: 0; font-size: .8rem; color: var(--g-text-mid); line-height: 1.5; }

/* Pricing */
.g-price-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.g-tco-table { font-size: .85rem; }
.g-tco-table td { background: linear-gradient(180deg, #eef2ff, #fff); font-weight: 700; color: var(--g-brand-d); text-align: center; padding: 14px; }
.g-hidden-cost { padding-left: 22px; }
.g-hidden-cost li { margin-bottom: 5px; font-size: .82rem; color: var(--g-text-mid); }

/* Scoring */
.g-scoring-rationale {
  padding: 12px 14px; background: #eef2ff; border-radius: 10px;
  font-size: .85rem; color: var(--g-brand-d); line-height: 1.6; margin-bottom: 14px;
}

/* Procurement */
.g-process-timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.g-process-step {
  background: #fff; padding: 12px; border-radius: 10px;
  border: 1px solid var(--g-border); text-align: center;
}
.g-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g-brand); color: #fff; line-height: 28px;
  margin: 0 auto 6px; font-size: .8rem; font-weight: 700;
}
.g-process-step h4 { margin: 4px 0 4px; font-size: .82rem; }
.g-process-step p { margin: 0; font-size: .74rem; color: var(--g-text-mid); }
.g-process-step small { display: block; margin-top: 4px; font-size: .68rem; color: var(--g-text-light); }
.g-checkpoints { padding-left: 22px; list-style: none; }
.g-checkpoints li { margin-bottom: 6px; font-size: .85rem; color: var(--g-text-mid); position: relative; padding-left: 4px; }
.g-checkpoints li i { color: var(--g-accent); margin-right: 6px; }
.g-rfp-cta {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: linear-gradient(135deg, #fef3c7, #fff); border: 1px solid #fde68a;
  border-radius: 10px; margin-top: 14px; flex-wrap: wrap;
}
.g-rfp-cta .ic { font-size: 2rem; }
.g-rfp-cta h4 { margin: 0 0 4px; }
.g-rfp-cta p { margin: 0; font-size: .82rem; color: var(--g-text-mid); }

/* Decision Checklist */
.g-checklist-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px;
  margin: 12px 0;
}
.g-checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: #fff; border: 1px solid var(--g-border);
  border-radius: 8px; cursor: pointer; transition: all .12s;
  font-size: .82rem;
}
.g-checklist-item:hover { border-color: var(--g-brand); background: #f8fafc; }
.g-checklist-item.on { background: #f0fdf4; border-color: var(--g-success); }
.g-checklist-item.on .lbl { text-decoration: line-through; opacity: .7; }
.g-checklist-item input { display: none; }
.g-checklist-item .ic {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--g-border); position: relative; flex-shrink: 0;
}
.g-checklist-item.on .ic { background: var(--g-success); border-color: var(--g-success); }
.g-checklist-item.on .ic::after { content: '✓'; position: absolute; inset: 0; line-height: 16px; text-align: center; color: #fff; font-weight: 800; font-size: .72rem; }
.g-checklist-bar { background: var(--g-bg); height: 10px; border-radius: 4px; margin-bottom: 4px; }
.g-checklist-bar .fill { background: linear-gradient(90deg, var(--g-brand), var(--g-success)); height: 100%; border-radius: 4px; transition: width .3s; }
.g-checklist-status { font-size: .82rem; color: var(--g-text-mid); text-align: center; padding: 6px 0; }

/* FAQs */
.g-faq-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.g-faq-tab {
  padding: 7px 14px; background: var(--g-bg); border: none; border-radius: 7px;
  cursor: pointer; font-size: .78rem; color: var(--g-text-mid);
}
.g-faq-tab.on { background: var(--g-brand); color: #fff; font-weight: 600; }
.g-faq-list { display: flex; flex-direction: column; gap: 6px; }
.g-faq-item {
  background: #fff; border: 1px solid var(--g-border); border-radius: 8px;
  padding: 12px 14px;
}
.g-faq-item summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
.g-faq-item[open] { background: #f8fafc; border-color: var(--g-brand); }
.g-faq-a { margin-top: 8px; font-size: .82rem; color: var(--g-text-mid); line-height: 1.6; padding-top: 8px; border-top: 1px solid var(--g-border); }

/* Recommended products */
.g-prod-group { margin-bottom: 24px; }
.g-prod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.g-prod-card {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: #fff; border-radius: 8px; border: 1px solid var(--g-border);
  text-decoration: none; color: var(--g-text); transition: all .12s;
}
.g-prod-card:hover { border-color: var(--g-brand); transform: translateX(2px); box-shadow: 0 4px 12px rgba(99,102,241,.08); }
.g-prod-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--g-bg); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.g-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-prod-body { flex: 1; min-width: 0; }
.g-prod-name { font-size: .82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-prod-meta { font-size: .68rem; color: var(--g-text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-prod-score {
  display: inline-block; padding: 0 6px; background: #eef2ff;
  color: var(--g-brand-d); border-radius: 99px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace; font-size: .65rem; margin-right: 4px;
}
.g-prod-badge { padding: 0 6px; border-radius: 99px; font-size: .62rem; margin-left: 4px; }
.g-prod-badge.proc { background: #d1fae5; color: #065f46; }
.g-prod-cta { text-align: center; margin-top: 14px; }

/* Related */
.g-related-list { display: flex; gap: 8px; flex-wrap: wrap; }
.g-related-card {
  padding: 8px 14px; background: var(--g-bg); border-radius: 99px;
  text-decoration: none; color: var(--g-text-mid); font-size: .82rem;
  border: 1px solid var(--g-border);
}
.g-related-card:hover { background: #fff; color: var(--g-brand); border-color: var(--g-brand); }

/* Feedback */
.g-feedback { padding: 18px; background: var(--g-bg); border-radius: 10px; border: 1px solid var(--g-border); }
.g-feedback p { margin: 0 0 10px; font-size: .85rem; color: var(--g-text-mid); }
.g-feedback-actions { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.g-feedback-btn {
  padding: 8px 16px; background: #fff; border: 1px solid var(--g-border);
  border-radius: 8px; cursor: pointer; font-size: .82rem;
}
.g-feedback-btn.on { border-color: var(--g-brand); background: #eef2ff; color: var(--g-brand-d); font-weight: 600; }
.g-feedback textarea {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--g-border);
  font-size: .85rem; font-family: inherit; resize: vertical; min-height: 60px;
  margin-bottom: 10px;
}
.g-feedback-thanks {
  padding: 14px; background: #d1fae5; color: #065f46; border-radius: 8px;
  text-align: center; font-weight: 600;
}

/* Detail Footer */
.g-detail-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--g-border); }
.g-detail-footer h3 { font-size: 1.1rem; margin-bottom: 14px; }
.g-detail-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.g-cta-card {
  padding: 16px; background: #fff; border: 1px solid var(--g-border);
  border-radius: 10px; text-decoration: none; color: var(--g-text);
  transition: all .12s; display: block;
}
.g-cta-card:hover { border-color: var(--g-brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99,102,241,.1); }
.g-cta-card .ic { font-size: 1.8rem; margin-bottom: 6px; }
.g-cta-card h4 { margin: 0 0 4px; font-size: .92rem; }
.g-cta-card p { margin: 0; font-size: .76rem; color: var(--g-text-mid); }

.g-curator-fab {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-brand), #8b5cf6); color: #fff;
  border: none; cursor: pointer; font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(99,102,241,.4); z-index: 9000;
}
.g-curator-fab:hover { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════════════════
 * Curator
 * ═══════════════════════════════════════════════════════════════════════ */
.g-curator-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; min-height: 100vh; }
.g-curator-hero { text-align: center; margin-bottom: 30px; }
.g-curator-hero h1 { margin: 8px 0 6px; font-size: 1.9rem; }
.g-curator-hero p { color: var(--g-text-mid); font-size: .95rem; }

.g-curator-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 20px;
}
@media (max-width: 920px) { .g-curator-grid { grid-template-columns: 1fr; } }

.g-curator-profile {
  background: #fff; padding: 18px; border-radius: 12px;
  border: 1px solid var(--g-border); height: fit-content;
}
.g-curator-profile h3 { margin: 0 0 8px; font-size: 1rem; }
.g-tip { font-size: .76rem; color: var(--g-text-mid); margin-bottom: 12px; }
.g-form-group { margin-bottom: 12px; }
.g-form-group label { display: block; font-size: .75rem; color: var(--g-text-mid); margin-bottom: 4px; font-weight: 600; }
.g-form-group select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--g-border);
  border-radius: 8px; font-size: .82rem; background: #fff;
}

.g-curator-chat {
  background: #fff; border-radius: 12px; border: 1px solid var(--g-border);
  display: flex; flex-direction: column; min-height: 600px;
}
.g-chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--g-border);
}
.g-chat-header h3 { margin: 0; font-size: 1rem; }
.g-chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.g-chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.g-chat-msg.user { flex-direction: row-reverse; }
.g-chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--g-bg); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.g-chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: .85rem;
  line-height: 1.55; color: var(--g-text);
}
.g-chat-msg.assistant .g-chat-bubble { background: var(--g-bg); border: 1px solid var(--g-border); }
.g-chat-msg.user .g-chat-bubble { background: var(--g-brand); color: #fff; }
.g-chat-bubble p { margin: 0 0 6px; }
.g-chat-bubble p:last-child { margin: 0; }

.g-quick-questions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-quick-q {
  padding: 5px 10px; background: #fff; border: 1px solid var(--g-border);
  border-radius: 99px; cursor: pointer; font-size: .72rem;
  color: var(--g-text-mid);
}
.g-quick-q:hover { background: var(--g-brand); color: #fff; border-color: var(--g-brand); }

.g-chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--g-border); }
.g-chat-input textarea {
  flex: 1; padding: 10px 14px; border: 1px solid var(--g-border);
  border-radius: 10px; font-family: inherit; font-size: .88rem;
  resize: none;
}
.g-chat-input textarea:focus { outline: none; border-color: var(--g-brand); }
.g-chat-input .g-btn { padding: 10px 16px; }
.g-chat-foot { padding: 8px 18px; border-top: 1px solid var(--g-border); font-size: .7rem; color: var(--g-text-light); text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
 * 🆕 P1 — TLDR Hero · 진행률 · 모바일 탭 · 검색 · 1-pager · 인라인 AI
 * ═══════════════════════════════════════════════════════════════════════ */
/* main 내부 sticky — al2-main scroll 컨테이너 기준 (grid 영향 X) */
.g-read-progress-wrap {
  position: sticky; top: -1px; z-index: 50;
  height: 3px; background: rgba(99, 102, 241, 0.1);
  margin: -30px -30px 14px;  /* main padding 상쇄해 가장자리까지 확장 */
  border-radius: 0;
}
.g-read-progress {
  height: 100%; background: linear-gradient(90deg, var(--g-brand), #8b5cf6);
  width: 0%; transition: width .15s ease;
}

.g-tldr {
  margin: 22px 0 12px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: 14px;
}
.g-tldr-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.g-tldr-eyebrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 700; color: #92400e;
}
.g-tldr-readtime { font-size: .72rem; color: #92400e; opacity: .85; }
.g-tldr-summary {
  margin: 0 0 14px; font-size: .98rem; line-height: 1.65;
  color: #1f2937; font-weight: 500;
}
.g-tldr-top3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.g-tldr-card {
  display: flex; gap: 9px; padding: 10px;
  background: #fff; border: 1px solid #fde68a; border-radius: 10px;
  text-decoration: none; color: var(--g-text); transition: all .15s;
  align-items: center;
}
.g-tldr-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(146, 64, 14, .15); }
.g-tldr-thumb {
  width: 36px; height: 36px; border-radius: 7px; overflow: hidden;
  background: var(--g-bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.g-tldr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-tldr-rank { font-size: .85rem; font-weight: 700; color: var(--g-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-tldr-meta { font-size: .7rem; color: var(--g-text-mid); margin-top: 2px; }
.g-tldr-empty { padding: 14px; color: var(--g-text-light); font-size: .82rem; text-align: center; grid-column: 1/-1; }
.g-tldr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g-tldr-actions .g-btn { padding: 7px 14px; font-size: .78rem; }

.g-mob-tabs {
  display: none; gap: 4px; padding: 8px 12px; margin: 0 -16px 14px;
  position: sticky; top: 4px; z-index: 40;
  background: rgba(250,250,250,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g-border);
  overflow-x: auto; scrollbar-width: thin;
}
.g-mob-tabs button {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 99px;
  border: 1px solid var(--g-border); background: #fff;
  font-size: .76rem; cursor: pointer; white-space: nowrap;
  color: var(--g-text-mid);
}
.g-mob-tabs button.on { background: var(--g-brand); color: #fff; border-color: var(--g-brand); font-weight: 700; }

.g-resume-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; margin: 14px 0;
  background: linear-gradient(135deg, #eef2ff, #fff);
  border: 1px solid #c7d2fe; border-radius: 10px;
  font-size: .82rem; color: var(--g-brand-d);
}
.g-resume-banner button:first-of-type {
  background: var(--g-brand); color: #fff; border: none;
  padding: 5px 14px; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: .76rem;
}

.g-inline-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 14px;
  background: var(--g-bg); border: 1px solid var(--g-border); border-radius: 8px;
}
.g-inline-search input {
  flex: 1; padding: 7px 10px; border: 1px solid var(--g-border);
  border-radius: 6px; font-size: .85rem; outline: none;
}
.g-inline-search input:focus { border-color: var(--g-brand); }
.g-search-count { font-size: .72rem; color: var(--g-text-mid); white-space: nowrap; }
.g-search-hit { background: #fef9c3; padding: 1px 3px; border-radius: 3px; }

.g-section-ai {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--g-border);
  text-align: center;
}
.g-section-ai-btn {
  background: transparent; border: 1px dashed var(--g-brand);
  color: var(--g-brand); padding: 6px 14px; border-radius: 99px;
  cursor: pointer; font-size: .72rem; transition: all .12s;
}
.g-section-ai-btn:hover { background: var(--g-brand); color: #fff; }

.g-toc-ai {
  margin-top: 12px; padding: 10px;
  background: linear-gradient(135deg, #eef2ff, #fff);
  border: 1px solid #c7d2fe; border-radius: 8px;
}
.g-toc-ai-label { font-size: .68rem; color: var(--g-brand-d); font-weight: 700; margin-bottom: 6px; }
.g-toc-ai textarea {
  width: 100%; padding: 7px 8px; font-size: .76rem;
  border: 1px solid var(--g-border); border-radius: 6px;
  resize: vertical; min-height: 50px; font-family: inherit;
  margin-bottom: 6px;
}
.g-toc-ai .g-btn { width: 100%; padding: 6px; font-size: .72rem; }

@media (max-width: 720px) {
  .g-mob-tabs { display: flex; }
  .g-tldr-top3 { grid-template-columns: 1fr; }
  .g-section-ai { display: none; } /* 모바일은 사이드바로 충분 */
}

/* ═══════════════════════════════════════════════════════════════════════
 * 🆕 결재용 1-pager 모드 — body.one-pager-mode 시 핵심만 노출
 * ═══════════════════════════════════════════════════════════════════════ */
@media print {
  body.one-pager-mode #sec-market,
  body.one-pager-mode #sec-personas,
  body.one-pager-mode #sec-deployment,
  body.one-pager-mode #sec-procurement,
  body.one-pager-mode #sec-faqs,
  body.one-pager-mode #sec-related,
  body.one-pager-mode #sec-feedback,
  body.one-pager-mode .g-toc-ai,
  body.one-pager-mode .g-mob-tabs,
  body.one-pager-mode .g-section-ai,
  body.one-pager-mode .g-d-actions,
  body.one-pager-mode .g-resume-banner,
  body.one-pager-mode .g-inline-search,
  body.one-pager-mode .g-read-progress-wrap { display: none !important; }
  body.one-pager-mode .g-tldr { padding: 14px; margin: 0 0 14px; }
  body.one-pager-mode .g-detail-main::after {
    content: '검토자: ____________  승인자: ____________  도입검토일: ____년 ____월 ____일  AI Link · ailink.co.kr';
    display: block; margin-top: 8mm; padding-top: 4mm;
    border-top: 1px solid #e5e7eb; font-size: 11px; color: #4b5563; text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
 * Print (PDF 출력 — 결재용)
 * ═══════════════════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #al2-topbar-mount, #al2-gnb-mount, .g-toc, .g-d-actions, .g-detail-footer,
  .g-curator-fab, .g-feedback, .g-faq-tabs { display: none !important; }
  .g-detail-grid { grid-template-columns: 1fr !important; padding: 0 !important; }
  .g-detail-main { box-shadow: none !important; border: none !important; padding: 16mm !important; }
  .g-section { break-inside: avoid; page-break-inside: avoid; }
  .g-section h2 { color: var(--g-brand-d); }
  .g-detail-main::before {
    content: 'AI Link 구매 가이드';
    display: block; font-size: 11px; color: #9ca3af; margin-bottom: 8mm;
  }
  .g-detail-main::after {
    content: '검토자: ____________  승인자: ____________  AI Link · ailink.co.kr';
    display: block; margin-top: 12mm; padding-top: 6mm;
    border-top: 1px solid #e5e7eb; font-size: 11px; color: #6b7280; text-align: center;
  }
  @page { margin: 14mm; size: A4; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * 🆕 v754 — Tier 1+2+3 신뢰도 강화 컴포넌트
 * ═══════════════════════════════════════════════════════════════════════ */

/* Tier 1.1 — Hero 신뢰 시그널 배너 */
.g-trust-banner {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 18px 0;       /* 🆕 위·아래 간격 늘림 */
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}
.g-trust-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px;
  font-size: .76rem; font-weight: 600;
  border: 1px solid transparent;
  transition: all 120ms ease;
  line-height: 1.3;
}
.g-trust-pill i { font-size: .7rem; }
.g-trust-pill.independence { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.g-trust-pill.verified { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.g-trust-pill.team { background: #fefce8; color: #854d0e; border-color: #fef08a; }
.g-trust-pill.sources { background: #fdf4ff; color: #86198f; border-color: #f5d0fe; }
.g-trust-pill.sources:hover { background: #fae8ff; }

/* Tier 1.2 — AI 개요 prose 단락 (Google AI Overview 패턴) */
.g-ai-overview {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 16px 0;
  position: relative;
}
.g-ai-overview-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.g-ai-overview-icon { font-size: 1.1rem; }
.g-ai-overview-label {
  font-weight: 700; color: #1e40af; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.g-ai-overview-source {
  margin-left: auto;
  font-size: .7rem; color: #64748b;
  background: rgba(255,255,255,.6);
  padding: 2px 8px; border-radius: 99px;
}
.g-ai-overview-text {
  font-size: 1rem; line-height: 1.65;
  color: #1e293b;
  margin: 0;
}

/* Tier 1.3 — 의사결정 플로우 navigator (7단계 horizontal) */
.g-decision-flow {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.g-decision-flow-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.g-decision-flow-eyebrow { font-weight: 700; color: #0f172a; font-size: .9rem; }
.g-decision-flow-sub { font-size: .8rem; color: #64748b; }
.g-decision-flow-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  counter-reset: step;
}
.g-decision-flow-steps li {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
  transition: all 120ms ease;
  position: relative;
}
.g-decision-flow-steps li:hover { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,.15); transform: translateY(-1px); }
.g-decision-flow-steps li .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-weight: 700; font-size: .72rem;
  margin: 0 auto 2px;
}
.g-decision-flow-steps li b { font-size: .82rem; color: #0f172a; }
.g-decision-flow-steps li small { font-size: .68rem; color: #64748b; }
.g-decision-flow-steps li:not(:last-child)::after {
  content: '›'; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-weight: 700;
  background: #fafafa; padding: 0 1px;
  z-index: 1;
}
@media (max-width: 768px) {
  .g-decision-flow-steps { grid-template-columns: repeat(2, 1fr); }
  .g-decision-flow-steps li:not(:last-child)::after { display: none; }
}

/* Tier 2.1 — 출처 (Sources) 섹션 */
.g-source-policy {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 12px 14px; border-radius: 6px;
  font-size: .9rem; color: #14532d;
  margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
}
.g-source-policy i { color: #16a34a; margin-top: 2px; }
.g-source-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
}
.g-source-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px;
}
.g-source-card h4 { margin: 0 0 4px; font-size: .95rem; color: #0f172a; }
.g-source-desc { font-size: .75rem; color: #64748b; margin: 0 0 10px; }
.g-source-card ul { margin: 0; padding: 0; list-style: none; }
.g-source-card li {
  padding: 6px 0; border-top: 1px dashed #f1f5f9;
  font-size: .85rem; line-height: 1.5;
}
.g-source-card li:first-child { border-top: none; }
.g-source-card a { color: #2563eb; text-decoration: none; font-weight: 600; }
.g-source-card a:hover { text-decoration: underline; }
.g-source-card a i { font-size: .65rem; opacity: .6; }
.g-source-card small { color: #64748b; display: block; font-size: .72rem; }

/* Tier 2.2 — Cloud vs On-prem 비교 카드 */
.g-deploy-compare {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.g-deploy-compare-card {
  background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px;
}
.g-deploy-compare-card.cloud { border-color: #93c5fd; }
.g-deploy-compare-card.cloud h4 { color: #1e40af; }
.g-deploy-compare-card.onprem { border-color: #fcd34d; }
.g-deploy-compare-card.onprem h4 { color: #92400e; }
.g-deploy-compare-card h4 { margin: 0 0 10px; font-size: 1rem; }
.g-deploy-compare-card ul { margin: 0; padding: 0; list-style: none; }
.g-deploy-compare-card li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 0; border-top: 1px dashed #f1f5f9;
  font-size: .85rem;
}
.g-deploy-compare-card li:first-child { border-top: none; }
.g-deploy-compare-card .lbl { color: #64748b; font-weight: 500; }
.g-deploy-compare-card .val { color: #0f172a; font-weight: 600; text-align: right; }
@media (max-width: 720px) { .g-deploy-compare { grid-template-columns: 1fr; } }
.g-deploy-card.saas { border-left: 3px solid #3b82f6; }
.g-deploy-card.onprem { border-left: 3px solid #f59e0b; }
.g-deploy-card.hybrid { border-left: 3px solid #8b5cf6; }

/* Tier 2.3 — PoC 강조 카드 */
.g-poc-highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border: 1.5px solid #fde047;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex; gap: 16px;
  align-items: flex-start;
}
.g-poc-icon { font-size: 2rem; flex-shrink: 0; }
.g-poc-body { flex: 1; min-width: 0; }
.g-poc-body h3 { margin: 0 0 6px; color: #854d0e; font-size: 1.05rem; }
.g-poc-body > p { margin: 0 0 10px; font-size: .92rem; color: #422006; }
.g-poc-checklist { margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 12px;
}
.g-poc-checklist li { font-size: .85rem; color: #422006; padding: 2px 0; }
.g-process-step.poc { background: linear-gradient(180deg, #fef9c3 0%, #fff 100%); border-color: #fde047; }
.g-process-step.poc .g-step-num { background: linear-gradient(135deg, #eab308, #ca8a04); }

/* Tier 3.1 — 버전 이력 */
.g-version-summary {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.g-version-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f1f5f9; color: #334155;
  padding: 4px 10px; border-radius: 99px;
  font-size: .78rem; font-weight: 600;
}
.g-version-pill i { color: #64748b; font-size: .7rem; }
.g-version-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
}
.g-version-table thead { background: #f8fafc; }
.g-version-table th { padding: 10px 12px; text-align: left; font-size: .8rem; color: #475569; font-weight: 600; }
.g-version-table td { padding: 8px 12px; font-size: .85rem; border-top: 1px solid #f1f5f9; }
.g-version-table td:first-child { color: #2563eb; font-weight: 700; }

/* 🆕 v754 — 시장 segment 탭 (공공/기업/통합) */
.g-market-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 8px 0 12px;
}
.g-market-tab {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 99px;
  padding: 6px 14px; cursor: pointer;
  font-size: .82rem; font-weight: 600; color: #475569;
  transition: all 120ms ease;
}
.g-market-tab:hover { border-color: #94a3b8; }
.g-market-tab.on {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; border-color: transparent;
}
.g-players-table tr.seg-public td:first-child {
  border-left: 3px solid #16a34a;
  padding-left: 9px;
}
.g-players-table tr.seg-enterprise td:first-child {
  border-left: 3px solid #3b82f6;
  padding-left: 9px;
}
[data-theme="dark"] .g-market-tab { background: rgba(255,255,255,.05); border-color: #334155; color: #cbd5e1; }

/* Tier 3.2 — 섹션별 인라인 정확도 피드백 */
.g-section-fb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: .85rem;
}
.g-section-fb-q { color: #64748b; }
.g-section-fb-btn {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
  font-size: .8rem; color: #475569;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 120ms ease;
}
.g-section-fb-btn:hover { border-color: #3b82f6; color: #2563eb; }
.g-section-fb-btn[data-accurate="false"]:hover { border-color: #ef4444; color: #dc2626; }
.g-section-fb-thanks { color: #16a34a; font-weight: 600; font-size: .85rem; }

/* Dark mode 보강 */
[data-theme="dark"] .g-trust-banner { background: rgba(255,255,255,.03); border-color: #1e293b; }
[data-theme="dark"] .g-trust-pill.independence { background: rgba(56,189,248,.1); color: #7dd3fc; border-color: rgba(56,189,248,.3); }
[data-theme="dark"] .g-trust-pill.verified { background: rgba(34,197,94,.1); color: #86efac; border-color: rgba(34,197,94,.3); }
[data-theme="dark"] .g-trust-pill.team { background: rgba(234,179,8,.1); color: #fde047; border-color: rgba(234,179,8,.3); }
[data-theme="dark"] .g-trust-pill.sources { background: rgba(168,85,247,.1); color: #d8b4fe; border-color: rgba(168,85,247,.3); }
[data-theme="dark"] .g-ai-overview { background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%); border-color: #334155; }
[data-theme="dark"] .g-ai-overview-text { color: #e2e8f0; }
[data-theme="dark"] .g-ai-overview-label { color: #93c5fd; }
[data-theme="dark"] .g-decision-flow { background: rgba(255,255,255,.03); border-color: #334155; }
[data-theme="dark"] .g-decision-flow-steps li { background: rgba(255,255,255,.05); border-color: #334155; }
[data-theme="dark"] .g-decision-flow-steps li b { color: #f1f5f9; }
[data-theme="dark"] .g-source-card { background: rgba(255,255,255,.04); border-color: #334155; }
[data-theme="dark"] .g-source-policy { background: rgba(34,197,94,.1); color: #86efac; }
[data-theme="dark"] .g-deploy-compare-card { background: rgba(255,255,255,.04); }
[data-theme="dark"] .g-poc-highlight { background: linear-gradient(135deg, rgba(234,179,8,.15) 0%, rgba(234,179,8,.08) 100%); border-color: rgba(234,179,8,.4); }
[data-theme="dark"] .g-poc-body h3, [data-theme="dark"] .g-poc-body p, [data-theme="dark"] .g-poc-checklist li { color: #fde047; }
[data-theme="dark"] .g-version-table { background: rgba(255,255,255,.04); border-color: #334155; }
[data-theme="dark"] .g-version-table thead { background: rgba(255,255,255,.06); }

/* ═══════════════════════════════════════════════════════════════════════
 * Dark Mode (선택)
 * ═══════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .g-wrap, [data-theme="dark"] .g-detail-wrap, [data-theme="dark"] .g-curator-wrap { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .g-card, [data-theme="dark"] .g-list-card, [data-theme="dark"] .g-detail-main, [data-theme="dark"] .g-toc, [data-theme="dark"] .g-curator-profile, [data-theme="dark"] .g-curator-chat { background: rgba(255,255,255,0.04); border-color: #334155; }
[data-theme="dark"] .g-list-card h3, [data-theme="dark"] .g-detail-hero h1 { color: #f1f5f9; }
[data-theme="dark"] .g-search { background: rgba(255,255,255,0.04); border-color: #334155; }
[data-theme="dark"] .g-search input { color: #e2e8f0; }
[data-theme="dark"] .g-chip { background: rgba(255,255,255,0.04); border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .g-section h2 { color: #c7d2fe; }
[data-theme="dark"] .g-empty-section, [data-theme="dark"] .g-empty-mini { background: rgba(255,255,255,0.04); }

/* ═══════════════════════════════════════════════════════════════
   v856 — /guides 사이드바 (표준 ailink-ds .al2-sidebar 위에 추가 스타일만)
   ═══════════════════════════════════════════════════════════════ */
/* v861 — 사이드바 224px 너비 + 표준 항목(16px padding)과 정렬 */
#g-sidebar {
  box-sizing: border-box;
  overflow-x: hidden;
}
#g-sidebar *, #g-sidebar *::before, #g-sidebar *::after { box-sizing: border-box; }
/* 표준 sidebar 항목과 동일한 16px 좌우 padding (al2-sb-item · al2-sb-section-label과 정합) */
#g-sidebar .g-sb-section { padding: 10px 16px 4px; max-width: 100%; }
#g-sidebar .g-search-wrap {
  padding: 10px 16px 4px;
  max-width: 100%;
  position: relative;
  width: 100%;
}
/* v864 — 사이드바 검색 박스: 레거시 .g-search { min-width:260px; flex:1 } 강제 override */
#g-sidebar .g-search,
#g-sidebar .g-search-wrap .g-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  margin: 0 auto;                      /* 좌우 균등 정렬 */
  width: 180px;                         /* 명시 폭 */
  min-width: 0;                         /* L66 레거시 min-width:260px 강제 무효화 */
  max-width: calc(100% - 8px);          /* 안전장치 */
  flex: 0 0 auto;                       /* L66 레거시 flex:1 무효화 */
  background: var(--al2-g50, #f9fafb);
  border: 1px solid var(--al2-g150, #e5e7eb); border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
#g-sidebar .g-search > i {
  color: var(--al2-g400, #94a3b8);
  font-size: .72rem; flex-shrink: 0;
}
#g-sidebar .g-search input {
  flex: 1 1 auto; min-width: 0; width: 0;
  border: none; background: none; outline: none;
  font-family: inherit; font-size: .76rem; color: var(--al2-g800, #1e293b);
  padding: 0;
}

/* .al2-sb-item 의 카운트 배지 정렬: 우측 끝 */
#g-sidebar .al2-sb-item { justify-content: flex-start; }
#g-sidebar .al2-sb-item .al2-badge { margin-left: auto; }

/* 체크박스 리스트 */
.g-sb-checks { list-style: none; padding: 4px 8px 8px; margin: 0; }
.g-sb-checks li { padding: 0; }
.g-sb-checks li label {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 4px;
  font-size: .76rem; color: var(--al2-g700, #374151);
  cursor: pointer; transition: background .12s;
}
.g-sb-checks li label:hover { background: var(--al2-g50, #f9fafb); }
.g-sb-checks input[type="checkbox"] {
  width: 13px; height: 13px; cursor: pointer; accent-color: var(--al2-brand, #6c3ae0);
}

/* v856 — 메인 영역 full-size (솔루션 랭킹 패턴): max-width 제약 제거, .al2-main padding만 적용 */
.al2-main .g-wrap { max-width: none; margin: 0; padding: 0; }

/* Active filters chip strip (메인 상단) */
.g-active-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--al2-g100, #f3f4f6);
  margin-bottom: 12px;
}
.g-af-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: var(--al2-brand-dim, #ede9fe);
  color: var(--al2-brand, #6c3ae0);
  border-radius: 99px; font-size: .72rem; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit;
}
.g-af-chip i { font-size: .62rem; opacity: .7; }
.g-af-chip:hover i { opacity: 1; }

/* 모바일 (≤900px): 표준 ailink-ds가 사이드바를 48px로 narrow시킴 → 필터/검색은 숨김 */
@media (max-width: 900px) {
  #g-sidebar .g-sb-section,
  #g-sidebar .g-sb-checks,
  #g-sidebar #g-recent-list,
  #g-sidebar #g-recent-label,
  #g-sidebar .al2-sb-item span:not(.icon),
  #g-sidebar .al2-sb-item .al2-badge,
  #g-sidebar #g-filter-reset { display: none !important; }
  /* 좁은 사이드바에서 카테고리 아이콘만 표시 */
  #g-sidebar .al2-sb-item { padding: 8px 12px; justify-content: center; }
  #g-sidebar .al2-sb-item .icon { display: inline-block; font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   v857 Phase 1A — 카드 신뢰 시그널 (G2/Capterra/Stripe Docs 패턴)
   ═══════════════════════════════════════════════════════════════ */
.g-list-card { position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.g-list-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--al2-brand-light, #c7d2fe); }

/* NEW/UPDATED 리본 */
.g-card-ribbon {
  position: absolute; top: 10px; right: 10px;
  font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 99px;
  text-transform: uppercase; line-height: 1;
}
.g-card-ribbon.new {
  background: linear-gradient(135deg, #ef4444, #f97316); color: #fff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .25);
}
.g-card-ribbon.updated {
  background: var(--al2-brand-dim, #ede9fe); color: var(--al2-brand, #6c3ae0);
}

/* 인증 배지 (카드 head 우측) */
.g-card-certs {
  display: inline-flex; gap: 4px; margin-left: auto;
}
.g-card-cert {
  font-size: .58rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  background: #dbeafe; color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.g-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 진척도 bar */
.g-card-progress {
  height: 3px; background: var(--al2-g100, #f3f4f6);
  border-radius: 99px; margin: 8px 0; overflow: hidden;
}
.g-card-progress-bar {
  height: 100%; background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 99px; transition: width .3s;
}

/* 카드 footer 추가 시그널 */
.g-card-foot { flex-wrap: wrap; gap: 10px 12px; }
.g-card-updated { color: var(--al2-g500, #64748b); }
.g-card-aeo {
  color: var(--al2-brand, #6c3ae0); font-weight: 600;
  background: var(--al2-brand-dim, #ede9fe);
  padding: 2px 8px; border-radius: 4px;
}
.g-card-aeo i { font-size: .68rem; }

/* Phase 2E — hover 시 노출되는 카드 액션 */
.g-card-actions {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; gap: 4px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.g-list-card:hover .g-card-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
.g-card-act {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; font-size: .68rem; font-weight: 600;
  background: #fff; border: 1px solid var(--al2-g200, #e5e7eb);
  border-radius: 6px; cursor: pointer;
  color: var(--al2-g700, #374151);
  font-family: inherit; transition: all .12s;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.g-card-act:hover { border-color: var(--al2-brand, #6c3ae0); color: var(--al2-brand, #6c3ae0); }
.g-card-act-pri {
  background: var(--al2-brand, #6c3ae0); color: #fff;
  border-color: var(--al2-brand, #6c3ae0);
}
.g-card-act-pri:hover { background: #4f2cb8; border-color: #4f2cb8; color: #fff; }
.g-card-act i { font-size: .62rem; }
.g-card-act.bookmarked i.far { display: none; }
.g-card-act:not(.bookmarked) i.fas.fa-bookmark { display: none; }

/* 모바일에서는 항상 표시 (hover 없음) */
@media (max-width: 720px) {
  .g-card-actions { opacity: 1; transform: none; pointer-events: auto; position: static; margin-top: 10px; justify-content: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   v857 Phase 1C+1D — Hero·Featured·Resume·Presets
   ═══════════════════════════════════════════════════════════════ */
/* Compact Hero (액션 우선) */
.g-hero-compact { padding: 36px 0 28px; }
.g-hero-compact .g-hero-title { font-size: 1.85rem; line-height: 1.25; margin-bottom: 8px; }
.g-hero-compact .g-hero-desc { font-size: .92rem; margin-bottom: 16px; }

/* Hero Ask (자연어 검색) */
.g-hero-ask {
  display: flex; align-items: center; gap: 8px;
  max-width: 720px; margin: 16px auto 12px;
  background: #fff; border: 2px solid var(--al2-brand-light, #c7d2fe);
  border-radius: 12px; padding: 6px 6px 6px 16px;
  box-shadow: 0 4px 16px rgba(108, 58, 224, .08);
  transition: border-color .15s, box-shadow .15s;
}
.g-hero-ask:focus-within {
  border-color: var(--al2-brand, #6c3ae0);
  box-shadow: 0 4px 24px rgba(108, 58, 224, .18);
}
.g-hero-ask > i {
  color: var(--al2-brand, #6c3ae0);
  font-size: 1rem; flex-shrink: 0;
}
.g-hero-ask input {
  flex: 1; min-width: 0; border: none; outline: none;
  font-family: inherit; font-size: .92rem; color: var(--al2-g800, #1e293b);
  background: transparent; padding: 8px 0;
}
.g-hero-ask .g-btn {
  flex-shrink: 0; padding: 9px 16px; font-size: .82rem;
  border-radius: 8px;
}

.g-hero-actions-sm { gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 0; }
.g-hero-stat-inline { font-size: .78rem; color: var(--al2-g500, #64748b); }
.g-hero-stat-inline b { color: var(--al2-brand, #6c3ae0); font-weight: 700; font-family: var(--al2-font-mono, monospace); }

/* Section wrapper (featured/personalized/resume) */
.g-section { margin: 32px 0 28px; }
.g-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.g-section-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--al2-g900, #1e293b); display: flex; align-items: center; gap: 6px; }
.g-section-meta { font-size: .72rem; color: var(--al2-g500, #64748b); }

/* Grid 변형 */
.g-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
.g-grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }

/* Smart Filter Presets */
.g-presets {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--al2-g100, #f3f4f6);
  margin-bottom: 14px;
}
.g-preset {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: .76rem; font-weight: 600;
  background: #fff; border: 1px solid var(--al2-g200, #e5e7eb);
  border-radius: 99px; cursor: pointer;
  color: var(--al2-g700, #374151); font-family: inherit;
  transition: all .15s;
}
.g-preset:hover { border-color: var(--al2-brand, #6c3ae0); color: var(--al2-brand, #6c3ae0); transform: translateY(-1px); }
.g-preset.on { background: var(--al2-brand, #6c3ae0); color: #fff; border-color: var(--al2-brand, #6c3ae0); }
.g-preset > span { font-size: .92rem; }

/* Toast */
.g-toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--al2-g900, #1e293b); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-size: .82rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0; transition: opacity .25s, transform .25s;
  z-index: 9999;
}
.g-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.g-toast.success { background: #059669; }
.g-toast.warn { background: #d97706; }

/* 비교 카트 active 상태 */
.g-card-act.active {
  background: var(--al2-brand, #6c3ae0); color: #fff;
  border-color: var(--al2-brand, #6c3ae0);
}

/* ═══════════════════════════════════════════════════════════════
   v857 Phase 1I — 모바일 bottom-sheet 필터 drawer
   (디자인 시스템 default 48px collapse 대신 풀 필터 접근 가능)
   ═══════════════════════════════════════════════════════════════ */
.g-mobile-filter-fab {
  display: none;
  position: fixed; bottom: 20px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--al2-brand, #6c3ae0); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 58, 224, .35);
  font-size: 1.05rem; z-index: 100;
}
.g-mobile-filter-fab:hover { transform: scale(1.05); }

@media (max-width: 900px) {
  .g-mobile-filter-fab { display: inline-flex; align-items: center; justify-content: center; }
  /* 데스크톱 사이드바를 모바일에서는 bottom-sheet drawer로 */
  body.g-msheet-open .al2-sidebar {
    position: fixed !important;
    top: auto !important; bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important; height: 75vh !important; max-height: 75vh !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
    z-index: 1000 !important;
    overflow-y: auto;
    transform: translateY(0); transition: transform .3s cubic-bezier(.32, .72, 0, 1);
    padding-top: 16px;
  }
  /* 모바일 drawer 안에서는 전체 콘텐츠 노출 */
  body.g-msheet-open .al2-sidebar .g-sb-section,
  body.g-msheet-open .al2-sidebar .g-sb-checks,
  body.g-msheet-open .al2-sidebar #g-recent-list,
  body.g-msheet-open .al2-sidebar #g-recent-label,
  body.g-msheet-open .al2-sidebar .al2-sb-item span:not(.icon),
  body.g-msheet-open .al2-sidebar .al2-sb-item .al2-badge,
  body.g-msheet-open .al2-sidebar #g-filter-reset { display: revert !important; }
  body.g-msheet-open .al2-sidebar .al2-sb-item { padding: 8px 16px; justify-content: flex-start; }
  body.g-msheet-open::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 999; backdrop-filter: blur(2px);
  }
  /* 닫기 핸들 */
  body.g-msheet-open .al2-sidebar::before {
    content: ''; display: block;
    width: 40px; height: 4px;
    background: var(--al2-g300, #cbd5e1); border-radius: 99px;
    margin: 0 auto 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   v858 — 사이드바 검색 강화 (Stripe Docs / Algolia DocSearch / Notion 패턴)
   ═══════════════════════════════════════════════════════════════ */

/* 검색 wrapper (autocomplete 위치 anchor) */
.g-search-wrap { position: relative; }

/* B — Active state 강화 */
#g-sidebar .g-search {
  position: relative;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#g-sidebar .g-search.focused {
  border-color: var(--al2-brand, #6c3ae0);
  box-shadow: 0 0 0 3px rgba(108, 58, 224, .12);
  background: #fff;
}
#g-sidebar .g-search.has-value {
  border-color: var(--al2-brand-light, #c7d2fe);
}

/* A — kbd hint (검색어 없을 때 우측에 / 표시) */
.g-search-kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .62rem; font-weight: 700;
  color: var(--al2-g500, #64748b);
  background: var(--al2-g100, #f3f4f6);
  border: 1px solid var(--al2-g200, #e5e7eb);
  border-radius: 3px;
  padding: 0 4px;
  flex-shrink: 0;
  height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 12px;
}

/* B — Clear (×) 버튼 */
.g-search-clear {
  display: none;
  background: none; border: none;
  color: var(--al2-g400, #94a3b8);
  cursor: pointer; padding: 0;
  font-size: .76rem; line-height: 1;
  width: 16px; height: 16px;
  transition: color .15s;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.g-search-clear:hover { color: var(--al2-g700, #374151); }

/* v860 — 결과수 inline + AI 힌트 (사이드바 너비 절대 초과 X) */
.g-search-meta {
  display: none;
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: .66rem; color: var(--al2-g500, #64748b);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.g-search-meta-cnt { font-weight: 600; }
.g-search-meta-cnt.zero { color: var(--al2-amber, #d97706); }
.g-search-meta-ai {
  margin-left: 6px; color: var(--al2-brand, #6c3ae0);
  font-weight: 600; text-decoration: none;
}
.g-search-meta-ai:hover { text-decoration: underline; }
.g-search-meta-ai i { font-size: .62rem; margin-right: 2px; }

/* v863 — Sectioned Autocomplete (검색 박스와 정확히 동일 폭·정렬) */
.g-search-ac {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%; transform: translateX(-50%);   /* 검색 박스(margin:0 auto)와 동일 가운데 정렬 */
  width: 180px;
  max-width: calc(100% - 8px);
  background: #fff;
  border: 1px solid var(--al2-g200, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 60vh; overflow-y: auto;
  z-index: 50;
  padding: 4px 0;
}
.g-search-ac::-webkit-scrollbar { width: 4px; }
.g-search-ac::-webkit-scrollbar-thumb { background: var(--al2-g200, #e5e7eb); border-radius: 2px; }

.g-ac-section + .g-ac-section { border-top: 1px solid var(--al2-g100, #f3f4f6); margin-top: 4px; padding-top: 4px; }
.g-ac-label {
  font-size: .58rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--al2-g500, #64748b);
  padding: 6px 10px 3px;
}

.g-ac-item {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 7px 10px;
  background: none; border: none;
  font-family: inherit; font-size: .76rem; font-weight: 500;
  color: var(--al2-g700, #374151);
  cursor: pointer; text-align: left;
  transition: background .12s, color .12s;
}
.g-ac-item:hover, .g-ac-item.on {
  background: var(--al2-brand-dim, #ede9fe);
  color: var(--al2-brand, #6c3ae0);
}
.g-ac-item > i { font-size: .72rem; color: var(--al2-g400, #94a3b8); flex-shrink: 0; width: 14px; text-align: center; }
.g-ac-item:hover > i, .g-ac-item.on > i { color: var(--al2-brand, #6c3ae0); }
.g-ac-item > span:not(.g-ac-cnt) {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-ac-item mark {
  background: var(--al2-yellow-light, #fef9c3);
  color: var(--al2-g900, #1e293b);
  padding: 0 1px; border-radius: 2px;
}
.g-ac-cnt {
  font-size: .62rem; font-weight: 600;
  color: var(--al2-g400, #94a3b8);
  font-family: var(--al2-font-mono, ui-monospace, monospace);
  flex-shrink: 0;
}

/* E — AI Ask 행 (자연어 감지 시 최상단) */
.g-ac-ai {
  background: linear-gradient(90deg, rgba(108,58,224,.06), rgba(139,92,246,.06));
  border-bottom: 1px solid var(--al2-brand-dim, #ede9fe);
  margin-bottom: 4px;
}
.g-ac-ai > i { color: var(--al2-brand, #6c3ae0); }
.g-ac-ai b { color: var(--al2-brand, #6c3ae0); font-weight: 700; }

/* G — 0 결과 (autocomplete 안) */
.g-ac-empty { padding: 18px 16px 14px; text-align: center; }
.g-ac-empty-msg {
  font-size: .76rem; color: var(--al2-g500, #64748b);
  margin-bottom: 12px;
}
.g-ac-empty-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #6c3ae0, #8b5cf6);
  color: #fff; text-decoration: none;
  border-radius: 8px;
  font-size: .76rem; font-weight: 600;
  transition: transform .12s, box-shadow .12s;
}
.g-ac-empty-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108, 58, 224, .25); }

/* G — 0 결과 (메인 grid 영역) */
.g-empty-actions {
  display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap;
}
.g-fuzzy-suggest {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px dashed var(--al2-g200, #e5e7eb);
}
.g-fuzzy-label {
  font-size: .82rem; font-weight: 600;
  color: var(--al2-g600, #4b5563);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.g-fuzzy-label::before { content: '💡'; }

/* 모바일: autocomplete은 사이드바 너비 따라 + drawer 안에서도 동작 */
@media (max-width: 900px) {
  .g-search-ac { left: 14px; right: 14px; }
}

/* Dark mode (탑바만 다크라 본문은 영향 X — autocomplete 자체는 light 유지) */

/* ═══════════════════════════════════════════════════════════════
   v859 — Hero AI Ask 차별화 (AI 전용 entry point, 사이드바 필터와 명확 분리)
   ═══════════════════════════════════════════════════════════════ */
.g-hero-ask-ai {
  background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
  border: 2px solid var(--al2-brand, #6c3ae0);
  box-shadow: 0 8px 28px rgba(108, 58, 224, .14);
  position: relative;
  padding-left: 0;
}
.g-hero-ask-ai:focus-within {
  border-color: #4f2cb8;
  box-shadow: 0 8px 32px rgba(108, 58, 224, .24);
  transform: translateY(-1px);
}
.g-hero-ask-ai > i { display: none; }   /* 기존 sparkles icon 숨김 (AI 배지로 대체) */
.g-hero-ask-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; padding: 5px 10px;
  font-size: .68rem; font-weight: 700;
  background: linear-gradient(135deg, #6c3ae0 0%, #8b5cf6 100%);
  color: #fff; border-radius: 6px;
  flex-shrink: 0; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(108, 58, 224, .25);
}
.g-hero-ask-badge i { font-size: .68rem; }
.g-hero-ask-ai input {
  font-size: .9rem; padding: 10px 4px;
}
.g-hero-ask-ai input::placeholder {
  color: var(--al2-g500, #64748b);
  font-style: normal;
}
.g-hero-ask-ai .g-btn {
  background: linear-gradient(135deg, #6c3ae0 0%, #8b5cf6 100%);
  border: none; color: #fff;
  font-weight: 700;
}
.g-hero-ask-ai .g-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(108, 58, 224, .3);
}

.g-hero-ask-hint {
  font-size: .7rem; color: var(--al2-g500, #64748b);
  text-align: center; margin: 8px auto 0;
  max-width: 720px;
}
