/* GENERATED by scripts/site/build.mjs (scripts/site/fontTester.mjs) - the Ukrainian font tester's own rules. */
.ft { --ft-size: 28px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); overflow: hidden; }
.ft-bar { display: grid; grid-template-columns: minmax(0, 1fr) 200px 160px; gap: 8px 16px; align-items: end; padding: 16px; border-bottom: 1px solid var(--line); }
.ft-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ft-field label { color: var(--ink-3); font-size: 11px; line-height: 16px; }
.ft-narrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto 24px; column-gap: 8px; }
.ft-narrow label { grid-column: 1 / -1; }
.ft-narrow select { grid-column: 1 / -1; }
.ft-narrow input[type='range'] { grid-column: 1 / 3; }
.ft input[type='text'], .ft select { box-sizing: border-box; width: 100%; min-width: 0; height: 24px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: var(--paper-2); color: var(--ink); font: 450 11px/16px var(--ui-face, Inter), system-ui, sans-serif; }
.ft input[type='text']:hover, .ft select:hover { border-color: var(--line); }
.ft input:focus-visible, .ft select:focus-visible { outline: 2px solid var(--brand-ring, var(--brand)); outline-offset: -1px; }
.ft input[type='range'] { width: 100%; min-width: 0; height: 24px; margin: 0; accent-color: var(--brand); }
.ft output { min-width: 20px; color: var(--ink-3); font-size: 11px; line-height: 24px; font-variant-numeric: tabular-nums; text-align: right; }
/* fx2-entry-pages-wow-2: the text field at the large body size (the first thing to use), the quick row under the three:
 * 24 px chips on the field colour, the pressed one in the accent's lightest tint; the page's orange action at its end */
.ft #ft-text { height: 32px; padding: 0 8px; font-size: 13px; line-height: 22px; }
.ft-bar { align-items: end; }
.ft-quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ft-says { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.ft-says > span { margin-right: 4px; color: var(--ink-3); font-size: 11px; line-height: 16px; }
.ft-say { max-width: 100%; height: 24px; padding: 0 8px; overflow: hidden; border: 0; border-radius: 5px; background: var(--paper-2); color: var(--ink); font: 550 11px/16px var(--ui-face, Inter), system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.ft-say:hover { background: var(--line); }
.ft-say[aria-pressed='true'] { background: var(--brand-tint); color: var(--brand-ink); }
.ft-say:focus-visible { outline: 2px solid var(--brand-ring, var(--brand)); outline-offset: 1px; }
.ft-quick .btn { flex: none; }
.ft-status { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 16px; }
.ft-list { margin: 0; padding: 0; list-style: none; }
.ft-row { padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
.ft-row:last-child { border-bottom: 0; }
.ft-row[hidden] { display: none; }
.ft-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 4px; font-size: 11px; line-height: 16px; }
.ft-name { color: var(--ink); font-weight: 550; }
.ft-tags { color: var(--ink-3); }
.ft-sample { height: 1.25em; margin: 0; color: var(--ink); font-size: var(--ft-size); line-height: 1.25; white-space: nowrap; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; transition: color 0.15s ease; }
/* fx2-font-specimens-live: the sample is one line of fixed height, so a face arriving moves nothing; once the reader types
   or resizes, the lines wrap to show every word. A row whose face is on its way shows a neutral bar, never the line in
   another font; the script takes over once it runs (.ft-live, 3 s per row), the animation only reveals it if it never runs. */
.ft.ft-typed .ft-sample { height: auto; white-space: normal; overflow-wrap: anywhere; }
@keyframes ft-reveal { to { color: var(--ink); background-size: 0 0; } }
@media (scripting: enabled) {
  .ft-row:not(.ft-ready) .ft-sample { color: transparent; background: linear-gradient(var(--paper-2), var(--paper-2)) 0 55% / min(100%, 12em) 0.6em no-repeat; animation: ft-reveal 0s 5s forwards; }
  .ft.ft-live .ft-row:not(.ft-ready) .ft-sample { animation: none; }
}
.ft-credit { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11px; line-height: 16px; }
.ft-credit a { color: var(--brand-ink); }
.ft-page .ft-open { margin: 0 0 8px; }
.ft-page .ft-note { margin: 0 0 8px; color: var(--ink-3); font-size: 11px; line-height: 16px; }
.ft-page h3 { margin: 16px 0 8px; font-size: 11px; line-height: 16px; font-weight: 550; }
.ft-page pre.embed { margin: 0; padding: 8px 12px; border-radius: 5px; background: var(--paper-2); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 16px; }
body.ft-frame { margin: 0; padding: 0; background: var(--paper); }
body.ft-frame .ft { margin: 0; border: 0; border-radius: 0; }
.ft-embed .ft-list { max-height: calc(100vh - 140px); overflow-y: auto; }
@media (max-width: 720px) {
  .ft-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-bar > .ft-field:first-child { grid-column: 1 / -1; }
  .ft input[type='text'], .ft select { height: 32px; font-size: 13px; }
  .ft-narrow { grid-template-rows: auto 32px; }
  /* fx2-font-specimens-live: on a phone the untouched sample is two lines of fixed height (a longer one ends in an ellipsis) */
  .ft:not(.ft-typed) .ft-sample { display: -webkit-box; height: 2.5em; white-space: normal; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  /* fx2-entry-pages-wow-2: 16 px, so mobile Safari does not zoom the page into the field; 32 px chips; the action across */
  .ft #ft-text { height: 40px; font-size: 16px; }
  .ft-say { height: 32px; padding: 0 12px; }
  .ft-says > span { flex: 1 1 100%; margin: 0; }
  .ft-quick .btn { flex: 1 1 100%; min-height: 40px; }
  /* the lines in one tap right under the field, then the size and the style */
  .ft-narrow { order: 2; }
}
