/* 자재값 — 순위와 그래프. duration.css 의 틀을 이어 쓰고 여기만의 것을 얹는다 */

/* ── 훅 ── */
.hook {
  background: var(--ink);
  color: #fff;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "l v"
    "n v"
    "s s";
  align-items: baseline;
  column-gap: 24px;
}
.hk-l {
  grid-area: l;
  font-size: 14px;
  color: #b9c0c8;
}
.hk-n {
  grid-area: n;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 4px;
}
.hk-v {
  grid-area: v;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
  white-space: nowrap;
}
.hk-s {
  grid-area: s;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #3a3d42;
  font-size: 14.5px;
  line-height: 1.75;
  color: #d5d8dc;
}
.hk-s b {
  color: #fff;
}

/* ── 순위 ── */
.rtool {
  margin-bottom: 16px;
}
.rtool label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.rtool select {
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 14px;
}
.mrow {
  display: grid;
  grid-template-columns: 30px 26px 150px 1fr 82px;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
}
.mrow:hover {
  background: rgba(244, 88, 28, 0.06);
}
.mrow.top .mr-n {
  font-weight: 700;
}
.mr-i {
  font-size: 13px;
  color: var(--steel);
  text-align: center;
}
.mrow.top .mr-i {
  color: var(--orange-deep);
  font-weight: 700;
}
.mr-g {
  font-size: 16px;
  text-align: center;
}
.mr-n {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-t {
  position: relative;
  height: 16px;
  background: var(--concrete);
}
.mr-b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--orange);
}
.mr-b.dn {
  background: #1e88e5;
}
.mr-v {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-deep);
  white-space: nowrap;
}
.mr-v.dn {
  color: #1565c0;
}

/* ── 자재 하나 ── */
.one {
  grid-template-columns: minmax(0, 360px);
  margin-bottom: 16px;
}
.onebox {
  border: 1px solid var(--line);
  padding: 20px 22px;
}
.onehead {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.oh-g {
  font-size: 13px;
  color: var(--steel);
}
.oh-n {
  font-size: 22px;
  font-weight: 700;
}
.onebig {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 18px;
}
.ob-l {
  font-size: 13.5px;
  color: var(--steel);
}
.ob-v {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange-deep);
}
.ob-s {
  font-size: 13.5px;
  color: #3d434b;
  width: 100%;
  margin-top: 4px;
}

/* ── 꺾은선 ── */
.lchart {
  width: 100%;
  height: 240px;
  display: block;
}
.lleg {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: #3d434b;
}
.lleg i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 6px;
  vertical-align: 3px;
}
.lnote {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: #3d434b;
  background: var(--white);
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
}

@media (max-width: 760px) {
  .hook {
    grid-template-columns: 1fr;
    grid-template-areas: "l" "n" "v" "s";
    padding: 22px 20px;
  }
  .hk-v {
    font-size: 44px;
    margin-top: 6px;
  }
  .hk-n {
    font-size: 26px;
  }
  .mrow {
    grid-template-columns: 24px 22px 1fr 70px;
    gap: 8px;
  }
  .mr-t {
    display: none;
  }
  .ob-v {
    font-size: 32px;
  }
}
