/* 색과 여백은 전부 토큰으로. desc.md 의 도해와 같은 계열을 쓴다. */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f1efe8;
  --border: #dedbd1;
  --border-strong: #b4b2a9;
  --text: #2c2c2a;
  --muted: #5f5e5a;
  --faint: #888780;
  --accent: #d85a30;
  --accent-soft: #faece7;
  --accent-text: #993c1d;
  --gold: #ba7517;
  --blue: #0c447c;
  --blue-soft: #e6f1fb;
  --green: #0f6e56;
  --green-soft: #e1f5ee;
  --radius: 10px;
  --gap: 16px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a19;
    --surface: #232322;
    --surface-2: #2c2c2a;
    --border: #3d3d3a;
    --border-strong: #5f5e5a;
    --text: #e8e6df;
    --muted: #b4b2a9;
    --faint: #888780;
    --accent: #f0997b;
    --accent-soft: #4a1b0c;
    --accent-text: #f5c4b3;
    --gold: #d9a441;
    --blue: #b5d4f4;
    --blue-soft: #0c447c;
    --green: #9fe1cb;
    --green-soft: #085041;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px 72px; }

/* ── 머리말 ── */
.top {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px;
  padding: 28px 0 20px; border-bottom: 1px solid var(--border);
}
.top h1 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
.top h1 a { color: inherit; text-decoration: none; }
/* 무엇을 하는 곳인지 제목 옆에 한 줄로 밝힌다. 자리가 좁아지면 아랫줄로 내려간다 */
.top .tagline { margin: 0; font-size: 13px; color: var(--muted); }
/* 책력 토글 — 지금 보고 있는 쪽이 눌린 모양 */
.cal-toggle {
  align-self: center; margin-left: auto; display: inline-flex; gap: 2px; padding: 2px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.cal-toggle .seg {
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; text-decoration: none;
  /* 쓰지 않는 쪽은 연하게 물러나 있는다 */
  font-weight: 500; color: var(--faint); opacity: 0.75;
  transition: color 0.12s, opacity 0.12s;
}
.cal-toggle a.seg:hover { color: var(--accent-text); background: var(--accent-soft); opacity: 1; }
.cal-toggle .seg.is-on {
  font-weight: 650; color: var(--text); opacity: 1;
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}
.top nav { margin-left: auto; display: flex; gap: 16px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 1px solid transparent; }
.top nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── 탭 ── */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 22px 0 18px; }
.tabs button {
  font: inherit; font-size: 14px; padding: 7px 14px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px;
}
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button[aria-selected="true"] {
  background: var(--accent-soft); color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600;
}

/* ── 입력 ── */
form.query {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select {
  font: inherit; font-size: 15px; padding: 8px 11px; min-width: 0;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 7px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field.date input { width: 168px; font-family: var(--mono); }
.field.num input { width: 120px; font-family: var(--mono); }
.field.text input { width: 150px; }
.check { display: flex; align-items: center; gap: 6px; padding-bottom: 9px; font-size: 14px; color: var(--muted); }
button.go {
  font: inherit; font-weight: 600; font-size: 14px; padding: 9px 20px; cursor: pointer;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 7px;
}
button.go:hover { filter: brightness(1.08); }

/* ── 결과 ── */
.msg { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.msg.error { background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.msg.info { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.card {
  margin-top: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.card > h2 {
  margin: 0; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-bottom: 1px solid var(--border); letter-spacing: 0.02em;
}
.card .body { padding: 18px; }

.headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.headline .big { font-size: 27px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.headline .dow { font-size: 16px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 16px; }
.cell { background: var(--surface); padding: 12px 14px; }
.cell .k { font-size: 12px; color: var(--faint); }
.cell .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cell .v small { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 4px; }
.cell .n { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; vertical-align: 2px; }
.tag.leap { background: var(--accent-soft); color: var(--accent-text); }
.tag.muju { background: var(--blue-soft); color: var(--blue); }
.tag.plain { background: var(--surface-2); color: var(--muted); }
/* 임금과 재위년. 양력·음력 칸 아래 꼬리말 자리에 붙는다.
   윤달·무주력 뱃지와 부딪히지 않게 바탕색 없이 테두리만 두른다. */
.tag.reign { background: none; color: var(--muted); border: 1px solid var(--border-strong); }

/* ── 표 ── */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
/* 달력은 칸 하나만 강조하므로 줄 전체 강조에서 뺀다 */
table:not(.cal) tbody tr:hover td { background: var(--surface-2); }
tr.is-leap td { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
a.jump { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
a.jump:hover { border-bottom-color: var(--accent); }


@media (max-width: 560px) {
  .wrap { padding: 0 14px 56px; }
  .headline .big { font-size: 23px; }
  .field.date input, .field.num input, .field.text input { width: 100%; }
  .field { flex: 1 1 140px; }
}

/* ── 전날·다음날 ── */
/* 전날은 왼쪽 끝, 다음날은 오른쪽 끝. 가운데 '오늘'은 있을 때만 낀다. */
.daynav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 16px; }
/* 한 해 보기도 같은 막대를 쓰고, 제목은 그 아래 제 줄에 둔다 */
.daynav + .headline { margin-bottom: 4px; }
.nav-btn {
  font-size: 13px; text-decoration: none; padding: 5px 13px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); white-space: nowrap;
}
.nav-btn:hover { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent); }
.nav-btn.disabled { color: var(--faint); opacity: 0.45; cursor: not-allowed; }
.nav-btn.disabled:hover { color: var(--faint); background: var(--surface-2); border-color: var(--border); }

/* ── 바깥 사료·연표 링크 ── */
/* 버튼 너비를 서로 같게. 자리가 좁아지면 줄만 바뀌고 너비는 계속 같다. */
.sources {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 7px; margin-top: 18px;
}
.src-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 10px; border-radius: 7px; text-decoration: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 600;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}
.src-btn::after { content: "↗"; font-size: 11px; color: var(--faint); }
.src-btn:hover { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent); }
.src-btn:hover::after { color: var(--accent-text); }
/* 수록 범위 밖 — 자리는 지키되 누를 수 없다 (SHOW_ALL_SITES) */
.src-btn.out {
  opacity: 0.5; border-style: dashed; cursor: not-allowed; color: var(--faint);
}
.src-btn.out:hover {
  color: var(--faint); background: var(--surface-2); border-color: var(--border);
}
.src-btn.out::after { content: none; }

/* ── 결과 3단 ── */
/* 가운데 율리우스적일은 찾는 사람이 적어 좁고 작게 둔다. */
.daygrid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
/* 율리우스적일 칸이 있을 때만 가운데를 좁게 끼워 넣는다 */
.daygrid.with-jd { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
/* 숫자가 이 화면의 본문이다. 칸의 가로·세로 한가운데 놓는다.
   빈 줄(.pk · .gj · .sub) 덕분에 두 칸의 짜임이 같아, 가운데 정렬해도
   양력과 음력의 숫자가 서로 같은 높이에 머문다. */
.daygrid .col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--surface); padding: 18px; min-width: 0;
}
.daygrid h3 {
  margin: 0 0 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--faint); display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.daygrid .sub { margin: 8px 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--muted); }

/* 연-월-일. 양력과 음력이 같은 기호·같은 모양을 쓴다.
   음력 칸은 숫자 위에 이름(연주 年柱 …), 아래에 그 간지를 둔다.
   이름 줄과 숫자 줄의 높이를 값으로 못박아, '-' · 이름 · 요일도
   그만큼 내려 숫자와 같은 줄에 앉게 한다. */
.ymd {
  --ymd-head: 18px; --ymd-line: 38px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; column-gap: 8px;
}
.nums { display: flex; align-items: flex-start; gap: 5px; }
/* 양력과 음력의 숫자가 세로로 같은 자리에 놓이도록 칸의 최소 너비를 맞춘다.
   음력 칸은 아래에 붙는 간지 글자가 숫자보다 넓어 그 폭이 기준이 되는데,
   양력 칸에도 같은 너비를 주어 두 줄의 '-' 와 숫자가 나란히 서게 한다. */
.part { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.part > b {
  font-size: 32px; font-weight: 650; line-height: var(--ymd-line);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
/* 이름이 없는 칸(양력)도 이 줄을 비운 채 차지해, 두 칸의 숫자가 같은 높이에 놓인다 */
.part > .pk {
  display: block; min-height: 14px; margin-bottom: 4px;
  font-size: 10.5px; line-height: 14px;
  color: var(--faint); white-space: nowrap;
}
.part > .pk i { margin-left: 2px; font-style: normal; }
.part > .gj {
  display: block; min-height: 18px;
  margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap;
}
.part > .gj i { margin-left: 2px; font-style: normal; font-weight: 400; color: var(--muted); }
.part > .gj .none { font-weight: 400; color: var(--faint); }
/* 간지가 아닌 말(양력 칸의 요일)은 조금 여리게 두어 간지와 구별한다 */
.part > .gj.plain { font-weight: 500; color: var(--muted); }
.ymd .sep { font-size: 26px; color: var(--faint); }
/* 숫자 줄에 맞춰 이름 줄 높이만큼 내린다 */
.ymd .sep, .ymd .cal-label, .ymd .ymd-trail {
  margin-top: var(--ymd-head); line-height: var(--ymd-line);
}
.ymd .cal-label { justify-self: end; }
.ymd .ymd-trail { justify-self: start; }
.cal-label { white-space: nowrap; font-size: 15px; font-weight: 650; color: var(--muted); }
.ymd-trail { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* 가운데 칸 — 색 없이 작게 */
.col-jd { text-align: center; }
.col-jd h3 { justify-content: center; }
.col-jd .jd {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

@media (max-width: 760px) {
  /* 제목과 책력 토글이 윗줄에 함께 서고, 부제는 그 아래 제 줄로 내려간다 */
  .top .tagline { order: 1; flex-basis: 100%; }
  /* 탭은 줄을 바꾸지 않고 한 줄로 두어 손가락으로 옆으로 밀어 고른다.
     화면 양옆까지 밀리도록 여백만큼 늘리고, 그만큼 안쪽에서 되돌린다. */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin-left: -20px; margin-right: -20px; padding: 0 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; scroll-snap-align: start; }
  /* .daygrid.with-jd 쪽이 더 구체적이라 함께 풀어 주어야 세로로 쌓인다 */
  .daygrid, .daygrid.with-jd { grid-template-columns: 1fr; }
  .col-jd { text-align: left; }
  .col-jd h3 { justify-content: flex-start; }
  .part > b { font-size: 27px; }
  .ymd { --ymd-line: 33px; }
  .ymd .sep { font-size: 22px; }
  .cal-label { font-size: 14px; }
}

/* 더 좁아지면 바깥 여백이 14px 로 줄어드니 탭이 늘어나는 폭도 그만큼만.
   위 760px 규칙보다 뒤에 있어야 덮어쓴다. */
@media (max-width: 560px) {
  .tabs { margin-left: -14px; margin-right: -14px; padding: 0 14px; }
}

/* ── API 페이지 안내 — 상자 없이 글과 코드만 ── */
/* 아래 시험 영역과 나뉘도록 선을 하나 긋는다 */
section.api {
  margin: 20px 0 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
section.api p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.test-title { margin: 0 0 12px; font-size: 15px; font-weight: 650; color: var(--text); }
pre.code {
  margin: 0; padding: 13px 15px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text);
}

/* 토글 위에 뜨는 안내. 문구는 constants.js 에서 온다. */
.cal-toggle .seg[data-note] { position: relative; }
.cal-toggle .seg[data-note]:hover::after,
.cal-toggle .seg[data-note]:focus-visible::after {
  content: attr(data-note);
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 20;
  width: max-content; max-width: 270px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 400; line-height: 1.6; text-align: left;
  white-space: normal; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
}

/* ── 달력 ── */
.month-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px;
}
.month-head h2 {
  margin: 0 auto; padding: 0; background: none; border: none;
  font-size: 19px; font-weight: 650; color: var(--text); letter-spacing: -0.01em;
}
/* 조회 박스 오른쪽 끝으로 민다 */
.print-box { display: inline-flex; gap: 6px; margin-left: auto; align-self: flex-end; }
.print-orient {
  font: inherit; font-size: 13px; padding: 5px 8px;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 7px;
}
.print-btn {
  font: inherit; font-size: 13px; font-weight: 600; padding: 5px 13px; cursor: pointer;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 7px;
}
.print-btn:hover { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent); }

/* 바깥 테두리는 표 자신이 통째로 맡고, 칸은 안쪽 칸막이만 긋는다.
   가장자리 선이 칸에 딸려 있지 않으므로 인쇄에서 잘려 나갈 일이 없다. */
table.cal {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border);
}
table.cal th, table.cal td {
  border: 1px solid var(--border); border-width: 0 1px 1px 0;
}
table.cal tr > :last-child { border-right: none; }
table.cal tr:last-child > * { border-bottom: none; }
table.cal th {
  padding: 7px 4px; text-align: center; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--surface-2);
}
table.cal td {
  height: 74px; padding: 0; vertical-align: top; white-space: normal;
}
table.cal td.empty { background: var(--surface-2); }
table.cal td a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  height: 100%; padding: 6px 8px; text-decoration: none; color: inherit;
}
table.cal td a:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
table.cal td b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
table.cal td small { font-size: 11.5px; color: var(--muted); }
table.cal td.lmonth small { font-weight: 600; color: var(--accent-text); }
table.cal th.sun, table.cal td.sun b { color: #c0392b; }
table.cal th.sat, table.cal td.sat b { color: #2a6ebb; }
table.cal td.today { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
table.cal td.today b { color: var(--accent-text); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) table.cal th.sun,
  :root:not([data-theme="light"]) table.cal td.sun b { color: #ef8a7c; }
  :root:not([data-theme="light"]) table.cal th.sat,
  :root:not([data-theme="light"]) table.cal td.sat b { color: #8ab6ea; }
}

@media (max-width: 560px) {
  table.cal td { height: 58px; }
  table.cal td b { font-size: 15px; }
  table.cal td small { font-size: 10.5px; }
}

/* ── 인쇄 · PDF ── */
@media print {
  /* 방향은 인쇄를 누를 때 app.js 가 @page 규칙을 끼워 넣어 정한다. 기본은 A4 가로. */
  @page { size: A4 landscape; margin: 12mm; }
  .top, .tabs, form.query, .site-footer, .sources, .daynav,
  .print-box, .month-head .nav-btn { display: none !important; }
  body { background: #fff; color: #000; }

  /* 달력이 한 장에 딱 맞게. 높이를 고정하면 6줄짜리 달이 넘쳐 여러 장이 되므로,
     남는 높이를 표가 받아 줄마다 나눠 갖게 한다. 세로 용지에서도 그대로 채워진다. */
  html, body { height: 100%; margin: 0; }
  .wrap { max-width: none; padding: 0; height: 100%; display: flex; flex-direction: column; }
  #out { flex: 1; min-height: 0; display: flex; }
  .card { margin: 0; border: none; background: #fff; }
  .card .body { padding: 0; }
  /* 늘어나는 것은 달력 카드뿐. 다른 결과를 인쇄할 때는 원래 높이를 지킨다. */
  /* 표 아래 끝이 인쇄 영역 경계와 겹치면 선이 잘리므로 조금 띄운다 */
  .month-card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 2mm; }
  .month-card .body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .month-head { flex: 0 0 auto; margin-bottom: 8px; justify-content: center; }
  .month-head h2 { margin: 0; font-size: 20px; color: #000; }
  table.cal { flex: 1; height: 100%; border-color: #999; }
  table.cal th, table.cal td { border-color: #999; }
  table.cal th { color: #000; background: #f2f2f2; }
  table.cal td { height: 2.2cm; }
  table.cal td a { color: #000; }
  /* 인쇄 순간 마우스가 얹혀 있어도 그 칸만 물들지 않도록 */
  table.cal td a:hover { background: none; box-shadow: none; }
  table.cal td.empty { background: #fff; }
  table.cal td.today { background: #f2f2f2; }
  table.cal td.today b, table.cal td.lmonth small { color: #000; font-weight: 700; }
  table.cal th.sun, table.cal td.sun b { color: #b03026; }
  table.cal th.sat, table.cal td.sat b { color: #24578f; }
}

/* ── 꼬리말 ── */
.site-footer {
  margin-top: 40px; padding: 20px 0 0; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-separator { margin: 0 10px; color: var(--border-strong); }
@media (max-width: 560px) { .footer-separator { margin: 0 6px; } }

/* 페이지 제목 앞의 돌아가기 아이콘 */
.top h1 a.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 4px; vertical-align: -6px;
  border-radius: 7px; color: var(--muted);
}
.top h1 a.back:hover { color: var(--accent-text); background: var(--accent-soft); }
