/* xag-button.css: THE standard coloured button and the tab pills. Imported by xag-ui.css (every standalone page) and linked by the home page. */
/* ======================================================================================================================
   THE STANDARD COLOURED (ACTIVE / PRIMARY) BUTTON: the purple-to-blue gradient of "Upload your CV" and "Enter Your Class".
   Button hierarchy: gold = the one main action of a view (header Sign in stays gold), purple gradient = standard coloured action
   (the first button of a stack), glass outline = every other button in the stack. Not for headers (they keep their own styling).
   Every old blue/solid primary class below now draws this one button. White bold text (AA on every stop), soft glow, pill radius.
   ====================================================================================================================== */
:root {
  --xag-btn-radius: 28px;
  --xag-btn-grad: linear-gradient(135deg, #7c3aed, #304adc 55%, #1e3a8a);
  --xag-btn-base: #304adc;   /* the solid colour under the gradient (what contrast checks and no-gradient browsers see) */
  --xag-btn-grad-hover: linear-gradient(135deg, #6d28d9, #2a41c0 55%, #172f78);
  --xag-btn-glow: 0 4px 14px rgba(99, 102, 241, .45);
}
html body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, #cnRoot .cn-btn.main, .cn-dlg .cn-btn.main, .xtf-btn.p, .xta-btn.p, .xmk-btn.is-primary, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *) {
  background: var(--xag-btn-grad); background-color: #304adc; color: #fff; font-weight: 700; border: 1.5px solid transparent;
  border-radius: var(--xag-btn-radius); box-shadow: var(--xag-btn-glow); text-shadow: none;
}
html body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, #cnRoot .cn-btn.main, .cn-dlg .cn-btn.main, .xtf-btn.p, .xta-btn.p, .xmk-btn.is-primary, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *):hover {
  background: var(--xag-btn-grad-hover); box-shadow: 0 6px 18px rgba(99, 102, 241, .55); filter: none; color: #fff;
}
html body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, .xtf-btn.p, .xta-btn.p, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *):active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(99, 102, 241, .4); }
html body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, .xtf-btn.p, .xta-btn.p, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *):focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
html body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, .xtf-btn.p, .xta-btn.p, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *):disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
/* AUDIENCE BOXES / STEPS (2026-11-04, owner): every button of a step box (.xc-aid .xc-btn, both buttons of the schools box) and every step number circle (.xc-steps li::before, .xg-num) wears the standard purple gradient with white bold text; no glass outline here. */
html body :is(.xc-aid .xc-btn, .xc-aid .xc-act .btn):not(#xag) {
  background: var(--xag-btn-grad); background-color: #304adc; color: #fff; font-weight: 700; border: 1.5px solid transparent; border-radius: var(--xag-btn-radius); box-shadow: var(--xag-btn-glow); text-shadow: none;
}
html body :is(.xc-aid .xc-btn, .xc-aid .xc-act .btn):not(#xag):hover { background: var(--xag-btn-grad-hover); color: #fff; filter: none; box-shadow: 0 6px 18px rgba(99, 102, 241, .55); }
html body .xc-aid .xc-steps li:not(#xag)::before, html body .xg-step .xg-num:not(#xag) {
  background: var(--xag-btn-grad); background-color: #304adc; color: #fff; border: 0; box-shadow: var(--xag-btn-glow);
}
/* the other buttons of a stack: glass outline pill, light text */
html body .xag-side-actions > .btn-outline:not(#xag) {
  background: var(--xag-glass-fill, rgba(255,255,255,.12)); border: 1.5px solid rgba(125, 211, 252, .45); color: var(--xag-c-text, #eaf1ff); border-radius: var(--xag-btn-radius);
}
/* TAB PILLS, one shared rule for every tab pair / tablist on the site (.tabs .tab, .xt-tabs, role=tablist, .xat-tab): the selected tab = the standard purple gradient
   pill with white bold text; every other tab = a quiet outline pill with NO glow and the surface's own text colour (readable in Dark, Glassy, Light and Brite).
   The selected state is also marked for assistive technology (aria-selected). Specificity is raised so no theme glow can make an inactive tab look selected. */
html body :is(.tabs .tab, .xt-tabs button, [role="tablist"] > [role="tab"], .xat-tab):not(#xag):not(#xag2) {
  min-height: 44px; margin: 0; padding: 0 16px; border-radius: var(--xag-btn-radius); font-weight: 600; box-shadow: none; text-shadow: none; filter: none;
  background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .92;
}
html body :is(.tabs, .xt-tabs, [role="tablist"]):not(#xag) { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 0; }
html body :is(.tabs .tab.active, .tabs .tab[aria-selected="true"], .xt-tabs button[aria-selected="true"], [role="tablist"] > [role="tab"][aria-selected="true"], .xat-tab[aria-selected="true"]):not(#xag):not(#xag2) {
  background: var(--xag-btn-grad); color: #fff; border-color: transparent; font-weight: 700; box-shadow: var(--xag-btn-glow); opacity: 1; margin-bottom: 0;
}
html[data-theme] body :is(.modal-box, [role="dialog"]) :is(.tabs .tab, [role="tab"]):not(#xag):not(#xag2):not(#xag3) { background: transparent !important; color: inherit !important; border: 1.5px solid currentColor !important; box-shadow: none !important; }
html[data-theme] body :is(.modal-box, [role="dialog"]) :is(.tabs .tab.active, [role="tab"][aria-selected="true"]):not(#xag):not(#xag2):not(#xag3) { background: var(--xag-btn-grad) !important; color: #fff !important; border-color: transparent !important; box-shadow: var(--xag-btn-glow) !important; }
html body :is(.tabs .tab, [role="tab"]):focus-visible { outline: 3px solid #fdd835; outline-offset: 2px; }
/* themes never recolour the standard button's text (Brite and glass used to force a pale blue): white on the gradient in every theme */
html[data-theme] body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri, .sp-btn:not(.alt), .mk-btn.mk-pri, .xtf-btn.p, .xta-btn.p, .dh-btn-pri, .tt-btn-primary, .tl-btn):not(#xag, .site-header *), html[data-theme] body :is(.btn-turquoise, .btn-primary, .btn-blue, .btn-bright, .home-cta-blue, .xag-btn-pri):not(#xag, .site-header *) *, html[data-theme] body .xt-tabs button[aria-selected="true"]:not(#xag) { color: #fff !important; }
/* "I am a student / teacher / school" glass pills in the View-as card: readable in Brite too */
html[data-theme="brite"] body .xv-card-in .xv-b:not(#xag) { background: rgba(1, 36, 86, 1); color: #fff; border-color: rgba(125, 211, 252, .6); }

/* Brite recolours all text; the selected audience tab sits on the purple gradient and keeps its white text (contrast 4.3 -> 8+). */
html[data-theme="brite"][data-theme="brite"] body .xat-tab[aria-selected="true"] { color: #fff !important; }
