.qbook {
  --qb-paper: #fcfaf7;
  --qb-ink: #2c242a;
  --qb-plum: #4e2038;
  --qb-rose: #94415a;
  --qb-line: #d9ced0;
  --qb-muted: #665d63;
  padding: clamp(65px, 7vw, 104px) 0;
  background: var(--qb-paper);
  color: var(--qb-ink);
  scroll-margin-top: 9px;
}
.qbook [hidden] { display: none !important; }
.qbook-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 6vw, 90px);
  margin-bottom: clamp(32px, 4.2vw, 58px);
}
.qbook-kicker,
.qbook-index-title,
.qbook-search label { color: var(--qb-rose); font-size: 13px; font-weight: 670; }
.qbook-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 15px; }
.qbook-kicker::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.qbook-heading h2, .qbook-mast h3 {
  margin: 0;
  color: var(--qb-plum);
  font-family: "Plate Serif", Batang, serif;
  font-weight: 540;
  letter-spacing: -.065em;
  line-height: 1.24;
}
.qbook-heading h2 { font-size: clamp(34px, 4vw, 60px); }
.qbook-heading > p {
  max-width: 43ch;
  margin: 0;
  color: var(--qb-muted);
  font-size: clamp(15px, 1.23vw, 18px);
  line-height: 1.75;
}
.qbook-layout {
  display: grid;
  grid-template-columns: minmax(165px, .56fr) minmax(0, 2fr);
  gap: clamp(28px, 6vw, 104px);
  align-items: start;
}
.qbook-nav { border-top: 2px solid var(--qb-plum); }
.qbook-index-title { margin: 15px 0 11px; }
.qbook-nav nav { display: grid; }
.qbook-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--qb-line);
  color: var(--qb-muted);
  padding: 11px 6px 11px 0;
  font-size: 16px;
  font-weight: 520;
  text-decoration: none;
}
.qbook-choice:hover { color: var(--qb-plum); text-decoration: underline; text-underline-offset: 4px; }
.qbook-choice[aria-current] { color: var(--qb-plum); font-weight: 730; }
.qbook-choice[aria-current] > span:first-child::after { content: " ↗"; color: var(--qb-rose); font-size: .9em; }
.qbook-choice-count { color: var(--qb-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.qbook-search { margin-top: clamp(25px, 3vw, 42px); }
.qbook-search label { display: block; margin-bottom: 6px; color: var(--qb-muted); }
.qbook-search > div {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #9a838b;
  color: var(--qb-plum);
}
.qbook-search svg { flex: none; width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.qbook-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--qb-ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.qbook-search input::placeholder { color: #776d71; }
.qbook-results { min-width: 0; }
.qbook-tools {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--qb-muted);
  font-size: 14px;
}
.qbook-tools button { border: 0; padding: 3px 0; background: transparent; color: var(--qb-rose); font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.qbook-empty { margin: 0; min-height: 12rem; padding: 25px 0; border-top: 1px solid var(--qb-plum); color: var(--qb-muted); }
.qbook-group { min-width: 0; scroll-margin-top: 95px; }
.qbook-group + .qbook-group { margin-top: 24px; }
.qbook-group[hidden] + .qbook-group { margin-top: 0; }
.qbook-mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 2px solid var(--qb-plum);
  border-bottom: 1px solid var(--qb-line);
  padding: 12px clamp(12px, 2.5vw, 36px) 12px clamp(15px, 2.2vw, 32px);
  background: #f4eeea;
}
.qbook-mast p { margin: 0 0 4px; color: var(--qb-rose); font-size: 12px; font-weight: 650; }
.qbook-mast h3 { font-size: clamp(32px, 3vw, 44px); }
.qbook-mast span { display: block; margin-top: 6px; color: var(--qb-muted); font-size: 14px; }
.qbook-mast img { width: clamp(105px, 13vw, 176px); height: 104px; object-fit: contain; mix-blend-mode: multiply; }
[data-qbook-group="dental"] .qbook-mast { background: transparent; }
[data-qbook-group="dental"] .qbook-mast img { padding: 4px; mix-blend-mode: normal; }
.qbook-entry { border-bottom: 1px solid var(--qb-line); }
.qbook-entry summary {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 18px;
  align-items: baseline;
  gap: 15px;
  list-style: none;
  cursor: pointer;
  min-height: 57px;
  padding: 16px 4px;
}
.qbook-entry summary::-webkit-details-marker { display: none; }
.qbook-topic { color: var(--qb-muted); font-size: 13px; font-weight: 540; }
.qbook-question { color: var(--qb-ink); font-size: clamp(15px, 1.32vw, 19px); font-weight: 580; letter-spacing: -.03em; line-height: 1.58; }
.qbook-entry[open] .qbook-question, .qbook-entry summary:hover .qbook-question { color: var(--qb-plum); }
.qbook-expand { display: grid; place-items: center; align-self: center; height: 18px; width: 18px; color: var(--qb-rose); }
.qbook-expand::before, .qbook-expand::after { content: ""; grid-area: 1 / 1; width: 12px; height: 1px; background: currentColor; }
.qbook-expand::after { transform: rotate(90deg); }
.qbook-entry[open] .qbook-expand::after { display: none; }
.qbook-entry dl {
  margin: 0 0 19px 97px;
  padding: 4px 17px;
  border-left: 2px solid #c2a5ad;
  max-width: 74ch;
}
.qbook-entry dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.qbook-entry dl > div + div { margin-top: 7px; }
.qbook-entry dt { color: var(--qb-rose); font-size: 12px; font-weight: 680; }
.qbook-entry dd { margin: 0; color: var(--qb-muted); font-size: 14px; line-height: 1.65; }
.qbook :focus-visible { outline: 2px solid var(--qb-rose); outline-offset: 3px; }
@media (max-width: 920px) {
  .qbook-layout { grid-template-columns: minmax(150px, .55fr) minmax(0, 1.8fr); gap: 29px; }
  .qbook-entry summary { grid-template-columns: 64px minmax(0,1fr) 15px; gap: 9px; }
  .qbook-entry dl { margin-left: 4px; }
}
@media (max-width: 700px) {
  .qbook-heading, .qbook-layout { grid-template-columns: minmax(0, 1fr); }
  .qbook-heading { gap: 15px; margin-bottom: 24px; }
  .qbook-layout { gap: 23px; }
  .qbook-heading > p { max-width: 44ch; }
  .qbook-index-title { margin: 11px 0 8px; font-size: 12px; }
  .qbook-nav nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .qbook-choice { min-height: 38px; padding: 6px 9px; border: 1px solid var(--qb-line); font-size: 14px; }
  .qbook-choice[aria-current] { border-color: var(--qb-plum); background: var(--qb-plum); color: #fff; }
  .qbook-choice[aria-current] > span:first-child::after { content: none; }
  .qbook-choice[aria-current] .qbook-choice-count { color: #f4dce5; }
  .qbook-choice-count { font-size: 10px; }
  .qbook-search { margin-top: 15px; }
  .qbook-search label { margin-bottom: 0; font-size: 12px; }
  .qbook-search input { font-size: 16px; }
  .qbook-mast { padding: 11px 13px; gap: 10px; }
  .qbook-mast img { width: 98px; height: 82px; }
  .qbook-mast span { font-size: 13px; }
  .qbook-entry summary { grid-template-columns: 1fr 18px; gap: 3px 8px; align-items: start; padding: 14px 2px; }
  .qbook-question { grid-column: 1; grid-row: 2; }
  .qbook-topic { grid-column: 1; font-size: 11px; }
  .qbook-expand { grid-column: 2; grid-row: 1 / 3; }
  .qbook-entry dl { margin: 0 0 15px 2px; padding: 1px 11px; }
  .qbook-entry dl > div { display: block; }
  .qbook-entry dd { margin-top: 2px; }
}
