/* Profile Theme Contract v2 — semantic action controls.
   Applies only inside public profile pages and safely falls back for legacy profiles. */

#content.profilepage :is(button:not(.linkbtn):not(.dots-btn):not(.ico), input[type="button"], input[type="submit"], input[type="reset"], .btn, .bigbtn, .pact, .loadmore, .pb-pollbtn, .pl-btn) {
  background-color: var(--g-button-surface, #fff4df);
  color: var(--g-button-text, #5a2b00);
  border-color: var(--g-button-border, #cc7826);
}

#content.profilepage :is(button:not(.linkbtn):not(.dots-btn):not(.ico), input[type="button"], input[type="submit"], input[type="reset"], .btn, .bigbtn, .pact, .loadmore, .pb-pollbtn, .pl-btn):is(:hover, [aria-expanded="true"]) {
  background-color: var(--g-button-hover, #ffdfbd);
  color: var(--g-button-text, #5a2b00);
  border-color: var(--g-button-border, #cc7826);
}

#content.profilepage :is(button:not(.linkbtn):not(.dots-btn):not(.ico), input[type="button"], input[type="submit"], input[type="reset"], .btn, .bigbtn, .pact, .loadmore, .pb-pollbtn, .pl-btn):is(:active, .on, .active, .liked, .reposted, .saved, [aria-pressed="true"]) {
  background-color: var(--g-button-active, #ffcc99);
  color: var(--g-button-activeText, #5a2b00);
  border-color: var(--g-button-border, #cc7826);
}

#content.profilepage :is(button:not(.linkbtn):not(.dots-btn):not(.ico), input[type="button"], input[type="submit"], input[type="reset"], .btn, .bigbtn, .pact, .loadmore, .pb-pollbtn, .pl-btn):is(:disabled, .disabled, [aria-disabled="true"]) {
  background-color: var(--g-button-disabled, #d9d9d9);
  color: var(--g-button-disabledText, #44556a);
  border-color: var(--g-button-border, #cc7826);
  opacity: 1;
}

#content.profilepage :is(button:not(.linkbtn):not(.dots-btn):not(.ico), input[type="button"], input[type="submit"], input[type="reset"], .btn, .bigbtn, .pact, .loadmore, .pb-pollbtn, .pl-btn):focus-visible {
  outline: 2px solid var(--g-focus-ring, #005fcc);
  outline-offset: 2px;
}

#content.profilepage :is(.linkbtn, .clike-btn, .post-actions .ico, .dots-btn) {
  /* Contract v2 emits camelCase token names: --g-post-actionText. The
     kebab-cased --g-post-action-text was never defined by anything, so these
     controls fell through to the link colour instead of the chosen theme. */
  color: var(--g-post-actionText, var(--g-link-text, #003399));
}

#content.profilepage :is(.linkbtn, .clike-btn, .post-actions .ico, .dots-btn):is(:hover, [aria-expanded="true"]) {
  color: var(--g-link-hover, #7a2e00);
}

#content.profilepage :is(.linkbtn, .clike-btn, .post-actions .ico, .dots-btn):focus-visible {
  outline: 2px solid var(--g-focus-ring, #005fcc);
  outline-offset: 2px;
}
