/* FTH Testnet page styles, on top of the FTH Trading site.css and tokens.css. No third-party CSS. */
.tn-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.tn-hero--short { padding-bottom: 28px; }
.tn-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 18px; text-wrap: balance; }
.tn-hero h1 em { font-style: normal; color: var(--ink-muted); }
.tn-notice { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 0.95rem; }
.tn-section { padding: clamp(40px, 7vw, 88px) 0; }
.tn-section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tn-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.tn-h3 { font-size: 1.3rem; margin-bottom: 14px; }
.tn-muted { color: var(--ink-muted); }
.tn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tn-grid--2 { margin: 24px 0; }
@media (max-width: 820px) { .tn-grid { grid-template-columns: 1fr; } }
.tn-card:hover, .tn-wallet:hover, .tn-block:hover, .tn-grid--2 .card:hover, .tn-narrow .card:hover { transform: none; box-shadow: none; }
.tn-card__head { display: flex; align-items: center; gap: 14px; }
.tn-card__mark { width: 40px; height: 44px; flex: none; }
.tn-mark--light { display: none; }
:root[data-theme="light"] .tn-mark--dark { display: none; }
:root[data-theme="light"] .tn-mark--light { display: block; }
.tn-chip { display: inline-block; margin: 4px 0 0 !important; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 0.78rem; color: var(--ink-muted) !important; flex: none !important; }
.tn-amount { margin: 0; color: var(--ink-muted); }
.tn-amount strong { color: var(--ink); }
.tn-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.tn-form .btn { justify-content: center; min-height: 50px; }
@media (max-width: 520px) { .tn-form { grid-template-columns: 1fr; } }
.field select { width: 100%; background: var(--bg); border: 1px solid var(--control-border); border-radius: var(--radius-md); color: var(--ink); font: inherit; padding: 13px 15px; }
.field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.field input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.tn-small { padding: 8px 14px; font-size: 0.88rem; }

/* results stay until dismissed */
.tn-results { display: grid; gap: 10px; }
.tn-results:empty { display: none; }
.tn-msg { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 14px 44px 14px 16px; background: var(--bg); font-size: 0.95rem; overflow-wrap: anywhere; }
.tn-msg p { margin: 0 0 6px; color: var(--ink); }
.tn-msg p:last-child { margin-bottom: 0; }
.tn-msg--ok { border-left: 3px solid var(--accent); }
.tn-msg--err { border-left: 3px solid var(--danger); }
.tn-msg--err > p:first-of-type { color: var(--danger); font-weight: 600; }
.tn-msg a { font-weight: 500; }
.tn-msg code, .tn-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }
.tn-code { display: block; max-height: 7.5em; overflow: auto; padding: 8px 10px; margin: 6px 0; background: var(--surface-2); border-radius: var(--radius-sm); word-break: break-all; color: var(--ink); }
.tn-dismiss { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.tn-dismiss:hover { border-color: var(--line-strong); color: var(--ink); }
.tn-msg .btn { margin-top: 8px; }

.tn-how { margin-top: 36px; display: grid; gap: 18px; }
.tn-how h3 { font-size: 1.2rem; }
.tn-issuers { display: grid; gap: 8px; margin: 0; font-size: 0.88rem; }
.tn-issuers div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.tn-issuers dt { color: var(--ink-subtle); }
.tn-issuers dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--ink); }

.tn-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .tn-split { grid-template-columns: 1fr; } }
.tn-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tn-progress li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.tn-progress li::before { content: '○'; color: var(--ink-subtle); }
.tn-progress li.is-run::before { content: '◐'; color: var(--accent); }
.tn-progress li.is-ok { color: var(--ink); }
.tn-progress li.is-ok::before { content: '●'; color: var(--accent); }
.tn-progress li.is-err { color: var(--danger); }
.tn-progress li.is-err::before { content: '×'; color: var(--danger); }
.tn-keys { display: grid; gap: 14px; margin-top: 18px; }
.tn-copyrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.tn-copyrow:has(> :nth-child(2):last-child) { grid-template-columns: 1fr auto; }
.tn-warn { margin: 0; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--danger); color: var(--ink); font-size: 0.9rem; }

.tn-linkcard { color: var(--ink); }
.tn-linkcard:hover { color: var(--ink); }
.tn-linkcard .more { color: var(--accent); font-weight: 500; font-size: 0.95rem; }

.tn-narrow { max-width: 560px; }
.tn-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tn-bar p { margin: 0; }
.tn-bar .tn-h3 { margin: 0; }
.tn-rule { margin: 8px 0 18px; }
.tn-rule p { font-size: clamp(1rem, 1.6vw, 1.15rem); }
.tn-block { margin-top: 20px; }
.tn-balances { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-muted); }
.tn-balances span { border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 4px 12px; }
.tn-balances strong { color: var(--ink); }
.tn-list { display: grid; gap: 0; }
.tn-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; align-items: start; }
.tn-row:first-child { border-top: 0; }
.tn-row .t { color: var(--ink-subtle); font-size: 0.82rem; }
.tn-row .d { overflow-wrap: anywhere; color: var(--ink); }
.tn-row .d small { display: block; color: var(--ink-muted); }
.tn-row .r { text-align: right; }
.tn-tag { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.78rem; white-space: normal; }
.tn-tag--ok { border-color: var(--accent); color: var(--ink); }
.tn-tag--err { border-color: var(--danger); color: var(--danger); }
@media (max-width: 640px) { .tn-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .tn-row .r { text-align: left; } }
.tn-empty { color: var(--ink-subtle); margin: 0; }

[hidden] { display: none !important; }
.tn-row > * { min-width: 0; }
.card { min-width: 0; }
