/* Hub layout: zone banner, principles, nav, kit sections */
.tk-zone-banner {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tk-border);
  background: var(--tk-surface-muted);
}

.tk-zone-banner--compact {
  padding: 6px 12px;
}

.tk-zone-banner__main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.tk-zone-banner__zone {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-navy);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.tk-zone-banner__zone::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tk-accent);
  margin-right: 5px;
  flex-shrink: 0;
}

.tk-color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tk-color-chips--compact {
  gap: 3px;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.tk-color-chips--compact .tk-color-chip {
  padding: 1px 5px 1px 3px;
  font-size: 10px;
  gap: 3px;
  line-height: 1.2;
}

.tk-color-chips--compact .tk-color-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.tk-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.tk-color-chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tk-color-chip--blue { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tk-color-chip--blue::before { background: #2563eb; }

.tk-color-chip--yellow { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.tk-color-chip--yellow::before { background: #ca8a04; }

.tk-color-chip--red { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tk-color-chip--red::before { background: #dc2626; }

.tk-color-chip--green { background: #dcfce7; color: #166534; border-color: #86efac; }
.tk-color-chip--green::before { background: #16a34a; }

.tk-color-chip__hint {
  font-weight: 500;
  opacity: 0.85;
}

.tk-zone-banner__note {
  font-size: 11px;
  color: var(--tk-muted);
  margin: 6px 0 0;
  line-height: 1.35;
}

.tk-zone-banner--compact .tk-zone-banner__note {
  margin-top: 3px;
  font-size: 10px;
}

/* Preview toolbar: group nav + collapse */
.tk-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--tk-border);
  background: var(--tk-surface);
}

.tk-preview-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tk-preview-nav::-webkit-scrollbar { display: none; }

.tk-preview-nav a {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tk-navy);
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  white-space: nowrap;
}

.tk-preview-nav a:hover {
  background: #e8eef5;
  border-color: #c5d4e8;
}

.tk-preview-nav__toggle {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: var(--tk-radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-accent);
  background: transparent;
  border: 1px solid var(--tk-border);
  cursor: pointer;
  white-space: nowrap;
}

.tk-preview-nav__toggle:hover {
  background: var(--tk-surface-muted);
}

/* Preview header — Total FM navy */
body.tk-view--slider.tk-ui-v2 .tk-fm-bar {
  display: flex;
  align-items: center;
  padding: 0 0 6px;
}

body.tk-view--slider.tk-ui-v2 .tk-fm-bar__title,
body.tk-embed-sheet.tk-ui-v2 .tk-fm-bar__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tk-navy);
  line-height: 1.25;
}

body.tk-view--slider.tk-ui-v2 .tk-slider-lead {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tk-muted);
}

.tk-hub-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tk-border);
  background: var(--tk-surface);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tk-hub-nav::-webkit-scrollbar { display: none; }

.tk-hub-nav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tk-accent);
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  white-space: nowrap;
}

.tk-hub-nav a:hover { background: #e2e8f0; }

.tk-principles {
  padding: 14px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--tk-text);
}

.tk-principles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 380px) {
  .tk-principles__grid { grid-template-columns: 1fr; }
}

.tk-principle-card {
  padding: 10px 12px;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  font-size: 12px;
  line-height: 1.4;
  color: var(--tk-text);
}

.tk-principle-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.tk-catalog-embed {
  padding: 14px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-catalog-embed__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tk-catalog-embed__meta { flex: 1; min-width: 0; }

.tk-catalog-embed__type {
  font-size: 12px;
  color: var(--tk-muted);
  margin: 0 0 4px;
}

.tk-catalog-embed__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.tk-catalog-embed__link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tk-accent);
  padding: 6px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface);
}

.tk-kit-section { border-bottom: 8px solid var(--tk-bg); }

.tk-kit-section__title {
  margin: 0;
  padding: 12px 14px 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tk-muted);
}

.tk-kit-section--equipment .tk-kit-section__title { color: #1e40af; }
.tk-kit-section--textile .tk-kit-section__title { color: #854d0e; }
.tk-kit-section--chemistry .tk-kit-section__title { color: #7c3aed; }
.tk-kit-section--consumables .tk-kit-section__title { color: #0f766e; }

.tk-item-card__open--link { text-decoration: none; color: inherit; }

.tk-header__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.tk-item-card__row--static .tk-item-card__info {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
}

.tk-guide-figure {
  margin: 0 0 12px;
}

.tk-guide-figure img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--tk-radius-sm);
  border: 1px solid var(--tk-border);
  background: #fff;
}

.tk-guide-figure figcaption {
  font-size: 11px;
  color: var(--tk-muted);
  margin-top: 4px;
  text-align: center;
}

.tk-guide-color-refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

.tk-guide-color-ref {
  margin: 0;
  text-align: center;
}

.tk-guide-color-ref img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--tk-radius-sm);
  border: 1px solid var(--tk-border);
  background: #fff;
}

.tk-guide-color-ref figcaption {
  font-size: 10px;
  margin-top: 4px;
  line-height: 1.3;
}

.tk-guide-color-ref .tk-color-chip {
  display: inline-flex;
  font-size: 10px;
  padding: 1px 6px;
}

.tk-callout--info {
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--tk-radius-sm);
  font-size: 13px;
  margin: 0 0 10px;
}

.tk-header__type {
  font-size: 13px;
  color: var(--tk-muted);
  margin: 0 0 10px;
}
