/* ================================================================================================
 *  "Sample input" affordance on legacy calculator pages. Loaded once by
 *  includes/create-sample-button.php.
 *
 *  DESIGN INTENT (owner, 2026-07-29): this must NOT compete for attention with the calculator
 *  itself -- the student's eye belongs on the input they are being asked to fill. So it reads as
 *  a small green "go" hint sitting just under the field's instruction, not as a call to action.
 *  Deliberately smaller and quieter than the Solve button. If it ever starts drawing the eye
 *  first, it is wrong.
 *
 *  Kept in its own file so the button can be restyled without touching any calculator page.
 * ============================================================================================= */

.mc-sample-wrap {
    margin: 2px 0 8px 0;
    line-height: 1;
}

.mc-sample-btn {
    background: #eefaf0;
    border: 1px solid #86ce9b;
    color: #1d7a3d;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 0.72em;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.1px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, border-color 0.15s ease;

    /* The legacy theme uppercases buttons site-wide, which turned this into a shouty
       "SAMPLE INPUT" / "ANOTHER SAMPLE". This is a quiet hint, not a call to action, so the
       inherited transform and font are overridden explicitly rather than hoped away. */
    text-transform: none !important;
    font-family: inherit;
    letter-spacing: normal;
    box-shadow: none;
    text-shadow: none;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
}

.mc-sample-btn::before {
    /* the "green light" cue */
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ea44f;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mc-sample-btn:hover {
    background: #ddf3e2;
    border-color: #5fb87c;
}

.mc-sample-btn:active {
    background: #cbecd4;
}

.mc-sample-status {
    margin-left: 7px;
    font-size: 0.72em;
    color: #777;
}

/* Dark mode: the site activates it with data-theme="dark" on the root element.
   See .claude/commands/dark-theme-guide.md */
:root[data-theme="dark"] .mc-sample-btn {
    background: #14301f;
    border-color: #2f6b45;
    color: #7fd39b;
}

:root[data-theme="dark"] .mc-sample-btn:hover {
    background: #1a3f29;
}

:root[data-theme="dark"] .mc-sample-status {
    color: #9a9a9a;
}
