/* Align the project market with the two-row KOM masthead. */
.container.kom-jobs.kom-freelancer {
  --project-ink: #20334c;
  --project-muted: #4c6074;
  --project-line: #d5dfe6;
  --project-blue: #284b70;
  --project-accent: #a84435;
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(26px, 3vw, 45px) 0 clamp(44px, 5vw, 76px);
  color: var(--project-ink);
  font-family: Lato, Arial, Helvetica, sans-serif;
}

.kom-freelancer *, .kom-freelancer *::before, .kom-freelancer *::after { box-sizing: border-box; }
.kom-freelancer .kom-jobs__head { align-items: center; gap: 18px 36px; margin: 0 0 24px; }
.kom-freelancer .kom-jobs__head h1,
.kom-freelancer .kom-project-detail h1 {
  margin: 0;
  color: var(--project-ink);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.kom-freelancer .kom-jobs__head h1 { font-size: clamp(31px, 3.3vw, 43px); }
.kom-freelancer .kom-jobs__intro { max-width: 66ch; margin: 9px 0 0; color: var(--project-muted); font-size: 18px; line-height: 1.5; }
.kom-freelancer .kom-jobs__post { display: grid; gap: 5px; align-content: center; }
.kom-freelancer .kom-jobs__post small { margin: 0; color: var(--project-muted); font-size: 13px; }
.kom-freelancer .kom-jobs__button,
.kom-freelancer .kom-project__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #253f62;
  border-radius: 8px;
  background: #253f62;
  color: white;
  font: 700 15px/1.32 Lato, Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}
.kom-freelancer .kom-jobs__button:hover,
.kom-freelancer .kom-project__button:hover { border-color: #172f49; background: #172f49; color: white; }

.kom-freelancer .kom-jobs__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin: 0 0 24px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--project-line);
  border-radius: 14px;
  background: #f0f4f7;
}
.kom-freelancer .kom-jobs__filters label { min-width: 0; color: #2b4055; font-size: 14px; font-weight: 700; line-height: 1.4; }
.kom-freelancer .kom-jobs__filters input,
.kom-freelancer .kom-jobs__filters select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 8px 11px;
  border: 1px solid #abbccc;
  border-radius: 7px;
  background-color: #fff;
  font: 400 16px/1.35 Lato, Arial, Helvetica, sans-serif;
  color: var(--project-ink);
}
.kom-freelancer .kom-jobs__filters > a { align-self: center; color: var(--project-blue); text-underline-offset: 3px; }

.kom-freelancer .kom-jobs__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.kom-freelancer .kom-project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: clamp(19px, 2.2vw, 29px);
  border: 1px solid var(--project-line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 2px 6px rgba(30, 52, 76, .055);
}
.kom-freelancer .kom-project-card:focus-within { border-color: var(--project-blue); }
.kom-freelancer .kom-project-card__type {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 14px;
}
.kom-project-card__specialty {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #39556e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.kom-project-card__specialty::before { content: ""; flex: none; width: 17px; height: 3px; background: var(--project-accent); }
.kom-project-card__model {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 5px;
  background: #edf2f5;
  color: #3c566a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.kom-freelancer .kom-project-card h2 { margin: 0; font: 700 clamp(21px, 2.15vw, 27px)/1.24 Lato, Arial, Helvetica, sans-serif; letter-spacing: -.017em; }
.kom-freelancer .kom-project-card h2 a { position: static; color: var(--project-ink); text-decoration: none; }
.kom-project-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.kom-project-card h2 a:focus-visible { outline: none; }
.kom-project-card h2 a:focus-visible::after { outline: 3px solid #236294; outline-offset: 2px; }
.kom-freelancer .kom-project-card .kom-jobs__employer { margin: 9px 0 0; font-size: 16px; }
.kom-freelancer .kom-project-card__location { display: flex; align-items: baseline; gap: 8px; margin: 11px 0 0; color: var(--project-muted); font-size: 16px; line-height: 1.45; }
.kom-project-card__pin {
  position: relative;
  display: inline-block;
  top: -1px;
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
}
.kom-project-card__pin::before { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; }
.kom-freelancer .kom-project-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.kom-project-card__foot dl {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 26px;
  min-width: 0;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e3e9ee;
}
.kom-project-card__foot dl > div { min-width: 0; max-width: 100%; }
.kom-project-card__foot dt { margin: 0; color: #53687a; font-size: 13px; font-weight: 400; line-height: 1.4; }
.kom-project-card__foot dd { margin: 2px 0 0; color: #2c4053; font-size: 15px; font-weight: 700; line-height: 1.42; }
.kom-project-card__open {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid #cbd8e2;
  border-radius: 50%;
  background: #f4f7f9;
  color: var(--project-blue);
}
.kom-freelancer__arrow { position: relative; display: inline-block; width: 15px; height: 10px; flex: none; }
.kom-freelancer__arrow::before,
.kom-freelancer__arrow::after { content: ""; position: absolute; }
.kom-freelancer__arrow::before { top: 4px; left: 0; width: 13px; border-top: 2px solid currentColor; }
.kom-freelancer__arrow::after { top: 1px; right: 1px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
@media (hover: hover) {
  .kom-freelancer .kom-project-card:hover { border-color: #93aabd; box-shadow: 0 5px 16px rgba(30, 52, 76, .10); }
  .kom-project-card:hover h2 a { color: #2e587e; }
  .kom-project-card:hover .kom-project-card__open { border-color: var(--project-blue); background: var(--project-blue); color: white; }
}
.kom-freelancer nav.kom-jobs__actions { margin: 24px 0 0; }

.kom-freelancer .kom-freelancer__back { margin: 0 0 15px; }
.kom-freelancer__back a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--project-blue); font-size: 15px; font-weight: 700; text-decoration: none; }
.kom-freelancer__back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kom-freelancer__back .kom-freelancer__arrow { transform: rotate(180deg); }

.kom-freelancer .kom-project-detail {
  display: grid;
  grid-template-areas: "heading" "facts" "body";
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--project-line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 3px 12px rgba(30, 52, 76, .045);
}
.kom-freelancer .kom-project-detail--plain { grid-template-areas: "heading" "body"; }
.kom-project-detail__heading { grid-area: heading; min-width: 0; }
.kom-freelancer .kom-project-detail h1 { max-width: 38ch; font-size: clamp(29px, 3vw, 40px); }
.kom-freelancer .kom-project-detail__heading .kom-project__provider { margin: 12px 0 0; color: #394f65; font-size: 16px; }
.kom-freelancer .kom-project__profile { color: var(--project-blue); text-decoration: underline; }
.kom-project-detail__facts {
  grid-area: facts;
  min-width: 0;
  padding: clamp(18px, 2.1vw, 27px);
  border-radius: 10px;
  background: #263d57;
  color: white;
}
.kom-freelancer .kom-project-detail__facts h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: white; font-size: 21px; line-height: 1.25; }
.kom-project-detail__facts h2::before { content: ""; display: block; width: 21px; height: 3px; flex: none; background: #e6a293; }
.kom-project-detail__facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.kom-project-detail__facts dl > div { min-width: 0; padding-top: 9px; border-top: 1px solid #526478; }
.kom-project-detail__facts dt { margin: 0; color: #ccdae5; font-size: 14px; font-weight: 400; line-height: 1.4; }
.kom-project-detail__facts dd { margin: 2px 0 0; color: white; font-size: 17px; font-weight: 700; line-height: 1.38; overflow-wrap: anywhere; }

.kom-project-detail__body { grid-area: body; min-width: 0; }
.kom-freelancer .kom-project-detail__body h2 { margin: 0 0 12px; color: var(--project-ink); font-size: 22px; line-height: 1.3; }
.kom-freelancer .kom-project-detail__body .kom-jobs__description {
  max-width: 70ch;
  margin: 0;
  color: #263a4a;
  font-size: 18px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.kom-freelancer .kom-project-detail__contact-title { margin: 24px 0 10px; }
.kom-freelancer .kom-project-detail__contact-data { margin: 0; color: var(--project-ink); font-size: 16px; }
.kom-project-detail__actions, .kom-project-detail__body > .kom-project__inquiry {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--project-line);
}
.kom-project-detail__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.kom-freelancer .kom-project-detail__actions > .kom-project__inquiry { min-width: 0; max-width: 100%; margin: 0; padding: 0; border: 0; }
.kom-project-detail__actions > details[open], .kom-project-detail__actions > .kom-jobs__notice { flex-basis: 100%; }
.kom-project-detail__actions > p { align-self: center; margin: 0; }
.kom-freelancer .kom-project-detail__secondary,
.kom-freelancer .kom-project-detail__actions .kom-project__website {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid #b8c8d4;
  border-radius: 8px;
  background: #fff;
  color: var(--project-blue);
  font: 700 15px/1.32 Lato, Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}
.kom-freelancer .kom-project-detail__secondary:hover,
.kom-freelancer .kom-project-detail__actions .kom-project__website:hover { background: #eef3f7; border-color: #829bae; }
.kom-freelancer .kom-project__gate { gap: 11px; }
.kom-freelancer .kom-jobs__form textarea { max-width: 100%; }
.kom-project-detail__actions form p { margin: 0 0 10px; font-size: 16px; }
.kom-project-detail__actions form textarea { font-size: 16px; line-height: 1.5; }
.kom-freelancer :focus-visible { outline: 3px solid #236294; outline-offset: 3px; }

@media (min-width: 780px) {
  .kom-freelancer .kom-jobs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 900px) {
  .kom-freelancer .kom-project-detail {
    grid-template-areas: "facts heading" "facts body";
    grid-template-columns: minmax(224px, .37fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 22px clamp(30px, 3.2vw, 46px);
  }
  .kom-freelancer .kom-project-detail--plain { grid-template-areas: "heading" "body"; grid-template-columns: minmax(0, 1fr); }
  .kom-project-detail__facts dl { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1060px) {
  .kom-freelancer .kom-jobs__filters { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .94fr) auto; }
  .kom-freelancer .kom-jobs__filters > a { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
  .container.kom-jobs.kom-freelancer { width: calc(100% - 36px); }
  .kom-freelancer .kom-jobs__filters { gap: 12px 10px; }
  .kom-freelancer .kom-jobs__filters > button { grid-column: 1 / -1; }
  .kom-freelancer .kom-jobs__intro { font-size: 17px; }
  .kom-freelancer .kom-project-detail__body .kom-jobs__description { font-size: 17px; line-height: 1.6; }
  .kom-freelancer .kom-project-detail__facts dd { font-size: 15px; }
}
@media (max-width: 480px) {
  .kom-freelancer .kom-jobs__filters label:nth-of-type(n+3) { grid-column: 1 / -1; }
  .kom-project-card__model { margin-left: 0; }
}
@media (max-width: 369px) {
  .kom-freelancer .kom-jobs__filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .kom-freelancer .kom-project-detail { padding: 17px; gap: 19px; }
  .kom-project-detail__facts { padding: 15px; }
  .kom-freelancer .kom-project__gate { align-items: stretch; flex-direction: column; }
  .kom-freelancer .kom-project__gate > a { width: 100%; }
}
