.bjd-palette-page {
  background: #f4f0e8;
  color: #211f1b;
}

.bjd-palette-main {
  min-height: 70vh;
  padding: 98px 0 76px;
}

.bjd-palette-main .breadcrumb {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  color: #756f66;
  font-size: 12px;
}

.bjd-palette-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: end;
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9d1c4;
  background: transparent;
}

.bjd-kicker {
  margin: 0 0 12px;
  color: #b86a37;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}

.bjd-palette-hero h1 {
  margin: 0;
  color: #24221e;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
}

.bjd-palette-detail-title h1 {
  margin: 0;
  color: #181713;
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.2;
}

.bjd-palette-intro {
  padding-bottom: 4px;
}

.bjd-palette-intro p {
  margin: 0 0 6px;
  color: #746f66;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .06em;
  text-align: right;
}

.bjd-palette-intro span {
  color: #7c746a;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
  display: block;
}

.bjd-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 0;
}

.bjd-palette-card {
  min-width: 0;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid #ddd5c9;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.bjd-palette-card:hover {
  transform: translateY(-5px);
  border-color: #bcae9b;
  box-shadow: 0 20px 48px rgba(49, 39, 28, .1);
}

.bjd-palette-card-link,
.bjd-palette-card-link:hover,
.bjd-palette-card-link:focus {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bjd-palette-strip {
  display: flex;
  height: 176px;
  background: #ebe5dc;
}

.bjd-palette-strip span {
  flex: 1 1 20%;
  transform-origin: bottom;
  transition: flex-grow .3s ease;
}

.bjd-palette-card:hover .bjd-palette-strip span:hover {
  flex-grow: 1.45;
}

.bjd-palette-card-copy {
  padding: 25px 26px 28px;
}

.bjd-palette-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  color: #a45131;
  font-size: 12px;
  letter-spacing: .08em;
}

.bjd-palette-card-meta i {
  color: #938a7e;
  font-style: normal;
}

.bjd-palette-card h2 {
  margin: 0 0 10px;
  color: #211f1b;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.bjd-palette-card p {
  min-height: 48px;
  margin: 0;
  color: #746d64;
  font-size: 14px;
  line-height: 1.75;
}

.bjd-palette-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 38px;
  margin: 22px 0 18px;
  padding-top: 16px;
  border-top: 1px solid #e7e0d6;
}

.bjd-palette-values span {
  color: #81796f;
  font-family: Consolas, Monaco, monospace;
  font-size: 10px;
  letter-spacing: .03em;
}

.bjd-palette-card-action {
  display: flex;
  justify-content: space-between;
  color: #39352f;
  font-size: 13px;
  font-weight: 600;
}

.bjd-palette-card-action b {
  color: #b55432;
  font-size: 17px;
  font-weight: 400;
}

.bjd-palette-pages {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 48px;
}

.bjd-palette-pages a,
.bjd-palette-pages span {
  min-width: 38px;
  padding: 10px 12px;
  color: #4c4740;
  text-align: center;
  border: 1px solid #d7cec1;
  background: #fffdfa;
}

.bjd-palette-pages a:hover,
.bjd-palette-pages .page-num-current {
  color: #fff;
  background: #b55432;
  border-color: #b55432;
  text-decoration: none;
}

.bjd-palette-detail-header {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: flex-end;
  padding: 12px 0 42px;
  border-bottom: 1px solid #d7d0c4;
  background: transparent;
}

.bjd-palette-detail-title > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: #6e675f;
  font-size: 17px;
  line-height: 1.85;
}

.bjd-palette-back {
  justify-self: end;
  padding: 11px 0;
  color: #9e492e;
  border-bottom: 1px solid #9e492e;
}

.bjd-palette-back:hover {
  color: #6d2e1d;
  text-decoration: none;
}

.bjd-palette-board {
  margin-top: 52px;
  padding: 14px;
  background: #fffdfa;
  border: 1px solid #d9d0c4;
}

.bjd-palette-detail-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 320px;
}

.bjd-palette-detail-strip button {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 20px 8px;
  color: rgba(255, 255, 255, .94);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  border: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
  transition: transform .2s ease, filter .2s ease;
}

.bjd-palette-detail-strip button:hover,
.bjd-palette-detail-strip button:focus-visible {
  z-index: 2;
  transform: translateY(-6px);
  filter: saturate(1.08);
}

.bjd-palette-copy-help {
  margin: 12px 2px 0;
  color: #8b8378;
  font-size: 12px;
  text-align: right;
}

.bjd-palette-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 64px;
  padding-top: 56px;
}

.bjd-palette-article {
  color: #4b4640;
  font-size: 16px;
  line-height: 1.95;
}

.bjd-palette-article h2 {
  margin: 38px 0 15px;
  color: #211f1b;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 28px;
  font-weight: 600;
}

.bjd-palette-article h2:first-child {
  margin-top: 0;
}

.bjd-palette-article p,
.bjd-palette-article ul {
  margin: 0 0 18px;
}

.bjd-palette-article li {
  margin-bottom: 8px;
}

.bjd-palette-demo {
  position: sticky;
  top: 120px;
  align-self: start;
}

.bjd-palette-demo h2 {
  margin: 0 0 20px;
  color: #27241f;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 26px;
}

.bjd-palette-demo-ui {
  overflow: hidden;
  min-height: 430px;
  color: var(--demo-text, #222);
  background: var(--demo-bg, #eee);
  border: 12px solid var(--demo-paper, #fff);
  box-shadow: 0 24px 60px rgba(53, 42, 30, .13);
}

.bjd-demo-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 0 24px;
  background: var(--demo-paper, #fff);
}

.bjd-demo-nav i {
  width: 28px;
  height: 28px;
  margin-right: auto;
  background: var(--demo-primary, #a44);
  transform: rotate(45deg);
}

.bjd-demo-nav span {
  width: 48px;
  height: 4px;
  background: var(--demo-text, #222);
  opacity: .32;
}

.bjd-demo-body {
  padding: 70px 42px 52px;
}

.bjd-demo-body small {
  color: var(--demo-primary, #a44);
  font-weight: 700;
  letter-spacing: .18em;
}

.bjd-demo-body strong {
  display: block;
  max-width: 320px;
  margin: 18px 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 38px;
  line-height: 1.24;
}

.bjd-demo-body p {
  max-width: 310px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
  opacity: .72;
}

.bjd-demo-body button {
  padding: 12px 24px;
  color: var(--demo-paper, #fff);
  background: var(--demo-primary, #a44);
  border: 0;
  border-bottom: 4px solid var(--demo-accent, #d7a44a);
}

@media (max-width: 1199px) {
  .bjd-palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bjd-palette-detail-grid { gap: 40px; }
}

@media (max-width: 991px) {
  .bjd-palette-detail-header { grid-template-columns: 1fr; gap: 22px; }
  .bjd-palette-back { justify-self: start; }
  .bjd-palette-detail-grid { grid-template-columns: 1fr; }
  .bjd-palette-demo { position: static; }
}

@media (max-width: 767px) {
  .bjd-palette-main { padding: 70px 16px 56px !important; }
  .bjd-palette-main .breadcrumb { margin-bottom: 18px; }
  .bjd-palette-hero { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; padding-bottom: 20px; }
  .bjd-palette-hero h1 { font-size: 32px; }
  .bjd-palette-detail-title h1 { font-size: 34px; }
  .bjd-palette-intro p { font-size: 13px; }
  .bjd-palette-intro p, .bjd-palette-intro span { text-align: left; }
  .bjd-palette-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
  .bjd-palette-strip { height: 132px; }
  .bjd-palette-card-copy { padding: 22px; }
  .bjd-palette-detail-header { display: block; padding: 4px 0 30px; }
  .bjd-palette-back { display: inline-block; margin-top: 18px; }
  .bjd-palette-board { margin-top: 38px; padding: 8px; }
  .bjd-palette-detail-strip { grid-template-columns: 1fr; min-height: 0; }
  .bjd-palette-detail-strip button { min-height: 92px; justify-content: flex-end; align-items: center; padding: 12px 18px; }
  .bjd-palette-detail-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .bjd-palette-demo { position: static; }
  .bjd-palette-demo-ui { min-height: 380px; }
  .bjd-demo-body { padding: 52px 28px 40px; }
  .bjd-demo-body strong { font-size: 32px; }
}
