/* Черновые стили книги №1. В общий CSS переносятся только после утверждения. */

body.bookPage .bookFacts{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 0;
  margin:7px 0 15px;
  color:var(--text-muted);
  font-size:13px;
  font-weight:700;
}

body.bookPage .bookFacts span + span::before{
  content:"·";
  margin:0 9px;
  color:rgba(10,46,116,.45);
}

body.bookPage .bookAudienceSection{
  padding-top:40px;
  padding-bottom:40px;
}

body.bookPage .bookAudienceSection h2{
  margin-bottom:18px;
}

body.bookPage .bookAudienceGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 22px;
  margin:0;
  padding:0;
  list-style:none;
}

body.bookPage .bookAudienceGrid li{
  position:relative;
  min-width:0;
  padding:12px 14px 12px 42px;
  border:1px solid rgba(10,46,116,.1);
  border-radius:12px;
  background:rgba(248,250,252,.7);
  color:var(--text);
  font-size:15px;
  line-height:1.45;
}

body.bookPage .bookAudienceGrid li::before{
  content:"";
  position:absolute;
  top:17px;
  left:16px;
  width:10px;
  height:10px;
  border:3px solid rgba(37,99,235,.78);
  border-radius:50%;
}

body.bookPage .bookMapSection h2{
  margin-bottom:18px;
}

body.bookPage .bookMapGrid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
}

body.bookPage .bookMapLink{
  display:flex;
  min-width:0;
  min-height:76px;
  padding:14px 16px;
  border:1px solid rgba(10,46,116,.12);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.bookPage .bookMapLink:hover{
  border-color:rgba(10,46,116,.28);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
  transform:translateY(-1px);
}

body.bookPage .bookMapLink:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:2px;
}

body.bookPage .bookMapLink strong{
  font-size:15px;
  line-height:1.25;
}

body.bookPage .bookMapLink span{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.35;
}

@media (max-width: 1100px){
  body.bookPage .bookMapGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  body.bookPage .bookAudienceSection{
    padding-top:30px;
    padding-bottom:30px;
  }

  body.bookPage .bookAudienceGrid{
    grid-template-columns:1fr;
    gap:8px;
  }

  body.bookPage .bookAudienceGrid li{
    padding:11px 12px 11px 38px;
    font-size:14px;
  }

  body.bookPage .bookAudienceGrid li::before{
    top:16px;
    left:14px;
  }

  body.bookPage .bookMapSection h2{
    margin-bottom:14px;
  }

  body.bookPage .bookMapGrid{
    grid-template-columns:1fr;
    gap:8px;
  }

  body.bookPage .bookMapLink{
    min-height:64px;
    padding:11px 13px;
    border-radius:12px;
  }
}

/* Keep the review hero grid inside narrow screens. */
body.bookPage .heroGrid > * { min-width: 0; }
body.bookPage .heroSection h1 { overflow-wrap: anywhere; }

body.bookPage #edition-note .card { padding: 24px; border-left: 4px solid #245bea; }
body.bookPage #edition-note p { margin: 12px 0 0; }
