:root {
  --tit-margin: 80px;
  --num-letter-spacing: -0.2px;
}

.wide section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
}

.bg {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

.btn {
  width: fit-content;
}

.btn.center {
  margin-left: auto;
  margin-right: auto;
}

/* content-title */
.text.white *,
.content-title.white * {
  color: #fff;
}

.text.white .btn,
.content-title.white .btn {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.text.center *,
.content-title.center * {
  text-align: center;
}

.text.center .btn,
.content-title.center .btn {
  margin-left: auto;
  margin-right: auto;
}

.content-title {
  margin-bottom: var(--tit-margin);
}

.content-title h2 {
  line-height: 1.4;
}

.content-title h2 b {
  color: var(--color-primary);
  font-weight: inherit;
}

.content-title .desc {
  line-height: 1.75;
  margin-top: 35px;
  word-break: keep-all;
}

.content-title .desc.f22 {
  font-size: var(--f22);
}

.content-title .desc b {
  font-weight: 700;
}

.more-btn {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
}

/* 변동값 */
.price-change {
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0;
}

.price-change.up {
  color: var(--color-up);
}

.price-change.down {
  color: var(--color-down);
}

.price-change::before {
  content: "";
  display: block;
  width: 12px;
  height: auto;
  aspect-ratio: 12/7;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  top: 1px;
}

.price-change.up::before {
  background-image: url("/themes/basic/assets/images/icon_arrow_up.svg");
}

.price-change.down::before {
  background-image: url("/themes/basic/assets/images/icon_arrow_down.svg");
}

/* 기준시간 */
.timestamp {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-mute);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: var(--num-letter-spacing);
  line-height: 1.35;
}

.timestamp:before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #1b9d52;
}

/* 칩 모양 탭 */
.tab-btn__chip {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn__chip.big {
  gap: 15px;
  justify-content: center;
  margin-bottom: 100px;
}

.tab-btn__chip button {
  min-width: 45px;
  height: 35px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #e1e1e1;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-mute);
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.tab-btn__chip.big button {
  background-color: #fff;
  color: #bbb;
  min-width: 55px;
  height: 60px;
  padding: 0 50px;
  font-size: 26px;
  font-weight: 600;
}

.tab-btn__chip button.active {
  background: var(--color-text);
  color: #fff;
}

.tab-btn__chip button:hover {
  background: var(--color-text);
  color: #fff;
}

.block-divider {
  --block-divider: 100px;
  margin-top: var(--block-divider);
}

/* 국내&국제 시세 메인 */
.market-summary {
  --border-line: 1px solid #ddd;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--border-line);
  border-bottom: var(--border-line);
}

.market-summary__item {
  min-width: 0;
  padding: 45px 30px 60px;
  border-right: var(--border-line);
}

.market-summary__item:last-child {
  border-right: 0;
}

.market-summary__label p {
  font-size: var(--f18);
  font-weight: 600;
}

.market-summary__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 40px;
}

.market-summary__price strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--num-letter-spacing);
}

.market-summary__price span {
  font-size: 14px;
  line-height: 1;
  color: var(--color-mute);
  letter-spacing: var(--num-letter-spacing);
}

.market-summary__price ~ .price-change {
  margin-top: 10px;
}

/* table */
.market-table-wrap {
  --border-color: #ddd;
  border-top: 1px solid var(--border-color);
}

.market-table-wrap.scroll-y {
  max-height: 380px;
  overflow-y: auto;
}

.market-table-wrap::-webkit-scrollbar {
  width: 6px;
}

.market-table-wrap::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 999px;
}

.market-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.market-table {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.market-table__head {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  background-color: var(--section-bg-color);
}

.market-table__body {
  display: flex;
  flex-direction: column;
}

.market-table__row {
  display: flex;
  align-items: center;
  padding: 22px 5px;
  border-bottom: 1px solid var(--border-color);
}

.market-table__cell {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
  box-sizing: border-box;
}

.market-table__cell .unit {
  font-size: 0.857em;
  letter-spacing: var(--num-letter-spacing);
  line-height: inherit;
  color: var(--color-mute);
  padding-left: 1px;
}

.market-table__head .market-table__cell {
  color: var(--color-mute);
}

.market-table__cell .price-change {
  font-size: inherit;
  font-weight: inherit;
}

/* Desktop ( 1024px ~)*/
@media all and (min-width: 1024px) {
}

/* Laptop ( 1024px ~ 1440px)*/
@media all and (min-width: 1024px) and (max-width: 1440px) {
  .market-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-summary__item:nth-child(even) {
    border-right: 0;
  }

  .market-summary__item:nth-child(n + 3):nth-child(-n + 4) {
    border-top: 1px solid #ddd;
  }
}

/* Tablet ( 768px ~ 1023px)*/
@media all and (min-width: 768px) and (max-width: 1023px) {
  :root {
    --tit-margin: 65px;
  }

  .content-title .desc {
    margin-top: 20px;
  }
  /* 기준시간 */
  .timestamp {
    gap: 5px;
    font-size: 12px;
  }

  /* 칩 모양 탭 */
  .tab-btn__chip {
    margin-bottom: 16px;
  }

  .tab-btn__chip button {
    min-width: 35px;
    height: 30px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #e1e1e1;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-mute);
    cursor: pointer;
  }

  .tab-btn__chip button.active {
    background: var(--color-text);
    color: #fff;
  }

  .block-divider {
    --block-divider: 80px;
  }

  /* 국내&국제 시세 메인 */
  .market-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-summary__item {
    padding: 30px 22px 40px;
  }

  .market-summary__item:nth-child(even) {
    border-right: 0;
  }

  .market-summary__item:nth-child(n + 3):nth-child(-n + 4) {
    border-top: 1px solid #ddd;
  }

  .market-summary__price {
    gap: 4px;
    margin-top: 25px;
  }

  .market-summary__price strong {
    font-size: 22px;
  }

  .market-summary__price span {
    font-size: 13px;
  }

  .market-summary__price ~ .price-change {
    margin-top: 8px;
  }

  .market-table__row {
    padding: 18px 5px;
  }
}

/* Mobile ( ~ 767px)*/
@media all and (max-width: 767px) {
  :root {
    --tit-margin: 45px;
  }

  .content-title .desc {
    margin-top: 15px;
  }

  .content-title .desc.f22 {
    font-size: 14px;
  }

  /* 변동값 */
  .price-change {
    font-size: 11px;
    gap: 3px;
  }

  .price-change::before {
    width: 9px;
  }

  /* 기준시간 */
  .timestamp {
    gap: 5px;
    font-size: 10px;
  }

  .timestamp:before {
    width: 3px;
    height: 3px;
  }

  /* 칩 모양 탭 */
  .tab-btn__chip {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
  }

  .tab-btn__chip button {
    min-width: 35px;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .block-divider {
    --block-divider: 60px;
  }
  /* 국내&국제 시세 메인 */
  .market-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-summary__item {
    padding: 25px 20px 35px;
  }

  .market-summary__item:nth-child(even) {
    border-right: 0;
  }

  .market-summary__item:nth-child(n + 3):nth-child(-n + 4) {
    border-top: 1px solid #ddd;
  }

  .market-summary__price {
    gap: 4px;
    margin-top: 20px;
  }

  .market-summary__price strong {
    font-size: 18px;
  }

  .market-summary__price span {
    font-size: 11px;
  }

  .market-summary__price ~ .price-change {
    margin-top: 8px;
  }

  .market-table-wrap.scroll-y {
    max-height: unset;
    overflow-y: unset;
  }

  .market-table-wrap::-webkit-scrollbar {
    width: 4px;
  }

  .market-table__row {
    padding: 15px 5px;
    border-bottom: 1px solid var(--border-color);
  }

  .market-table__cell {
    font-size: 12px;
  }

  .market-table__cell .unit {
    font-size: 9px;
  }
}
