/* Help English Practice Hub — shared styles (mobile first) */
:root {
  --gold: #B68818;
  --gold-dark: #8F6A10;
  --black: #000000;
  --ink: #141414;
  --muted: #5b5b5b;
  --line: #e4e0d6;
  --bg: #faf8f3;
  --white: #ffffff;
  --error: #b3261e;
  --error-bg: #fdecea;
  --ok: #1e6b34;
  --ok-bg: #e7f4ea;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.5;
}
a { color: var(--gold-dark); }

/* Top bar (not fixed, so it never covers content) */
.topbar {
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
}
.topbar img { height: 40px; width: auto; display: block; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 700; }
.topbar .brand span { color: var(--gold); }

.wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 48px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; margin-bottom: 16px;
}
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; font-size: 17px; /* >=16px avoids zoom on iPhone */
  padding: 14px 14px; min-height: 52px;
  border: 1.5px solid #cfc9bb; border-radius: 12px; background: var(--white); color: var(--ink);
}
input:focus { outline: 3px solid rgba(182,136,24,.35); border-color: var(--gold); }
.hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 54px; padding: 12px 18px; margin-top: 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  background: var(--gold); color: var(--black);
}
.btn:hover { background: #c79a26; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: var(--white); color: var(--ink); border: 1.5px solid #cfc9bb; }
.btn.dark { background: var(--black); color: var(--white); }

.linkrow { text-align: center; margin-top: 18px; }
.linkrow a { display: inline-block; padding: 10px 6px; font-weight: 600; } /* big tap area */

.msg { border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: .97rem; }
.msg.error { background: var(--error-bg); color: var(--error); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
[hidden] { display: none !important; }

/* Optional Portuguese support */
.pt { display: none; color: var(--muted); font-size: .88rem; font-weight: 400; font-style: italic; }
body.show-pt .pt { display: block; }
.pt-toggle {
  background: none; border: 1.5px solid #cfc9bb; border-radius: 999px; color: var(--ink);
  font-size: .85rem; padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.topbar .pt-toggle { color: var(--white); border-color: #555; }

/* Home */
.progress { height: 12px; background: #eee7d6; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; background: var(--gold); width: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f3ead2; color: var(--gold-dark); }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 32px; }
.footer a { display: inline-block; padding: 8px 6px; }
