/* Three clearly labelled ways to browse the same filtered vacancies. */
.catalog-controls .view-switch { border-radius: 14px; gap: 3px; }
.catalog-controls .view-switch > :is(span,a) { min-height: 44px; padding: 9px 11px; font-size: 14px; border-radius: 10px; }
.catalog-controls .view-switch > span > span { display: inline; }
.catalog-controls .view-switch > :is(span,a) > svg { width: 17px; height: 17px; }
.catalog-controls .view-switch > [aria-current=page] { background: #e8f1ff; color: #0c58be; }

.catalog-feed-mode .content-grid { display: block; }
.catalog-feed-mode .employer-panel { display: none; }
.listing-feed-wrap { width: min(100%,700px); min-width: 0; margin-inline: auto; }
.listing-feed-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; color: #526d87; font-size: 14px; line-height: 1.6; }
.listing-feed-intro > :is(p,span) { max-width: 55ch; }
.listing-feed-stream { display: grid; gap: 16px; min-width: 0; padding: 18px; background: #e9f1f9; border: 1px solid #dce7f2; border-radius: 22px; }
.listing-feed-stream:empty { display: none; }
.listing-post { display: grid; gap: 14px; min-width: 0; padding: 22px; border: 1px solid #d9e5f1; border-radius: 20px 20px 20px 7px; background: #fff; color: #142d49; box-shadow: 0 3px 10px #173d6707; animation: listing-post-arrive 180ms ease-out both; }
.listing-post-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.listing-post .job-mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; border-color: #e0e9f3; background: #f4f8fd; color: #4082d6; }
.listing-post-company { display: grid; gap: 3px; min-width: 0; flex: 1; }
.listing-post-company strong { font-size: 14px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.listing-post .listing-post-save,.listing-post-head .job-bookmark { align-self: flex-start; margin-left: auto; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; color: #52728f; }
.listing-post .listing-post-save:hover,.listing-post-head .job-bookmark:hover { background: #eff5fd; }
.listing-post-title { margin: 0; font-size: 23px; font-weight: 750; line-height: 1.28; letter-spacing: -.025em; overflow-wrap: anywhere; }
.listing-post-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: #12345a; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.listing-post-open:hover { color: #0c60d1; }
.listing-post-salary { display: flex; align-items: flex-start; gap: 8px; font-size: 20px; font-weight: 700; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.listing-post-salary svg { margin-top: 4px; color: #6786a4; }
.listing-post-media { min-width: 0; overflow: hidden; border: 1px solid #dce6f1; border-radius: 15px; background: #f3f7fc; }
.feed-media-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; max-height: 360px; overflow: hidden; background: #edf3fa; isolation: isolate; }
.feed-media-open { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.feed-media-open:disabled { cursor: default; }
.feed-media-open > img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 360px; object-fit: contain; }
.feed-media-open > img[hidden] { display: none; }
.feed-media-open > img:not([hidden]) { animation: feed-photo-appear 180ms ease-out; }
.feed-media-open:focus-visible { outline-offset: -4px; }
.feed-media-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: #f1f6fc; color: #526e8a; text-align: center; font-size: 14px; line-height: 1.6; }
.feed-media-overlay[hidden] { display: none; }
.feed-media-placeholder { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 98px; padding: 18px; color: #607b96; font-size: 14px; line-height: 1.5; }
.feed-media-placeholder .feed-spinner { flex-shrink: 0; }
.feed-media-overlay .feed-media-placeholder { min-height: 0; padding: 0; }
.feed-media-enlarge { position: absolute; right: 11px; bottom: 11px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #fffdf8; color: #285889; box-shadow: 0 2px 9px #183b5f16; pointer-events: none; }
.feed-media-stage[aria-busy=true] .feed-media-enlarge { display: none; }
.feed-media-error { display: grid; justify-items: center; gap: 10px; padding: 18px; color: #526e8a; text-align: center; font-size: 14px; line-height: 1.6; }
.feed-media-error .button { min-height: 44px; font-size: 14px; }
.feed-media-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 9px; background: #fff; border-top: 1px solid #e0e9f3; }
.feed-media-controls[hidden] { display: none; }
.feed-media-nav { display: flex; align-items: center; gap: 7px; }
.feed-media-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #335b83; font: inherit; font-size: 14px; cursor: pointer; }
.feed-media-controls button:hover { background: #edf4ff; }
.feed-media-controls button:disabled { opacity: .45; cursor: default; }
.feed-media-controls button[hidden] { display: none; }
.feed-media-controls [data-feed-media-prev] svg { transform: rotate(180deg); }
.feed-media-controls [data-feed-media-count] { min-width: 37px; text-align: center; color: #58718a; font-size: 14px; font-variant-numeric: tabular-nums; }
.feed-media-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 0 5px 4px; background: #fff; }
.feed-media-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.feed-media-dots button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #cad8e9; transition: background 160ms,transform 160ms; }
.feed-media-dots button > span { display: none; }
.feed-media-dots button[aria-pressed=true]::after { background: #176be8; transform: scale(1.3); }
.feed-media-caption { padding: 10px 13px; background: #fff; color: #5c7590; font-size: 14px; line-height: 1.5; }
.feed-media-caption:empty { display: none; }
.feed-media-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 98px; padding: 18px; color: #607b96; font-size: 14px; line-height: 1.5; }
.feed-media-empty svg { flex-shrink: 0; color: #7b9bbd; }
@media(max-width:535px) {
  .feed-media-stage { aspect-ratio: 4 / 3; }
  .feed-media-controls [data-feed-media-pause] { flex: 0 0 44px; }
  .feed-media-controls [data-feed-media-pause] > span { display: none; }
}
@keyframes feed-photo-appear { from { opacity: .4; } to { opacity: 1; } }
@media(prefers-reduced-motion:reduce) { .feed-media-dots button::after { transition: none; } .feed-media-open > img:not([hidden]) { animation: none; } }
.listing-post-facts { display: grid; gap: 8px; color: #3b5672; font-size: 14px; line-height: 1.55; }
.listing-post-facts > :is(span,div,p) { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.listing-post-facts svg { margin-top: 3px; color: #6f8da9; }
.listing-post-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #536c85; font-size: 16px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.listing-post .listing-published { margin: 1px 0 0; font-size: 14px; gap: 8px 12px; }
.listing-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; border-top: 1px solid #e5edf6; }
.listing-post-actions .button { min-height: 44px; padding-inline: 20px; border-radius: 12px; font-size: 14px; }
.listing-post-permalink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 0; color: #53728f; font-size: 14px; text-underline-offset: 3px; }
.listing-post-permalink:hover { color: #0c60d1; text-decoration: underline; }
.listing-feed-wrap .standard-feed { padding-block: 20px; font-size: 14px; }
.listing-feed-wrap .standard-feed-end { font-size: 13px; }

/* Native dialog retains the feed and its scroll position underneath it. */
.listing-detail-dialog { width: min(1000px,calc(100% - 40px)); max-width: none; height: min(900px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #d5e1ef; border-radius: 24px; background: #f3f7fc; color: #122f50; box-shadow: 0 25px 90px #08284c40; }
.listing-detail-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.listing-detail-dialog::backdrop { background: #102b4e99; backdrop-filter: blur(3px); }
.listing-detail-dialog-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #dce6f2; }
.listing-detail-dialog-head h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.listing-detail-dialog-head .icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 13px; color: #345878; background: #f4f7fb; }
.listing-detail-dialog-body { min-width: 0; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.listing-detail-dialog-body > .back-link { display: none; }
.listing-detail-dialog .detail-grid.listing-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; width: 100%; min-width: 0; }
.listing-detail-dialog .listing-layout > :is(.contact-panel,.detail-info) { grid-column: auto; grid-row: auto; position: static; min-width: 0; width: 100%; }
.listing-detail-dialog .listing-layout > .panel { min-width: 0; max-width: 100%; }
.listing-detail-dialog .listing-heading-row > div { min-width: 0; }
.listing-detail-dialog .listing-heading-row h1 { font-size: clamp(25px,3vw,34px); line-height: 1.25; }
.listing-detail-dialog .detail-key-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
.listing-detail-dialog .detail-company { font-size: 16px; line-height: 1.5; }
.listing-detail-dialog .contact-panel h2,.listing-detail-dialog .detail-info h2 { font-size: 22px; line-height: 1.35; }
.listing-detail-dialog .description { font-size: 16px; line-height: 1.75; }
.listing-detail-dialog .contact-panel .button { min-height: 46px; font-size: 14px; }
.listing-detail-dialog .detail-location { width: 100%; min-width: 0; }
.listing-detail-dialog .oit-map-viewport { max-width: 100%; }
.listing-detail-dialog :is(a,button):focus-visible { outline-offset: 2px; }
@keyframes listing-post-arrive { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width:820px) {
  .listing-detail-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); height: calc(100dvh - 24px); border-radius: 20px; }
  .listing-detail-dialog-body { padding: 16px; }
}
@media (max-width:535px) {
  #results.section-head { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  #results .catalog-controls { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; margin-left: 0; }
  #results .catalog-controls .view-switch { display: flex; flex: 1 1 235px; min-width: 0; padding: 3px; border-radius: 13px; }
  #results .catalog-controls .view-switch > :is(span,a) { flex: 1 1 auto; min-height: 44px; padding: 8px 6px; gap: 4px; font-size: 14px; }
  #results .catalog-controls .view-switch > span > span { display: inline; }
  #results .catalog-controls .filter-toggle { min-height: 50px; padding: 10px 11px; font-size: 14px; gap: 5px; margin-left: auto; }
  .listing-feed-intro { margin-bottom: 11px; font-size: 14px; }
  .listing-feed-stream { padding: 10px; gap: 12px; border-radius: 18px; }
  .listing-post { padding: 17px 15px; gap: 13px; border-radius: 17px 17px 17px 6px; }
  .listing-post-head { gap: 10px; }
  .listing-post-company strong { font-size: 14px; }
  .listing-post-title { font-size: 22px; }
  .listing-post-salary { font-size: 19px; }
  .listing-post-excerpt { font-size: 16px; }
  .listing-post-actions .button { flex: 1 1 auto; min-height: 46px; }
  .listing-post-permalink { flex: 1 1 auto; }
  .listing-detail-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .listing-detail-dialog-head { padding: calc(10px + env(safe-area-inset-top,0px)) 14px 10px; gap: 10px; }
  .listing-detail-dialog-head h2 { font-size: 18px; }
  .listing-detail-dialog-body { padding: 12px 10px calc(18px + env(safe-area-inset-bottom,0px)); scrollbar-gutter: auto; }
  .listing-detail-dialog .detail-grid.listing-layout { gap: 12px; }
  .listing-detail-dialog .detail-hero { padding: 20px 16px; }
  .listing-detail-dialog .detail-key-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .listing-detail-dialog .detail-key-facts > div { padding: 11px 10px; }
  .listing-detail-dialog .detail-key-facts dt { font-size: 13px; }
  .listing-detail-dialog .detail-key-facts dd { font-size: 14px; }
  .listing-detail-dialog .listing-heading-row { align-items: flex-start; gap: 11px; }
  .listing-detail-dialog .listing-company-logo { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; }
  .listing-detail-dialog .listing-heading-row h1 { font-size: 25px; }
  .listing-detail-dialog .detail-info .panel,.listing-detail-dialog .contact-panel { padding: 19px 16px; }
  .listing-detail-dialog .detail-info .detail-location { padding: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .listing-post { animation: none; }
  .listing-post-open,.listing-post-actions .button,.listing-post-permalink { transition: none; }
}

.listing-feed-intro { display: grid; gap: 4px; }
.listing-feed-intro strong { font-size: 16px; color: #254b70; }
.feed-sort { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.feed-sort > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 14px; border: 1px solid #d8e4f1; border-radius: 13px; background: #fff; color: #405d7a; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; transition: background 150ms,color 150ms,border-color 150ms; }
.feed-sort > button[aria-pressed=true] { background: #1669e8; color: #fff; border-color: #1669e8; box-shadow: 0 3px 8px #1669e81a; }
.feed-sort > button:not([aria-pressed=true]):hover { background: #eef5ff; border-color: #a9caef; }
.feed-sort > button svg { flex-shrink: 0; }
.feed-sort-note { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #486989; }
.feed-sort-note[hidden] { display: none; }
@media(max-width:535px) {
  .feed-sort { gap: 6px; }
  .feed-sort > button { flex: 1 1 auto; padding: 10px 11px; font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { .feed-sort > button { transition: none; } }
.feed-distance-toolbar { margin: 0 0 16px; padding: 13px 15px; border: 1px solid #dce7f2; border-radius: 15px; background: #fff; }
.feed-distance-tools { display: grid; gap: 9px; }
.feed-distance-toggle { justify-self: start; min-height: 44px; font-size: 14px; }
.feed-distance-tools .feed-distance-status { margin: 0; color: #536c85; line-height: 1.6; font-size: 14px; }
.feed-distance { display: flex; align-items: flex-start; gap: 7px; color: #355e85; font-size: 14px; line-height: 1.5; }
.feed-distance > svg { flex-shrink: 0; margin-top: 2px; }
.listing-post-contacts { display: grid; gap: 9px; min-width: 0; padding-top: 12px; border-top: 1px solid #e5edf6; }
.listing-post-contacts h4 { margin: 0; font-size: 14px; font-weight: 650; }
.listing-post-phones { display: grid; gap: 8px; min-width: 0; }
.listing-post-contacts .contact-number > .button { min-height: 48px; justify-content: flex-start; }
.listing-post-contacts .contact-number > .phone-reveal { background: #eef5fe; color: #204e7f; border: 1px solid #d4e4f8; }
.listing-post-contacts .contact-number > .button small { font-size: 13px; }
.listing-post-contacts .contact-number > .icon-button { width: 44px; height: 44px; }
.listing-post-contacts .contact-reveal-status:empty { display: none; }
.listing-post-contacts .feed-contact-telegram { justify-content: flex-start; min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
