/*
 * Today screen: workspace hero, four tinted stat cards, one slim sync strip, and the job list
 * with filter tabs taking the full width.
 *
 * Layout: a single column at every width. Job rows restack with a container query, so they fit
 * whatever width the list has, rail or full sidebar.
 *
 * Shared with the other module screens (Check-in and onwards): the module hero (`.hero--module`,
 * `.hero-pill`), the tinted stat cards (`.stats--tinted`, `.badge--soft`), the list card
 * (`.jobs`, `.seg`, `.job` rows) and their responsive and one-screen-fit rules below.
 */

.today {
  display: flex;
  flex-direction: column;
}

/* ---- Hero ----------------------------------------------------------------------------- */

.hero--module {
  min-height: 118px;
  gap: 18px;
}

/* The way back to the main menu on every module screen: a round glass arrow beside the module icon;
 * the whole group is one link, so the big icon is a target too. */
.hero-back {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  color: inherit;
}

.hero-back-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.hero-back-arrow .icon {
  width: 20px;
  height: 20px;
}

.hero-back:hover .hero-back-arrow,
.hero-back:focus-visible .hero-back-arrow {
  background: rgba(255, 255, 255, 0.28);
}

.hero-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero-back:active .hero-back-arrow {
  transform: scale(0.94);
}

.hero--module .hero-leaf {
  width: 56px;
  height: 56px;
}

.hero-text {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.hero-sub {
  padding-left: 10px;
  border-left: 3px solid var(--leaf);
  color: var(--on-dark);
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.94;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Date and estate in one dark glass pill. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 8px 0 18px;
  border-radius: 16px;
  background: rgba(6, 26, 15, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.hero--module .hero-controls {
  flex: none;
}

.hero--module .hero-date {
  white-space: nowrap;
}

.hero-pill .hero-date {
  text-shadow: none;
}

.hero-pill-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.28);
}

.pill--bare {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--on-dark);
  font-size: var(--fs-16);
}

.pill--bare:hover,
.pill--bare[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.estate-picker .pill--bare .icon {
  width: 20px;
  height: 20px;
}

.estate-picker .pill--bare .chev {
  width: 18px;
  height: 18px;
}

/* ---- Stat cards (tinted) -------------------------------------------------------------- */

.stats--tinted .stat {
  --stat-soft: var(--green-soft);
  --stat-ink: var(--green-ink);
  gap: 20px;
  padding: 20px 24px;
  min-height: 104px;
  background: var(--stat-soft);
  border-color: color-mix(in srgb, var(--stat-ink) 14%, var(--stat-soft));
}

.stats--tinted .stat .tile-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--stat-ink);
  box-shadow: 0 1px 2px rgba(23, 29, 38, 0.05);
}

.stats--tinted .stat .tile-icon .icon {
  width: 30px;
  height: 30px;
}

.stats--tinted .stat-label {
  font-size: var(--fs-16);
}

.stats--tinted .stat-label .short {
  display: none;
}

.stats--tinted .stat-value {
  align-items: center;
  gap: 4px 12px;
}

.stats--tinted .stat-number {
  font-size: var(--fs-34);
  line-height: 1.1;
}

.badge--soft {
  padding: 4px 12px;
  background: color-mix(in srgb, var(--stat-ink) 16%, #ffffff);
  color: var(--stat-ink);
  font-size: var(--fs-15);
  font-weight: 700;
}

/* ---- Jobs ----------------------------------------------------------------------------- */

.jobs {
  container-type: inline-size;
  container-name: jobs;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 16px;
}

.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.jobs-title {
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Filter tabs */
.seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg-btn {
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--fs-15);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.seg-btn:hover {
  color: var(--ink);
  background: rgba(23, 29, 38, 0.05);
}

.seg-btn[aria-selected="true"] {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 2px 8px -4px rgba(5, 98, 47, 0.6);
}

.jobs-list {
  display: flex;
  flex-direction: column;
}

/* One job: icon | title and place | measure and plan | status | action | more */
.job {
  display: grid;
  /* Fixed meta and action widths keep the dividers, chips and buttons in line down the list. */
  grid-template-columns: auto minmax(0, 1.4fr) 196px minmax(140px, 0.8fr) 118px auto;
  grid-template-areas: "icon title meta status action more";
  align-items: center;
  column-gap: 18px;
  padding: 14px 12px 14px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.job:last-child {
  border-bottom: 0;
}

.job-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}

.job-icon .icon {
  width: 26px;
  height: 26px;
}

.job-title {
  grid-area: title;
  min-width: 0;
}

.job-title h3 {
  font-size: var(--fs-18);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.job-where {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: var(--fs-15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-where .sep {
  color: var(--ink-3);
}

.job-meta {
  grid-area: meta;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-15);
}

.job-meta > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-meta .icon {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.job-status {
  grid-area: status;
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}

.job-status .chip {
  min-height: 32px;
  padding: 0 14px;
  font-size: var(--fs-15);
  font-weight: 700;
}

.job-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-pct {
  color: var(--ink-2);
  font-size: var(--fs-15);
  font-weight: 600;
}

.progress {
  width: min(100%, 160px);
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green-bright);
  transition: width var(--dur) var(--ease);
}

.job-action {
  grid-area: action;
  justify-self: end;
}

.job-more {
  grid-area: more;
  width: 36px;
  height: 36px;
  color: var(--ink-3);
}

.job-more .icon {
  width: 20px;
  height: 20px;
}

.jobs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 22px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: var(--fs-15);
}

.jobs-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--ink-2);
  text-align: center;
}

.jobs-empty .icon {
  width: 28px;
  height: 28px;
  color: var(--ink-3);
}

/* Medium columns: tighter gaps and smaller detail text, still one line per job. */
@container jobs (max-width: 900px) {
  .job {
    grid-template-columns: auto minmax(0, 1fr) 172px minmax(118px, auto) 104px auto;
    column-gap: 12px;
  }

  .job-where,
  .job-meta {
    font-size: var(--fs-13);
  }

  .job-meta {
    gap: 4px;
    padding-left: 12px;
  }

  .job-status .chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: var(--fs-13);
  }

  .job-action .btn {
    padding: 0 12px;
  }

  .progress {
    width: min(100%, 120px);
  }
}

/* Narrow columns: the row restacks into three lines. */
@container jobs (max-width: 680px) {
  .job {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon title more"
      "icon meta meta"
      "status status action";
    row-gap: 10px;
    column-gap: 12px;
  }

  .job-icon {
    align-self: start;
    width: 46px;
    height: 46px;
  }

  .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-left: 0;
    border-left: 0;
  }

  .job-action {
    justify-self: end;
  }

  .job-more {
    justify-self: end;
  }
}

@container jobs (max-width: 420px) {
  .job-title h3 {
    font-size: var(--fs-16);
  }

  .job-where,
  .job-meta {
    font-size: var(--fs-13);
  }

  .job-action .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: var(--fs-14);
  }
}

/* Rows open the job sheet: a pointer, a soft hover, and the chevron brightens. */
.job--open {
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.job--open:hover {
  background: #fafbfc;
}

.job--open:hover .job-more {
  color: var(--ink-2);
}

.job-delay--red {
  color: var(--red-ink);
}

/* ---- Sync strip ----------------------------------------------------------------------- */

/* One slim line: status tile | last sync and the three figures | Sync Now. */
.sync-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 10px 10px 16px;
  min-height: 60px;
}

.sync-strip-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-bright);
}

.sync-strip-icon .icon {
  width: 22px;
  height: 22px;
}

.sync-strip-icon--sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.sync-strip-icon--red {
  background: var(--red-soft);
  color: var(--red);
}

.sync-strip-text {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 18px;
  min-width: 0;
}

.sync-strip-title {
  font-size: var(--fs-15);
  font-weight: 700;
  white-space: nowrap;
}

.sync-strip-figures {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: var(--fs-14);
}

.sync-fig {
  white-space: nowrap;
}

.sync-fig + .sync-fig {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.sync-fig strong {
  color: var(--ink);
  font-weight: 700;
}

.sync-fig--sky strong {
  color: var(--sky-ink);
}

.sync-fig--red strong {
  color: var(--red-ink);
}

.sync-now {
  flex: none;
  margin-left: auto;
}

.sync-now.is-busy .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Responsive ----------------------------------------------------------------------- */

@media (max-width: 1399.98px) {
  .stats--tinted .stat {
    gap: 16px;
    padding: 16px 18px;
    min-height: 0;
  }

  .stats--tinted .stat .tile-icon {
    width: 52px;
    height: 52px;
  }

  .stats--tinted .stat-number {
    font-size: var(--fs-28);
  }
}

@media (max-width: 1199.98px) {
  .stats--tinted {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats--tinted .stat {
    gap: 12px;
    padding: 14px 16px;
  }

  .stats--tinted .stat .tile-icon {
    width: 46px;
    height: 46px;
  }

  .stats--tinted .stat .tile-icon .icon {
    width: 24px;
    height: 24px;
  }

  .stats--tinted .stat-label {
    font-size: var(--fs-14);
  }

  .stats--tinted .stat-number {
    font-size: var(--fs-24);
  }

  .hero--module .hero-title {
    font-size: var(--fs-28);
  }

  .hero-sub {
    font-size: var(--fs-15);
  }
}

@media (max-width: 899.98px) {
  .hero--module {
    gap: 14px;
    padding: 16px 16px 14px;
  }

  .hero--module .hero-leaf {
    width: 42px;
    height: 42px;
  }

  .hero-back {
    gap: 10px;
  }

  .hero-back-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-back-arrow .icon {
    width: 18px;
    height: 18px;
  }

  .hero--module .hero-title {
    font-size: var(--fs-24);
  }

  .hero-sub {
    font-size: var(--fs-14);
  }

  .hero-pill {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 4px 0 14px;
    border-radius: 14px;
  }

  .hero-pill .hero-date {
    font-size: var(--fs-14);
  }

  .pill--bare {
    font-size: var(--fs-15);
  }

  .stats--tinted {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sync-strip {
    gap: 12px;
    margin-top: 12px;
    padding: 8px 8px 8px 12px;
    min-height: 56px;
  }

  .jobs {
    margin-top: 12px;
  }

  .jobs-head {
    padding: 14px 16px 12px;
  }

  .jobs-title {
    font-size: var(--fs-20);
  }

  .seg-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: var(--fs-14);
  }

  .job {
    padding: 12px 8px 12px 14px;
  }

  .jobs-foot {
    padding: 10px 16px 12px;
  }
}

@media (max-width: 639.98px) {
  /* Four tabs share one line; the counts stay. */
  .seg {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .seg-btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 0 8px;
    font-size: var(--fs-13);
  }

  .stats--tinted .stat {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .stats--tinted .stat .tile-icon {
    width: 40px;
    height: 40px;
  }

  .stats--tinted .stat-label .long {
    display: none;
  }

  .stats--tinted .stat-label .short {
    display: inline;
  }

  .stats--tinted .stat .tile-icon .icon {
    width: 22px;
    height: 22px;
  }

  .stats--tinted .stat-label {
    font-size: var(--fs-13);
    white-space: nowrap;
  }

  .stats--tinted .stat-number {
    font-size: var(--fs-22, 1.375rem);
  }

  .badge--soft {
    padding: 2px 8px;
    font-size: var(--fs-13);
  }

  /* The strip becomes two rows: tile, last sync time and a round sync button, then the figures. */
  .sync-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon title btn"
      "figs figs figs";
    align-items: center;
    gap: 6px 12px;
    padding: 8px 8px 10px 12px;
  }

  .sync-strip-icon {
    grid-area: icon;
    width: 36px;
    height: 36px;
  }

  .sync-strip-icon .icon {
    width: 20px;
    height: 20px;
  }

  .sync-strip-text {
    display: contents;
  }

  .sync-strip-title {
    grid-area: title;
    font-size: var(--fs-14);
    white-space: normal;
  }

  .sync-strip-figures {
    grid-area: figs;
    font-size: var(--fs-13);
  }

  .sync-now {
    grid-area: btn;
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    margin-left: 0;
  }

  .sync-now-label {
    display: none;
  }
}

@media (max-width: 399.98px) {
  .hero-pill {
    flex-wrap: wrap;
    row-gap: 2px;
    padding: 4px 4px 4px 12px;
  }

  .hero-pill-sep {
    display: none;
  }

  .hero-pill .hero-date {
    font-size: var(--fs-13);
  }

  .pill--bare {
    padding: 0 8px;
    font-size: var(--fs-14);
  }
}

/* ---- One-screen fit --------------------------------------------------------------------
 * From 900px wide on landscape screens the Today screen fits the viewport: hero, stats and the
 * sync strip take what they need, the job list takes the rest and scrolls inside its card when
 * there are more rows than fit. Sizes scale with the viewport height (vh).
 */
@media (min-width: 900px) and (min-height: 560px) {
  .main.is-fit .today {
    flex: 1;
    min-height: 0;
  }

  .main.is-fit .hero--module {
    height: clamp(64px, 11.5vh, 150px);
    padding: 8px clamp(14px, 1.6vw, 28px);
    gap: clamp(10px, 1.2vw, 20px);
  }

  .main.is-fit .hero-back {
    gap: clamp(8px, 0.9vw, 14px);
  }

  .main.is-fit .hero-back-arrow {
    width: clamp(32px, 5.2vh, 44px);
    height: clamp(32px, 5.2vh, 44px);
  }

  .main.is-fit .hero-back-arrow .icon {
    width: clamp(16px, 2.6vh, 22px);
    height: clamp(16px, 2.6vh, 22px);
  }

  .main.is-fit .hero--module .hero-leaf {
    width: clamp(30px, 6vh, 64px);
    height: clamp(30px, 6vh, 64px);
  }

  .main.is-fit .hero--module .hero-title {
    font-size: clamp(1.125rem, 3.4vh, 2.125rem);
  }

  .main.is-fit .hero-text {
    gap: clamp(2px, 0.6vh, 6px);
  }

  .main.is-fit .hero-sub {
    font-size: clamp(0.75rem, 1.7vh, 1rem);
  }

  .main.is-fit .hero-pill {
    min-height: clamp(36px, 5.6vh, 54px);
    padding: 0 6px 0 clamp(10px, 1vw, 18px);
    gap: clamp(6px, 0.8vw, 12px);
  }

  .main.is-fit .hero-pill .hero-date {
    font-size: clamp(0.8125rem, 1.8vh, 1rem);
  }

  .main.is-fit .pill--bare {
    min-height: clamp(30px, 4.4vh, 40px);
    font-size: clamp(0.8125rem, 1.8vh, 1rem);
  }

  /* Stats */
  .main.is-fit .stats--tinted .stat {
    padding: clamp(8px, 1.3vh, 22px) clamp(12px, 1.3vw, 24px);
    gap: clamp(10px, 1.1vw, 20px);
  }

  .main.is-fit .stats--tinted .stat .tile-icon {
    width: clamp(34px, 6vh, 60px);
    height: clamp(34px, 6vh, 60px);
  }

  .main.is-fit .stats--tinted .stat .tile-icon .icon {
    width: clamp(18px, 3vh, 30px);
    height: clamp(18px, 3vh, 30px);
  }

  .main.is-fit .stats--tinted .stat-label {
    font-size: clamp(0.75rem, 1.6vh, 1rem);
  }

  .main.is-fit .stats--tinted .stat-number {
    font-size: clamp(1.125rem, 3.2vh, 2.125rem);
  }

  .main.is-fit .stats--tinted .badge--soft {
    padding: 2px 10px;
    font-size: clamp(0.6875rem, 1.4vh, 0.9375rem);
  }

  /* Sync strip */
  .main.is-fit .sync-strip {
    flex: none;
    gap: clamp(10px, 1vw, 14px);
    margin-top: clamp(6px, 1.1vh, 16px);
    padding: clamp(4px, 0.7vh, 10px) clamp(6px, 0.8vh, 10px) clamp(4px, 0.7vh, 10px) clamp(12px, 1.2vw, 16px);
    min-height: clamp(40px, 6vh, 60px);
  }

  .main.is-fit .sync-strip-icon {
    width: clamp(28px, 4.4vh, 40px);
    height: clamp(28px, 4.4vh, 40px);
  }

  .main.is-fit .sync-strip-icon .icon {
    width: clamp(15px, 2.4vh, 22px);
    height: clamp(15px, 2.4vh, 22px);
  }

  .main.is-fit .sync-strip-title {
    font-size: clamp(0.8125rem, 1.7vh, 0.9375rem);
  }

  .main.is-fit .sync-strip-figures {
    font-size: clamp(0.75rem, 1.6vh, 0.875rem);
  }

  /* The job list takes the remaining height and scrolls inside its card */
  .main.is-fit .jobs {
    flex: 1;
    min-height: 0;
    margin-top: clamp(6px, 1.1vh, 16px);
  }

  .main.is-fit .jobs-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main.is-fit .jobs-head {
    padding: clamp(10px, 1.6vh, 18px) clamp(14px, 1.2vw, 22px) clamp(8px, 1.3vh, 16px);
  }

  .main.is-fit .jobs-title {
    font-size: clamp(1rem, 2.4vh, 1.5rem);
  }

  .main.is-fit .seg-btn {
    min-height: clamp(28px, 4.4vh, 36px);
    padding: 0 clamp(10px, 1vw, 16px);
    font-size: clamp(0.75rem, 1.7vh, 0.9375rem);
  }

  .main.is-fit .job {
    padding: clamp(7px, 1.2vh, 14px) clamp(8px, 0.8vw, 12px) clamp(7px, 1.2vh, 14px) clamp(14px, 1.2vw, 22px);
    column-gap: clamp(10px, 1vw, 18px);
  }

  .main.is-fit .job-icon {
    width: clamp(36px, 5.6vh, 52px);
    height: clamp(36px, 5.6vh, 52px);
  }

  .main.is-fit .job-icon .icon {
    width: clamp(18px, 2.8vh, 26px);
    height: clamp(18px, 2.8vh, 26px);
  }

  .main.is-fit .job-title h3 {
    font-size: clamp(0.875rem, 2vh, 1.125rem);
  }

  .main.is-fit .job-where,
  .main.is-fit .job-meta,
  .main.is-fit .job-pct {
    font-size: clamp(0.75rem, 1.6vh, 0.9375rem);
  }

  .main.is-fit .job-meta {
    gap: clamp(2px, 0.6vh, 6px);
  }

  .main.is-fit .job-status .chip {
    min-height: clamp(24px, 3.6vh, 32px);
    font-size: clamp(0.75rem, 1.6vh, 0.9375rem);
  }

  .main.is-fit .btn--sm {
    min-height: clamp(30px, 4.6vh, 40px);
    padding: 0 clamp(10px, 1vw, 16px);
    font-size: clamp(0.75rem, 1.6vh, 0.9375rem);
  }

  .main.is-fit .jobs-foot {
    padding: clamp(6px, 1.2vh, 12px) clamp(14px, 1.2vw, 22px);
    font-size: clamp(0.75rem, 1.6vh, 0.9375rem);
  }

  .main.is-fit .link {
    min-height: clamp(28px, 4vh, 36px);
    font-size: clamp(0.75rem, 1.6vh, 0.9375rem);
  }
}
