/* A task-to-outcome guide using the homepage's shared type, palette and controls. */
.task-guide {
  padding-block: clamp(80px, 7.5vw, 112px) clamp(88px, 8vw, 128px);
  scroll-margin-top: 0;
}

.task-guide-heading {
  text-align: center;
  margin-block-end: clamp(38px, 4.2vw, 60px);
}
.task-guide-eyebrow {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .12em;
}
.task-guide-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.4;
  text-wrap: balance;
}
.task-guide-heading h2 em {
  display: inline-block;
  color: var(--color-accent);
  background: var(--mais-title-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.task-guide-intro {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-muted);
}

.task-guide-matrix {
  border: 1px solid var(--color-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-bg);
}
.task-guide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-content);
  text-align: start;
}
.task-guide-task-col { width: 27%; }
.task-guide-method-col { width: 44%; }
.task-guide-result-col { width: 29%; }
.task-guide-table :is(th, td) {
  padding: 23px 28px;
  vertical-align: middle;
  text-align: start;
  overflow-wrap: anywhere;
}
.task-guide-table thead {
  background: var(--color-panel);
}
.task-guide-table thead th {
  padding-block: 21px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-copy);
}
.task-guide-column-number {
  margin-inline-end: 10px;
  color: var(--color-muted);
  font: 400 10px/1.6 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.task-guide-table tbody tr {
  border-block-start: 1px solid var(--color-line);
}
.task-guide-table tbody th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-ink);
}
.task-guide-task {
  display: flex;
  align-items: center;
  gap: 13px;
}
.task-guide-task > .icon {
  width: 19px;
  height: 19px;
  color: var(--color-accent);
  opacity: .85;
}
.task-guide-table td {
  color: var(--color-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
}
.task-guide-table .task-guide-result {
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-bg));
  color: var(--color-ink);
}
.task-guide-mobile-label { display: none; }

.task-guide-notes {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  margin-block-start: 20px;
}
.task-guide-notes > p {
  max-width: 78ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.9;
}
.task-guide-help {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding-block: 3px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.8;
  transition: color .2s;
}
.task-guide-help > .icon { width: 13px; height: 13px; }
.task-guide-help:hover { color: var(--color-ink); }
.task-guide-action {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-block-start: 38px;
}
.task-guide-action .task-guide-cta {
  min-width: 184px;
  min-height: 50px;
  justify-content: center;
  gap: 30px;
  padding: 14px 25px;
  border-radius: 10px;
  font-size: 14px;
}
.task-guide-cta > .icon { width: 16px; height: 16px; }
.task-guide-action > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1080px) {
  .task-guide-table :is(th, td) { padding-inline: 20px; }
  .task-guide-task-col { width: 27%; }
  .task-guide-method-col { width: 43%; }
  .task-guide-result-col { width: 30%; }
  .task-guide-task { gap: 10px; }
  .task-guide-table tbody th { font-size: 14px; }
}

@media (max-width: 760px) {
  .task-guide { padding-block: 68px 80px; }
  .task-guide-heading { text-align: start; margin-block-end: 32px; }
  .task-guide-eyebrow { margin-block-end: 14px; }
  .task-guide-heading h2 { font-size: clamp(27px, 5.6vw, 36px); }
  .task-guide-heading h2 em { display: block; }
  .task-guide-intro { font-size: 13px; margin-block-start: 16px; }
  .task-guide-matrix { border-radius: 14px; }
  .task-guide-table,
  .task-guide-table tbody { display: block; }
  .task-guide-table colgroup { display: none; }
  /* Retain the column headers in the accessibility tree in the stacked layout. */
  .task-guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .task-guide-table tbody tr { display: block; padding: 24px; }
  .task-guide-table tbody tr:first-child { border-block-start: 0; }
  .task-guide-table tbody th { display: block; padding: 0; font-size: 16px; }
  .task-guide-task { gap: 11px; }
  .task-guide-table td { display: block; padding: 17px 0 0; font-size: 13px; }
  .task-guide-mobile-label {
    display: block;
    margin-block-end: 5px;
    font-size: 10px;
    line-height: 1.7;
    color: var(--color-muted);
  }
  .task-guide-table .task-guide-result {
    margin-block-start: 17px;
    padding: 12px 14px;
    border-radius: 7px;
  }
  .task-guide-notes { display: grid; gap: 10px; margin-block-start: 18px; }
  .task-guide-help { justify-self: start; }
  .task-guide-action { margin-block-start: 30px; }
}

@media (forced-colors: active) {
  .task-guide-heading h2 em {
    background: none;
    -webkit-text-fill-color: CanvasText;
  }
  .task-guide-matrix,
  .task-guide-table tbody tr { border-color: CanvasText; }
  .task-guide-table .task-guide-result { background: Canvas; color: CanvasText; }
}
