/* Translation contribution page — scoped .tr-* so it rides on top of the
   Jekyll cayman theme without fighting it. Vanilla, no framework. */

/* `display:flex` below (modal, progress, filters) outweighs the UA
   [hidden]{display:none}, so the attribute would never hide them — pin it. */
[hidden] { display: none !important; }

.tr-intro { color: #444; }
.tr-controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.tr-controls select, .tr-controls input { font-size: 1rem; padding: .35rem .5rem; }

.tr-progress { display: flex; align-items: center; gap: .75rem; margin: .25rem 0 1rem; }
.tr-bar { flex: 1; height: 12px; background: #e7e7e7; border-radius: 6px; overflow: hidden; max-width: 420px; }
.tr-bar-fill { height: 100%; background: #2a7ae2; width: 0; transition: width .2s; }
.tr-progress span { font-variant-numeric: tabular-nums; color: #555; font-size: .9rem; }

.tr-filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 1rem; padding: .75rem; background: #f6f8fa; border-radius: 6px; }
.tr-filters input[type=search] { flex: 1; min-width: 200px; padding: .4rem .6rem; font-size: 1rem; }
.tr-check { white-space: nowrap; }

.tr-status { color: #777; padding: 1rem 0; }

.tr-modhead { margin: 1.5rem 0 .25rem; padding-bottom: .2rem; border-bottom: 2px solid #eee; display: flex; align-items: baseline; gap: .6rem; }
.tr-modhead code { font-size: 1rem; font-weight: 600; color: #24292e; }
.tr-modhead .tr-modpct { font-size: .82rem; color: #777; font-variant-numeric: tabular-nums; }

.tr-context { margin: .8rem 0 .2rem; font-style: italic; color: #6a737d; font-size: .9rem; }

.tr-row { padding: .5rem .6rem; border-radius: 6px; margin: .2rem 0; }
.tr-row:hover { background: #fafbfc; }
.tr-row.tr-changed { background: #fffbdd; }
.tr-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tr-name { font-size: .8rem; color: #6f42c1; background: #f3effa; padding: .05rem .35rem; border-radius: 4px; }
.tr-arg { font-size: .72rem; font-family: monospace; color: #b35900; background: #fff3e0; padding: .05rem .3rem; border-radius: 4px; }
.tr-en { margin: .25rem 0; color: #111; }
.tr-input { width: 100%; box-sizing: border-box; font-size: 1rem; padding: .4rem .55rem; border: 1px solid #ccd0d4; border-radius: 5px; font-family: inherit; }
.tr-input:focus { border-color: #2a7ae2; outline: none; }
textarea.tr-input { min-height: 2.4rem; resize: vertical; }

.tr-actionbar { position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 35%); text-align: right; }
.tr-actionbar button { font-size: 1rem; padding: .55rem 1.1rem; background: #2a7ae2; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.tr-actionbar button:disabled { background: #b8c4d0; cursor: default; }

.tr-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; z-index: 1000; overflow: auto; }
.tr-modal-box { background: #fff; border-radius: 8px; padding: 1.25rem 1.5rem; max-width: 820px; width: 100%; position: relative; }
.tr-modal-close { position: absolute; top: .5rem; right: .75rem; font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #888; }
.tr-modal-help { color: #444; font-size: .95rem; }
.tr-modal-help ol { margin: .4rem 0 0 1.1rem; }
.tr-card { margin: 1rem 0; padding: .8rem; border: 1px solid #e1e4e8; border-radius: 6px; }
.tr-card h3 { margin: 0 0 .4rem; font-size: .9rem; }
.tr-out { width: 100%; box-sizing: border-box; font-family: monospace; font-size: .8rem; white-space: pre; overflow: auto; }
.tr-card-actions { display: flex; gap: .6rem; margin-top: .5rem; align-items: center; }
.tr-copy { padding: .35rem .8rem; cursor: pointer; border: 1px solid #ccc; border-radius: 5px; background: #f6f8fa; }
.tr-open { padding: .35rem .9rem; background: #2a7ae2; color: #fff; border-radius: 5px; text-decoration: none; }
