/* Picture Vocab Match (Track F Foundations): 18 px text in the play area, 48 px+ targets, pictures on a white mat. */
body[data-activity="picture-vocab-match"] .ps-bubble,
body[data-activity="picture-vocab-match"] .ps-feedback,
body[data-activity="picture-vocab-match"] .ps-hint,
body[data-activity="picture-vocab-match"] .ps-cust-detail { font-size: 18px; line-height: 1.4; }
body[data-activity="picture-vocab-match"] .ps-customer { overflow-y: auto; }
body[data-activity="picture-vocab-match"] .ps-customer > * { flex-shrink: 0; }

.pvm { height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; font-size: 18px; color: var(--tlg-text); box-sizing: border-box; }
.pvm *, .pvm *::before { box-sizing: border-box; }
.pvm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px; }
.pvm-deck { margin-right: auto; font-weight: 700; color: var(--tlg-text-muted); font-size: 18px; }
.pvm-tool { min-height: 48px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--tlg-border-strong, #8095a7); background: var(--tlg-surface); color: var(--tlg-text); font: inherit; font-size: 18px; cursor: pointer; }
.pvm-tool[aria-pressed="true"] { border-color: var(--ps-accent); }
.pvm-tool:focus-visible, .pvm-choice:focus-visible, .pvm-select:focus-visible { outline: 3px solid var(--tlg-focus, #b84c00); outline-offset: 3px; }

.pvm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
.pvm--picture .pvm-body { grid-template-columns: minmax(0, 1fr); }

/* pictures: always on white, in light and dark mode (they are diagrams drawn for a white page) */
.pvm-figure { margin: 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pvm-mat { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--tlg-border-strong, #8095a7); border-radius: 14px; padding: 10px; overflow: hidden; }
.pvm-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-width: 0; min-height: 0; }
.pvm-figure .pvm-mat { height: 0; }             /* lets flex give the mat the leftover height */
.pvm-figure .pvm-img { width: 100%; height: 100%; }
.pvm-svg { width: 100%; height: 100%; }               /* original drawings (art.js) fill their mat like a photo */
.pvm-mat.is-loading { position: relative; }
.pvm-mat.is-loading::before { content: "Loading picture…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #4a5a68; font-size: 18px; }
.pvm-missing { margin: 0; padding: 12px; color: #22303c; font-size: 18px; }
.pvm-credit { margin: 0; font-size: 18px; line-height: 1.3; color: var(--tlg-text-muted); overflow-wrap: anywhere; }

.pvm-side { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pvm-bank-h { margin: 0; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--tlg-text-muted); }
.pvm-sentence { margin: 0 0 4px; padding: 14px 16px; font-size: 22px; line-height: 1.45; border-left: 6px solid var(--ps-accent); background: var(--tlg-surface-2); border-radius: 0 12px 12px 0; }
.pvm-blank { display: inline-block; min-width: 110px; height: 1.25em; vertical-align: text-bottom; border-bottom: 4px solid var(--tlg-text); margin: 0 4px; }
.pvm-blank.is-filled { display: inline; height: auto; min-width: 0; margin: 0 1px; padding: 1px 6px; border: 3px dashed var(--ps-accent); border-radius: 8px; font-weight: 700; background: var(--tlg-surface); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pvm-sentence.is-done .pvm-blank.is-filled { border-style: solid; }

.pvm-choices { display: flex; flex-direction: column; gap: 12px; }
.pvm-cell { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pvm-choice { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--tlg-border-strong, #8095a7); background: var(--tlg-surface); color: var(--tlg-text); font: inherit; font-size: 22px; font-weight: 700; text-align: left; cursor: pointer; }
.pvm-choice:disabled { cursor: default; color: var(--tlg-text); opacity: 1; }
.pvm-key, .pvm-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tlg-surface-2); border: 2px solid var(--tlg-border-strong, #8095a7); font-size: 18px; font-weight: 700; color: var(--tlg-text); }
.pvm-word { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pvm-mark { flex: none; font-size: 18px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tlg-surface); border: 2px solid currentColor; }
.pvm-choice.is-picked { border-color: var(--ps-accent); border-width: 5px; padding: 8px 12px; background: var(--tlg-surface-2); }
.pvm-choice.is-picked .pvm-key, .pvm-choice.is-picked .pvm-letter { background: var(--ps-accent); border-color: var(--ps-accent); color: var(--ps-accent-ink, #fff); }
.pvm-choice.is-picked:not(.is-right):not(.is-wrong)::after { content: "your pick"; flex: none; font-size: 18px; font-weight: 700; color: var(--tlg-text-muted); }
.pvm-choice.is-right { border-color: #2a8f55; border-style: solid; }
.pvm-choice.is-right .pvm-mark { background: #1f7a44; border-color: #1f7a44; color: #fff; }
.pvm-choice.is-wrong { border-color: #c8372b; border-style: dashed; }
.pvm-choice.is-wrong .pvm-mark { background: #b3261e; border-color: #b3261e; color: #fff; }
.pvm-name { margin: 0; font-size: 18px; font-weight: 700; }

/* find the picture: three picture buttons side by side */
.pvm--picture .pvm-side { justify-content: stretch; min-height: 0; }
.pvm--picture .pvm-choices { flex: 1; min-height: 0; flex-direction: row; gap: 14px; }
.pvm--picture .pvm-cell { flex: 1 1 0; min-height: 0; }
.pvm--picture .pvm-choice { flex: 1; min-height: 0; padding: 8px; flex-direction: column; align-items: stretch; gap: 6px; }
.pvm--picture .pvm-choice.is-picked { padding: 6px; }
.pvm--picture .pvm-letter { position: absolute; top: 10px; left: 10px; z-index: 1; width: 40px; height: 40px; font-size: 20px; background: #fff; color: #22303c; border-color: #22303c; }
.pvm--picture .pvm-choice.is-picked .pvm-letter { background: var(--ps-accent); color: var(--ps-accent-ink, #fff); border-color: #fff; }
.pvm--picture .pvm-mat { border: 0; border-radius: 9px; height: 0; }
.pvm--picture .pvm-mat .pvm-img { width: 100%; height: 100%; }
.pvm--picture .pvm-choice.is-picked:not(.is-right):not(.is-wrong)::after { text-align: center; }
.pvm--picture .pvm-mark { align-self: center; }
.pvm--picture .pvm-credit { min-height: 2.6em; }

/* Start screen deck picker and Briefing example */
.pvm-deck-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 0; }
.pvm-select { min-height: 48px; width: 100%; max-width: 420px; min-width: 0; padding: 8px 12px; font: inherit; font-size: 18px; border-radius: 10px; border: 2px solid var(--tlg-border-strong, #8095a7); background: var(--tlg-surface); color: var(--tlg-text); }
.pvm-ex { display: flex; flex-direction: column; gap: 10px; }
.pvm-ex .pvm-mat { flex: none; height: 200px; }
.pvm-ex-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.pvm-ex-chip { padding: 6px 12px; border-radius: 10px; border: 2px solid var(--tlg-border-strong, #8095a7); font-size: 18px; font-weight: 700; background: var(--tlg-surface); }
.pvm-ex-chip.is-right { border-color: #1f7a44; background: #1f7a44; color: #fff; }

/* the assignment card would cover the third picture's credit: park it at the foot of the customer column */
@media (min-width: 901px) { html.ps-locked body[data-activity="picture-vocab-match"] .lga-card { right: auto; left: 12px; max-width: calc(var(--ps-side-w) - 24px); } }

/* small laptops and landscape tablets: the same layout, tightened so the longest sentence still fits */
@media (min-width: 901px) and (max-width: 1200px), (min-width: 901px) and (max-height: 720px) {
  .pvm { gap: 6px; padding: 8px 12px 10px; }
  .pvm-body { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
  .pvm-side { gap: 8px; }
  .pvm-sentence { font-size: 19px; padding: 10px 12px; line-height: 1.35; }
  .pvm-choices { gap: 8px; }
  .pvm-choice { min-height: 56px; font-size: 20px; padding: 6px 12px; }
  .pvm-choice.is-picked { padding: 4px 10px; }
  .pvm--picture .pvm-choices { gap: 10px; }
}
@media (max-width: 900px) {
  .pvm { height: auto; padding: 10px 12px 16px; }
  .pvm-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pvm-figure .pvm-mat { height: min(46vh, 340px); flex: none; }
  .pvm--picture .pvm-choices { flex-direction: column; flex: none; }
  .pvm--picture .pvm-cell, .pvm--picture .pvm-choice { flex: none; }
  .pvm--picture .pvm-mat { height: min(34vh, 250px); flex: none; }
  .pvm--picture .pvm-credit { min-height: 0; }
  .pvm-sentence { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) { .pvm-choice { transition: border-color .12s, background .12s; } }
