/* Canonical Document card shared by every surface. */
.doc-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #111419;
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  transform: translateZ(0);
  transition: transform 240ms ease;
}
.doc-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 200ms ease;
}
.doc-card:hover { transform: translateY(-2px); }
.doc-card:hover::after { border-color: rgb(255 255 255 / 0.34); }
.doc-card .card-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.doc-card .card-overlay { position: absolute; z-index: -1; inset: 0; background: none; }
.doc-card .card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 18px 16px;
  text-align: left;
}
.doc-card .book-topline { display: flex; min-height: 18px; align-items: center; justify-content: space-between; gap: 10px; }
.doc-card .book-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.62), 0 2px 5px rgb(0 0 0 / 0.2);
}
.doc-card .book-type > span { display: inline-flex; min-height: 15px; align-items: center; }
.doc-card .book-type svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.42));
}
.doc-card .book-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.58), 0 2px 6px rgb(0 0 0 / 0.18);
  white-space: nowrap;
}
.doc-card .book-series {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  margin-top: 15px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  background: rgb(0 0 0 / 0.16);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.doc-card .card-title {
  display: block;
  margin: 9px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.68), 0 3px 10px rgb(0 0 0 / 0.24);
  text-wrap: balance;
}
.doc-card .card-title-line { display: block; }
.doc-card .card-description {
  display: -webkit-box;
  width: 78%;
  min-height: 35px;
  overflow: hidden;
  margin: 10px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.48;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.62), 0 2px 7px rgb(0 0 0 / 0.22);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.doc-card .book-footer {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #fff;
  filter: drop-shadow(0 -1px 1px rgb(0 0 0 / 0.18));
}
.doc-card .book-bottom-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.doc-card .book-footer-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding-bottom: 1px; transform: translateY(-3px); }
.doc-card .book-pages { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / 0.62), 0 2px 5px rgb(0 0 0 / 0.2); }
.doc-card .book-page-number { color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.doc-card .book-page-label { color: #fff; font-size: 10px; font-weight: var(--font-weight-semibold); text-transform: lowercase; }
.doc-card .book-copyright {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 7.5px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.62), 0 2px 5px rgb(0 0 0 / 0.2);
}
.doc-card .book-cta {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #fff;
  border-radius: 6px;
  color: #0b0d0f;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.22);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.doc-card .book-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
@media (max-width: 1279px) {
.doc-card .card-title { font-size: 28px; }
.doc-card .card-description { font-size: 11px; }
}
@media (max-width: 1099px) {
.doc-card .card-title { font-size: 23px; }
}
@media (max-width: 1023px) {
.doc-card .card-title { font-size: clamp(18px, 2.4vw, 23px); }
.doc-card .card-description { font-size: 11px; }
}
@media (max-width: 1099px) {
.doc-card .book-copyright { display: none; }
}
@media (max-width: 767px) {
.doc-card { border-radius: 10px; }
.doc-card .card-body { padding: 12px 11px 11px; }
.doc-card .book-topline { min-height: 14px; }
.doc-card .book-type { gap: 5px; font-size: 8px; }
.doc-card .book-type svg { width: 12px; height: 12px; }
.doc-card .book-logo { font-size: 8px; }
.doc-card .book-series { min-height: 18px; margin-top: 10px; padding: 3px 6px; font-size: 7px; }
.doc-card .card-title { margin-top: 7px; font-size: clamp(15px, 4.4vw, 22px); }
.doc-card .card-description { display: none; }
.doc-card .book-footer { padding-top: 11px; }
.doc-card .book-copyright { display: none; }
.doc-card .book-page-number { font-size: 11px; }
.doc-card .book-page-label { font-size: 9px; }
.doc-card .book-cta { min-height: 32px; gap: 6px; padding: 7px 9px; font-size: 9px; }
.doc-card .book-cta svg { width: 12px; height: 12px; }
}
@media (max-width: 479px) {
.doc-card { border-radius: 8px; }
.doc-card .book-bottom-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; }
.doc-card .book-footer-copy { align-self: center; padding-bottom: 0; transform: none; }
.doc-card .book-page-number { font-size: 9px; }
.doc-card .book-page-label { font-size: 7.5px; }
.doc-card .book-cta { width: 100%; min-height: 24px; gap: 3px; padding: 3px 5px; font-size: 7.5px; }
.doc-card .book-cta svg { width: 10px; height: 10px; }
}
@media (hover: none) {
.doc-card:hover { transform: none; }
.doc-card:hover::after { border-color: rgb(255 255 255 / 0.08); }
}
