/* A rounded face catches light at the top; a thin lower lip gives it depth. */
:root {
  --bakkwo-logo-fill: linear-gradient(145deg, #5489fa, #295dd6);
  --gel-top: #c9ddff; --gel-mid: #adc9f8; --gel-low: #9ab9ee;
  --gel-edge: #819fd2; --gel-ink: #203c6a;
}
.home-header .home-brand .home-logo { background-image: var(--bakkwo-logo-fill); }
.home-filters button[aria-pressed="true"] {
  --gel-top: #e0e9fa; --gel-mid: #c8d7ee; --gel-low: #b7cbe6;
  --gel-edge: #9cafcc; --gel-ink: #324764;
}
.home-filters button[aria-pressed="true"] span { color: inherit; }
#office-download {
  --gel-top: #d8eee0; --gel-mid: #b9dbc6; --gel-low: #a6cdb7;
  --gel-edge: #86af98; --gel-ink: #204936;
}
body:is(.home-page,.site-page) :is(
  [data-tool-finder], .home-submit, .guide-search button, .home-empty button,
  .primary, .office-primary, #office-download, .office-file-button, .id-file-button,
  .guide-tool-links a, .guide-tabs a[aria-current="page"],
  .home-filters button[aria-pressed="true"], .find-tabs button[aria-pressed="true"]
):not(:disabled,[aria-disabled="true"],:has(input:disabled)) {
  color: var(--gel-ink); border-color: var(--gel-edge); background-color: var(--gel-mid);
  background-image:
    radial-gradient(ellipse at 30% 0%, rgb(255 255 255 / .38), transparent 68%),
    linear-gradient(168deg, var(--gel-top), var(--gel-mid) 52%, var(--gel-low));
  --gel-face: inset 0 1px 1px rgb(255 255 255 / .86), inset 1px 0 3px rgb(255 255 255 / .34), inset 0 -2px 3px rgb(53 78 118 / .13);
  --gel-lip: 0 2px 0 var(--gel-edge);
  --gel-shadow: 0 4px 7px rgb(43 68 111 / .14);
  box-shadow: var(--button-shadow, var(--gel-face), var(--gel-lip), var(--gel-shadow));
  text-shadow: none; transition: transform .14s ease, box-shadow .18s ease;

  /* Light the edges of the logo gradient without changing the button footprint. */
  &:where([data-tool-finder], .home-submit, .guide-search button) {
    --gel-ink: #fff;
    --logo-button-bevel: inset 0 1px 2px rgb(255 255 255 / .42),
      inset 0 -2px 3px rgb(23 53 123 / .19);
    --button-shadow: var(--logo-button-bevel), 0 2px 3px -1px rgb(28 64 139 / .24);
    --button-hover-shadow: var(--logo-button-bevel), 0 3px 5px -1px rgb(28 64 139 / .26);
    --gel-pressed-shadow: inset 0 1px 3px rgb(25 61 140 / .22);
    --gel-travel: 1px;
    background: #295dd6 var(--bakkwo-logo-fill) border-box;
    border: 1px solid transparent;
    border-radius: 13px;
    text-shadow: 0 1px 1px rgb(25 57 135 / .30);
    position: relative;
    box-sizing: border-box;
    line-height: 1.4;
    &::after {
      content: "";
      position: absolute;
      inset-inline: 0;
      top: 50%;
      height: max(100%, 44px);
      transform: translateY(-50%);
    }
  }
  &:is(.home-submit, .guide-search button) {
    min-height: 42px;
    min-width: 66px;
    padding: 4px 12px;
    @media (max-width:560px) {
      min-height: 38px;
      min-width: 56px;
      padding-inline: 10px;
      border-radius: 12px;
    }
  }
  &[data-tool-finder] {
    min-height: 40px;
    padding: 6px 15px;
    gap: 7px;
    @media (max-width:710px) {
      position: absolute;
      top: 11px;
      min-height: 30px;
      padding: 3px 10px;
      gap: 6px;
      border-radius: 10px;
    }
  }

  @media (hover:hover) {
    &:hover { box-shadow: var(--button-hover-shadow, var(--gel-face), var(--gel-lip), 0 5px 9px rgb(43 68 111 / .2)); }
  }
  &:active { box-shadow: var(--gel-pressed-shadow, inset 0 1px 3px rgb(47 73 117 / .17), 0 1px 1px rgb(43 68 111 / .1)); transform: translateY(var(--gel-travel, 2px)); }
  &:focus-visible, &.id-file-button:focus-within { outline: 3px solid #356ac8; outline-offset: 3px; }
  @media (prefers-reduced-motion:reduce) {
    &, &:hover, &:active { transition: none; transform: none; }
  }
  @media (forced-colors:active) {
    &, &:hover, &:active { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; box-shadow: none; text-shadow: none; }
    &:focus-visible, &.id-file-button:focus-within { outline-color: Highlight; }
  }
}