
.hbj-guide {
  --hbj-ink: #111111;
  --hbj-copy: #333333;
  --hbj-muted: #6f6f6f;
  --hbj-line: #dedede;
  --hbj-soft: #f5f5f5;
  --hbj-white: #ffffff;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--hbj-copy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

.hbj-guide,
.hbj-guide * {
  box-sizing: border-box;
}

.hbj-guide h1,
.hbj-guide h2,
.hbj-guide h3,
.hbj-guide p,
.hbj-guide ul,
.hbj-guide figure {
  margin-top: 0;
}

.hbj-guide h1 {
  max-width: 990px;
  margin-bottom: 24px;
  color: var(--hbj-ink);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hbj-guide h2 {
  margin: 68px 0 22px;
  padding-top: 20px;
  border-top: 2px solid var(--hbj-ink);
  color: var(--hbj-ink);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hbj-guide h3 {
  margin: 32px 0 12px;
  color: var(--hbj-ink);
  font-size: 21px;
  line-height: 1.3;
}

.hbj-guide p {
  margin-bottom: 18px;
}

.hbj-guide ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.hbj-guide li {
  margin-bottom: 10px;
}

.hbj-guide a {
  color: var(--hbj-ink);
  font-weight: 700;
  text-decoration-color: #8a8a8a;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hbj-guide a:hover {
  text-decoration-color: var(--hbj-ink);
}

.hbj-guide .hbj-lede {
  max-width: 920px;
  margin-bottom: 30px;
  color: #262626;
  font-size: 20px;
  line-height: 1.65;
}

/* Single-row desktop contents */
.hbj-guide .hbj-toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 44px;
  padding: 16px;
  border: 1px solid var(--hbj-line);
  background: var(--hbj-soft);
}

.hbj-guide .hbj-toc a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid #bdbdbd;
  background: var(--hbj-white);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.hbj-guide .hbj-toc a:hover {
  border-color: var(--hbj-ink);
  background: var(--hbj-ink);
  color: var(--hbj-white);
}

/* Article-specific day map */
.hbj-guide .hbj-day-map {
  margin: 30px 0;
  border: 1px solid var(--hbj-ink);
  background: var(--hbj-white);
}

.hbj-guide .hbj-day-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 1fr;
  min-height: 82px;
}

.hbj-guide .hbj-day-row + .hbj-day-row {
  border-top: 1px solid var(--hbj-line);
}

.hbj-guide .hbj-day-row > * {
  display: flex;
  align-items: center;
  padding: 17px 18px;
}

.hbj-guide .hbj-day-row strong {
  background: var(--hbj-ink);
  color: var(--hbj-white);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hbj-guide .hbj-day-row span {
  border-left: 1px solid var(--hbj-line);
  color: var(--hbj-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hbj-guide .hbj-day-row span b {
  margin-right: 5px;
  color: var(--hbj-ink);
}

.hbj-guide .hbj-note {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--hbj-ink);
  background: var(--hbj-soft);
}

.hbj-guide .hbj-note strong {
  color: var(--hbj-ink);
}

/* Product modules */
.hbj-guide .hbj-product {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  gap: 0;
  margin: 38px 0;
  overflow: hidden;
  border: 1px solid var(--hbj-line);
  background: var(--hbj-white);
}

.hbj-guide .hbj-product-link {
  position: relative;
  display: block;
  min-height: 500px;
  overflow: hidden;
  background: #f5f5f5;
}

.hbj-guide .hbj-product-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.hbj-guide .hbj-img-main {
  opacity: 1;
}

.hbj-guide .hbj-img-alt {
  opacity: 0;
}

.hbj-guide .hbj-product:hover .hbj-img-main {
  opacity: 0;
}

.hbj-guide .hbj-product:hover .hbj-img-alt {
  opacity: 1;
}

.hbj-guide .hbj-product:hover .hbj-product-link img {
  transform: scale(1.015);
}

.hbj-guide .hbj-product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.hbj-guide .hbj-eyebrow {
  margin-bottom: 10px;
  color: var(--hbj-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hbj-guide .hbj-product-copy h3 {
  margin-top: 0;
}

.hbj-guide .hbj-pairing {
  margin: 3px 0 19px;
  padding: 15px 17px;
  border-top: 1px solid var(--hbj-line);
  border-bottom: 1px solid var(--hbj-line);
  color: var(--hbj-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.hbj-guide .hbj-button {
  align-self: flex-start;
  display: inline-block;
  margin-top: 5px;
  padding: 12px 18px;
  border: 1px solid var(--hbj-ink);
  background: var(--hbj-ink);
  color: var(--hbj-white);
  font-size: 14px;
  text-decoration: none;
}

.hbj-guide .hbj-button:hover {
  background: var(--hbj-white);
  color: var(--hbj-ink);
}

/* Proportion checkpoint */
.hbj-guide .hbj-proportion-check {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  margin: 30px 0;
  border: 1px solid var(--hbj-ink);
}

.hbj-guide .hbj-proportion-title {
  display: flex;
  align-items: center;
  padding: 28px;
  background: var(--hbj-ink);
  color: var(--hbj-white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.hbj-guide .hbj-proportion-list {
  margin: 0;
  padding: 24px 28px 24px 48px;
}

.hbj-guide .hbj-proportion-list li:last-child {
  margin-bottom: 0;
}

/* Responsive selection table */
.hbj-guide table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.hbj-guide th,
.hbj-guide td {
  padding: 14px 15px;
  border: 1px solid var(--hbj-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.hbj-guide th {
  background: var(--hbj-ink);
  color: var(--hbj-white);
}

/* Mistakes use editorial columns */
.hbj-guide .hbj-mistakes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
  border-top: 4px solid var(--hbj-ink);
  border-bottom: 1px solid var(--hbj-line);
}

.hbj-guide .hbj-mistake {
  padding: 25px;
  border-right: 1px solid var(--hbj-line);
}

.hbj-guide .hbj-mistake:first-child {
  border-left: 1px solid var(--hbj-line);
}

.hbj-guide .hbj-mistake strong {
  display: block;
  margin-bottom: 9px;
  color: var(--hbj-ink);
  font-size: 17px;
}

.hbj-guide .hbj-mistake p {
  margin-bottom: 0;
  color: var(--hbj-muted);
  font-size: 15px;
}

.hbj-guide .hbj-faq details {
  margin-bottom: 12px;
  border: 1px solid var(--hbj-line);
  background: var(--hbj-white);
}

.hbj-guide .hbj-faq summary {
  padding: 18px 20px;
  color: var(--hbj-ink);
  font-weight: 700;
  cursor: pointer;
}

.hbj-guide .hbj-faq details p {
  margin-bottom: 0;
  padding: 0 20px 20px;
}

.hbj-guide .hbj-final {
  margin-top: 64px;
  padding: clamp(30px, 5vw, 54px);
  border: 2px solid var(--hbj-ink);
  background: var(--hbj-soft);
}

.hbj-guide .hbj-final h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.hbj-guide .hbj-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hbj-guide .hbj-final-actions a {
  display: inline-block;
  padding: 13px 19px;
  border: 1px solid var(--hbj-ink);
  background: var(--hbj-ink);
  color: var(--hbj-white);
  font-size: 14px;
  text-decoration: none;
}

.hbj-guide .hbj-final-actions a:hover {
  background: var(--hbj-white);
  color: var(--hbj-ink);
}

@media (max-width: 900px) {
  .hbj-guide .hbj-toc {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hbj-guide .hbj-toc a {
    white-space: normal;
  }

  .hbj-guide .hbj-day-row {
    grid-template-columns: 130px 1fr 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .hbj-guide {
    font-size: 16px;
    line-height: 1.68;
  }

  .hbj-guide h2 {
    margin-top: 54px;
  }

  .hbj-guide .hbj-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hbj-guide .hbj-day-row {
    grid-template-columns: 1fr;
  }

  .hbj-guide .hbj-day-row strong {
    min-height: 54px;
  }

  .hbj-guide .hbj-day-row span {
    border-top: 1px solid var(--hbj-line);
    border-left: 0;
  }

  .hbj-guide .hbj-product,
  .hbj-guide .hbj-proportion-check,
  .hbj-guide .hbj-mistakes {
    grid-template-columns: 1fr;
  }

  .hbj-guide .hbj-product-link {
    min-height: 410px;
  }

  .hbj-guide .hbj-mistake {
    border-right: 1px solid var(--hbj-line);
    border-bottom: 1px solid var(--hbj-line);
    border-left: 1px solid var(--hbj-line);
  }

  .hbj-guide table,
  .hbj-guide thead,
  .hbj-guide tbody,
  .hbj-guide tr,
  .hbj-guide th,
  .hbj-guide td {
    display: block;
    width: 100%;
  }

  .hbj-guide thead {
    display: none;
  }

  .hbj-guide tr {
    margin-bottom: 14px;
    border: 1px solid var(--hbj-line);
  }

  .hbj-guide td {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--hbj-line);
  }

  .hbj-guide td:last-child {
    border-bottom: 0;
  }

  .hbj-guide td::before {
    content: attr(data-label);
    color: var(--hbj-ink);
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .hbj-guide .hbj-toc {
    grid-template-columns: 1fr;
  }

  .hbj-guide .hbj-product-link {
    min-height: 360px;
  }

  .hbj-guide .hbj-final-actions {
    display: block;
  }

  .hbj-guide .hbj-final-actions a {
    display: block;
    margin-top: 10px;
    text-align: center;
  }
}

@media (hover: none) {
  .hbj-guide .hbj-img-alt {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbj-guide .hbj-product-link img {
    transition: none;
  }
}
