/* friend 상단 배너 — tools/add-header-banner.mjs 가 생성한다. 손으로 고치지 말 것.
 *
 * 그림은 SVG 타일 한 장을 가로로 반복한 것이다. 높이를 84px 로 고정했기 때문에
 * 화면이 넓든 좁든 배너는 늘 같은 크기의 가로 띠로 보이고, 폭이 바뀌면 반복 횟수만
 * 달라진다. (처음에는 cover 로 헤더를 덮게 했는데, 모바일에서 메뉴가 여러 줄로
 * 접혀 헤더가 높아지자 그림이 통째로 확대돼 얼룩처럼 보였다.)
 *
 * 위의 단색 그라데이션은 스크림이다: 그림을 28% 세기로 눌러
 * 메뉴 글씨 대비를 지킨다. 이 세기는 고른 값이 아니라 계산한 값이다 — 이 사이트
 * 헤더에서 실측한 글자색들이 기준(4.5:1)을 유지하는 한에서 가장 진한 쪽을
 * 도구가 찾았다. 적용 후 최악 대비 13.0:1.
 *
 * 이 파일은 사이트 자기 스타일시트보다 뒤에 와야 한다. background 단축 속성이
 * background-image 를 none 으로 되돌리기 때문이다.
 */
header.fixed {
  background-image:
    linear-gradient(0deg, rgba(247, 250, 248, 0.72) 0%, rgba(247, 250, 248, 0.72) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 84'%3E%3Crect width='1600' height='84' fill='%23fdeff2'/%3E%3Crect x='20' y='12' width='100' height='42' rx='18' fill='%23f08ea4'/%3E%3Cpath d='M42 54 L42 72 L66 54 Z' fill='%23f08ea4'/%3E%3Crect x='180' y='32' width='100' height='42' rx='18' fill='%23f8c9d3'/%3E%3Cpath d='M258 74 L258 92 L234 74 Z' fill='%23f8c9d3'/%3E%3Crect x='340' y='12' width='100' height='42' rx='18' fill='%23f08ea4'/%3E%3Cpath d='M362 54 L362 72 L386 54 Z' fill='%23f08ea4'/%3E%3Crect x='500' y='32' width='100' height='42' rx='18' fill='%23f8c9d3'/%3E%3Cpath d='M578 74 L578 92 L554 74 Z' fill='%23f8c9d3'/%3E%3Crect x='660' y='12' width='100' height='42' rx='18' fill='%23f08ea4'/%3E%3Cpath d='M682 54 L682 72 L706 54 Z' fill='%23f08ea4'/%3E%3Crect x='820' y='32' width='100' height='42' rx='18' fill='%23f8c9d3'/%3E%3Cpath d='M898 74 L898 92 L874 74 Z' fill='%23f8c9d3'/%3E%3Crect x='980' y='12' width='100' height='42' rx='18' fill='%23f08ea4'/%3E%3Cpath d='M1002 54 L1002 72 L1026 54 Z' fill='%23f08ea4'/%3E%3Crect x='1140' y='32' width='100' height='42' rx='18' fill='%23f8c9d3'/%3E%3Cpath d='M1218 74 L1218 92 L1194 74 Z' fill='%23f8c9d3'/%3E%3Crect x='1300' y='12' width='100' height='42' rx='18' fill='%23f08ea4'/%3E%3Cpath d='M1322 54 L1322 72 L1346 54 Z' fill='%23f08ea4'/%3E%3Crect x='1460' y='32' width='100' height='42' rx='18' fill='%23f8c9d3'/%3E%3Cpath d='M1538 74 L1538 92 L1514 74 Z' fill='%23f8c9d3'/%3E%3C/svg%3E");
  background-size: auto, auto 84px;
  background-position: center, center top;
  background-repeat: repeat, repeat-x;
}

/* 대비를 더 원하는 사용자에게는 그림을 치운다. 장식이 접근성을 이기면 안 된다. */
@media (prefers-contrast: more) {
  header.fixed { background-image: none; }
}
