

html.bk-doc, html.bk-doc body { height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto; }
html.bk-doc #app { height: auto; }

.bk {
  --bk-col: 600px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.bk-in {
  width: 100%;
  max-width: var(--bk-col);
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.bk-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--cream);
  padding-top: calc(var(--safe-t) + 6px);
  padding-bottom: 4px;
  box-shadow: 0 1px 0 var(--line);
}
.bk-head-row { display: flex; align-items: center; gap: var(--g1); min-height: 60px; }
.bk-head-logo { display: block; flex: none; width: 60px; height: 60px; margin-inline-start: auto; }
.bk-head-logo img { width: 100%; height: 100%; object-fit: contain; }
.bk-head-row.no-back { justify-content: center; }
.bk-head-row.no-back .bk-head-logo { margin-inline-start: 0; }

.bk-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--g3);
  padding-top: var(--g3);
  padding-bottom: 32px;
}
.bk-main.is-top { padding-top: calc(var(--safe-t) + var(--g3)); }
.bk-main > .bk-sec { margin-top: var(--g1); }   

.bk-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--cream);
  box-shadow: 0 -1px 0 var(--line);
  padding-top: var(--g2);
  padding-bottom: calc(var(--g2) + var(--safe-b));
}
.bk-foot-in { display: flex; flex-direction: column; gap: var(--g1); }

@font-face { font-family: 'Amatic SC'; src: url('../fonts/AmaticSC-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

.bk-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  border-radius: var(--r-card);
  border: 1.5px solid var(--gold-soft);
  background: var(--espresso);
  isolation: isolate;
}
.bk-hero picture { position: absolute; inset: 0; }
.bk-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 600px) {
  .bk-hero { aspect-ratio: 3 / 2; }
  .bk-hero-img { object-position: 60% 20%; }
}

.bk-hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(251, 246, 240, .95) 0%, rgba(251, 246, 240, .78) 45%, rgba(251, 246, 240, 0) 100%);
  pointer-events: none;
}
.bk-hero-title {
  position: absolute;
  z-index: 2;
  inset-inline: 4%;
  bottom: 4%;
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.9rem, 13.5vw, 4.25rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--espresso);
}
.bk-hero-title em { color: var(--olive-deep); }
@media (min-width: 600px) { .bk-hero-title { font-size: clamp(4.25rem, 11vw, 5.25rem); } }

.bk-intro { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.bk-intro p { text-align: center; }
.bk-place { font-size: var(--fs-sub); font-weight: 700; color: var(--olive-deep); line-height: 1.4; }
.bk-sub { color: var(--espresso); font-weight: 600; font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.3; text-wrap: balance; }

.bk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--g2); }
@media (min-width: 600px) { .bk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g3); } }
.bk-tile {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--g2) var(--g1) 0;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.bk-tile:hover { border-color: var(--gold); box-shadow: 0 14px 30px rgba(120, 85, 45, .12); }
.bk-tile:active { transform: scale(.99); }
.bk-tile-info {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.bk-tile-info::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   
.bk-tile-info:focus-visible { outline: none; }
.bk-tile-info:focus-visible::after { box-shadow: var(--ring); }
.bk-tile-title { margin-top: 2px; font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--espresso); text-align: center; text-wrap: balance; }
.bk-tile-title .nw { white-space: nowrap; }   
.bk-tile-meta { font-size: var(--fs-sub); font-weight: 600; color: var(--ink); line-height: 1.4; font-variant-numeric: tabular-nums; }
.bk-tile-meta .money { color: var(--espresso); }
.bk-tile-book {
  position: relative;
  z-index: 1;
  flex: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding-inline: var(--g2);
  font-size: var(--fs-sub);
  font-weight: 700;
  color: var(--olive-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.bk-tile.is-active { background: var(--olive-soft); border-color: var(--olive-deep); box-shadow: inset 0 0 0 1px var(--olive-deep); }
.bk-tile-check {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--olive-deep);
  color: #fff;
}
.bk-circle {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-soft);
}
.bk-circle.is-big { width: 120px; height: 120px; }
.bk-tile .bk-circle { width: 72px; height: 72px; }

.bk-circle.is-logo { display: grid; place-items: center; background: var(--cream); overflow: hidden; }
.bk-circle.is-logo img { width: 74%; height: 74%; object-fit: contain; }
.bk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--g1);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bk-meta .icon { color: var(--olive-deep); }

.bk-detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); border: 1.5px solid var(--gold-soft); }

.bk-detail-head { display: flex; flex-direction: column; align-items: stretch; gap: var(--g2); }
.bk-detail-head .bk-circle { align-self: center; }
.bk-detail-head h1 { min-width: 0; text-wrap: balance; }
.bk-lead { font-size: 19px; line-height: 1.55; color: var(--espresso); }
.bk-details { gap: var(--g3); }
.bk-detail { display: flex; flex-direction: column; gap: var(--g1); }
.bk-detail + .bk-detail { padding-top: var(--g3); border-top: 1px solid var(--line); }
.bk-detail p { color: var(--espresso); }
.bk-detail h3 { color: var(--olive-deep); }

.bk-items { margin: 0; padding-inline-start: 1.35em; display: flex; flex-direction: column; gap: var(--g1); color: var(--espresso); }
.bk-items li { padding-inline-start: 4px; }
.bk-items li::marker { color: var(--olive-deep); font-weight: 700; }
.bk-items.is-ordered { padding-inline-start: 1.6em; }
.bk-items.is-ordered li::marker { font-variant-numeric: tabular-nums; }
.bk-li-h { display: block; font-weight: 700; line-height: 1.4; }
.bk-li-t { display: block; text-align: justify; text-wrap: pretty; }

.bk-sec { display: flex; flex-direction: column; gap: var(--g2); scroll-margin-top: 84px; }

.bk-picks { display: flex; flex-direction: column; gap: var(--g2); }
.bk-pickbtn { width: 100%; justify-content: flex-start; gap: var(--g2); padding-inline: var(--g3); text-align: start; }
.bk-pickbtn-t { flex: 1; min-width: 0; }
.bk-pickbtn-arrow { display: flex; transform: rotate(-90deg); }

.bk-pickbtn.has-value { background: var(--card); color: var(--espresso); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.bk-pickbtn.has-value .icon { color: var(--olive-deep); }

.bk-more-btn { align-self: stretch; justify-content: space-between; text-align: start; }
.bk-more-arrow { display: flex; transform: rotate(-90deg); transition: transform .2s ease; }
.bk-more-arrow.is-open { transform: rotate(90deg); }
.bk-more { display: flex; flex-direction: column; gap: var(--g3); }
.bk-more .bk-circle { align-self: center; }

html.bk-noscroll, html.bk-noscroll body { overflow: hidden; }
.bk-sheet-back { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: rgba(58, 48, 38, .45); }
.bk-sheet {
  width: 100%;
  max-width: var(--bk-col);
  max-height: 82vh;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: 0 -12px 30px rgba(58, 48, 38, .18);
  padding-bottom: var(--safe-b);
}
.bk-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--g2); padding: var(--g2) var(--pad) var(--g1); }
.bk-sheet-body { overflow-y: auto; display: flex; flex-direction: column; gap: var(--g2); padding: var(--g1) var(--pad) var(--g4); }
.bk-pick { gap: 4px; }
.bk-pick-name { font-weight: 700; color: var(--espresso); line-height: 1.35; text-align: start; }
.bk-grid { display: grid; gap: var(--g2) var(--g1); }
.bk-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bk-grid .chip { width: 100%; min-width: 0; padding: 0 6px; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) {
  .bk-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bk-times { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.bk-sum { padding: 0; gap: 0; overflow: hidden; }
.bk-sum-row { display: flex; align-items: baseline; gap: var(--g2); padding: 12px var(--pad); }
.bk-sum-row + .bk-sum-row { border-top: 1px solid var(--line); }

.bk-captcha { width: 100%; }
.bk-sum-k { flex: none; width: 5.2em; white-space: nowrap; font-size: var(--fs-sub); color: var(--ink); }
.bk-sum-v { flex: 1; min-width: 0; font-weight: 600; color: var(--espresso); text-align: start; font-variant-numeric: tabular-nums; }
.bk-sum-v[dir='ltr'] { text-align: right; }

.bk-done { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: var(--g2); }
.bk-done p { text-align: center; color: var(--espresso); font-weight: 600; }

.bk-my-actions { display: flex; flex-direction: column; gap: var(--g2); }

.bk-end { display: flex; justify-content: center; padding-top: var(--g2); }
.bk-end img { width: auto; height: 120px; }

.bk-loading { flex: 1; display: grid; place-items: center; min-height: 60vh; }
