/* Shared typography and restrained accents, loaded after the portal theme. */
:root {
    --tru-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tru-text: #171717;
    --tru-secondary: #586071;
    --tru-blue: #1751ed;
    --tru-blue-ink: #1234b6;
    --tru-blue-wash: #e9eeff;
    --tru-coral: #f2545e;
    --tru-coral-ink: #9b1d23;
    --tru-coral-wash: #ffe8e9;
    --tru-title: clamp(1.875rem, 4vw, 2.25rem);
    --tru-section: clamp(1.25rem, 2.8vw, 1.5rem);
}
html { font-size: 16px; }
body, button, input, select, textarea {
    font-family: var(--tru-font);
}
body { font-size: 1rem; line-height: 1.5; }

/* Same hierarchy on phones and desktop; the editorial dashboard hero is intentional. */
body :is(.activity-header h1, .price-header h1, .wallet-header h1,
         .gc-heading h1, .account-header h1, .edit-profile-shell h1,
         .settings-header h1, .tru-login-form h1) {
    font-size: var(--tru-title);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.15;
}
body :is(.wallet-section-header h2, .details-card h2, .form-section-title,
         .gc-empty h2, .gc-transfer-form h2, .settings-card-title,
         .digital-checkout-heading h2, .activity-empty h5) {
    font-size: var(--tru-section);
    font-weight: 630;
    letter-spacing: -.02em;
    line-height: 1.25;
}
body :is(.activity-header p, .wallet-header p, .gc-heading p,
         .edit-profile-shell > div > p, .account-header p,
         .settings-card-description) {
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--tru-secondary);
}
body :is(.wallet-eyebrow, .wallet-kicker, .activity-label,
         .gc-eyebrow, .rewards-card-label, .fashion-eyebrow) {
    font-size: .75rem;
    font-weight: 620;
    letter-spacing: .12em;
}
body :is(.form-label, .manual-label, .gc-label, .activity-filter label,
         .settings-card .form-label) {
    font-size: .875rem;
    font-weight: 590;
}
body :is(.btn, .gc-button, .wallet-action, .price-submit, .settings-save-button,
         .tru-submit, .tru-join, .fashion-action-copy strong) {
    font-size: .9375rem;
    font-weight: 610;
    line-height: 1.35;
}
body :is(.form-control, .form-select, .barcode-input, .gc-input,
         .activity-filter select, .input-wrap input) {
    font-size: 1rem;
}
body :is(.text-danger, .field-validation-error, .gc-validation, .gc-field-error) {
    font-size: .875rem;
}

/* App navigation and sign-in. */
body .portal-brand { font-size: 1.0625rem; font-weight: 650; }
body .desktop-nav-link { font-size: .875rem; font-weight: 560; }
body .mobile-nav-item { font-size: .75rem; font-weight: 560; }
body .mobile-card-button span { font-size: .7rem; font-weight: 650; }
body .desktop-nav-link:not(.is-disabled):is(:hover, .active),
body .header-icon:is(:hover, .active) {
    color: var(--tru-blue-ink) !important;
    background: var(--tru-blue-wash) !important;
}
body .mobile-nav-item:not(.is-disabled):is(:hover, .active) {
    color: var(--tru-blue-ink) !important;
}
body .mobile-nav-item.active::before { background: var(--tru-blue) !important; }
body .tru-forgot { color: var(--tru-blue-ink); }
body .tru-login-form h1 { font-weight: 680; }
body .tru-login-form > p { font-size: 1rem; }
body .tru-login .input-wrap:focus-within,
body .form-control:focus, body .form-select:focus {
    border-color: var(--tru-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(23, 81, 237, .13) !important;
}
body .admin-login-page .admin-brand h1 {
    font-weight: 600;
    letter-spacing: -.035em;
}
body .admin-login-page .admin-login-card h2 {
    font-size: var(--tru-section);
    font-weight: 630;
}
body .admin-login-page .admin-field label {
    font-size: .875rem;
    font-weight: 590;
}
body .admin-login-page .admin-input input { font-size: 1rem; }
body .admin-login-page .admin-input input:focus {
    border-color: var(--tru-blue);
    box-shadow: 0 0 0 .2rem rgba(23, 81, 237, .13);
}
body .admin-login-page .login-btn {
    background: var(--tru-blue-ink);
    font-size: .9375rem;
    font-weight: 610;
}
body .admin-login-page .login-btn:hover { background: #0e298e; }
body :is(.btn, .wallet-action, .gc-button, .desktop-nav-link, .mobile-nav-item):focus-visible {
    outline: 3px solid var(--tru-blue);
    outline-offset: 2px;
}

/* Dashboard cards remain gold, with colour confined to useful controls. */
body .fashion-action-copy strong { font-size: 1rem; }
body .fashion-action-copy small { font-size: .8125rem; line-height: 1.4; }
body .fashion-activity h2 { font-size: var(--tru-section); font-weight: 630; }
body .fashion-activity-body p { font-size: .9375rem; }
body .fashion-sync { font-size: .75rem; }

/* Price Check carries the blue accent from the dashboard tile. */
body .price-page .scan-button {
    color: #fff;
    background: linear-gradient(135deg, #245df1, #1234b6) !important;
    box-shadow: 0 12px 26px rgba(18, 52, 182, .18) !important;
}
body .price-page .price-submit {
    color: #fff;
    background: var(--tru-blue-ink) !important;
}
body .price-page .price-submit:hover { background: #0e298e !important; }
body .price-page .price-back:is(:hover, :focus-visible),
body .price-page .product-result .your-price,
body .price-page .offer-panel i {
    color: var(--tru-blue-ink) !important;
}
body .price-page .barcode-input:focus {
    border-color: var(--tru-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(23, 81, 237, .13) !important;
}
body .price-page .manual-label { font-size: .875rem; }

/* Activity uses blue for navigation, coral for the small directional cue. */
body .activity-page .activity-label { color: var(--tru-blue-ink) !important; }
body .activity-page .activity-refresh,
body .activity-page .activity-pagination a {
    color: var(--tru-blue-ink) !important;
    border-color: #dbe3ff;
}
body .activity-page :is(.purchase-store i, .purchase-details-unavailable i,
                         .activity-empty > i) {
    color: var(--tru-blue-ink) !important;
}
body .activity-page :is(.purchase-store i, .activity-empty > i) {
    background: var(--tru-blue-wash) !important;
}
body .activity-page .activity-filter select:focus {
    border-color: var(--tru-blue) !important;
    box-shadow: 0 0 0 3px rgba(23, 81, 237, .13) !important;
}
body .activity-page .purchase-store strong,
body .activity-page .purchase-item-description strong {
    font-size: .9375rem;
    font-weight: 620;
}
body .activity-page .purchase-reference,
body .activity-page .purchase-item-description span,
body .activity-page .purchase-item-calculation span {
    font-size: .75rem;
}
body .activity-page .purchase-total > strong { font-size: 1.125rem; font-weight: 650; }

/* Wallet controls can be colourful without recolouring either card face. */
body .wallet-page { color: var(--tru-text); }
body .wallet-page :is(.wallet-eyebrow, .wallet-kicker) { color: var(--tru-blue-ink); }
body .wallet-page :is(.wallet-count, .wallet-card-type, .wallet-collection-count) {
    color: var(--tru-blue-ink);
    background: var(--tru-blue-wash);
    font-size: .75rem;
    font-weight: 600;
}
body .wallet-page .wallet-action-primary {
    color: #fff;
    background: var(--tru-coral-ink);
}
body .wallet-page .wallet-action-primary:hover { color: #fff; background: #76151c; }
body .wallet-page .wallet-action-outline {
    color: var(--tru-coral-ink);
    border-color: #f2bfc3;
    background: #fff;
}
body .wallet-page .wallet-action-outline:hover { background: var(--tru-coral-wash); }
body .wallet-page .wallet-picker-text strong { font-size: .9375rem; font-weight: 620; }
body .wallet-page .wallet-picker-text small { font-size: .8125rem; }
body .wallet-page :is(.wallet-empty p, .wallet-empty-stack,
                       .wallet-balance-note, .wallet-alert) { font-size: .875rem; }
body .wallet-page .wallet-asset-gift .wallet-picker-icon {
    color: var(--tru-coral-ink);
    background: var(--tru-coral-wash);
}
body .wallet-page .wallet-transfer-action {
    color: var(--tru-coral-ink);
    border-color: #f2bfc3;
}

/* Gift card artwork and the gift card face are deliberately untouched. */
body .gc-page { color: var(--tru-text); }
body .gc-page .gc-back { color: var(--tru-blue-ink); }
body .gc-page .gc-eyebrow { color: var(--tru-coral-ink); }
body .gc-page .gc-heading h1 span { color: var(--tru-coral-ink); }
body .gc-page .gc-button-primary {
    color: #fff;
    background: var(--tru-coral-ink);
    box-shadow: 0 8px 18px rgba(155, 29, 35, .15);
}
body .gc-page .gc-button-primary:hover { color: #fff; background: #76151c; }
body .gc-page .gc-button-outline,
body .gc-page .gc-transfer-change { color: var(--tru-coral-ink); }
body .gc-page .gc-button-outline { border-color: #efc9cb; background: #fff; }
body .gc-page .gc-button-outline:hover { background: var(--tru-coral-wash); }
body .gc-page :is(.gc-empty-icon, .gc-form-icon, .gc-transfer-icon) {
    color: var(--tru-coral-ink);
    background: var(--tru-coral-wash);
}
body .gc-page .gc-input-wrap:focus-within {
    border-color: var(--tru-coral-ink);
    box-shadow: 0 0 0 3px rgba(242, 84, 94, .13);
}
body .gc-page .gc-form-card :is(h2, .gc-label) { color: var(--tru-text); }
body .gc-page :is(.gc-help, .gc-footnote, .gc-meta, .gc-transfer-note) {
    font-size: .875rem;
}

/* Account and admin pages share the same weight and sizing. */
body .account-shell .account-header h1 { font-weight: 650; }
body .account-shell .details-card h2 { font-weight: 630 !important; }
body .account-shell .details-card h2 i { color: var(--tru-blue-ink); }
body .account-shell .detail-label { font-size: .75rem; }
body .account-shell .detail-value { font-size: .9375rem; font-weight: 560; }
body .account-shell .points-value { font-weight: 630; }
body .account-shell .btn-outline-primary,
body .edit-profile-shell a:not(.btn) { color: var(--tru-blue-ink); }
body .account-shell .btn-outline-primary { border-color: #b9c9ff; }
body .account-shell .btn-outline-primary:hover { color: #fff; background: var(--tru-blue-ink); }
body .edit-profile-shell .form-section-title { font-weight: 630; }
body .edit-profile-shell .form-section-title i { color: var(--tru-blue-ink); }
body .admin-body .settings-card-title { font-size: 1.1875rem; }
body .admin-body .settings-card .form-label { font-size: .875rem; }
body .admin-body .settings-icon,
body .admin-body .admin-user-icon {
    color: var(--tru-blue-ink);
    background: var(--tru-blue-wash);
}
body .admin-body .settings-save-button { background: var(--tru-blue-ink); }
body .admin-body .settings-save-button:hover { background: #0e298e; }
body .admin-body .admin-nav-link.active { background: rgba(255,255,255,.15); }
body .admin-body .admin-page-label { font-size: .75rem; font-weight: 600; }

@media (max-width: 520px) {
    body .fashion-action-copy strong { font-size: .875rem; }
    body .fashion-action-copy small { font-size: .75rem; }
    body .fashion-activity-body p { font-size: .875rem; }
    body .wallet-page .wallet-header p { font-size: .9375rem; }
}
