/* Shared styles for ibv2 guide pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, button, select, textarea, a {
  font-family: inherit;
}

.guide-nav {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e6ea;
  background: #fff;
  flex-wrap: wrap;
}

.guide-nav a {
  padding: 6px 14px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border: 1px solid #e2e6ea;
}

.guide-nav a:hover { background: #f4f6f8; }
.guide-nav a.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.guide-nav a.learn-link { margin-left: auto; border-color: #1976d2; color: #1976d2; }

.guide-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.guide-wrap h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.guide-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  margin-bottom: 16px;
  border: 1px solid #e2e6ea;
}

.guide-badge.sl { background: #e3f2fd; }
.guide-badge.hl { background: #fce4ec; }

.guide-lead {
  color: #5c6670;
  margin-bottom: 24px;
}

.guide-section {
  margin-bottom: 28px;
}

.guide-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e6ea;
}

.guide-section p,
.guide-section li {
  margin-bottom: 8px;
}

.guide-section ul {
  margin: 8px 0 8px 20px;
}

table.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

table.guide-table th,
table.guide-table td {
  border: 1px solid #e2e6ea;
  padding: 8px 10px;
  text-align: left;
}

table.guide-table th {
  background: #f4f6f8;
  font-weight: 600;
}

.topic-block {
  margin-bottom: 20px;
}

.topic-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.topic-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-links a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: #1976d2;
  text-decoration: none;
  border: 1px solid #e2e6ea;
  background: #fff;
}

.topic-links a:hover {
  background: #e3f2fd;
  border-color: #1976d2;
}

.guide-callout {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-left: 3px solid #1976d2;
  margin: 16px 0;
  font-size: 15px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.compare-box {
  padding: 14px;
  border: 1px solid #e2e6ea;
  background: #fff;
  font-size: 14px;
}

.compare-box h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.compare-box ul {
  margin-left: 16px;
}

.criterion-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e6ea;
  font-size: 15px;
}

.criterion-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.criterion-card ul {
  margin: 0 0 0 18px;
}

.criterion-card li {
  margin-bottom: 6px;
}

.criterion-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-right: 6px;
  border: 1px solid #e2e6ea;
  background: #f4f6f8;
  vertical-align: middle;
}

.criterion-tag.hl-only {
  background: #fce4ec;
  border-color: #f8bbd0;
}

.guide-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.guide-timeline li {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid #e2e6ea;
  margin-bottom: 0;
}

.guide-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.guide-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1976d2;
}

.guide-timeline strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 560px) {
  .compare-grid { grid-template-columns: 1fr; }
  .guide-nav a.learn-link { margin-left: 0; }
}
