/* TASK-1146 (owner 20.10, INBOX #255 «B» of TASK-1130, spec docs/os/work/TASK-1130/spec.md): the casinos outside
   the ten under the homepage ranking — group heading «Not in our top 10» and short cards (tag, name, score ring,
   the reason, Review / Visit) — and the «Show more» box; owner's addition: the button is centred on phones and on
   the computer. Only the owner's tokens of styles.css; Visit / Review are the ten's .action-button rules (sizes per
   width from styles.css, compact.css, rank.css), nothing of their own but Review's 1 px outline as in the ranking.
   Own class names (rest-*), so the ranking's .identity / .card-grid rules never reach these cards. */
.rest-group { margin-top: 12px; }
/* TASK-1327: while more.js grows the group to its new height, what is not yet inside it stays hidden */
.rest-group.is-opening { overflow: hidden; }
.rest-head { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--muted);
  border-radius: 12px; padding: 14px 16px; }
.rest-head h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.rest-head p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.rest-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.rest-card { position: relative; background: var(--page); border: 1px solid var(--line); border-radius: 17px;
  overflow: hidden; scroll-margin-top: 68px; }
.rest-card:focus { outline: 3px solid var(--purple); outline-offset: -3px; }
.rest-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.rest-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 18px 8px; min-width: 0; }
.rest-name { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.rest-tag { display: inline-block; font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--muted); border-radius: 100px; padding: 2px 10px;
  white-space: nowrap; }
.rest-nm { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.rest-card .score { margin: 0; flex-direction: column; gap: 0; }
.rest-card .score-ring { width: 52px; height: 52px; }
.rest-card .score-value { font-size: 17px; }
/* the ten's «Д-градиент» ring (TASK-1164, owner's choice TASK-1140, rules of score.css; its --heat-* / --score-empty
   live in :root there): one score is drawn one way on the homepage. The build writes --s on every card's .score. */
.rest-card .score-ring { --card: var(--page); }                  /* gaps and hole in the card's colour */
.rest-card .score-ring svg { display: none; }
.rest-card .score-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(from -2.5deg, var(--card) 0deg 5deg, transparent 5deg 36deg),
    conic-gradient(transparent 0deg calc(var(--s) * 36deg), var(--score-empty) 0deg),
    conic-gradient(var(--heat-1) 0deg 36deg, var(--heat-2) 0deg 72deg, var(--heat-3) 0deg 108deg, var(--heat-4) 0deg 144deg,
                   var(--heat-5) 0deg 180deg, var(--heat-6) 0deg 216deg, var(--heat-7) 0deg 252deg, var(--heat-8) 0deg 288deg,
                   var(--heat-9) 0deg 324deg, var(--heat-10) 0deg);
}
.rest-card .score-ring::after { content: ""; position: absolute; inset: 15.625%; border-radius: 50%; background: var(--card); }
.rest-card .score-value { position: relative; z-index: 1; }
@media (forced-colors: active) {
  .rest-card .score-ring::before, .rest-card .score-ring::after { display: none; }
}
.rest-noscore { font-size: 15px; font-weight: 700; color: var(--muted); }
.rest-why { margin: 2px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.rest-why strong { font-weight: 800; }
.rest-list .review-button { border-width: 1px; padding: 8px 13px; }

/* the box: the button centred at every width (owner 20.10). TASK-1326 (owner 22.10): the line «Showing N of M casinos»
   is not seen — the counter stays only for screen readers (aria-live: a press still says how many are shown); at the
   end, with the button gone, the box takes no room. */
.more-box { display: grid; justify-items: center; gap: 0; margin: 16px 0 8px; text-align: center; }
.more-box:has(> .more-button[hidden]) { margin: 0; }
.more-count { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.more-box .more-button { width: 100%; min-height: 45px; padding: 7px 12px; border-width: 2px; border-radius: 10px;
  font: inherit; font-size: 17px; font-weight: 800; line-height: 1.45; cursor: pointer;
  /* styles.css <760 puts every .review-button in row 1 of the ten's .actions grid; here it stays under the counter
     (L-01 of TASK-1146) */
  grid-column: auto; grid-row: auto; }

/* UX-01 of TASK-1146: on a phone the ten is a short row since TASK-1119 (rank-phone.css) — the cards outside the ten
   take its sizes, never larger: Review | Visit in a row at the content's width, Visit 15 px, Review 14 px, 44 px high,
   ring 36 / number 15 px as the ten since TASK-1164 (< 360: 32 / 13, buttons' side padding 8 px); the card keeps its parts and their order */
@media (max-width: 759px) {
  .rest-card .actions { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 8px;
    padding: 0 16px 12px; }
  .rest-card .action-button { width: auto; min-height: 44px; }
  .rest-card .visit-button { order: 2; font-size: 15px; padding: 6px 12px; }
  .rest-list .review-button { order: 1; font-size: 14px; padding: 4px 12px; }
  .rest-card .score-ring { width: 36px; height: 36px; }
  .rest-card .score-value { font-size: 15px; }
}
@media (max-width: 359px) {
  .rest-card .score-ring { width: 32px; height: 32px; }
  .rest-card .score-value { font-size: 13px; }
  .rest-card .visit-button { padding: 6px 8px; gap: 6px; }
  .rest-list .review-button { padding: 4px 8px; }
}
@media (min-width: 760px) {
  .rest-grid { grid-template-columns: 210px minmax(0, 1fr) 145px; align-items: center; padding: 10px 0; }
  .rest-id { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 10px 4px 18px; }
  .rest-why { margin: 4px 8px; }
  .rest-card .actions { align-self: stretch; }
  .more-box .more-button { width: 360px; }
}
@media (min-width: 1200px) {
  .rest-grid { grid-template-columns: 198px minmax(0, 1fr) 146px; min-height: 90px; padding: 5px 0; }
  .rest-id { gap: 10px; padding: 4px 10px; }
  .rest-name { gap: 3px; }
  .rest-nm { font-size: 16px; }
  .rest-tag { font-size: 11px; padding: 0 7px; }
  .rest-card .score { flex-direction: row; gap: 4px; }
  .rest-card .score-ring { width: 40px; height: 40px; }
  .rest-card .score-value { font-size: 16px; }
  .rest-list .review-button { padding: 2px 11px; }
  .rest-card { scroll-margin-top: 76px; }
}
@media print {
  .rest-group[hidden], .rest-list > li[hidden] { display: block !important; }
  .more-box { display: none !important; }
}
