/* Project tables on an individual profile follow the Companies directory. */
.profile-project-directory {
  --project-text: #243044; --project-muted: #667387; --project-line: #dce3ed;
  --project-soft: #f2f5fa; --project-accent: #315fb8;
}
html[data-theme="dark"] .profile-project-directory {
  --project-text: #edf0f6; --project-muted: #a6b1c1; --project-line: #354052;
  --project-soft: #242e3d; --project-accent: #a9c6ff;
}
#profileProjectFilters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; margin-bottom: 24px; }
.profile-project-directory :is(#profile-projects-table, #dqTable) {
  width: 100% !important; min-width: 960px; border-collapse: collapse;
  border-bottom: 0; background: transparent; color: var(--project-text);
}
.profile-project-directory :is(#profile-projects-table, #dqTable) thead th {
  padding: 12px 28px 14px 12px; border-bottom: 1px solid var(--project-line);
  color: var(--project-muted); font-size: .8rem; font-weight: 500;
}
.profile-project-directory :is(#profile-projects-table, #dqTable) tbody tr { background: transparent; transition: background-color .18s ease; }
.profile-project-directory :is(#profile-projects-table, #dqTable) tbody td {
  padding: 20px 12px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--project-line);
  background: transparent; box-shadow: none; color: var(--project-muted); font-size: .85rem;
}
.profile-project-directory :is(#profile-projects-table, #dqTable) th:first-child { width: 28%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(3) { width: 18%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6)) { text-align: right; font-variant-numeric: tabular-nums; }
.profile-project-directory :is(#profile-projects-table, #dqTable) td:is(:nth-child(4), :nth-child(6)) { color: var(--project-text); font-weight: 600; }
.profile-project-directory :is(#profile-projects-table, #dqTable) td:first-child a { color: var(--project-text); font-weight: 600; font-size: .95rem; }
.profile-project-directory :is(#profile-projects-table, #dqTable) td:first-child a:hover { color: var(--project-accent); }
.profile-project-directory :is(#profile-projects-table, #dqTable) tr:focus-within { background: var(--project-soft); }
.profile-project__identity { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.profile-project__thumbnail { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: var(--project-soft); }
.profile-project__thumbnail span { color: var(--project-accent); font-size: .8rem; }
.profile-project__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-project__link { min-width: 0; }
.profile-project-directory a:focus-visible { outline: 2px solid #648cf2; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .profile-project-directory :is(#profile-projects-table, #dqTable) tbody tr:hover { background: var(--project-soft); }
}
@media (max-width: 768px) { #profileProjectFilters { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .profile-project-directory tbody tr { transition: none !important; } }

/* Consistent search fields on the four public directories. */
:is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter { width:100%; max-width:100%; float:none; margin:1rem 0 1.5rem; text-align:left; }
:is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter label { display:flex; flex-direction:column; align-items:stretch; width:100%; gap:.5rem; color:var(--pm-text-soft,#687386); font-size:.78rem; font-weight:600; line-height:1.5; }
:is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input { box-sizing:border-box; display:block; width:100%; max-width:100%; min-height:50px; margin:0; padding:.75rem 2.5rem .75rem 2.8rem; border:1px solid rgba(105,124,154,.4); border-radius:9px; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8ca4' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:1rem center; background-size:19px; color:var(--pm-text-strong,#1d2738); font:inherit; font-size:.95rem; font-weight:400; line-height:1.5; transition:border-color .15s,box-shadow .15s; }
:is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input::placeholder { color:#78869a; opacity:1; }
:is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input:focus { outline:none; border-color:#648cf2; box-shadow:0 0 0 3px rgba(100,140,242,.16); }
html[data-theme="dark"] :is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input { background-color:#192230; border-color:#3c4a60; }
html[data-theme="dark"] :is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input::placeholder { color:#a5b1c3; }
@media(prefers-color-scheme:dark) {
 html:not([data-theme]) :is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input { background-color:#192230; border-color:#3c4a60; }
}
@media(max-width:768px) {
 :is(#profile-projects-table_wrapper, #dqTable_wrapper) .dataTables_filter input { font-size:16px; }
}

/* Stable column widths keep company names and numeric columns readable. */
.profile-project-directory :is(#profile-projects-table, #dqTable) { table-layout: fixed; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(2) { width: 12%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(4) { width: 7%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(5) { width: 9%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(6) { width: 11%; }
.profile-project-directory :is(#profile-projects-table, #dqTable) th:nth-child(7) { width: 15%; }
.profile-project__link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.company-other-work .title { margin-bottom: 8px; }
.company-other-work__description { max-width: 900px; margin-bottom: 24px; color: var(--pm-text-soft, #667387); font-size: .9rem; line-height: 1.6; }
