/* trianglecalc — tool-specific styles
   只放这个工具独有的东西。公共外观（toolbox / field / alert / chip / hint）
   已经在全局样式表里。

   ★ 不写任何裸色值：一律走主题变量（--surface / --line / --fg …）。
   ★ 类名前缀 .tc- 是本工具私有的 —— 借别的工具的类名 = 没有样式
     （工具样式按工具隔离加载）。 */

.tc-hidden {
  display: none !important;
}

/* 主读数：解的个数 + 模式副行。SSA 两解时这个"2"是工具的核心信息 */
.tc-lead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.tc-lead__k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.tc-lead__v {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}

.tc-lead__x {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

/* 每个解一块 */
.tc-sol {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* 10 格结果表：宽屏多列、窄屏自动折行 */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 14px;
}

.tc-cell {
  min-width: 0;
}

.tc-cell__k {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-faint);
}

.tc-cell__v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tc-cell__u {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* SSA 无解时的解释段（复用全局 .hint 外观，这里只保证间距） */
.tc-zero {
  margin: 0;
}
