/* BUILD007 portfolio styles. The accepted theme header, homepage and assistant are untouched. */
.pssx-work-catalogue,
.pssx-work-connections,
.pssx-work-reference { box-sizing: border-box; color: #28334a; }
.pssx-work-catalogue *,
.pssx-work-connections *,
.pssx-work-reference *,
.pssx-work-dialog * { box-sizing: border-box; }
.pssx-work-catalogue { width: 100%; max-width: 1280px; margin: 24px auto 0; scroll-margin-top: calc(100px + var(--wp-admin--admin-bar--height, 0px)); }
.pssx-work-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin: 0; padding: 22px; border: 1px solid #dde1e7; border-radius: 12px; background: #f4f5f7; }
.pssx-work-filter-field { display: flex; flex: 1 1 190px; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.pssx-work-filter-field:first-child { flex: 2 1 240px; }
.pssx-work-filters label { margin: 0; color: #3d4960; font-size: 12px; font-weight: 600; line-height: 1.4; }
.pssx-work-filters :is(input[type="search"], select) { display: block; width: 100%; min-height: 45px; margin: 0; padding: 10px 12px; border: 1px solid #bec7d3; border-radius: 6px; background: #fff; color: #28334a; font: inherit; font-size: 14px; line-height: 1.5; box-shadow: none; }
.pssx-work-filters input::placeholder { color: #657185; opacity: 1; }
.pssx-work-filter-actions { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: 14px; min-height: 45px; }
.pssx-work-filter-submit,
.pssx-work-add-reference { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; width: auto; margin: 0; padding: 11px 17px; border: 1px solid #28334a; border-radius: 6px; background: #28334a; color: #fff; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.pssx-work-filter-submit:hover,
.pssx-work-add-reference:hover { background: #384760; border-color: #384760; }
.pssx-work-clear { display: inline-flex; align-items: center; min-height: 44px; color: #28334a; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.pssx-work-count { margin: 18px 0 !important; color: #536075; font-size: 13px !important; font-weight: 400; line-height: 1.6; }
.pssx-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 25px; margin: 0; }
.pssx-work-grid > .pssx-work-card { display: flex; flex-direction: column; min-width: 0; height: 100%; margin: 0 !important; padding: 0; border: 1px solid #dce1e7; border-radius: 12px; overflow: hidden; background: #fff; }
.pssx-work-image { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: center; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; padding: 0; border-bottom: 1px solid #e4e7eb; overflow: hidden; background: #f0f2f5; }
.pssx-work-image img { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; margin: 0; padding: 0; object-fit: contain !important; object-position: center top !important; transform: none !important; transition: none !important; }
.pssx-work-image.pssx-work-image-empty { aspect-ratio: 16 / 10; min-height: 160px; align-items: center; padding: 24px; color: #687487; font-size: 14px; text-align: center; }
.pssx-work-card-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; min-width: 0; gap: 0; padding: 24px; }
.pssx-work-type { margin: 0 0 10px !important; color: #657084; font-size: 10px !important; font-weight: 600; line-height: 1.55; letter-spacing: .07em; text-transform: uppercase; overflow-wrap: anywhere; }
.pssx-work-title { margin: 0 0 11px !important; color: #28334a; font-size: clamp(19px, 1.7vw, 23px) !important; font-weight: 600 !important; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pssx-work-title a { color: inherit; text-decoration: none; }
.pssx-work-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pssx-work-excerpt { margin: 0 0 18px !important; color: #536075; font-size: 14px !important; font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; }
.pssx-work-services { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px !important; padding: 0 !important; list-style: none; }
.pssx-work-services li { margin: 0 !important; padding: 0 !important; list-style: none; }
.pssx-work-services a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border: 1px solid #e4d5c0; border-radius: 5px; background: #fff7eb; color: #74501f; font-size: 11px; font-weight: 500; line-height: 1.45; text-decoration: none; }
.pssx-work-services a:hover { border-color: #bd8e4e; text-decoration: underline; text-underline-offset: 3px; }
.pssx-work-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid #e5e8ed; }
.pssx-work-detail,
.pssx-work-reference-link,
.pssx-work-screenshot { display: inline-flex; align-items: center; min-height: 40px; color: #28334a; font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.pssx-work-detail { font-weight: 600; }
.pssx-work-screenshot { color: #647086; font-size: 11px; }
.pssx-work-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 0; }
.pssx-work-pagination :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 42px; padding: 8px 12px; border: 1px solid #d3d9e2; border-radius: 6px; background: #fff; color: #28334a; font-size: 13px; text-decoration: none; }
.pssx-work-pagination .current,
.pssx-work-pagination [aria-current="page"] { border-color: #28334a; background: #28334a; color: #fff; }
.pssx-work-pagination a:hover { border-color: #75839b; }
.pssx-work-empty { padding: 36px 26px; border: 1px dashed #bdc7d5; border-radius: 12px; background: #f8f9fb; text-align: center; }
.pssx-work-empty h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; }
.pssx-work-empty p { margin: 0 0 12px; color: #536075; font-size: 14px; }
.pssx-work-connections { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; width: 100%; max-width: 1280px; margin: 0 auto 28px; padding: 20px 24px; border: 1px solid #dfd9ce; border-radius: 10px; background: #fbfaf7; }
.pssx-work-connections .pssx-work-services { margin-bottom: 0 !important; }
.pssx-work-connections > .pssx-work-kicker { flex-basis: 100%; }
.pssx-work-connections .pssx-work-reference-help { flex-basis: 100%; margin: 0 !important; color: #536075; font-size: 13px !important; line-height: 1.6; }
.pssx-work-kicker { margin: 0 0 6px !important; color: #6c5331; font-size: 10px !important; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.pssx-work-connections .pssx-work-reference-link { min-height: 44px; margin: 0; font-size: 13px; }
.pssx-work-reference { width: 100%; max-width: 1280px; margin: 24px auto; padding: 24px 26px; border: 1px solid #ebd6b8; border-left: 4px solid #f7961d; border-radius: 9px; background: #fff8ed; }
.pssx-work-reference h2,
.pssx-work-reference h3 { margin: 0 0 10px; color: #28334a; font-size: 21px; font-weight: 600; line-height: 1.4; }
.pssx-work-reference p { margin: 0 0 14px; color: #536075; font-size: 14px; line-height: 1.7; }
.pssx-work-reference a { color: #28334a; overflow-wrap: anywhere; text-underline-offset: 4px; }
.pssx-work-reference .pssx-work-reference-status { margin: 12px 0 0; font-size: 12px; }
.pssx-work-reference-status:empty { display: none; }
.pssx-work-add-reference:disabled { border-color: #c3cbd7; background: #e7ebf1; color: #536075; cursor: default; }
.pssx-work-reference [hidden] { display: none !important; }
:is(.pssx-work-catalogue, .pssx-work-connections, .pssx-work-reference) :is(a, button, input, select):focus-visible { outline: 3px solid #b96d12; outline-offset: 4px; }
.pssx-work-dialog { width: min(1280px, calc(100vw - 40px)); height: min(900px, calc(100dvh - 40px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #b8c2d0; border-radius: 12px; overflow: hidden; background: #fff; color: #28334a; box-shadow: 0 18px 70px rgba(12,22,41,.3); }
.pssx-work-dialog[open] { display: flex; flex-direction: column; }
.pssx-work-dialog:not([open]) { display: none; }
.pssx-work-dialog::backdrop { background: rgba(20,29,45,.78); }
.pssx-work-dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid #dce1e7; background: #fff; }
.pssx-work-dialog-header h2 { margin: 0; font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pssx-work-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; min-width: 60px; padding: 9px 13px; border: 1px solid #c6ceda; border-radius: 6px; background: #fff; color: #28334a; font: inherit; font-size: 13px; cursor: pointer; }
.pssx-work-dialog-stage { display: flex; flex: 1 1 auto; align-items: flex-start; justify-content: center; min-height: 0; padding: 16px; overflow: auto; background: #eef1f5; }
.pssx-work-dialog-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0 auto; object-fit: contain; object-position: top center; }
.pssx-work-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 47px; padding: 10px 22px; border-top: 1px solid #dce1e7; font-size: 12px; }
.pssx-work-dialog-status { margin: 0; color: #536075; }
.pssx-work-dialog-footer a { color: #28334a; text-underline-offset: 3px; }
.pssx-work-dialog :is(a, button):focus-visible { outline: 3px solid #b96d12; outline-offset: 4px; }
@media (max-width: 980px) {
  .pssx-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pssx-work-card-body { padding: 21px; }
}
@media (max-width: 650px) {
  .pssx-work-filters { gap: 13px; padding: 18px; }
  .pssx-work-filter-field,
  .pssx-work-filter-field:first-child { flex-basis: 100%; }
  .pssx-work-filters :is(input[type="search"], select) { font-size: 16px; }
  .pssx-work-filter-actions { width: 100%; justify-content: space-between; }
  .pssx-work-grid { grid-template-columns: 1fr; gap: 22px; }
  .pssx-work-title { font-size: 22px !important; }
  .pssx-work-connections { padding: 18px; }
  .pssx-work-reference { padding: 21px 18px; }
  .pssx-work-dialog { width: calc(100vw - 20px); height: calc(100dvh - 24px); border-radius: 9px; }
  .pssx-work-dialog-header { padding: 13px 15px; }
  .pssx-work-dialog-header h2 { font-size: 17px; }
  .pssx-work-dialog-stage { padding: 9px; }
  .pssx-work-dialog-footer { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.pssx-work-catalogue, .pssx-work-reference, .pssx-work-dialog) * { scroll-behavior: auto !important; transition: none !important; }
}
@media (forced-colors: active) {
  :is(.pssx-work-card, .pssx-work-filters, .pssx-work-reference, .pssx-work-dialog) { border: 1px solid CanvasText; }
}
