/* AI content and design process, scoped to the HB case. */
.case-hanzi-bricks .hb-ai-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.5rem 0 3rem;
  gap: 1.25rem;
}
.case-hanzi-bricks .hb-ai-roles article { padding: 2rem; background: #f0f5f3; min-width: 0; }
.case-hanzi-bricks .hb-ai-roles article:last-child { background: #f6f3ed; }
.case-hanzi-bricks .hb-ai-roles .eyebrow { color: #4d6c63; }
.case-hanzi-bricks .hb-ai-roles h3 { font-size: 1.6rem; line-height: 1.25; margin: 1.2rem 0 .9rem; letter-spacing: -.035em; }
.case-hanzi-bricks .hb-ai-roles p { font-size: .95rem; margin: 0; line-height: 1.75; }
.case-hanzi-bricks .hb-ai-roles a { display: inline-flex; gap: 1.2rem; margin-top: 1.4rem; font-size: .8rem; text-underline-offset: .3em; }
.case-hanzi-bricks .hb-ai-workflow { margin: 3rem 0; }
.case-hanzi-bricks .hb-ai-flow-heading { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.8rem; }
.case-hanzi-bricks .hb-ai-flow-heading h3 { font-size: 1.3rem; line-height: 1.4; }
.case-hanzi-bricks .hb-ai-flow-heading > span { font-size: .75rem; color: var(--muted); }
.case-hanzi-bricks .hb-ai-workflow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 0; list-style: none; max-width: none; }
.case-hanzi-bricks .hb-ai-workflow li { position: relative; min-width: 0; border-top: 2px solid #47675c; padding: 1.2rem 0 0; margin: 0; }
.case-hanzi-bricks .hb-ai-workflow li:not(:last-child)::after { content: '→'; position: absolute; right: -1.45rem; top: 1.05rem; color: #47675c; }
.case-hanzi-bricks .hb-ai-step { color: #47675c; font-size: .72rem; letter-spacing: .04em; }
.case-hanzi-bricks .hb-ai-workflow h4 { margin: 1.2rem 0 .6rem; font-size: 1.07rem; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
.case-hanzi-bricks .hb-ai-workflow li p { margin: 0; font-size: .86rem; line-height: 1.7; }
.case-hanzi-bricks .hb-ai-workflow figcaption { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.case-hanzi-bricks .hb-ai-toolkit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2.5rem 0 3rem; }
.case-hanzi-bricks .hb-ai-toolkit article { display: flex; flex-direction: column; min-width: 0; padding: 1.7rem; background: #f0f5f3; }
.case-hanzi-bricks .hb-ai-toolkit article:nth-child(2) { background: #f4f3ef; }
.case-hanzi-bricks .hb-ai-toolkit article:nth-child(3) { background: #eef2f5; }
.case-hanzi-bricks .hb-ai-toolkit .eyebrow { color: #4d6c63; font-size: .68rem; }
.case-hanzi-bricks .hb-ai-toolkit h3 { font-size: 1.5rem; line-height: 1.3; margin: 1.25rem 0 1rem; letter-spacing: -.035em; }
.case-hanzi-bricks .hb-ai-toolkit p { font-size: .9rem; line-height: 1.75; margin: 0 0 1.5rem; }
.case-hanzi-bricks .hb-ai-gain { margin-top: auto; padding-top: 1rem; border-top: 1px solid #d4ded9; }
.case-hanzi-bricks .hb-ai-gain span { display: block; font-size: .68rem; color: #52665e; margin-bottom: .4rem; }
.case-hanzi-bricks .hb-ai-gain strong { display: block; font-size: .84rem; line-height: 1.5; font-weight: 500; }
.case-hanzi-bricks .hb-ai-toolkit a { display: inline-flex; align-items: baseline; gap: .8rem; font-size: .76rem; text-underline-offset: .3em; margin-top: 1.3rem; }
.case-hanzi-bricks .hb-ai-output-note { border-left: 2px solid #47675c; padding-left: 1.4rem; margin: 2.5rem 0; }
.case-hanzi-bricks .hb-ai-output-note p { margin: .7rem 0 0; font-size: .95rem; }
@media (max-width: 800px) {
  .case-hanzi-bricks .hb-ai-toolkit { grid-template-columns: minmax(0,1fr); }
  .case-hanzi-bricks .hb-ai-toolkit h3 { margin-top: .8rem; }
  .case-hanzi-bricks .hb-ai-workflow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 2rem; }
  .case-hanzi-bricks .hb-ai-workflow li:nth-child(2)::after { content: none; }
  .case-hanzi-bricks .hb-ai-roles article { padding: 1.5rem; }
}
@media (max-width: 600px) {
  .case-hanzi-bricks .hb-ai-roles { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .case-hanzi-bricks .hb-ai-roles h3 { font-size: 1.45rem; }
  .case-hanzi-bricks .hb-ai-workflow ol { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .case-hanzi-bricks .hb-ai-workflow li { padding: 1rem 0 0; }
  .case-hanzi-bricks .hb-ai-step { display: block; line-height: 1.6; }
  .case-hanzi-bricks .hb-ai-workflow h4 { margin-top: .6rem; }
  .case-hanzi-bricks .hb-ai-workflow li:not(:last-child)::after { content: none; }
}
