/* Offline §6.4 parallel line demonstration. */
.kyy-parallel {
  display:grid;gap:.65rem;min-width:0;
  color:var(--ink);line-height:1.55;
}
.kyy-parallel [hidden] { display: none !important; }
.kyy-parallel h3, .kyy-parallel p, .kyy-parallel figure { margin: 0; }
.kyy-parallel h3 {font-size:clamp(1rem,1.65vw,1.25rem);font-weight:650;line-height:1.4;}
.kyy-parallel figcaption {font-size:.86rem;color:var(--soft);}
.kyy-parallel-interaction { display:grid; gap:.65rem; align-content:start; min-width:0; }
.kyy-parallel-prompt { font-weight:650; }
.kyy-parallel [aria-label="为角 1 选择另一只角"] button { min-inline-size:3.15rem; }
.kyy-parallel svg { display: block; width: min(100%,34rem); height: auto; margin-inline: auto; overflow: visible; }
.kyy-parallel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .7rem; min-width: 0; }
.kyy-parallel-actions label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.kyy-parallel input, .kyy-parallel select, .kyy-parallel button {
  min-height:2.5rem;padding:.32rem .62rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--line);border-radius:5px;font:inherit;
}
.kyy-parallel input { width: 5.2em; }
.kyy-parallel button {cursor:pointer;}
.kyy-parallel button:hover {background:var(--light);}
.kyy-parallel > button { justify-self: start; }
.kyy-parallel button[aria-pressed="true"] { background:var(--light);border-color:var(--green);color:var(--green-dark);font-weight:600; }
.kyy-parallel button:focus-visible, .kyy-parallel input:focus-visible, .kyy-parallel select:focus-visible { outline:2px solid var(--green);outline-offset:2px; }
.kyy-parallel-given { font-weight: 650; }
.kyy-parallel-result:not(:empty) { border-inline-start:2px solid var(--green);padding-inline-start:.6rem; }
/* Diagram colors encode angle pairs, the interior region, and the transversal. */
.kyy-parallel svg text { fill: #17283b; font: bold 14px system-ui, sans-serif; }
.kyy-parallel-interior { fill: #e6f1f7; }
.kyy-parallel-lines { stroke: #264760; stroke-width: 2.2; }
.kyy-parallel-transversal { stroke: #63533b; stroke-width: 1.8; stroke-dasharray: 5 3; }
.kyy-parallel-mark { stroke: #183747; stroke-width: 1.8; }
.kyy-parallel-sector { fill: #f8fbfd; stroke: #788d9e; stroke-width: 1.1; }
.kyy-parallel-sector.is-base { fill: #ffd69e; stroke: #815218; }
.kyy-parallel-sector.is-chosen { fill: #abd8ed; stroke: #1c5075; stroke-width: 2.1; }

@media screen and (min-width:1050px) and (min-height:640px) {
  .projecting-classroom #parallelContent:not([hidden]) .kyy-parallel {
    grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
    gap: .6rem 1.25rem;
    align-items: start;
    padding:0;
  }
  .projecting-classroom .kyy-parallel > :is(h3,.kyy-parallel-actions) { grid-column:1/-1; }
  .projecting-classroom .kyy-parallel figure { grid-column:1; align-self:start; min-width:0; }
  .projecting-classroom .kyy-parallel-interaction { grid-column:2; }
  .projecting-classroom .kyy-parallel-location { min-block-size: 2.85em; font-size: .92rem; }
  .projecting-classroom .kyy-parallel-result { font-size:.98rem; }
}
