/* intl.css — the international registration and the core of the cabinet (register.js, cabinet.js): the invitation
   of a partner above the registration form, the logo and the showcase in the profile, the filters and the cards of
   the directory. Loaded after app.css; every class of its own starts with «intl-». */

/* ---------- Registration: «Вас приглашает …» (/register?ref=<code>) ---------- */
#reg-invite:not([hidden]) { margin-bottom: 20px; }
.intl-invite-logo {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  object-fit: contain;
}
.intl-invite-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--heading); }
.intl-invite-place { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.intl-invite .hint { margin-top: 6px; max-width: var(--measure); }

/* ---------- A company's logo or initials where the kit is not on the page (cabinet.js avatar()) ---------- */
.intl-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .02em;
  object-fit: contain;
  overflow: hidden;
}
img.intl-avatar { background: #FFFFFF; }
.intl-avatar.is-lg { width: 72px; height: 72px; border-radius: 14px; font-size: 1.375rem; }

/* ---------- Cabinet, profile: the logo and the page of the company on the site ---------- */
.intl-identity-grid { display: grid; gap: 20px; }
.intl-logo { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.intl-logo-body { display: grid; gap: 8px; min-width: 0; }
.intl-logo-title { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--heading); }
.intl-logo-body .hint { margin: 0; max-width: var(--measure); }
.intl-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.intl-status:empty { display: none; }
.intl-status .spinner { width: 16px; height: 16px; }
/* the showcase stands under the logo on a phone and beside it from 900 px: a thin line parts the two either way */
.intl-showcase { display: grid; gap: 12px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.intl-showcase .hint { max-width: var(--measure); }
.intl-showcase-url { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .intl-identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .intl-showcase { padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 359.98px) {
  .intl-logo { flex-direction: column; gap: 12px; } /* folded phones: the buttons get the whole width */
}

/* ---------- Cabinet, directory: six filters under the search (app.css lays out three) ---------- */
#dir-filters > .intl-filters-toggle { display: none; }
@media (max-width: 599.98px) {
  /* phones: the search and one button; the filters open under it, two in a row from 480 px */
  #dir-filters > .intl-filters-toggle { display: inline-flex; grid-column: 1 / -1; justify-self: start; }
  #dir-filters:not(.is-open) > .field:not(:first-child) { display: none; }
  #dir-filters > .field:last-child { grid-column: auto; }
}
@media (min-width: 600px) and (max-width: 719.98px) {
  #dir-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  #dir-filters > .field:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1600px) {
  /* one row of six under the search, not the search squeezed beside three of them */
  #dir-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #dir-filters > .field:first-child { grid-column: 1 / -1; }
}
.intl-results-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.intl-fav-filter[aria-pressed="true"] { background: var(--blue-50); color: var(--blue-800); }
.intl-fav-filter[aria-pressed="true"] svg { color: var(--red); }

/* ---------- Cabinet, directory: the head of a card and of the profile dialog ---------- */
.intl-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.intl-card-title { display: grid; flex: 1; gap: 2px; min-width: 0; }
.intl-place { margin: 0; color: var(--muted); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.intl-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.intl-card-title .intl-badges { margin-top: 6px; }
.intl-verified svg { width: 14px; height: 14px; }

/* the heart: the favourite mark of a company; red only when the mark is set */
.intl-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  margin: -6px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.intl-fav:hover { background: var(--bg); color: var(--red-700); }
.intl-fav[aria-pressed="true"] { color: var(--red); }
.intl-fav svg { width: 22px; height: 22px; }
@media (max-width: 767.98px) {
  .intl-fav { width: 44px; height: 44px; }
}
