html, body {
  margin: 0;
  background: #f7f4ec;
}

.tw-gold {
  max-width: 640px;
  margin: 0 auto;
  background: #f7f4ec;
  color: #2b2b2b;
  font-family: "Avenir Next", "Segoe UI", "Noto Sans", sans-serif;
}

.tw-gold-header img {
  display: block;
  width: 100%;
  height: auto;
}

.tw-gold-board {
  margin: 8px 14px 16px;
  padding: 16px 14px 18px;
  background: #fffdf8;
  border: 1px solid #efe6d2;
}

.tw-gold-board h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #1d2a44;
}

.tw-gold-board h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: #c9a84c;
}

.tw-gold-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.55fr;
  gap: 12px 10px;
  align-items: start;
}

.tw-gold-side .taiex {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 18px;
  background: #16325c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tw-gold-info {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #16325c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.tw-gold-index {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #16325c;
}

.tw-gold-index strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.tw-gold-index .p {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tw-gold-index .c,
.tw-gold-index .ch {
  display: block;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tw-gold-index .down {
  color: #d64545;
}

.tw-gold-index .up {
  color: #1aa05a;
}

.tw-gold-index .c.down::before {
  content: "▼ ";
}

.tw-gold-index .c.up::before {
  content: "▲ ";
}

.tw-gold-tabs {
  display: flex;
  border: 1px solid #d8d3c6;
  overflow: hidden;
}

.tw-gold-tab {
  flex: 1;
  padding: 8px 2px;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
  color: #5b5748;
  background: #fff;
  border-right: 1px solid #d8d3c6;
  cursor: pointer;
}

.tw-gold-tab:last-child {
  border-right: 0;
}

.tw-gold-tab.is-active {
  background: #16325c;
  color: #fff;
  font-weight: 700;
}

.tw-gold-chart {
  height: 168px;
  margin: 10px 0 8px;
  background: #fbf6ea;
}

.tw-gold-quote {
  text-align: center;
  color: #7a7468;
  font-size: 13px;
  line-height: 1.45;
}

.tw-gold-quote .line {
  font-weight: 600;
}

.tw-gold-quote .chg.down {
  color: #d64545;
}

.tw-gold-quote .chg.up {
  color: #1aa05a;
}

.tw-gold-quote .note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #8a8478;
}

.tw-gold-result {
  margin-top: 12px;
}

.tw-gold-result table,
.tw-gold-history table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.tw-gold-result td {
  border: 1px solid #c9a84c;
  padding: 8px 6px;
  text-align: center;
  color: #5b5748;
  font-size: 14px;
}

.tw-gold-result .num {
  background: #ead9a8;
  color: #3b2f12;
  font-weight: 800;
}

.tw-gold-history {
  margin: 0 14px 20px;
  padding: 16px 14px 18px;
  background: #fffdf8;
  border: 1px solid #efe6d2;
}

.tw-gold-history h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  color: #1d2a44;
}

.tw-gold-history h3 span {
  color: #c9a84c;
}

.tw-gold-history th,
.tw-gold-history td {
  border: 1px solid #e6d7b0;
  padding: 10px 8px;
  text-align: center;
}

.tw-gold-history thead th {
  background: #f7f1e4;
  color: #5b5748;
  font-weight: 600;
}

.tw-gold-foot {
  height: 8px;
  margin: 0 12px 12px;
  background: linear-gradient(90deg, #16325c 0%, #c9a84c 100%);
}
