/* /font-generator/: the box, the cost note and one row per style. Colours come from kit/base.css tokens
   only, so both themes and print follow the site's own. */
.fx-field { margin: 0; padding: 0.7rem 0.7rem 0.3rem; }
.fx-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.fx-field textarea {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  resize: vertical;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
}
.fx-limit { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--ink-soft); }
.fx-cost { margin: 0.3rem 0.7rem 0.4rem; font-size: 0.88rem; max-width: 52rem; }

.fx-pinbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
}
.fx-status { font-size: 0.9rem; font-weight: 700; color: var(--ink); min-height: 1.3em; }
.fx-status.error { color: var(--fail); }

/* The rows: the style's name and buttons on one line, the styled text under them. */
.fx-list { list-style: none; margin: 0 0.7rem 0.8rem; padding: 0; }
.fx-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  align-items: center;
  padding: 0.55rem 0.2rem 0.6rem;
  border-top: 1px solid var(--line-strong);
}
.fx-row.pinned { background: var(--mesh); }
.fx-name { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.fx-btns { display: inline-flex; gap: 0.35rem; }
.fx-copy, .fx-pin { min-width: 3.6rem; }
.fx-pin[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.fx-out {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
/* A letter or digit the style has no character for: left plain, dotted underline. */
.fx-gap { text-decoration: underline dotted var(--ink-soft); text-underline-offset: 0.2em; }
.fx-note { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.fx-note:empty { display: none; }

@media (max-width: 420px) {
  .fx-out { font-size: 1.15rem; }
}

/* Forced colours (Windows High Contrast) flatten the pressed Pin's ink fill and the pinned row's tint into the
   same system colours as an unpressed one; there a pressed Pin takes the system's highlight pair instead, hovered
   or not (kit/base.css's .btn.ghost:hover would otherwise paint it with the page's own colours). */
@media (forced-colors: active) {
  .btn.fx-pin[aria-pressed="true"], .btn.fx-pin[aria-pressed="true"]:hover {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
}

/* Printed: the styled sample rows, in ink, without the controls. */
@media print {
  .site-header, .site-nav, .site-footer, .fx-field, .fx-pinbar, .fx-btns { display: none; }
  .tool-panel { border: 0; box-shadow: none; padding: 0; }
  .fx-row { break-inside: avoid; background: #fff; }
  .fx-row.pinned { background: #fff; }
  .fx-pin[aria-pressed="true"] { background: #fff; color: var(--ink); }
}
