/* ============================================================
   TWM skin — override sheet.
   Drop this LAST in <head> after a page's inline styles.
   Re-maps the legacy gold/serif tokens used across all pages
   to The Wessex Mint design system: Inter Tight, navy ramp,
   powder-blue accent, hairlines, no italic, no shine.
   ============================================================ */
@import url('./assets/fonts/inter-tight.css');

:root, html, body {
  /* Surfaces */
  --bg-base:        #0C111B !important;
  --bg-panel:       #1D2941 !important;
  --bg-panel-2:     #283566 !important;

  /* Accents — gold becomes powder blue everywhere */
  --gold:           #9CB8F5 !important;
  --gold-bright:    #D7E4FF !important;
  --gold-soft:      rgba(156,184,245,0.30) !important;

  /* Status */
  --blue:           #6190F6 !important;
  --red:            #EB1C24 !important;
  --green:          #02BFB0 !important;

  /* Type */
  --text:           #FFFFFF !important;
  --text-mute:      #A8B3DC !important;
  --text-dim:       #29386F !important;
  --line:           rgba(255,255,255,0.08) !important;
  --line-strong:    rgba(255,255,255,0.16) !important;

  /* Fonts — both legacy aliases collapse to Inter Tight */
  --serif:          "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  --sans:           "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  --focus:          2px solid #9CB8F5 !important;
}

/* Body baseline */
html, body {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* TWM has no italic — kill the italic logo-mark and italic headlines */
.logo-mark, em, i.italic, [style*="italic"] { font-style: normal !important; }

/* Headings: tight tracking, weight 600 */
h1, h2, h3, h4, h5, h6,
.acct-main h1, .acct-card h3, .acct-page-title .nm, .pm-empty h3,
.spotlight-content h3, .lo-band-head h2, .rail-heading h2, .closing h2,
.lo-hero h1, .footer-col h4 {
  font-family: "Inter Tight", -apple-system, system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

/* Eyebrow / tracked-out caption type */
.eyebrow, .lo-eyebrow, .acct-side-h, .footer-col h4,
.spot-label, .pm-default-pill, .status-pill, .acct-form-field label,
.field label, .show-format-tag {
  letter-spacing: 0.08em !important;
  font-weight: 500 !important;
}

/* Number/value-style spans should also be sans, not serif */
.spot-value, .show-time, .acct-list-row .lbl, .order-card .nm,
.lo-tile .show-name, .lo-tile .host-name, .live-card .nm,
.balance .val, .acct-page-title .nm {
  font-family: "Inter Tight", -apple-system, system-ui, sans-serif !important;
}

/* Buttons — soften legacy gold-fill primary into tinted-blue pill */
.btn-primary, .acct-mini-btn.primary, .order-chip.active,
.newsletter-btn, .pay-banner .btn-add, .pm-card .btn-primary {
  background: rgba(156,184,245,0.18) !important;
  border: 0.5px solid rgba(156,184,245,0.30) !important;
  color: #D7E4FF !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 8px 24px -4px rgba(0,0,0,0.20) !important;
  font-weight: 500 !important;
}
.btn-primary:hover, .acct-mini-btn.primary:hover, .pay-banner .btn-add:hover {
  background: rgba(156,184,245,0.28) !important;
}

/* Secondary / ghost buttons */
.btn-secondary, .acct-mini-btn, .order-chip, .show-remind-btn,
.live-card .watch-btn, .google-btn, .login-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 0.5px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 999px !important;
}
.btn-secondary:hover, .acct-mini-btn:hover, .login-btn:hover,
.show-remind-btn:hover, .live-card .watch-btn:hover, .google-btn:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.20) !important;
}

/* Cards: hairline border + soft elevation */
.acct-card, .order-card, .pm-card, .show-card, .live-card,
.lo-spotlight, .lo-tile, .why-card {
  border-color: rgba(255,255,255,0.06) !important;
  border-width: 0.5px !important;
  border-style: solid !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px -2px rgba(0,0,0,0.20) !important;
}

/* Form inputs */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"],
.ctrl-input, .acct-form-field input, .newsletter-input, .field input {
  background: rgba(255,255,255,0.04) !important;
  border: 0.5px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-family: inherit !important;
}
input:focus, .ctrl-input:focus, .acct-form-field input:focus,
.newsletter-input:focus, .field input:focus {
  outline: none !important;
  border-color: rgba(156,184,245,0.40) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* Pills / chips / status */
.status-pill, .pm-default-pill, .show-format-tag, .order-chip,
.live-pill-corner, .trust-pill {
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.status-pill--won {
  background: rgba(156,184,245,0.18) !important;
  color: #D7E4FF !important;
}
.status-pill--shipped {
  background: rgba(97,144,246,0.18) !important;
  color: #9CB8F5 !important;
}
.status-pill--delivered, .status-pill--completed {
  background: rgba(2,191,176,0.18) !important;
  color: #02BFB0 !important;
}
.status-pill--cancelled {
  background: rgba(235,28,36,0.18) !important;
  color: #FFB8BC !important;
}
.pm-default-pill {
  background: rgba(156,184,245,0.18) !important;
  color: #D7E4FF !important;
  border: 0.5px solid rgba(156,184,245,0.30) !important;
}
.live-pill-corner {
  background: rgba(235,28,36,0.18) !important;
  color: #FFB8BC !important;
  border: 0.5px solid rgba(235,28,36,0.40) !important;
}

/* Switch — gold → powder blue */
.switch input:checked + .slider { background: #6190F6 !important; }

/* Side-nav active marker — gold → powder blue */
.acct-side a.active {
  border-left-color: #9CB8F5 !important;
  background: rgba(156,184,245,0.08) !important;
}
.acct-side a.active svg { stroke: #9CB8F5 !important; }

/* Limit summary indicator */
.limit-summary, .ctrl-active {
  border-left-color: #9CB8F5 !important;
  background: rgba(156,184,245,0.06) !important;
  border-radius: 12px !important;
}
.limit-summary .bar i { background: #9CB8F5 !important; }

/* Topnav active underline */
.topnav a.active, .topnav a[aria-current="page"] {
  border-bottom-color: #9CB8F5 !important;
}
.topnav a:hover { color: #fff !important; }

/* Avatar circles use tinted-blue border */
.acct-page-title .av {
  background: rgba(156,184,245,0.18) !important;
  color: #D7E4FF !important;
  border: 0.5px solid rgba(156,184,245,0.30) !important;
}

/* PM action button hover */
.pm-action-btn:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.pm-popover {
  background: #1D2941 !important;
  border: 0.5px solid rgba(255,255,255,0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 24px -4px rgba(0,0,0,0.30) !important;
}
.pm-popover button:hover { background: rgba(255,255,255,0.06) !important; }

/* Footer trust badges to pill shape */
.footer-trust-mini .badge {
  border-radius: 999px !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Skip link */
.skip:focus {
  background: #9CB8F5 !important;
  color: #0C111B !important;
  border-radius: 8px !important;
}

/* Body text on body */
body { font-size: 15px !important; }
