/* ToolGuest — the three-mode creator calculator surfaces.
 *
 * Only what the mode tool adds on top of assets/creator-calculator.css, which
 * still owns the page shell, cards, tables and FAQ. Keeping the additions in
 * their own file means the eleven YouTube-specific calculators never download
 * rules they do not use.
 */

.cc-panel {
  display: grid;
  gap: 20px;
}

/* The result card carries a long heading and a tag side by side; on a narrow
 * column they need to wrap rather than overlap. */
.cc-card .cc-card-head {
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: flex-start;
}

.cc-card .cc-card-head h2,
.cc-card .cc-card-head h3 {
  flex: 1 1 auto;
  min-width: 60%;
}

.cc-panel[hidden] { display: none; }

.cc-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--cc-border);
  background: var(--cc-panel-2);
  color: var(--cc-ink);
  font: inherit;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.cc-input:focus {
  outline: none;
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 3px var(--cc-accent-soft);
}

.cc-panel .cc-field label {
  display: block;
  margin-bottom: 8px;
}

.cc-panel .hint {
  font-size: .74rem;
  color: var(--cc-faint);
  margin-top: 7px;
  line-height: 1.5;
}

.cc-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .cc-actions { grid-template-columns: 1.6fr 1fr; }
}

.cc-copy--ghost {
  background: transparent;
  border-color: var(--cc-border);
  color: var(--cc-muted);
}

.cc-copy--ghost:hover { color: var(--cc-ink); }

.cc-disclaimer {
  font-size: .72rem;
  line-height: 1.55;
  color: var(--cc-faint);
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--cc-border);
}

/* The result cards are swapped by mode, so the hidden one must not keep the
 * grid gap open. */
.cc-results > [hidden] { display: none; }

.cc-card .cc-metric .v[style*="font-size"] {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 639px) {
  .cc-actions { grid-template-columns: 1fr; }
  .cc-disclaimer { font-size: .7rem; }
}

/* The nine YouTube-specific calculators, linked from every page in the
 * cluster so the whole set stays one hop apart. */
.cc-legacy-links {
  margin: 18px 0 0;
  font-size: .82rem;
  line-height: 1.9;
  color: var(--cc-muted);
}

.cc-legacy-links strong { color: var(--cc-ink); font-weight: 650; }

/* `.cc-cluster a` styles every anchor in the section as a card, so the inline
 * list needs to be reset back to text. */
.cc-cluster .cc-legacy-links a {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--cc-border);
  border-radius: 0;
  background: none;
  color: var(--cc-muted);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}

.cc-cluster .cc-legacy-links a:hover {
  transform: none;
  color: var(--cc-accent);
  border-color: var(--cc-accent);
}

.cc-legacy-links a:hover {
  color: var(--cc-accent);
  border-color: var(--cc-accent);
}
