/* Scoped interactive Teaching DNA. Other homepage sections are untouched. */
.dna-play {
  --dna-subject: var(--teal-deep, #0f6f8c);
  --dna-verb: #275d87;
  --dna-object: #365b68;
  --dna-modifier: var(--gold-text, #8a6a1c);
  padding: clamp(40px, 6vw, 76px) 0;
  background: #f5fafb;
  color: var(--ink);
}
.dna-play [hidden] { display: none !important; }
.dna-play__wrap { width: min(100% - 32px, 960px); margin-inline: auto; }
.dna-play__heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.dna-play__heading h2 { margin: 10px 0 16px; font: 600 clamp(26px, 4vw, 38px)/1.45 var(--font-serif); text-wrap: balance; }
.dna-play p { font-size: 17px; line-height: 1.75; }
.dna-play__heading p { margin: 0; color: var(--body); }
.dna-play__activity { margin-top: 20px; padding: clamp(18px, 3.5vw, 34px); border: 1px solid #d4e5e9; border-radius: 24px; background: #fff; box-shadow: 0 12px 35px -26px #30687945; min-width: 0; }
.dna-play h3 { margin: 0; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.55; font-weight: 600; }
.dna-play__activity-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.dna-play__activity-head h3 { font: 600 13px/1.6 var(--font-mono); letter-spacing: .03em; }
.dna-play__number { display: inline-flex; align-items: center; justify-content: center; margin-right: 7px; width: 30px; height: 30px; border-radius: 50%; background: #edf7fa; color: var(--teal-deep); font: 600 13px var(--font-mono); vertical-align: middle; }
.dna-play .dna-play__progress { margin: 0; color: var(--teal-deep); font-size: 14px; font-weight: 600; }
.dna-play .dna-play__sentence, .dna-play .dna-play__question { margin: 24px 0 18px; padding: 20px 14px; border-radius: 16px; background: #f3f8fa; font: 500 clamp(21px, 3vw, 30px)/1.75 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.dna-play .dna-play__sentence { text-align: center; }
.dna-play__sentence [data-dna-word] { display: inline; padding: 2px 1px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .2s ease, color .2s ease; }
.dna-play__sentence [data-found="true"] { border-bottom: 2px solid currentColor; }
.dna-play__sentence [data-dna-word="subject"][data-found="true"] { color: var(--dna-subject); background: #e0f4f7; }
.dna-play__sentence [data-dna-word="verb"][data-found="true"] { color: var(--dna-verb); background: #e8f1fb; }
.dna-play__sentence [data-dna-word="object"][data-found="true"] { color: var(--dna-object); background: #eaf2f3; }
.dna-play__sentence [data-dna-word="modifier"][data-found="true"] { color: var(--dna-modifier); background: #fff4d9; }
.dna-play .dna-play__invitation { margin: 0 0 14px; color: var(--body); font-size: 15px; }
.dna-play__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.dna-play button { font-family: var(--font-sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dna-play__card { --clue-color: var(--dna-subject); min-width: 0; width: 100%; min-height: 150px; padding: 16px; text-align: left; color: var(--ink); background: #fff; border: 1.5px solid #b9d3dc; border-radius: 15px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.dna-play__card[data-dna-clue="verb"] { --clue-color: var(--dna-verb); }
.dna-play__card[data-dna-clue="object"] { --clue-color: var(--dna-object); }
.dna-play__card[data-dna-clue="modifier"] { --clue-color: var(--dna-modifier); }
.dna-play__card-top { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 10px; color: var(--clue-color); }
.dna-play__card svg { width: 26px; height: 26px; flex: 0 0 auto; }
.dna-play__card strong { display: block; font-size: 18px; line-height: 1.45; }
.dna-play__card small { display: block; font-size: 13px; font-weight: 500; }
.dna-play__clue { display: block; margin-top: 6px; font-size: 16px; color: var(--body); }
.dna-play__found { font-size: 12px; font-weight: 600; }
.dna-play__card[aria-expanded="true"] { border-color: var(--clue-color); background: #f5fbfc; transform: translateY(-2px); box-shadow: 0 6px 16px -10px #0f6f8c80; }
.dna-play__card[data-dna-clue="verb"][aria-expanded="true"] { background: #f2f7fd; }
.dna-play__card[data-dna-clue="modifier"][aria-expanded="true"] { background: #fffaf0; }
.dna-play__reveal { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid #b9d3dc; font-size: 15px; line-height: 1.6; }
.dna-play__reveal b { display: block; color: var(--clue-color); font: 600 16px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.dna-play__reveal > span { display: block; margin-top: 4px; }
.dna-play__completion { margin-top: 20px; padding: 18px; border-radius: 16px; border: 1px solid #badde5; background: #eef9fb; }
.dna-play__completion h4 { margin: 0; font-size: 18px; line-height: 1.6; }
.dna-play__completion p { margin: 10px 0 0; }
.dna-play .dna-play__translation { font-weight: 600; color: var(--teal-deep); }
.dna-play__reset { min-height: 48px; margin-top: 10px; padding: 8px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; font-weight: 600; }
.dna-play .dna-play__note { margin: 12px 0 0; padding: 14px 16px; border-left: 3px solid #d6b86e; background: #fcf9f1; border-radius: 0 10px 10px 0; color: var(--body); font-size: 15px; line-height: 1.7; }
.dna-play__practice > p { color: var(--body); margin: 12px 0; }
.dna-play .dna-play__question { margin-block: 18px; text-align: left; }
.dna-play__options { padding: 0; margin: 0; min-width: 0; border: 0; display: grid; gap: 10px; }
.dna-play__options legend { margin-bottom: 12px; font-size: 15px; color: var(--body); }
.dna-play__options button { min-width: 0; min-height: 56px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; text-align: left; background: #fff; border: 1.5px solid #b9d3dc; border-radius: 12px; color: var(--ink); font-size: 18px; line-height: 1.5; transition: background-color .18s ease, border-color .18s ease; }
.dna-play__options button[aria-pressed="true"] { border-color: var(--teal-deep); background: #eaf6f9; }
.dna-play__selected { color: var(--teal-deep); font-size: 14px; font-weight: 600; }
.dna-play__feedback { margin-top: 20px; padding: clamp(14px, 3vw, 24px); border-radius: 16px; background: #f3f9fa; border: 1px solid #cee2e7; }
.dna-play__feedback p { margin: 14px 0; }
.dna-play__feedback p:last-child { margin-bottom: 0; }
.dna-play .dna-play__response { color: var(--teal-deep); font-weight: 600; margin-top: 0; }
.dna-play .dna-play__breakdown { font: 500 18px/1.9 var(--font-mono); overflow-wrap: anywhere; }
.dna-play__breakdown span { border-bottom: 2px solid currentColor; }
.dna-play__breakdown span:nth-child(1) { color: var(--dna-subject); }
.dna-play__breakdown span:nth-child(2) { color: var(--dna-verb); }
.dna-play__breakdown span:nth-child(3) { color: var(--dna-object); }
.dna-play__breakdown span:nth-child(4) { color: var(--dna-modifier); }
.dna-play__roles { margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dna-play__roles > div { min-width: 0; padding: 10px; background: #fff; border-radius: 9px; }
.dna-play__roles dt { color: var(--body); font-size: 13px; }
.dna-play__roles dd { margin: 4px 0 0; font: 600 15px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.dna-play .dna-play__correct { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #b9d3dc; }
.dna-play .dna-play__disclosure { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.dna-play__story { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 30px; padding: 24px 0 0; border-top: 1px solid #d4e5e9; }
.dna-play__story figure { margin: 0; }
.dna-play__story img { display: block; width: 130px; height: auto; border: 1px solid #d5dfe0; border-radius: 8px; box-shadow: 0 6px 20px -14px #0f2a3880; }
.dna-play__story h3 { font: 600 clamp(20px, 2.5vw, 26px)/1.5 var(--font-serif); text-wrap: balance; }
.dna-play__story p { margin: 12px 0 0; color: var(--body); font-size: 16px; }
.dna-play :is(button, summary):focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 4px; }
.dna-play details { padding: 12px 0; border-bottom: 1px solid #d4e5e9; }
.dna-play summary { cursor: pointer; min-height: 44px; padding-block: 8px; }
@media (hover: hover) {
  .dna-play__card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -13px #0f6f8c80; border-color: var(--clue-color); }
  .dna-play__options button:hover { background: #f0f8fa; border-color: var(--teal-deep); }
}
@media (max-width: 700px) {
  .dna-play__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dna-play__card { min-height: 144px; padding: 14px; }
  .dna-play__heading { margin-bottom: 22px; text-align: left; }
  .dna-play__heading h2 { margin-bottom: 12px; line-height: 1.45; }
  .dna-play p { font-size: 16px; line-height: 1.7; }
  .dna-play__story { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: start; }
  .dna-play__story img { width: 90px; }
  .dna-play__story .eyebrow-mono { font-size: 9px; line-height: 1.6; }
  .dna-play__story h3 { font-size: 19px; }
  .dna-play__story p { font-size: 15px; }
}
@media (max-width: 360px) {
  .dna-play__wrap { width: calc(100% - 24px); }
  .dna-play__activity { padding: 16px; border-radius: 18px; }
  .dna-play__card { padding: 12px; }
  .dna-play__card strong { font-size: 17px; }
  .dna-play__reveal b { font-size: 14px; }
  .dna-play__sentence { text-align: left; }
  .dna-play__story { grid-template-columns: minmax(0, 1fr); }
  .dna-play__story figure { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .dna-play *, .dna-play *::before, .dna-play *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dna-play__card, .dna-play__card:hover, .dna-play__card[aria-expanded="true"] { transform: none; }
}
