/* BitcoHunters Academy — affiliate page (/dashboard/affiliate/) and sign-up page (/become-an-affiliate/).
   Loaded after bh-academy.css (same tokens: --bh-display = Cormorant Garamond; body text DM Sans). Gold #C8963E for
   accents, darker gold #8A6322 for text on white (readable contrast). Source: wordpress/mu-plugins/bh-affiliate/assets/. */

.bh-aff { --bh-aff-gold: #C8963E; --bh-aff-gold-dark: #8A6322; --bh-aff-line: #e7e1d6; --bh-aff-soft: #faf6ee;
  font-family: 'DM Sans', system-ui, sans-serif; color: #1c1c1c; display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.bh-aff a { color: var(--bh-aff-gold-dark); }
.bh-aff-title { font-family: var(--bh-display, 'Cormorant Garamond', Georgia, serif); font-weight: 600; font-size: 2rem; line-height: 1.15; margin: 0 0 8px; color: #0d0d0d; }
.bh-aff-h { font-family: var(--bh-display, 'Cormorant Garamond', Georgia, serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 12px; color: #0d0d0d; }
.bh-aff-lead { font-size: 1.05rem; line-height: 1.55; margin: 0 0 14px; }
.bh-aff-small { font-size: 0.9rem; color: #555; line-height: 1.5; margin: 8px 0 0; }
.bh-aff-card { background: #fff; border: 1px solid var(--bh-aff-line); border-top: 3px solid var(--bh-aff-gold); border-radius: 12px; padding: 24px; }
.bh-aff-btn { white-space: nowrap; }
/* form fields: Tutor 4's dashboard doesn't style the old tutor-form-control class (found on staging, 5 Nov 2026) */
.bh-aff input[type="text"], .bh-aff input[type="email"], .bh-aff input[type="password"], .bh-aff select {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 1rem;
  color: #1c1c1c; background: #fff; border: 1px solid #cfc6b6; border-radius: 8px; }
.bh-aff input:focus-visible, .bh-aff select:focus-visible { outline: 2px solid var(--bh-aff-gold); outline-offset: 1px; border-color: var(--bh-aff-gold); }
.bh-aff input[readonly] { background: var(--bh-aff-soft); }
.bh-aff-copyrow .bh-aff-link { flex: 1; min-width: 0; }
.bh-aff-nets legend, .bh-aff-type legend, .bh-aff-label { font-size: 0.95rem; }
/* one body size everywhere (5 Nov 2026): the theme gives list items, labels and some paragraphs a bigger size;
   these use the same size as the field labels. Titles keep their own sizes. */
.bh-aff-steps li, .bh-aff-check, .bh-aff-check span, .bh-aff-netopt, .bh-aff-netopt span, .bh-aff-warning,
.bh-aff-type label, .bh-aff-notice, .bh-aff-empty, .bh-aff-wallet .bh-aff-small, .bh-aff-signup .bh-aff-lead { font-size: 0.95rem; line-height: 1.55; }

.bh-aff-notice { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--bh-aff-line); background: var(--bh-aff-soft); line-height: 1.5; }
.bh-aff-notice-ok { border-color: #b7d9b9; background: #f1f9f1; }
.bh-aff-notice-error { border-color: #e6b3b3; background: #fdf3f3; }
.bh-aff-notice-warn { border-color: #e9cf9c; background: #fdf7ea; }

/* join */
.bh-aff-steps { margin: 0 0 18px; padding-left: 1.2em; line-height: 1.6; }
.bh-aff-steps li { margin-bottom: 6px; }
.bh-aff-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; line-height: 1.45; cursor: pointer; }
.bh-aff-check input { margin-top: 3px; accent-color: var(--bh-aff-gold-dark); width: 18px; height: 18px; flex: none; }

/* link + totals */
.bh-aff-copyrow { display: flex; gap: 10px; }
.bh-aff-link { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; }
.bh-aff-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.08em; color: var(--bh-aff-gold-dark); }
.bh-aff-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bh-aff-total { background: #fff; border: 1px solid var(--bh-aff-line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.bh-aff-total-v { font-family: var(--bh-display, 'Cormorant Garamond', Georgia, serif); font-weight: 600; font-size: 1.8rem; color: var(--bh-aff-gold-dark); font-variant-numeric: lining-nums; }
.bh-aff-total-l { font-size: 0.9rem; color: #444; }
.bh-aff-total-why { font-size: 0.85rem; color: #8a5a00; }

/* table */
.bh-aff-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.bh-aff-table th { text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid var(--bh-aff-line); padding: 8px 10px; white-space: nowrap; }
.bh-aff-table td { border-bottom: 1px solid var(--bh-aff-line); padding: 10px; vertical-align: top; font-variant-numeric: tabular-nums; }
.bh-aff-mask { display: block; font-size: 0.82rem; color: #777; }
.bh-aff-table td[data-label="Date"] { white-space: nowrap; }
.bh-aff-row-adj td { background: #fdf7ea; }
.bh-aff-row-cancelled td { color: #888; }
.bh-aff-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #eee; color: #444; }
.bh-aff-badge-approved { background: #fdf1da; color: var(--bh-aff-gold-dark); }
.bh-aff-badge-paid { background: #e6f4e7; color: #2c6b31; }
.bh-aff-badge-cancelled, .bh-aff-badge-written_off { background: #f0f0f0; color: #777; }
.bh-aff-tx { display: block; margin-top: 4px; font-size: 0.82rem; }
.bh-aff-empty { color: #555; margin: 0; }
.bh-aff-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.bh-aff-pages a { padding: 4px 10px; border: 1px solid var(--bh-aff-line); border-radius: 6px; text-decoration: none; }
.bh-aff-pages a.is-current { background: var(--bh-aff-gold); border-color: var(--bh-aff-gold); color: #111; }

/* wallet */
.bh-aff-wallet { border: 1px solid var(--bh-aff-line); background: var(--bh-aff-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.bh-aff-net, .bh-aff-netbig { font-family: var(--bh-display, 'Cormorant Garamond', Georgia, serif); font-weight: 700; font-size: 1.5rem; color: var(--bh-aff-gold-dark); line-height: 1.2; }
.bh-aff-netbig { margin: 6px 0 12px; }
.bh-aff-netbig[hidden] { display: none; }
.bh-aff-addr { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; word-break: break-all; margin-top: 6px; background: none; padding: 0; }
.bh-aff-addr-input { font-family: ui-monospace, Consolas, monospace; }
.bh-aff-nets { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bh-aff-nets legend, .bh-aff-type legend { font-weight: 600; margin-bottom: 8px; }
.bh-aff-netopt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--bh-aff-line); border-radius: 8px; cursor: pointer; }
.bh-aff-netopt input { accent-color: var(--bh-aff-gold-dark); width: 18px; height: 18px; }
.bh-aff-netopt:has(input:checked) { border-color: var(--bh-aff-gold); background: var(--bh-aff-soft); }
.bh-aff-warning { margin: 12px 0; padding: 12px 14px; border-left: 4px solid #b3261e; background: #fdf3f3; color: #5c1410; line-height: 1.5; font-weight: 500; }
.bh-aff-label { display: block; font-weight: 600; margin: 12px 0 6px; }

/* details + sign-up grid */
.bh-aff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; align-items: start; }
.bh-aff-grid .bh-aff-wide, .bh-aff-grid > fieldset, .bh-aff-grid .bh-aff-company { grid-column: 1 / -1; }
.bh-aff-type { border: 0; padding: 0; margin: 12px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.bh-aff-type label { display: flex; gap: 8px; align-items: center; }
.bh-aff-company { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.bh-aff-company[hidden] { display: none; }
.bh-aff-err { display: block; color: #b3261e; font-size: 0.86rem; margin-top: 4px; }
.bh-aff-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bh-aff-grid button { margin-top: 14px; }

/* sign-up page */
.bh-aff-signup { margin: 40px auto; padding: 0 16px; max-width: 640px; }
/* its header: the site header with "Log in" instead of the menu; the logo a little larger and bolder (5 Nov 2026):
   at 1.35rem / 500 the hairline crossbar of the gold "H" fades on the dark background (tested at true 1x) */
.bh-aff-signup-page .bh-header .bh-logo-t { font-size: 1.45rem; font-weight: 600; }
.bh-header .bh-header-login { color: var(--bh-on-dark, #FAFAF8); font-family: 'DM Sans', system-ui, sans-serif; font-size: 1rem; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.bh-header .bh-header-login:hover, .bh-header .bh-header-login:focus-visible { color: var(--bh-gold-light, #E8B96A); }
@media (max-width: 480px) { .bh-aff-signup-page .bh-header .bh-logo-t { font-size: 1.2rem; } }

/* phones */
@media (max-width: 767.98px) {
  .bh-aff-card { padding: 18px 16px; }
  .bh-aff-title { font-size: 1.7rem; }
  .bh-aff-copyrow { flex-direction: column; }
  .bh-aff-totals { grid-template-columns: 1fr; }
  .bh-aff-grid, .bh-aff-company { grid-template-columns: 1fr; }
  .bh-aff-table thead { display: none; }
  .bh-aff-table, .bh-aff-table tbody, .bh-aff-table tr, .bh-aff-table td { display: block; width: 100%; }
  .bh-aff-table tr { border: 1px solid var(--bh-aff-line); border-radius: 10px; margin-bottom: 10px; padding: 6px 0; }
  .bh-aff-table td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .bh-aff-table td::before { content: attr(data-label); font-weight: 600; color: #555; text-align: left; }
  /* the referred student: label on its own line, then name and masked email across the whole card */
  .bh-aff-table td.bh-aff-who { display: block; text-align: left; }
  .bh-aff-table td.bh-aff-who::before { display: block; margin-bottom: 2px; }
  .bh-aff-table td.bh-aff-who .bh-aff-mask { display: block; margin-left: 0; }
  .bh-aff-mask { display: inline; margin-left: 6px; }
}
