/* The AI Register (/register/): a lodge guest register. The page is generated by lambda/register_core.py. */
.register .lede { margin-bottom: 28px; }
.book {
  --paper: #f7f0de; --rule: #b9cbe0; --margin: #d9776b; --pen: #1f2f5c; --ink2: #5b5446;
  position: relative;
  margin: 0 0 32px;
  padding: 22px 22px 30px 22px;
  background: var(--paper);
  color: var(--ink2);
  border-radius: 3px 6px 6px 3px;
  box-shadow: inset 14px 0 18px -14px rgba(80, 55, 20, .45), 0 30px 60px -30px rgba(0, 0, 0, .75);
}
.bookhead { display: flex; justify-content: space-between; margin: 0 0 10px; padding: 0 4px 8px;
  border-bottom: 3px double #9c8f74; font: italic .95rem/1.2 Georgia, "Iowan Old Style", serif; color: #7a6f59; }
.book table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.book th { text-align: left; padding: 6px 8px; font: 600 .72rem/1.2 system-ui, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: #7a6f59; border-bottom: 2px solid var(--margin); }
.book th:nth-child(1) { width: 8.5em; }
.book th:nth-child(2) { width: 30%; }
.book th:nth-child(3) { width: 12.5em; }
.book td { padding: 9px 8px 7px; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.35; }
.book td.date { font: .88rem/1.35 Georgia, "Iowan Old Style", serif; color: var(--ink2); border-right: 1px solid var(--margin); }
.book td.from { font: italic .88rem/1.35 Georgia, "Iowan Old Style", serif; }
.book .sig, .book .remark {
  font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Neue", "Patrick Hand", cursive;
  color: var(--pen);
}
.book .sig { font-size: 1.15rem; }
.book .remark { font-size: 1rem; }
.book .unnamed { font: italic .95rem/1.35 Georgia, "Iowan Old Style", serif; color: #8a7f69; }
.book .visits { display: block; font: .75rem/1.3 system-ui, sans-serif; color: #8a7f69; margin-top: 2px; }
.book .badge { display: inline-block; vertical-align: middle; font: .68rem/1.5 system-ui, sans-serif; padding: 0 7px;
  border-radius: 999px; background: rgba(31, 47, 92, .08); color: var(--pen); }
.book .badge.ok { background: rgba(29, 122, 78, .12); color: #1d6a45; }
.book tr.blank td { padding: 26px 8px; text-align: center; font: italic 1rem Georgia, serif; color: #8a7f69; }


/* Phones: each line becomes a small card, with the column names as labels. */
@media (max-width: 640px) {
  .book { padding: 16px 14px 20px; }
  .book thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .book table, .book tbody, .book tr, .book td { display: block; width: auto; }
  .book tr { padding: 10px 2px 8px; border-bottom: 1px solid var(--rule); }
  .book td { padding: 1px 0; border: 0; }
  .book td.date { border-right: 0; }
  .book td.from::before { content: "by way of "; font-style: normal; color: #8a7f69; }
  .book td.remarks:empty { display: none; }
}
