/* Chinese Name Passport Romanizer — RT-TXT-055
   Widget styling. The form shell + ad/section styling come from the platform
   tool layout; this file scopes the nr-* (name-romanizer) components.
   TEAL text-tool theme (accent #0D9488). Loaded automatically by
   show.blade.php when present. */

.nr-form { display: flex; flex-direction: column; gap: 14px; }

.nr-inputs {
  display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 16px;
  background: var(--rt-surface-2); border: 1px solid var(--rt-hairline); border-radius: 8px;
}
@media (max-width: 720px) { .nr-inputs { grid-template-columns: 1fr; } }

.nr-field label {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
  display: block; margin-bottom: 4px;
}
.nr-field input[type="text"] {
  padding: 11px 13px; border: 1px solid var(--rt-hairline); border-radius: 6px;
  font-size: 17px; background: #fff; width: 100%;
}
.nr-field input[type="text"]:focus {
  outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,.14);
}

.nr-radio-group { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.nr-radio-group label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }
.nr-radio-group input { accent-color: #0D9488; }

.nr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-btn {
  padding: 11px 20px; font-size: 13px; border-radius: 6px; cursor: pointer;
  font-family: var(--rt-font-mono); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.nr-btn-go { background: #0D9488; color: #fff; border: 1px solid #0B7C72; }
.nr-btn-go:hover { background: #0B7C72; }
.nr-btn-reset { background: #fff; color: #0B7C72; border: 1px solid rgba(13,148,136,.4); }
.nr-btn-reset:hover { background: #CCFBF1; }

/* ---- results ---- */
.nr-results { padding: 0; background: transparent; }
.nr-empty {
  padding: 18px; text-align: center; color: var(--rt-ink-muted);
  font-style: italic; background: var(--rt-surface-2);
  border: 1px dashed var(--rt-hairline); border-radius: 8px;
}
.nr-err { color: #b91c1c; font-style: normal; border-color: rgba(185,28,28,.4); background: #fef2f2; }

.nr-input-echo {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px;
  background: #CCFBF1; border: 1px solid rgba(13,148,136,.22); border-radius: 8px;
}
.nr-echo-han { font-size: 22px; font-weight: 700; color: var(--rt-ink); }
.nr-tag {
  font-family: var(--rt-font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.nr-tag-surname { background: #0D9488; color: #fff; }
.nr-tag-given { background: #fff; color: #0B7C72; border: 1px solid rgba(13,148,136,.4); }

.nr-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .nr-systems { grid-template-columns: 1fr; } }

.nr-system-card {
  border: 1px solid var(--rt-hairline); border-radius: 10px;
  background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.nr-system-head { display: flex; align-items: center; gap: 8px; }
.nr-system-name {
  font-family: var(--rt-font-display, inherit); font-size: 16px; font-weight: 700;
  color: var(--rt-ink);
}
.nr-ref-tag {
  font-family: var(--rt-font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 999px;
  background: var(--rt-surface-2); color: var(--rt-ink-muted); border: 1px solid var(--rt-hairline);
}
.nr-system-use { font-size: 12px; color: var(--rt-ink-muted); margin-top: -4px; }

.nr-format-grid { display: flex; flex-direction: column; gap: 0; }
.nr-format-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--rt-hairline);
}
.nr-format-row:last-child { border-bottom: none; }
.nr-format-label {
  font-family: var(--rt-font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .03em; color: var(--rt-ink-muted); flex: 0 0 auto;
}
.nr-format-value {
  font-size: 15px; font-weight: 600; color: var(--rt-ink); text-align: right;
  word-break: break-word;
}

.nr-system-note {
  font-size: 12px; line-height: 1.5; color: var(--rt-ink-muted);
  padding: 9px 11px; background: var(--rt-surface-2); border-radius: 6px;
  border-left: 3px solid #0D9488;
}
.nr-system-note strong { color: #0B7C72; }

.nr-disclaimer {
  margin-top: 14px; padding: 11px 14px; font-size: 12.5px; line-height: 1.55;
  color: var(--rt-ink-muted); background: #f0fdfa;
  border-left: 3px solid #0D9488; border-radius: 0 6px 6px 0;
}
