@font-face {
  font-family: "Gochi Hand";
  src: url('/assets/gochi-hand.woff2') format('woff2');
  font-display: swap;
}

.livery-page-note {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin-block: .45rem .75rem;
}

.livery-page-note > span {
  display: block;
  max-width: 18ch;
  padding: .38em .64em .3em;
  border: 1px solid var(--ln-line, #e2dfd8);
  border-radius: .48em;
  background: var(--ln-white, white);
  color: var(--ln-accent-dark, #73582b);
  font: 400 clamp(1.02rem, 2vw, 1.32rem)/1.08 "Gochi Hand", cursive;
  letter-spacing: normal;
  text-align: start;
  text-wrap: balance;
  rotate: -6deg;
}

.livery-page-note > span::after {
  display: block;
  width: 58%;
  height: .23em;
  margin: .09em 0 0 16%;
  border-top: 1.5px solid currentColor;
  border-radius: 50%;
  content: '';
}

@media (width >= 44rem) {
  .livery-note-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: clamp(1rem, 5vw, 4rem);
  }

  .livery-note-heading > :not(.livery-page-note) { grid-column: 1; }
  .livery-note-heading > .livery-page-note {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: .45rem .45rem .45rem 0;
  }
}

@media (width < 44rem) {
  .livery-page-note {
    justify-content: flex-start;
    margin-block: .5rem .85rem;
    margin-inline-start: .2rem;
  }

  .livery-page-note > span { rotate: -4deg; }
}
