/* ---- translation pages -------------------------------------------------
   Scoped to .tpage so nothing here can alter the rest of the site. */

.tpage { background: var(--hc-bg-0); color: var(--hc-ink); }

/* The top bar is position:fixed, so every page under it has to buy its own
   clearance or the first heading slides beneath the glass. */
.tpage .twrap { max-width: 880px; margin: 0 auto; padding: 116px 22px 80px; }

/* The wordmark is a pale PNG with a soft glow; on this flat dark page it read
   as a smudge. An oval plate under it gives the letters an edge to sit on. */
.tpage .brand {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 22px; border-radius: 999px;
  background: rgba(8, 10, 14, .78);
  border: 1px solid var(--hc-line-2);
  box-shadow: 0 3px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.tpage .brand img { filter: drop-shadow(0 0 10px rgba(28,108,255,.45)); }

/* ---- hero ---- */
.thero { border-bottom: 1px solid var(--hc-line); padding-bottom: 26px; margin-bottom: 12px; }
.thero .eyebrow { color: var(--hc-hover); letter-spacing: .18em; font-size: 12px;
                  margin: 0 0 12px; font-weight: 700; }
.thero h1 { margin: 0 0 16px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; }
.thero .lede { color: var(--hc-ink-2); max-width: 60ch; margin: 0; font-size: 16px; line-height: 1.7; }
.xlate { color: var(--hc-ink-dim); font-size: 13px; margin: 18px 0 0; max-width: 60ch; line-height: 1.6; }

/* ---- numbered steps ---- */
.step { margin: 56px 0 0; }
.step > h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font-size: 22px; }
.step > h2 .num {
  flex: none; width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hc-focus); color: var(--hc-focus-ink); font-size: 16px; font-weight: 800;
}
.step > .sub { color: var(--hc-ink-dim); margin: 0 0 22px 48px; font-size: 14px;
               max-width: 62ch; line-height: 1.65; }

/* ---- one row per language, one button each ---- */
.langs { display: flex; flex-direction: column; gap: 12px; margin-left: 48px; }
.lrow { display: flex; align-items: center; gap: 18px; background: var(--hc-bg-2);
        border: 1px solid var(--hc-line); border-radius: 12px; padding: 16px 18px; }
.lrow:hover { border-color: var(--hc-line-2); }
.lmain { flex: 1; min-width: 0; }
.lname { font-weight: 700; font-size: 16px; line-height: 1.3; }
.lnative { color: var(--hc-ink-dim); font-weight: 400; font-size: 14px; margin-left: 8px; }
.lmeta { color: var(--hc-ink-dim); font-size: 13px; margin-top: 5px; }
.lget { flex: none; background: var(--hc-focus); color: var(--hc-focus-ink); font-weight: 700;
        font-size: 14px; padding: 11px 22px; border-radius: 8px; text-decoration: none;
        white-space: nowrap; }
.lget:hover { background: var(--hc-focus-hi); }
.lrow.src { background: transparent; border-style: dashed; }
.lrow.src .lget { background: var(--hc-bg-3); color: var(--hc-ink-2); }
.lrow.src .lget:hover { background: var(--hc-line-2); color: var(--hc-ink); }

/* ---- rules ---- */
ol.rules { color: var(--hc-ink-2); line-height: 1.8; max-width: 68ch;
           padding-left: 22px; margin: 0 0 0 48px; }
ol.rules li { margin-bottom: 12px; }
ol.rules code, .note code { background: var(--hc-bg-1); border: 1px solid var(--hc-line);
                border-radius: 4px; padding: 1px 6px; color: var(--hc-focus); font-size: .95em; }
ol.rules b { color: var(--hc-ink); }
.note { background: var(--hc-bg-2); border-left: 3px solid var(--hc-hover);
        padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--hc-ink-2);
        margin: 0 0 0 48px; max-width: 68ch; line-height: 1.7; }

/* ---- hub cards ---- */
.tgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
         margin-top: 30px; }
.tcard { display: block; background: var(--hc-bg-2); border: 1px solid var(--hc-line);
         border-radius: 12px; padding: 20px; text-decoration: none; color: inherit;
         transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--hc-hover); transform: translateY(-2px); }
.tcard h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.tcard .meta { color: var(--hc-ink-dim); font-size: 13px; margin: 0; }

.tfoot { border-top: 1px solid var(--hc-line); padding: 22px; text-align: center;
         color: var(--hc-ink-dim); font-size: 12px; }
.back { color: var(--hc-ink-dim); text-decoration: none; font-size: 14px;
        display: inline-block; margin-bottom: 22px; }
.back:hover { color: var(--hc-hover); }

@media (max-width: 620px) {
  .tpage .twrap { padding-top: 104px; }
  .step > .sub, .langs, ol.rules, .note { margin-left: 0; }
  .lrow { flex-wrap: wrap; }
  .lget { width: 100%; text-align: center; }
}
