/* Companies — DISPLAY.md §2.1, §4.10; package S8.
 *
 * New, page-specific classes only (`w7c*`), styled from the DISPLAY §6.3
 * token names with fallbacks (S0's tokens.css defines them; this file must
 * still render sanely before S0 lands). Matches the mockup's layout
 * (test/tmp/display/final/companies-phone.html, nav-phone-rep.png) using the
 * app's own surfaces (--card, --line) rather than the mockup's CSS.
 */

.w7cwrap { display: flex; flex-direction: column; gap: 0; }

/* -------------------------------------------------------------- search --- */
.w7csearch {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; margin: 0 0 12px;
  border: 1px solid var(--line, #E2E7EC); border-radius: 12px;
  background: var(--card, #fff); color: var(--mute, #6C7B86);
}
.w7csearch .w7ci { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.w7csearch input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; color: var(--ink, #101C26);
}
.w7csearch input::placeholder { color: var(--mute, #6C7B86); }

/* -------------------------------------------------------------- lenses --- */
.w7clenses {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none;
}
.w7clenses::-webkit-scrollbar { display: none; }
.w7cchip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 13px; white-space: nowrap;
  border: 1px solid var(--line, #E2E7EC); border-radius: 18px;
  background: var(--card, #fff); color: var(--ink2, #3B4A55);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.w7cchip .w7cn { font-family: var(--font-num, 'Rajdhani','Inter',sans-serif); font-weight: 700; font-size: 15.5px; line-height: 1; }
.w7cchip.on {
  border-color: var(--found-line, #cfe2fb); background: var(--found-tint, #edf5ff);
  color: var(--found, #176ac2);
}

/* --------------------------------------------------------- section head - */
.w7csech {
  display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px;
  font-size: 12.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink2, #3B4A55);
}
.w7csech .w7cn2 { font-family: var(--font-num, 'Rajdhani','Inter',sans-serif); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink, #101C26); }
.w7csech .w7caside { margin-left: auto; font-size: 12.5px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--mute, #6C7B86); }

/* ------------------------------------------------------------- the list -- */
.w7clist {
  border: 1px solid var(--line, #E2E7EC); border-radius: 14px; overflow: hidden;
  background: var(--card, #fff);
}
.w7clist.busy { opacity: .6; }

.w7crow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px; align-items: center; padding: 12px 16px; cursor: pointer;
}
.w7crow + .w7crow { border-top: 1px solid var(--line2, #EDF1F4); }
.w7crow:hover, .w7crow:focus-within { background: var(--sel, #f3f8fe); }

.w7c-main { grid-column: 1; min-width: 0; display: block; color: inherit; text-decoration: none; border-radius: 4px; }
.w7c-main:focus-visible, .w7c-open:focus-visible, .w7c-tel:focus-visible { outline: 2px solid var(--found, #176ac2); outline-offset: 3px; }
.w7c-name-line { display: inline; }
.w7c-nm { display: inline; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink, #101C26); }
.w7c-main:hover .w7c-nm, .w7c-main:focus-visible .w7c-nm { color: var(--found, #176ac2); text-decoration: underline; text-underline-offset: 3px; }
.w7c-fam {
  margin-left: 8px; padding: 1px 7px; border-radius: 9px; vertical-align: 1px;
  font-size: 12px; font-weight: 700; color: var(--mute, #6C7B86);
  background: var(--line2, #EDF1F4);
}
.w7c-meta { display: block; font-size: 13px; color: var(--mute, #6C7B86); }

.w7c-actions { grid-row: 1; grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.w7c-tel {
  white-space: nowrap; text-decoration: none;
  font-family: var(--font-num, 'Rajdhani','Inter',sans-serif); font-weight: 700; font-size: 22px;
  color: var(--ink, #101C26);
}
.w7c-tel:hover, .w7c-tel:focus-visible { color: var(--dial, #227355); text-decoration: underline; text-underline-offset: 3px; }
.w7c-nonum { font-size: 12.5px; color: var(--mute, #6C7B86); white-space: nowrap; }
.w7c-open { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 32px; padding: 4px 7px; border-radius: 6px; color: var(--found, #176ac2); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.w7c-open:hover, .w7c-open:focus-visible { background: var(--found-tint, #edf5ff); text-decoration: underline; text-underline-offset: 2px; }
.w7c-open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* --------------------------------------------------------------- sample -- */
.w7crow.is-sample {
  background: var(--sample-tint, #fbeef8);
  border-left: 3px dashed var(--sample, #a0338a);
  padding-left: 13px;
  grid-template-columns: minmax(0, 1fr);
}
.w7crow.is-sample .w7c-nm { color: var(--ink2, #3B4A55); }
.w7crow.is-sample .w7c-actions { grid-row: auto; grid-column: 1; justify-content: space-between; width: 100%; margin-top: 4px; }
.w7c-samplekick {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--sample, #a0338a); margin-bottom: 4px;
}
.w7c-samplekick svg { margin-top: 2px; }
.w7c-samplekick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------------------------------------------------------------- end --- */
.w7cend, .w7endl {
  margin: 16px 2px 0; font-size: 14.5px; color: var(--ink2, #3B4A55); text-align: left;
}
button.w7endl-more {
  display: block; width: 100%; border: 0; background: transparent; padding: 0;
  font: inherit; color: inherit; cursor: pointer; text-decoration: none;
}
button.w7endl-more:hover { text-decoration: underline; }
.w7endl b { color: var(--ink, #101C26); }

@media (min-width: 820px) {
  .w7csearch { max-width: 520px; }
  .w7crow { padding: 13px 18px; }
}
@media (max-width: 640px) {
  .w7crow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 13px 15px; }
  .w7c-actions { grid-column: 1; grid-row: auto; justify-content: space-between; min-width: 0; }
  .w7c-tel { font-size: 18px; }
  .w7c-open { margin-left: auto; }
}
