/* one approved style for the main read and check buttons */
a.farfaraway-main-button {
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 86px !important;
    height: 22px !important;
    margin-top: 34px !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
    font-family: courier_newregular !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 4px !important;
    line-height: 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
}

a.farfaraway-main-button:hover,
a.farfaraway-main-button:focus,
a.farfaraway-main-button:active {
    border-color: #ccc !important;
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Match the approved raised white homepage READ button in every state. */
a.farfaraway-main-button,
a.farfaraway-main-button:hover,
a.farfaraway-main-button:focus,
a.farfaraway-main-button:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: #000 !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .16) !important;
    line-height: 1 !important;
    opacity: 1 !important;
    padding: 4px 0 0 !important;
}

/* Shared text-action design. No display, margin, opacity, pointer-events or
   disabled-state overrides: existing layout and behaviour remain in charge.
   Add .ffa-action-button to new text actions; never to icons/arrows/tabs. */
html body :is(
    a.farfaraway-main-button,
    .ffa-action-button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    #check_story,
    #refersh_story,
    #hub-edit-details,
    #ffa-t-all,
    #change_pass,
    #u_pass,
    #match-existing-login .ffa-account-button,
    #profile-inner .pAction span a,
    #profile-inner .pAction span:nth-child(2) a,
    #contri-question-steps li > span > a,
    a.instabutton2020
) {
    box-sizing: border-box !important;
    appearance: none !important;
    border: 1px solid #000 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .16) !important;
    text-shadow: none !important;
    font-family: courier_newregular, "Courier New", monospace !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    line-height: 12px !important;
    text-indent: 4px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}
/* Natural width for action labels; leave Read/Check dimensions untouched. */
html body :is(
    a.farfaraway-main-button,
    .ffa-action-button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    #check_story,
    #refersh_story,
    #hub-edit-details,
    #ffa-t-all,
    #change_pass,
    #u_pass,
    #match-existing-login .ffa-account-button,
    #profile-inner .pAction span a,
    #profile-inner .pAction span:nth-child(2) a,
    #contri-question-steps li > span > a,
    a.instabutton2020
):not(a.farfaraway-main-button) {
    width: auto !important;
    min-width: 86px !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 22px !important;
    padding: 4px 12px 0 !important;
}
/* Inline links need a button box; inline display:none and hidden parents still win. */
html body #contri-question-steps li > span > a:not([hidden]) {
    display: inline-block;
    margin: 0 !important;
}
html body #contri-question-steps li > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
/* Preserve the approved Read/Check width and optical vertical alignment. */
html body a.farfaraway-main-button {
    width: 86px !important;
    height: 22px !important;
    padding: 4px 0 0 !important;
}
html body :is(
    a.farfaraway-main-button,
    .ffa-action-button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    #check_story,
    #refersh_story,
    #hub-edit-details,
    #ffa-t-all,
    #change_pass,
    #u_pass,
    #match-existing-login .ffa-account-button,
    #profile-inner .pAction span a,
    #profile-inner .pAction span:nth-child(2) a,
    #contri-question-steps li > span > a,
    a.instabutton2020
):focus-visible {
    outline: 2px solid #000 !important;
    outline-offset: 4px !important;
}
