/* Visual and interaction styling adapted from the approved standalone sample. */
.lexical-sample {
  color-scheme: light;
  box-sizing: border-box;
  overflow: clip;
  background: #faf8f3;
  color: #29212a;
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}
.lexical-sample *, .lexical-sample *::before, .lexical-sample *::after { box-sizing: border-box; }
.lexical-sample button, .lexical-sample select { font: inherit; }
.lexical-sample button:focus-visible,
.lexical-sample select:focus-visible,
.lexical-sample a:focus-visible { outline: 3px solid #148a54; outline-offset: 3px; }
.lexical-sample .hero-inner { display: block; min-height: 0; width: auto; grid-template-columns: none; gap: 0; }
.lexical-sample .hero { background: #690a4f; color: white; }
    .lexical-sample .hero-inner, .lexical-sample .wrap { max-width: 74rem; margin: auto; padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem); }
    .lexical-sample .hero-inner { padding-block: clamp(3rem, 7vw, 6rem); }
    .lexical-sample .eyebrow { margin: 0 0 .8rem; font-size: .8rem; font-weight: 800; line-height: 1.55; letter-spacing: .12em; text-transform: uppercase; color: #267b4c; }
    .lexical-sample .hero .eyebrow { color: #d8e6d9; }
    .lexical-sample h1, .lexical-sample h2, .lexical-sample h3, .lexical-sample p { margin-top: 0; }
    .lexical-sample h1 { max-width: 14ch; font-size: clamp(2.35rem, 6vw, 5rem); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 1.25rem; }
    .lexical-sample h2 { max-width: 18ch; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.035em; color: #690a4f; margin-bottom: 1rem; }
    .lexical-sample h3 { color: #690a4f; font-size: 1.25rem; line-height: 1.25; }
    .lexical-sample .lead { max-width: 42rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #f3e8ef; }
    .lexical-sample .hero a, .lexical-sample .next-link { display: inline-block; margin-top: .5rem; background: white; border: 1px solid white; border-radius: 999px; padding: .7rem 1.1rem; color: #690a4f; font-weight: 700; text-decoration: none; }
    .lexical-sample .hero a:hover, .lexical-sample .next-link:hover { background: #eaf4eb; }
    .lexical-sample .intro { max-width: 48rem; margin-bottom: 2rem; font-size: 1.06rem; }
    .lexical-sample .exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .lexical-sample .exercise { background: #fff; border: 1px solid #e8dce3; border-radius: 1.1rem; padding: 1.35rem; box-shadow: 0 6px 20px rgba(55, 10, 43, .035); }
    .lexical-sample .exercise legend { font-size: 1.11rem; font-weight: 700; line-height: 1.45; color: #690a4f; padding: 0; margin-bottom: 1rem; }
    .lexical-sample fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
    .lexical-sample .choices { display: flex; gap: .55rem; flex-wrap: wrap; }
    .lexical-sample .choice { border: 1px solid #ab6b96; background: #fff; color: #690a4f; border-radius: 999px; padding: .5rem .85rem; cursor: pointer; min-height: 2.75rem; }
    .lexical-sample .choice:hover { background: #f7edf4; }
    .lexical-sample .choice[aria-pressed="true"] { background: #690a4f; color: #fff; border-color: #690a4f; }
    .lexical-sample .feedback { margin: 1rem 0 0; padding: .85rem 1rem; min-height: 5.8rem; background: #f3f7f0; border-left: .25rem solid #288b56; border-radius: .2rem .5rem .5rem .2rem; }
    .lexical-sample .feedback strong { display: block; color: #5e0847; }
    .lexical-sample .bridge { background: #eaf5eb; }
    .lexical-sample .bridge .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
    .lexical-sample .bridge p { max-width: 36rem; }
    .lexical-sample .pairs { display: grid; gap: .65rem; }
    .lexical-sample .pair { background: white; border-radius: .65rem; padding: .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
    .lexical-sample .pair span { border-radius: .4rem; padding: .5rem .65rem; }
    .lexical-sample .pair .pair-pt { background: #e9f5eb; color: #175e38; }
    .lexical-sample .pair .pair-en { background: #f6eaf2; color: #690a4f; font-weight: 700; }
    .lexical-sample .mini { background: white; }
    .lexical-sample .mini-head { max-width: 48rem; }
    .lexical-sample .scene { max-width: 54rem; border-left: .3rem solid #278b55; padding: 1.15rem 1.4rem; background: #f9f0f6; border-radius: .25rem .8rem .8rem .25rem; margin: 1.5rem 0 2rem; }
    .lexical-sample .step-count { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #227748; font-weight: 800; }
    .lexical-sample .example { font-size: 1.18rem; font-weight: 700; color: #690a4f; }
    .lexical-sample .equivalent { display: inline-block; padding: .4rem .65rem; border-radius: .4rem; background: #e9f5eb; color: #175e38; }
    .lexical-sample .chunk-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 .8rem; }
    .lexical-sample .chunk { border: 1px solid #dec6d5; border-radius: .7rem; overflow: hidden; line-height: 1.35; }
    .lexical-sample .chunk-en, .lexical-sample .chunk-pt { display: block; min-height: 3.1rem; padding: .8rem; }
    .lexical-sample .chunk-en { background: #690a4f; color: #fff; }
    .lexical-sample .chunk-pt { background: #e9f5eb; color: #175e38; }
    .lexical-sample .chunk strong, .lexical-sample .chunk span { font-weight: 700; }
    .lexical-sample .controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
    .lexical-sample .control { min-width: 0; border: 1px solid #e8dce3; border-radius: 1rem; padding: 1.2rem; }
    .lexical-sample .control legend { padding: 0; color: #690a4f; font-weight: 800; font-size: 1.08rem; }
    .lexical-sample .control p { margin: .2rem 0 1rem; font-size: .94rem; }
    .lexical-sample .subchoice { margin: .9rem 0 .35rem; color: #4d414a; font-weight: 700; font-size: .9rem; }
    .lexical-sample .control .choice { display: grid; gap: .12rem; text-align: left; border-radius: .6rem; }
    .lexical-sample .choice-en { font-weight: 700; }
    .lexical-sample .choice-pt { font-size: .88rem; color: #1d7647; }
    .lexical-sample .control .choice[aria-pressed="true"] .choice-pt { color: #d8f0df; }
    .lexical-sample .object-group[hidden] { display: none; }
    .lexical-sample .output { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid #a1cfaa; border-radius: .7rem; background: #eef7ef; }
    .lexical-sample .output p { margin: .2rem 0; }
    .lexical-sample .output .english { color: #690a4f; font-size: 1.25rem; font-weight: 700; }
    .lexical-sample .output .portuguese { display: inline-block; background: #dff0e3; color: #175e38; padding: .35rem .55rem; border-radius: .4rem; }
    .lexical-sample .grammar { margin-top: 1rem; border-left: .25rem solid #288b56; padding: .9rem 1.1rem; background: #f3f7f0; }
    .lexical-sample .grammar p:last-child { margin-bottom: 0; }
    .lexical-sample .closing { background: #690a4f; color: #fff; }
    .lexical-sample .closing h2 { color: #fff; }
    .lexical-sample .closing .eyebrow { color: #d7e8dc; }
    .lexical-sample .closing p { max-width: 46rem; }
    .lexical-sample .footnote { font-size: .9rem; color: #e5d6e0; }
    @media (max-width: 850px) { .lexical-sample .exercise-grid, .lexical-sample .controls { grid-template-columns: 1fr; } .lexical-sample .exercise { max-width: 46rem; } .lexical-sample .feedback { min-height: 0; } }
    @media (max-width: 650px) { .lexical-sample .bridge .wrap, .lexical-sample .chunk-line { grid-template-columns: 1fr; } .lexical-sample .pair { gap: .5rem; } .lexical-sample .bar-note { font-size: .78rem; text-align: right; } .lexical-sample .hero-inner, .lexical-sample .wrap { padding-inline: 1.2rem; } .lexical-sample .chunk-en, .lexical-sample .chunk-pt { min-height: 0; } }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
