/* Buttons: one behaviour for the whole site.

   GUIDELINES
   1. The text and icon colour never changes. Not on hover, not when pressed, not when focused.
   2. Hover: the background gets one step darker (10 % ink on top of whatever colour the button has).
   3. Pressed: the background gets two steps darker (18 % ink). Nothing moves or grows.
   4. Keyboard focus: a 3px ring outside the button. The button itself looks as it does at rest.
   5. Disabled: 45 % opacity, no hover and no pointer.
   6. Text buttons (underlined words with no background) get a thicker underline on hover instead of a darker background.
   7. Picture cards (book covers, example books) are not buttons in this sense. They may lift or tilt, but their text keeps its colour too.

   The darker step is an inset shadow. It lies above the background and below the text, so it works on
   any colour, including outlined buttons, and cannot touch the text colour.
   buttons.js marks each control the first time it is hovered, pressed or focused:
   data-btn="fill" (everything with a surface, plus tabs, rows and icons), "text" or "line" (underlined words,
   by text-decoration or by a bottom border) or "none" (picture cards and backdrops). */
[data-btn="fill"],[data-btn="text"],[data-btn="line"]{-webkit-tap-highlight-color:transparent}
[data-btn="fill"]{transition:box-shadow .16s ease}

@media(hover:hover){
  [data-btn="fill"]:hover:not(:disabled):not([aria-disabled="true"]){box-shadow:inset 0 0 0 999px #14261f1a!important}
  [data-btn="text"]:hover:not(:disabled):not([aria-disabled="true"]){text-decoration-thickness:2px!important}
  [data-btn="line"]:hover:not(:disabled):not([aria-disabled="true"]){box-shadow:0 1px 0 currentColor!important}
}
[data-btn="fill"]:active:not(:disabled):not([aria-disabled="true"]){box-shadow:inset 0 0 0 999px #14261f2e!important}
[data-btn="text"]:active:not(:disabled):not([aria-disabled="true"]){text-decoration-thickness:3px!important}
[data-btn="line"]:active:not(:disabled):not([aria-disabled="true"]){box-shadow:0 2px 0 currentColor!important}

:is([data-btn="fill"],[data-btn="text"],[data-btn="line"]):focus-visible{outline:3px solid #a95135!important;outline-offset:3px!important}
:is([data-btn="fill"],[data-btn="text"],[data-btn="line"]):is(:disabled,[aria-disabled="true"]){opacity:.45;cursor:not-allowed}

/* Rows in the slide-in menu are large tap areas, so only the arrow circle takes the darker step. */
@media(hover:hover){.saga-menu__links a:hover svg{background:#14261f24}}
.saga-menu__links a:active svg{background:#14261f38}
