/* StandWatch tool controls: one standard for the comparison tools (LB 2026-10-30, looking at the FEHB page on his desktop:
   "different types of text ... some buttons are bigger than others, boxes are different sized ... buttons don't move/activate
   when moving over them"). Loaded last by the FEHB, PSHB, FEDVIP, and GLP-1 pages (scripts/fed_polish.py owns the link and its
   ?v=). The rules: a section title is Saira 18px in sentence case; a field label is Public Sans 12px semibold above its box,
   never mono caps; every box and button is 44px tall with the same radius, border, and text; everything a person can press
   answers on hover and on press. Colors come from --ui-on, so the PSHB page can set its own. */
.tool{--ui-line:#CBD4DD;--ui-label:#3E4C5C;--ui-hover:#F3F6F9;--ui-press:#E7ECF1;--ui-on:#0E1B2C;--ui-tint:#E9EEF4;--ui-r:10px;--ui-h:44px}

/* the bar shows only with two plans picked: its display:flex was beating the hidden attribute, so it sat on the page empty */
.fbar[hidden]{display:none!important}

/* sections */
.st-sec+.st-sec{margin-top:18px;padding-top:16px;border-top:1px solid var(--steel2,#DDE3E9)}
.st-h{font-family:'Saira Condensed',Arial,sans-serif;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0;text-transform:none;color:var(--ink,#0E1B2C);margin:0 0 10px}
.st-note{font-family:'Public Sans',Arial,sans-serif;font-size:12px;line-height:1.5;color:var(--mute,#5C6B7C);margin:8px 0 0}
.st-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.st-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.st-tog{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.st-lbl{font-family:'Public Sans',Arial,sans-serif;font-size:12px;font-weight:600;color:var(--ui-label);margin-left:6px}

/* field labels */
.tool .st-f,.tool .row label,.tool .fown-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-family:'Public Sans',Arial,sans-serif;font-size:12px;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none;color:var(--ui-label)}

/* boxes */
.tool select,.tool .fctl select,.tool .row select,
.tool input[type=search],.tool input[type=text],.tool input[type=number],.tool input:not([type]),.tool .fown-grid input{
  -webkit-appearance:none;appearance:none;box-sizing:border-box;width:100%;min-width:0;height:var(--ui-h);min-height:var(--ui-h);margin:0;padding:0 12px;
  font-family:'Public Sans',Arial,sans-serif;font-size:15px;font-weight:400;line-height:1.2;letter-spacing:0;text-transform:none;color:var(--ink,#0E1B2C);
  background-color:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-r);transition:border-color .12s,box-shadow .12s,background-color .12s}
.tool select,.tool .fctl select,.tool .row select{padding-right:32px;cursor:pointer;text-overflow:ellipsis;
  background-image:linear-gradient(45deg,transparent 50%,#5C6B7C 50%),linear-gradient(135deg,#5C6B7C 50%,transparent 50%);
  background-position:calc(100% - 17px) 19px,calc(100% - 12px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.tool .fctl select{width:auto;min-width:170px}
.tool select:hover:not(:disabled),.tool input:not([type=checkbox]):hover:not(:disabled){border-color:var(--ui-on);box-shadow:0 1px 4px rgba(14,27,44,.14)}
.tool select:disabled,.tool input:disabled{opacity:.6;background-color:var(--ui-hover);cursor:not-allowed}
.tool input::placeholder{color:#7A8796;opacity:1}

/* buttons: the profile row, the toggles, and every action */
.tool .fprof{display:flex;flex-wrap:wrap;gap:8px}
.tool .fprof button,.st-btn,.tool .fctl .fx,.st-tog .fx,.tool .st-chk,.tool .fctl>label:has(>input[type=checkbox]),.tool .fnets label{
  box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;height:var(--ui-h);min-height:var(--ui-h);margin:0;padding:0 14px;
  font-family:'Public Sans',Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.1;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;color:var(--ink,#0E1B2C);
  background:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-r);cursor:pointer;
  transition:transform .12s,box-shadow .12s,background-color .12s,border-color .12s,color .12s}
.tool .fprof button:hover,.st-btn:hover,.tool .fctl .fx:hover,.st-tog .fx:hover,.tool .st-chk:hover,.tool .fctl>label:has(>input[type=checkbox]):hover,.tool .fnets label:hover{
  background:var(--ui-hover);border-color:var(--ui-on);box-shadow:0 2px 6px rgba(14,27,44,.16);transform:translateY(-1px)}
.tool .fprof button:active,.st-btn:active,.tool .fctl .fx:active,.st-tog .fx:active,.tool .st-chk:active,.tool .fctl>label:has(>input[type=checkbox]):active,.tool .fnets label:active{
  background:var(--ui-press);box-shadow:none;transform:translateY(0)}
.tool .fprof button.on,.tool .fprof button.on:hover{background:var(--ui-on);border-color:var(--ui-on);color:#fff}
.tool .st-chk:has(input:checked),.tool .fctl>label:has(>input[type=checkbox]:checked),.tool .fnets label:has(input:checked){background:var(--ui-tint);border-color:var(--ui-on)}
.tool .fnets{display:contents}
.tool .fnets .sm{font-family:'Public Sans',Arial,sans-serif;font-size:12px;font-weight:600;color:var(--ui-label);margin-left:6px}
.tool .fctl{gap:8px;align-items:center}
.tool input[type=checkbox]{accent-color:var(--ui-on)}

/* the plan list */
.tool .flist thead th{font-family:'Public Sans',Arial,sans-serif;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ui-label)}
.tool .flist tbody tr{transition:background-color .12s}
.tool .flist tbody tr:hover td{background:var(--ui-hover)}
.tool .flist tbody tr.on:hover td{background:#FBF6E6}
.tool .flist input[type=checkbox]{cursor:pointer}
.fcmp thead .fx{transition:color .12s}.fcmp thead .fx:hover{color:var(--red,#B3261E)}
.tool .gmore{transition:color .12s}.tool .gmore:hover{color:var(--ui-on)}

/* the numbers that lead the eye away from the controls: cards, chips, and the gold action */
.tool .go,.fbar button,.sw-ns .go{transition:transform .12s,box-shadow .12s,filter .12s}
.tool .go:hover,.fbar button:hover{filter:brightness(1.07);box-shadow:0 3px 8px rgba(14,27,44,.25);transform:translateY(-1px)}
.tool .go:active,.fbar button:active{filter:brightness(.97);box-shadow:none;transform:translateY(0)}
.fits-grid a,.fits-ask a{transition:transform .12s,box-shadow .12s,border-color .12s}
.fits-grid a:hover,.fits-ask a:hover{border-color:var(--ink,#0E1B2C);box-shadow:0 2px 6px rgba(14,27,44,.14);transform:translateY(-1px)}

@media (max-width:760px){.st-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool .fctl select{width:100%}}
@media (max-width:640px){.tool .st-chk{white-space:normal;height:auto;padding:8px 12px;justify-content:flex-start;text-align:left;line-height:1.3}}
@media (max-width:480px){.st-grid,.st-grid.two{grid-template-columns:minmax(0,1fr)}.tool .fprof button{flex:1 1 calc(50% - 4px);white-space:normal}}
/* 16px in a box on a phone: iOS zooms the whole page on anything smaller */
@media (max-width:640px){.tool select,.tool .fctl select,.tool .row select,.tool input[type=search],.tool input[type=text],.tool input[type=number],.tool input:not([type]),.tool .fown-grid input{font-size:16px}}
@media (prefers-reduced-motion:reduce){.tool *,.fits-grid a,.fits-ask a,.fbar button{transition:none;transform:none!important}}
