/* Accasio — the profile card.
 *
 * The page this replaces was a narrow list of six facts in a container
 * three times its width. The fix is not more padding: it is putting
 * something on the page worth the width.
 */

.acc-pc {
  display: grid;
  gap: 14px;
}

.acc-pc-block {
  padding: 18px 20px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-radius: 12px;
  background: var(--ac-white, #fff);
}

.acc-pc-block h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ac-gray-500, #6b7280);
}

/* --- what they do ------------------------------------------------------ */

/* The pitch is the biggest text on the card, because it is the one line
   somebody reads before deciding whether to read anything else. */
.acc-pc-pitch {
  border-left: 3px solid var(--ac-blue-600, #2563eb);
}

.acc-pc-line {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ac-gray-900, #111827);
}

.acc-pc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.86rem;
  color: var(--ac-gray-600, #4b5563);
}

.acc-pc-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* A dot AND the words. The single most useful fact on a professional
   profile should not be the one that disappears in greyscale. */
.acc-pc-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.acc-pc-avail-ok {
  background: var(--ac-green-50, #f0fdf4);
  color: var(--ac-green-800, #166534);
}

.acc-pc-avail-warn {
  background: var(--ac-amber-50, #fffbeb);
  color: var(--ac-amber-800, #92400e);
}

.acc-pc-avail-muted {
  background: var(--ac-gray-100, #f3f4f6);
  color: var(--ac-gray-600, #4b5563);
}

/* --- getting in touch -------------------------------------------------- */

.acc-pc-contact > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acc-pc-way {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--ac-gray-300, #d1d5db);
  border-radius: 9px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ac-gray-800, #1f2937);
}

.acc-pc-way:hover {
  background: var(--ac-gray-50, #f9fafb);
  text-decoration: none;
}

/* The two that start a conversation are filled; an address or a phone
   number is a fact, and a fact should not look like a button. */
.acc-pc-way-main {
  border-color: var(--ac-blue-700, #1d4ed8);
  background: var(--ac-blue-700, #1d4ed8);
  color: #fff;
  font-weight: 600;
}

.acc-pc-way-main:hover {
  background: var(--ac-blue-800, #1e40af);
  color: #fff;
}

/* --- what they offer --------------------------------------------------- */

.acc-pc-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 12px;
}

.acc-pc-offer {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ac-gray-900, #111827);
}

.acc-pc-offer:hover {
  border-color: var(--ac-gray-300, #d1d5db);
  background: var(--ac-gray-50, #f9fafb);
  text-decoration: none;
}

.acc-pc-offer img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
  margin-bottom: 6px;
}

.acc-pc-offer-t {
  font-weight: 600;
}

.acc-pc-offer-k {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-gray-400, #9ca3af);
}

.acc-pc-offer-d {
  font-size: 0.84rem;
  color: var(--ac-gray-600, #4b5563);
}

.acc-pc-offer-p {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.86rem;
}

/* --- what was checked -------------------------------------------------- */

.acc-pc-proof {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acc-pc-proof li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-left: 3px solid var(--vm, #1d9bf0);
  border-radius: 9px;
}

.acc-pc-proof i {
  color: var(--vm, #1d9bf0);
  font-size: 1.05rem;
  line-height: 1.5;
}

.acc-pc-proof a {
  display: block;
  font-weight: 600;
}

.acc-pc-proof span {
  display: block;
  font-size: 0.84rem;
  color: var(--ac-gray-600, #4b5563);
}

/* --- skills ------------------------------------------------------------ */

/* Chips, not a sentence. The page this replaces ran twenty of them
   together in one paragraph, where finding the one you cared about meant
   reading all of them. */
.acc-pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.acc-pc-chip {
  padding: 3px 11px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-radius: 999px;
  background: var(--ac-gray-50, #f9fafb);
  font-size: 0.82rem;
  color: var(--ac-gray-700, #374151);
}

/* --- their own numbers -------------------------------------------------- */

.acc-pc-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 14px;
}

.acc-pc-fig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
}

.acc-pc-fig-n {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ac-gray-900, #111827);
}

.acc-pc-fig-l {
  font-size: 0.82rem;
  color: var(--ac-gray-500, #6b7280);
}

/* --- the owner's own view ----------------------------------------------- */

/* Shown only to the person whose page it is: an empty block to a visitor
   is a broken-looking box, and to its owner it is the only prompt they
   will ever get. */
.acc-pc-empty {
  border-style: dashed;
  background: var(--ac-gray-50, #f9fafb);
}

.acc-pc-empty h3 {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ac-gray-900, #111827);
}

.acc-pc-empty p {
  margin: 0 0 10px;
  color: var(--ac-gray-600, #4b5563);
}

.acc-pc-cta {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--ac-blue-700, #1d4ed8);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ac-blue-700, #1d4ed8);
}

.acc-pc-cta:hover {
  background: var(--ac-blue-700, #1d4ed8);
  color: #fff;
  text-decoration: none;
}

.acc-pc-mine {
  margin: 0;
  text-align: right;
  font-size: 0.84rem;
}

/* --- the editor --------------------------------------------------------- */

.acc-pc-editor .acc-cons-s {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 10px;
  align-items: end;
}

.acc-pc-editor .acc-cons-s h2,
.acc-pc-editor .acc-cons-s > p {
  grid-column: 1 / -1;
}

/* ----------------------------------------------------------------------
   The Info tab: About and the description, side by side as one panel.

   These are two of UNA's own blocks, not ours — `entity_info_full` and
   `entity_text_block` on bx_persons_profile_info. Stacked, they are a
   narrow column of field labels with a screenful of white beside it, and
   then the text underneath where nobody has got to yet.

   Joined into one row they read as a single card: who this is on the
   left, what they do on the right. 35/65 because the left side is a
   fixed set of short labels and the right side is prose, and prose needs
   the room.

   THE IDS ARE THIS INSTALL'S. UNA gives a page block no class of its own
   and no stable handle beyond its row id, so this keys off the two ids
   on the profile Info page here. `ops/una/profile/info-layout.php`
   prints the live ids and says so if they ever stop matching, which is
   the only way this can go wrong.

   Anything else on the page is left alone: the rule only joins these
   two, and every other block keeps the full width of the column. */
@media (min-width: 900px) {
  .bx-layout-cell:has(> #bx-page-block-168) {
    /* `row !important` because Artificer sets this cell to column with an
       important declaration of its own, and a plain `display: flex` here
       produced two full-width blocks stacked exactly as before — right
       flex-basis, right widths, wrong axis. Read the computed style
       before deciding a rule did not apply. */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0 0;
  }

  .bx-layout-cell:has(> #bx-page-block-168) > .bx-page-block-container {
    flex: 1 1 100%;
    min-width: 0;
  }

  .bx-layout-cell > #bx-page-block-168 {
    flex: 0 1 35% !important;
    max-width: 35%;
  }

  .bx-layout-cell > #bx-page-block-169 {
    flex: 1 1 65% !important;
    max-width: 65%;
  }

  /* One panel, not two touching ones: the seam between them is a single
     hairline rather than two borders and a gap. The designbox is the
     element Artificer gives the rounded white background to, so that is
     what has to lose its corners rather than the block wrapper. */
  .bx-layout-cell > #bx-page-block-168 > .bx-db-animate,
  .bx-layout-cell > #bx-page-block-168 > div {
    height: 100%;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
  }

  .bx-layout-cell > #bx-page-block-169 > .bx-db-animate,
  .bx-layout-cell > #bx-page-block-169 > div {
    height: 100%;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  /* The description block has no heading of its own, so without this its
     first line sits higher than "About" beside it and the two columns
     read as misaligned rather than paired. */
  .bx-layout-cell > #bx-page-block-169 .bx-page-block-content {
    padding-top: 1.1rem;
  }
}
