/* Two embedded homepage modules. Existing site tokens remain canonical. */
.home-opportunities {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 42% 44% at 8% 48%, rgba(125,211,252,.08), transparent 72%),
    #f7f9fc;
}
.home-opportunities::before,
.home-opportunities::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--content);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,rgba(102,139,172,.4) 20%,rgba(102,139,172,.4) 80%,transparent);
  pointer-events: none;
}
.home-opportunities::before { top: 0; }
.home-opportunities::after { bottom: 0; }
.ho-grid {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  gap: 48px;
  align-items: start;
  padding: 36px;
  border: 1px solid rgba(183,201,218,.58);
  border-radius: var(--radius);
  background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,251,254,.88));
  box-shadow: 0 18px 48px rgba(22,55,87,.055), inset 0 1px 0 rgba(255,255,255,.9);
}
.ho-suppliers,.ho-demands { min-width: 0; }
.ho-demands { position: relative; }
.ho-demands::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 1px;
  background: linear-gradient(180deg,transparent,var(--line) 8%,var(--line) 92%,transparent);
  pointer-events: none;
}
.ho-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 28px; min-height: 92px; }
.ho-heading h2 { margin: 0 0 14px; font-size: clamp(25px,2.3vw,32px); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.ho-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.ho-count { flex-shrink: 0; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.ho-count b { font-weight: 500; }
.op-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 600; color: var(--blue); }
.op-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.op-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.op-empty { margin: 0; padding: 28px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; border: 1px dashed var(--line); border-radius: 8px; }
.op-request-list > .op-empty { grid-column: 1 / -1; align-self: start; }
.op-video-error:not([hidden]) { display: grid; position: absolute; inset: 0; padding: 24px; place-content: center; color: white; text-align: center; background: #071b31; }
.op-video-caption { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 0 24px; min-height: 148px; }
.op-video-caption > div { min-width: 0; }
.op-video-caption h3 { margin: 0 0 9px; font-size: 21px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.op-video-caption p:not(.op-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.op-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--blue); font-size: 12px; font-weight: 600; }
.op-text-link > span { font-size: 18px; }
.op-text-link:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 5px; }
.op-video-caption > a { flex-shrink: 0; }
.op-playlist { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; min-height: 103px; }
.op-video-choice { align-self: start; min-width: 0; display: block; padding: 4px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 6px; text-align: start; cursor: pointer; transition: background .15s,border-color .15s; }
.op-video-choice:hover { background: var(--surface); }
.op-video-choice.is-active { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.op-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #071b31; }
.op-thumb img { width: 100%; height: 100%; object-fit: cover; }
.op-thumb > span { position: absolute; right: 2px; bottom: 2px; padding: 0 3px; background: rgba(0,0,0,.8); color: white; font-size: 10px; }
.op-video-choice strong { display: block; padding: 8px 1px 4px; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.op-request-list { --request-row-height: 126px; height: calc(4 * var(--request-row-height) + 1px); display: grid; grid-template-rows: repeat(4,var(--request-row-height)); border-top: 1px solid var(--line); }
.op-request-row { --request-title-lines: 3; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 18px minmax(0,1fr); gap: 8px 16px; height: var(--request-row-height); min-height: 0; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.op-request-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.op-country { display: inline-block; color: var(--blue-deep); font-size: 11px; font-weight: 600; }
.op-request-meta > span + span { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; border-left: 1px solid var(--line); }
.op-request-meta .op-country { flex-shrink: 0; }
.op-request-row h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--request-title-lines); max-height: min(calc(var(--request-title-lines) * 1.45em),100%); min-width: 0; min-height: 0; overflow: hidden; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.op-request-row .op-text-link { align-self: center; white-space: nowrap; }
.op-requirement-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ho-pagination:not([hidden]) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ho-pagination > span { color: var(--muted); font-size: 12px; }
.ho-pagination > div { display: flex; gap: 8px; }
.ho-pagination button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); background: transparent; cursor: pointer; font-size: 20px; }
.ho-pagination button:disabled { opacity: .35; cursor: default; }
.ho-pagination button:not(:disabled):hover { background: var(--blue-soft); border-color: var(--blue); }
@media(max-width:1000px) {
  .ho-grid { gap: 32px; padding: 28px; }
  .ho-demands::before { left: -16px; }
  .ho-heading { min-height: 120px; }
  .op-video-caption { display: block; min-height: 160px; }
  .op-video-caption > a { margin-top: 8px; }
  .op-request-row { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 44px minmax(0,1fr); padding: 8px 0; gap: 6px 12px; }
  .op-request-row .op-request-meta { grid-column: 1; grid-row: 1; }
  .op-request-row h3 { grid-column: 1 / -1; grid-row: 2; }
  .op-request-row .op-text-link { grid-column: 2; grid-row: 1; justify-self: end; min-height: 44px; }
}
@media(max-width:760px) {
  .home-opportunities { padding: 36px 0 48px; }
  .ho-grid { grid-template-columns: minmax(0,1fr); gap: 36px; padding: 24px 20px; }
  .ho-demands { padding-top: 30px; border-top: 1px solid var(--line); }
  .ho-demands::before { display: none; }
  .ho-heading { min-height: 0; margin-bottom: 22px; }
  .ho-heading h2 { font-size: 27px; }
  .ho-heading p { font-size: 13px; }
  .op-video-caption { min-height: 0; padding-bottom: 20px; }
  .op-playlist { gap: 4px; min-height: 90px; }
  .op-video-choice { padding: 3px; }
  .op-video-choice strong { font-size: 11px; }
  .op-request-row h3 { font-size: 14px; }
}
@media(max-width:380px) {
  .ho-heading h2 { font-size: 24px; }
}
@media(prefers-reduced-motion:reduce) { .op-video-choice { transition: none; } }
