/* Read each action alongside its finding, with one shared heading per scene. */
.ace-all-habits .ace-habit-list{
  max-width:960px;
  margin-inline:auto;
}
.ace-all-habits .ace-habit-list-heading,
.ace-all-habits .ace-habit{
  display:grid;
  grid-template-columns:minmax(0,40fr) 1.75rem minmax(0,60fr);
  column-gap:clamp(12px,2vw,24px);
  align-items:start;
}
.ace-all-habits .ace-habit-list-heading{
  padding:12px 0 14px;
  border-bottom:1px solid #aebdcd;
  align-items:center;
  color:#102952;
  font-size:20px;
  font-weight:600;
  line-height:1.65;
  letter-spacing:.025em;
}
.ace-all-habits .ace-habit-arrow{
  position:relative;
  display:block;
  width:1.75rem;
  height:1.25rem;
  color:#334d71;
}
.ace-all-habits .ace-habit-arrow::before,
.ace-all-habits .ace-habit-arrow::after{
  position:absolute;
  top:50%;
  content:"";
}
.ace-all-habits .ace-habit-arrow::before{
  left:0;
  right:2px;
  border-top:2px solid currentColor;
  transform:translateY(-50%);
}
.ace-all-habits .ace-habit-arrow::after{
  right:1px;
  width:9px;
  height:9px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
}
.ace-all-habits .ace-habit{
  padding:20px 0 22px;
  border-top:1px solid var(--ace-rule,#d8dfe7);
  background:transparent;
}
.ace-all-habits .ace-habit-list-heading+.ace-habit{
  border-top:0;
}
.ace-all-habits .ace-habit>h4{
  grid-column:1;
  min-width:0;
  margin:0;
  color:var(--ace-ink,#001858);
  grid-row:1;
  font-size:clamp(23px,2vw,26px);
  font-weight:600;
  line-height:1.8;
  letter-spacing:.01em;
  overflow-wrap:anywhere;
}
.ace-all-habits .ace-habit>.ace-habit-arrow{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
}
.ace-all-habits .ace-habit>.ace-book-finding{
  grid-column:3;
  grid-row:1 / span 2;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.ace-all-habits .ace-habit>.ace-book-finding>p:last-child{
  margin:0;
  color:#172e4a;
  font-size:clamp(20px,1.7vw,22px);
  line-height:1.85;
  overflow-wrap:anywhere;
}
.ace-all-habits .ace-habit>.ace-book-finding strong{
  color:var(--ace-ink,#001858);
  font-size:inherit;
  font-weight:700;
  line-height:inherit;
}
/* A saved-note marker remains attached to the action heading. */
.ace-all-habits .ace-habit>.rn-marker{
  grid-column:1;
  justify-self:start;
  margin-top:10px;
}
@media screen and (max-width:760px){
  .ace-all-habits .ace-habit-list-heading{
    grid-template-columns:auto 1.75rem minmax(0,1fr);
    column-gap:10px;
    padding:10px 0 12px;
    font-size:18px;
    letter-spacing:0;
  }
  .ace-all-habits .ace-habit{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:22px 0 25px;
  }
  .ace-all-habits .ace-habit>h4{
    font-size:23px;
    line-height:1.72;
  }
  .ace-all-habits .ace-habit>.ace-habit-arrow{
    align-self:flex-start;
    margin-block:4px;
    transform:rotate(90deg);
  }
  .ace-all-habits .ace-habit>.ace-book-finding>p:last-child{
    font-size:20px;
    line-height:1.85;
  }
  .ace-all-habits .ace-habit>.rn-marker{
    align-self:flex-start;
    margin:0;
  }
}
@media print{
  .ace-all-habits .ace-habit-list-heading,
  .ace-all-habits .ace-habit{
    column-gap:12px;
  }
  .ace-all-habits .ace-habit{
    padding-block:15px;
    break-inside:avoid;
  }
  .ace-all-habits .ace-habit>.rn-marker{
    display:none;
  }
}
