/* labels.html: the Zalmari name taken apart, then the kinds of word on a bag. */

/* The take: three big plate-buttons over one explanation panel. */
.take-sec { row-gap: calc(var(--line) * 1.5); padding-bottom: calc(var(--line) * 1.5); }
.take > h2 { margin-bottom: calc(var(--line) * .5); }
.take__lines {
  display: grid; justify-items: start; gap: .75rem;
  margin: 0 0 var(--line);
}
.take__lines li { max-width: 100%; }
.take__btn.plate--big {
  display: block; max-width: 100%; min-height: 2.75rem;
  border: 0; background: none; text-align: left; overflow-wrap: anywhere;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2.25rem);
}
.take__btn.plate--outline:hover::after { background: var(--pink-deep); }
@media (min-width: 70em) {
  .take__lines li:nth-child(2) { margin-left: 1.5rem; }
  .take__lines li:nth-child(3) { margin-left: 3rem; }
}

/* Panel: the three sentences share one grid cell, so the panel is always as tall as the longest. */
.take__panel {
  display: grid;
  padding: calc(var(--line) * .75) 1.75rem calc(var(--line) * .75) 1.25rem;
  background: var(--pink-deep);
  font-size: var(--t-lead); line-height: 1.5;
}
.take__say { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.take__say.is-on { visibility: visible; }
.take__say strong { font-family: var(--ff-display); font-weight: 700; }

/* Without script: every explanation is listed in order and every plate reads as filled. */
html:not(.js) .take__panel { display: block; }
html:not(.js) .take__say { visibility: visible; margin-bottom: .75rem; }
html:not(.js) .take__say:last-child { margin-bottom: 0; }
html:not(.js) .take__btn { pointer-events: none; }
html:not(.js) .take__btn::before { background: var(--cyan); }
html:not(.js) .take__btn::after { display: none; }

/* Kinds of word. */
.guide { margin-top: calc(var(--line) * 1.5); }
.guide article { min-width: 0; }
.guide h3 { margin-top: .6rem; overflow-wrap: anywhere; }
.guide p:last-child { margin-bottom: 0; }

/* Two bags side by side, captions kept as the pair. */
.evidence { margin-top: calc(var(--line) * 2.5); row-gap: var(--line); }
.evidence h3 { margin-bottom: var(--line); }
.label__name { display: block; margin-top: .4rem; overflow-wrap: anywhere; }
.evidence__note { max-width: 24em; }
@media (min-width: 56em) { .evidence__note { padding-top: calc(var(--line) * 3); } }

/* Name tells / doesn't tell: two short statements, second one line lower. */
.sayings { align-items: start; }
.sayings p { margin: .6rem 0 0; }
.sayings > div { min-width: 0; }
@media (max-width: 40em) { .sayings { grid-template-columns: 1fr; } .sayings > :nth-child(2) { margin-top: 0; } }

/* Closing links. */
.next .btns { margin-top: var(--line); }
.next .lead { margin-bottom: 0; }
