/* The ranking profile's insight cards and the equal column heights (session 127).
   Markup: main/templates/partials/profile_insights.html, profile_subfield_line.html,
   profile_citation_line.html. Data: main/utils/profile_insights.py. Charts: static/js/ts-profile-insights.js. */

.pins { margin: 20px 0 0; padding: 0 12px; }
.pins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pins-full { grid-column: 1 / -1; }
.pins-card { background: #fff; border-radius: 8px; padding: 14px 16px; }
.pins-card h6 { margin: 0 0 2px; color: #353636; }
.pins-hint { font-size: 12.5px; color: #858796; margin: 0 0 10px; line-height: 1.4; }
.pins-box { position: relative; height: 165px; }
.pins-box.pins-donut { height: 150px; }
.pins-row2 { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.pins-legend { list-style: none; margin: 0; padding: 0; }
.pins-legend li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f1f3f7; }
.pins-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.pins-under-strip { text-align: left; }
.pins-srow { margin: 6px 0 4px; }
.pins-slab { font-size: 13px; font-weight: 600; color: #353636; margin-bottom: 36px; }
.pins-slab small { color: #858796; font-weight: 400; }
.pins-track { position: relative; height: 8px; border-radius: 4px; background: #eef1f6; margin: 0 14px; }
.pins-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #d6e4fd, #4c8bf5); }
.pins-mk { position: absolute; top: -4px; width: 2px; height: 16px; background: #a0a8b5; }
.pins-mk span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #858796; text-align: center; white-space: nowrap; line-height: 1.25; }
.pins-you { position: absolute; top: -6px; width: 4px; height: 20px; background: #212529; border-radius: 2px; }
.pins-you span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 11px; text-align: center; white-space: nowrap; line-height: 1.25; }
.pins-you.pins-you-r span { left: auto; right: -2px; transform: none; text-align: right; }
.pins-you.pins-you-l span { left: -2px; transform: none; text-align: left; }
.pins-res { margin: 40px 0 6px; font-size: 12.5px; color: #0f7a55; font-weight: 600; }
.pins-under-strip .pins-res { margin-bottom: 0; }

.pins-cn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.pins-cn img { width: 26px; border-radius: 2px; box-shadow: 0 0 0 1px #e5e7eb; }
.pins-bar { flex: 1; min-width: 120px; height: 7px; background: #eef1f6; border-radius: 4px; }
.pins-bar div { height: 100%; background: #4bc0c0; border-radius: 4px; }
.pins-tag { font-size: 11px; background: #e9f7f1; color: #0f7a55; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.pins-also { font-size: 12.5px; color: #858796; margin-top: 8px; }
.pins-chip { display: inline-flex; align-items: center; gap: 5px; background: #f3f5f9; border-radius: 12px; padding: 2px 9px; margin: 4px 6px 0 0; color: #353636; }
.pins-chip img { width: 16px; }
.pins-note-line { font-size: 11.5px; color: #858796; margin: 10px 0 0; }

.pins-more { margin-top: 16px; }
.pins-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; border-radius: 8px; padding: 11px; font-weight: 600; font-size: 14px; color: #4c8bf5; }
.pins-more > summary::-webkit-details-marker { display: none; }
.pins-more[open] > summary { margin-bottom: 16px; }
.pins-more > summary .fa-chevron-down { transition: transform .2s; }
.pins-more[open] > summary .fa-chevron-down { transform: rotate(180deg); }

.pins-pill { display: inline-block; margin-left: 8px; background: #eaf2ff; color: #2f6fe0; border-radius: 12px; padding: 1px 10px; font-size: .85rem; font-weight: 700; }
.pins-note { display: inline-block; margin-left: 6px; font-size: .78rem; color: #858796; font-weight: 500; }
.pins-foot { margin: 16px 12px 0; }

/* Equal heights where the table and the charts sit side by side (owner, session 127): the four charts grow
   or shrink with the table's column (never below 170px each), and the table's card grows only if the
   charts are still taller. Phones keep the stacked layout. */
@media (min-width: 992px) {
  .career-tab-content .container-fluid > .row > .col-lg-5,
  .single-tab-content .container-fluid > .row > .col-lg-5 { display: flex; flex-direction: column; }
  .career-tab-content .charts-section,
  .single-tab-content .charts-section { flex: 1 1 auto; display: flex; flex-direction: column; flex-wrap: nowrap; margin: 0; }
  .career-tab-content .charts-section > .data-section,
  .single-tab-content .charts-section > .data-section { flex: 1 1 auto; display: flex; flex-direction: column; }
  .career-tab-content .charts-section .ts-chart-box,
  .single-tab-content .charts-section .ts-chart-box { flex: 1 1 0; height: auto; min-height: 170px; }
  .career-tab-content .charts-section .ts-chart-box canvas,
  .single-tab-content .charts-section .ts-chart-box canvas { position: absolute; inset: 0; }
  .career-tab-content .container-fluid > .row > .col-lg-7,
  .single-tab-content .container-fluid > .row > .col-lg-7 { display: flex; flex-direction: column; }
  .career-tab-content .col-lg-7 > .tablesides,
  .single-tab-content .col-lg-7 > .tablesides { flex: 1 1 auto; align-content: flex-start; }
}
@media (max-width: 767px) {
  .pins { padding: 0 4px; }
  .pins-grid { grid-template-columns: 1fr; }
  .pins-row2 { grid-template-columns: 120px 1fr; }
  .pins-foot { margin: 16px 4px 0; }
}
