/* Air Pressure & Wind Station: the work order + answer chips and the coastal station scene inside the practice shell's stage. */
.apw { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 8px 12px; }
.apw-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }

/* the work order */
.apw-ticket { padding: 8px 14px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px dashed #7fa9bd; background: #f2f8fb; color: #13293a; }
.apw-ticket-k { margin: 0 0 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .08em); color: #245c70; }
.apw-given { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 17px; line-height: 1.35; font-weight: 650; }
.apw-note { margin: 8px 0 0; font-size: 16px; line-height: 1.3; color: #3f5a68; font-style: italic; }
html[data-theme="dark"] .apw-ticket { background: #13283a; color: #e6f2f8; border-color: #4f86a0; }
html[data-theme="dark"] .apw-ticket-k { color: #8fd0ea; }
html[data-theme="dark"] .apw-note { color: #b9d2de; }

/* the answer chips */
.apw-field-k { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.apw-field-sub { margin: 0 0 6px; font-size: 16px; color: var(--tlg-text-muted, #4b5d68); }
.apw-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.apw-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 6px; font-size: 17px; line-height: 1.2;
  border-radius: var(--tlg-radius-md, 12px); white-space: normal; text-align: center; touch-action: manipulation; }
.apw-ico { width: 34px; height: 34px; flex: none; }
.apw-chip:disabled { cursor: default; }
.apw-chip:focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.apw-msg { margin: 0; min-height: 1.2em; font-size: 16px; font-weight: 700; color: var(--tlg-danger, #b42318); }
html[data-theme="dark"] .apw-msg { color: #ffb4a8; }
.apw-about { font-size: 16px; line-height: 1.4; }
.apw-about summary { cursor: pointer; font-weight: 700; }
.apw-about p { margin: 4px 0 0; }

/* the station scene */
.apw-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.apw-scene { position: relative; width: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); overflow: hidden; border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.apw--gradient .apw-scene, .apw--breeze .apw-scene { cursor: ew-resize; }
.apw.is-locked .apw-scene { cursor: default; }
.apw-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--tlg-font-body, system-ui, sans-serif); }
html[data-theme="dark"] .apw-svg { filter: brightness(.92); }
.apw-example-svg { display: block; width: 100%; height: auto; max-height: 460px; font-family: var(--tlg-font-body, system-ui, sans-serif); }

@media (max-width: 1100px) { .apw { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .apw { position: static; grid-template-columns: 1fr; }
  .apw-view { display: block; }
  .apw-scene { width: 100% !important; }
}

/* A small scene (a phone): the SVG labels would render under 16 px, so they are hidden and listed under the scene. */
.apw-caps { display: none; }
.apw--small .apw-svg text, .apw--small .apw-svg .apw-pill { display: none; }
.apw--small .apw-view { flex-direction: column; align-items: stretch; }
.apw--small .apw-caps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.apw-caps li { font-size: 16px; line-height: 1.3; padding: 4px 10px; border-radius: 12px; background: #eef6fa; border: 1px solid #7fa9bd; color: #13293a; }
html[data-theme="dark"] .apw-caps li { background: #13283a; border-color: #4f86a0; color: #e6f2f8; }
.apw-chips--3 { grid-template-columns: repeat(3, 1fr); }
.apw-chips--3 .apw-chip { min-height: 84px; padding: 6px 4px; font-size: 16px; }
.apw-chips--list { grid-template-columns: 1fr; gap: 6px; }
.apw-chips--list .apw-chip { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 48px; padding: 6px 12px; font-size: 16px; }
