/* Shared, accessible button/control design across portfolio pages and embedded demos.
   Visual variants (primary, secondary, destructive, tabs) keep their semantic color;
   geometry, type, focus, feedback and disabled behavior stay consistent. */
:root{--ui-control-radius:999px;--ui-focus:#555;--ui-control-transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
html[data-theme="dark"]{--ui-focus:#dedede}
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn,
.button,
.top-action,
.top-link,
.portal-button,
.portal-nav-button,
.portal-tab,
.auth-primary,
.auth-social,
.google,
.icon-btn,
.modal-close,
.account-opt,
.user-chip,
.ud-item,
.fc-geoloc,
.search-clear,
.clear-filters,
.chip,
.service-start{
 box-sizing:border-box;
 border-radius:var(--ui-control-radius)!important;
 font-family:inherit;
 font-weight:600;
 letter-spacing:normal;
 transition:var(--ui-control-transition);
}
button,input[type="button"],input[type="submit"],input[type="reset"],[role="button"]{cursor:pointer}
a.btn,a.button,a.top-action,a.top-link,a.portal-button,a.portal-nav-button,a.portal-tab,[role="button"]{text-decoration:none}
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.button:focus-visible,
.top-action:focus-visible,
.top-link:focus-visible,
.portal-button:focus-visible,
.portal-nav-button:focus-visible,
.portal-tab:focus-visible,
.auth-primary:focus-visible,
.auth-social:focus-visible,
.google:focus-visible,
.icon-btn:focus-visible,
.modal-close:focus-visible,
.account-opt:focus-visible,
.user-chip:focus-visible,
.ud-item:focus-visible,
.fc-geoloc:focus-visible,
.search-clear:focus-visible,
.clear-filters:focus-visible,
.chip:focus-visible,
.service-start:focus-visible{
 outline:2px solid var(--ui-focus)!important;
 outline-offset:3px!important;
}
button:hover:not(:disabled),
input[type="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled),
[role="button"]:hover,
.btn:hover,
.button:hover,
.top-action:hover,
.top-link:hover,
.portal-button:hover,
.portal-nav-button:hover,
.auth-primary:hover,
.auth-social:hover,
.google:hover,
.icon-btn:hover,
.modal-close:hover,
.account-opt:hover,
.user-chip:hover,
.ud-item:hover,
.fc-geoloc:hover,
.search-clear:hover,
.clear-filters:hover,
.chip:hover,
.service-start:hover{transform:translateY(-1px)}
button:active:not(:disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled),
.btn:active,
.button:active,
.top-action:active,
.top-link:active,
.portal-button:active,
.portal-nav-button:active,
.auth-primary:active,
.auth-social:active,
.google:active,
.icon-btn:active,
.modal-close:active,
.account-opt:active,
.user-chip:active,
.ud-item:active,
.fc-geoloc:active,
.search-clear:active,
.clear-filters:active,
.chip:active,
.service-start:active{transform:translateY(0) scale(.99)}
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled{cursor:not-allowed;opacity:.55;transform:none}
.site-topbar .theme-toggle{border-radius:999px!important}
.footer-col .footer-note{display:block;color:var(--slate-soft,var(--muted,#777));font-size:12px;line-height:1.8}
/* Shared-theme support for the two self-contained portfolio prototypes. */
body[data-site-app="playmatch"]{
 --navy:#0B1C39;--navy-2:#12294D;--charcoal:#1F2430;--slate:#5B6478;--slate-soft:#8891A3;--line:#E3E6EC;--line-strong:#CBD1DC;--gray-100:#F4F5F7;--bg:#F8F9FB;--white:#FFFFFF;--accent-soft:#EAF0FF;
}
html[data-theme="dark"] body[data-site-app="playmatch"]{
 --navy:#000000;--navy-2:#080808;--charcoal:#F5F5F5;--slate:#B3B3B3;--slate-soft:#8A8A8A;--line:#262626;--line-strong:#363636;--gray-100:#111111;--bg:#000000;--white:#080808;--accent-soft:#171717;
 background:#000!important;color:#F5F5F5!important;
}
html[data-theme="dark"] body[data-site-app="playmatch"] header.nav{background:rgba(0,0,0,.96)!important;border-color:#262626!important}
html[data-theme="dark"] body[data-site-app="playmatch"] .finder-card,
html[data-theme="dark"] body[data-site-app="playmatch"] .filters,
html[data-theme="dark"] body[data-site-app="playmatch"] .search-bar,
html[data-theme="dark"] body[data-site-app="playmatch"] .pcard,
html[data-theme="dark"] body[data-site-app="playmatch"] .skel,
html[data-theme="dark"] body[data-site-app="playmatch"] .modal,
html[data-theme="dark"] body[data-site-app="playmatch"] .modal-overlay .modal,
html[data-theme="dark"] body[data-site-app="playmatch"] .popcard,
html[data-theme="dark"] body[data-site-app="playmatch"] .rankings,
html[data-theme="dark"] body[data-site-app="playmatch"] .auth-panel{background:#080808!important;color:#F5F5F5!important;border-color:#262626!important}
body[data-site-app="playmate-finder"]{
 --bg:#f5f7fa;--surface:#ffffff;--surface-2:#f8fafc;--surface-3:#eef2f7;--line:#d9e1ec;--text:#111827;--muted:#5f6b7a;--muted-2:#8792a2;--accent:#123a6f;--accent-2:#1f5ea8;--blue:#2563eb;--orange:#b45309;--green:#047857;--red:#b42318;--on-accent:#ffffff;
}
html[data-theme="dark"] body[data-site-app="playmate-finder"]{
 --bg:#000000;--surface:#080808;--surface-2:#111111;--surface-3:#171717;--line:#292929;--text:#F5F5F5;--muted:#A3A3A3;--muted-2:#858585;--accent:#EEEEEE;--accent-2:#D4D4D4;--blue:#F5F5F5;--orange:#BDBDBD;--green:#D4D4D4;--red:#E0E0E0;--on-accent:#000000;
 background:#000!important;color:#F5F5F5!important;
}
html[data-theme="dark"] body[data-site-app="playmate-finder"] .sidebar,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .topbar,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .sidebar-card,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .card,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .panel,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .modal,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .auth-modal,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .table-wrap,
html[data-theme="dark"] body[data-site-app="playmate-finder"] .player-card{background:#080808!important;color:#F5F5F5!important;border-color:#292929!important}
@media(prefers-reduced-motion:reduce){
 button,.btn,.button,.top-action,.top-link,.portal-button,.portal-nav-button,.portal-tab,.auth-primary,.auth-social,.google,.icon-btn,.modal-close,.account-opt,.user-chip,.ud-item,.fc-geoloc,.search-clear,.clear-filters,.chip,.service-start{transition:none!important}
 button:hover:not(:disabled),.btn:hover,.button:hover,.top-action:hover,.top-link:hover,.portal-button:hover,.portal-nav-button:hover,.auth-primary:hover,.auth-social:hover,.google:hover,.icon-btn:hover,.modal-close:hover,.account-opt:hover,.user-chip:hover,.ud-item:hover,.fc-geoloc:hover,.search-clear:hover,.clear-filters:hover,.chip:hover,.service-start:hover{transform:none}
}

/* GREAT UNIFICATION — one site-wide type and control system.
   Keep semantic colour variants, but share the same font, weight, geometry and feedback. */
:root{
  --site-font-body:"DM Sans",Arial,sans-serif;
  --site-font-display:"Space Grotesk","DM Sans",Arial,sans-serif;
  --site-control-radius:999px;
  --site-control-height:42px;
  --site-control-weight:600;
}
body.portal-body{
  font-family:var(--site-font-body)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.portal-body :is(h1,h2,h3,h4,h5,h6,.portal-title,.portal-brand,.portal-header-brand){
  font-family:var(--site-font-display)!important;
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn,
.button,
.top-action,
.top-link,
.portal-button,
.portal-nav-button,
.portal-tab,
.auth-primary,
.auth-social,
.google,
.icon-btn,
.modal-close,
.account-opt,
.user-chip,
.ud-item,
.fc-geoloc,
.search-clear,
.clear-filters,
.chip,
.service-start{
  font-family:var(--site-font-body)!important;
  font-weight:var(--site-control-weight)!important;
  letter-spacing:-.012em!important;
  -webkit-font-smoothing:antialiased;
}
.btn,
.button,
.top-action,
.top-link,
.portal-button,
.auth-primary,
.auth-social,
.google,
.service-start,
button[data-sign-out]:not(.site-topbar-signout),
button[data-site-topbar-signout]{
  box-sizing:border-box;
  min-height:var(--site-control-height);
  padding:0 18px;
  border-radius:var(--site-control-radius)!important;
  font-size:13px!important;
  line-height:1.15;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  vertical-align:middle;
}
.portal-nav-button{
  min-height:42px;
  font-size:13px!important;
  line-height:1.25;
}
html[data-theme="light"] body.portal-body button[data-sign-out]:not(.site-topbar-signout){
  background:#171717!important;
  color:#fff!important;
  border:1px solid #171717!important;
}
html[data-theme="dark"] body.portal-body button[data-sign-out]:not(.site-topbar-signout){
  background:#f1f2eb!important;
  color:#171717!important;
  border:1px solid #f1f2eb!important;
}
body.portal-body .site-topbar button[data-sign-out],
body.portal-body .site-topbar button[data-site-topbar-signout]{
  background:transparent!important;
  color:#fff!important;
  border:1px solid #555!important;
}
body.portal-body .site-topbar button[data-sign-out]:hover,
body.portal-body .site-topbar button[data-site-topbar-signout]:hover{
  background:#fff!important;
  color:#080808!important;
  border-color:#fff!important;
}
@media(max-width:650px){
  .btn,.button,.top-action,.top-link,.portal-button,
  .auth-primary,.auth-social,.google,.service-start,
  button[data-sign-out]:not(.site-topbar-signout),
  button[data-site-topbar-signout]{
    min-height:40px;
    padding:0 14px;
    font-size:12px!important;
  }
}

/* Button border unification — use the sign-in control as the site-wide reference.
   Keep primary/secondary fills semantic, while every action gets the same clean
   1px edge and shared border tokens. */
:root{
  --site-button-border:var(--portal-line,var(--line,#deded8));
  --site-button-border-strong:#090909;
  --site-button-border-on-dark:#555;
}
:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  .btn,
  .button,
  .top-action,
  .top-link,
  .portal-button,
  .portal-nav-button,
  .portal-tab,
  .auth-primary,
  .auth-social,
  .google,
  .icon-btn,
  .modal-close,
  .account-opt,
  .user-chip,
  .ud-item,
  .fc-geoloc,
  .search-clear,
  .clear-filters,
  .chip,
  .service-start,
  .chip-toggle
){
  border-width:1px!important;
  border-style:solid!important;
}
:where(.btn,.button,.top-action,.portal-button,.auth-primary,.service-start,.button-dark){
  border-color:var(--site-button-border-strong)!important;
}
:where(.btn.light,.auth-social,.google,.portal-tab,.chip,.chip-toggle,.top-link,.top-action.secondary){
  border-color:var(--site-button-border)!important;
}
:where(.site-topbar .theme-toggle,header.top .theme-toggle,header.top#hd .theme-toggle,
       body>header.top:not(#hd) .top-link,header.top#hd #auth-nav-section>.account-dashboard-link,
       header.top#hd #auth-nav-section>.account-signout){
  border-color:var(--site-button-border-on-dark)!important;
}
:where(.site-topbar .theme-toggle:hover,header.top .theme-toggle:hover,
       header.top#hd .theme-toggle:hover,body>header.top:not(#hd) .top-link:hover){
  border-color:#fff!important;
}


/* The Create an Account text action should remain borderless, including when focused. */
#auth-switch.auth-link,
#auth-switch.auth-link:focus,
#auth-switch.auth-link:focus-visible{
  appearance:none;
  border:0!important;
  outline:none!important;
  box-shadow:none!important;
  background:transparent!important;
}
#auth-switch.auth-link:focus-visible{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}


/* Auth account-switch controls: no permanent border or focus ring. The visual cue remains the underline. */
#auth-switch,
#auth-switch:hover,
#auth-switch:focus,
#auth-switch:focus-visible{
  appearance:none!important;
  border:0!important;
  border-width:0!important;
  outline:0!important;
  outline-width:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
/* The primary submit becomes an account-creation action only in sign-up mode. */
#auth-submit[data-auth-mode="signup"]:focus,
#auth-submit[data-auth-mode="signup"]:focus-visible{
  outline:0!important;
  outline-width:0!important;
  box-shadow:none!important;
}
