/* Leaving page (tools/build_leaving.py). The figure (.ig) is the page's
   main content; .ig-card-page is the same figure as the fixed 1080x1350
   picture that tools/render_leaving_card.py screenshots. The sections around
   it use the shared styles.css classes of the stop page. Same editorial
   rules: serif lines, hairline rules, no glows or blur, blue only on the
   particle. */

.ig { margin: 32px 0 8px; padding: 40px 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ig-head { margin-bottom: 36px; }
.ig-art { display: block; width: 100%; max-width: 420px; height: auto; margin: 20px 0 0; }
.ig-kicker { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.prose .ig-title, .ig-title { margin: 0; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; }

.ig-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.ig-col { min-width: 0; }
.prose .ig-colhead, .ig-colhead {
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--text-2);
  font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text);
}
.prose .ig-group, .ig-group { margin: 22px 0 2px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ig-rows, .prose .ig-rows { margin: 0; padding: 0; list-style: none; }
.prose .ig-row, .ig-row { margin: 0; padding: 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.ig-row:last-child { border-bottom: 0; }
.ig-sum { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.ig-line { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--text); }
.ig-cefr {
  flex: none; min-width: 34px; padding: 0 5px; border-radius: 4px; background: rgba(61, 126, 255, 0.14);
  color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center;
}
.ig-tag {
  flex: none; padding: 0 6px; border: 1px solid var(--rule); border-radius: 4px;
  color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1.6;
}

.ig-scale { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; color: var(--muted); font-size: 14px; font-weight: 500; }
.ig-scale::before { content: ""; order: 1; flex: 1; height: 1px; background: var(--muted); }
.ig-scale span:last-child { order: 2; }


/* On the page, every line opens its meaning. */
.ig-live summary { cursor: pointer; list-style: none; }
.ig-live summary::-webkit-details-marker { display: none; }
.ig-live summary::after { content: "+"; flex: none; width: 14px; color: var(--muted); font-size: 18px; line-height: 1; text-align: right; }
.ig-live details[open] summary::after { content: "\2212"; color: var(--text); }
.ig-live summary:hover .ig-line { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.ig-detail { margin: 0 0 14px; padding: 2px 0 2px 16px; border-left: 1px solid var(--text-2); }
.ig-detail p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.prose .ig-detail .ig-meaning { color: var(--text); }
.prose .ig-detail .ig-example { color: var(--text-2); font-family: var(--serif); font-size: 19px; }
.prose .ig-detail .ig-note, .prose .ig-detail .ig-level { color: var(--muted); font-size: 15px; }
.prose .ig-download { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 480px) {
  .prose .ig-title, .ig-title { font-size: 29px; }
}
@media (max-width: 720px) {
  .ig-cols { grid-template-columns: 1fr; }
  .ig-send { margin-top: 40px; }
}

/* "Which one would you say?" */
.lq, .prose .lq { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: lq; border-top: 1px solid var(--rule); }
.prose .lq-item, .lq-item { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); counter-increment: lq; }
.prose .lq-situation, .lq-situation { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.lq-situation::before { content: counter(lq) ". "; }
.prose .lq-gap, .lq-gap { margin: 0 0 14px; color: var(--text); font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.lq-blank { display: inline-block; min-width: 4.5em; border-bottom: 1px solid var(--text-2); }
.lq-blank.is-filled { min-width: 0; border-bottom-color: transparent; color: var(--accent); }
.lq-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-option {
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 6px; background: none;
  color: var(--text); font: 500 16px/1.3 var(--sans); cursor: pointer;
}
.lq-option:hover:not(:disabled) { border-color: var(--text-2); }
.lq-option:disabled { cursor: default; color: var(--muted); }
.lq-option.is-right { border-color: var(--accent); color: var(--text); }
.lq-option.is-wrong { border-color: var(--text-2); color: var(--text-2); }
.lq-why { margin: 14px 0 0; }
.lq-why summary { cursor: pointer; color: var(--text-2); font-size: 15px; }
.lq-why p { margin: 8px 0 0; font-size: 16px; }
.lq-score { margin: 16px 0 0; color: var(--text); }
.lq-score:empty { display: none; }

/* The picture for social posts: 1080x1350 (4:5). */
.ig-card-page { width: 1080px; height: 1350px; margin: 0; overflow: hidden; }
.ig-card-page .ig { box-sizing: border-box; width: 1080px; height: 1350px; margin: 0; padding: 76px 72px 56px; border: 0; display: flex; flex-direction: column; }
.ig-card-page .ig-cols { flex: 1; gap: 0 64px; }
.ig-card-page .ig-kicker { font-size: 20px; margin-bottom: 14px; }
.ig-card-page .ig-colhead { font-size: 21px; padding-bottom: 14px; }
.ig-card-page .ig-group, .ig-card-page .ig-scale { font-size: 17px; margin-top: 30px; }
.ig-card-page .ig-sum { padding: 14px 0; gap: 12px; }
.ig-card-page .ig-line { font-size: 31px; }
.ig-card-page .ig-tag { font-size: 14px; padding: 0 7px; }
.ig-card-page .ig-cefr { font-size: 15px; min-width: 44px; padding: 1px 6px; }
.ig-card-page .ig-head { margin-bottom: 40px; }
.ig-card-page .ig-title { font-size: 76px; }
.ig-card-page .ig-art { width: 100%; max-width: none; margin-top: 22px; }
/* The ladder fills the rest of the column, so rude and angry sit at the ends. */
.ig-card-page .ig-send { display: flex; flex-direction: column; padding-bottom: 6px; }
.ig-card-page .ig-ladder { flex: 1; display: flex; flex-direction: column; }
.ig-card-page .ig-ladder .ig-row { flex: 1; display: flex; align-items: center; }
.ig-card-page .ig-ladder .ig-sum { flex: 1; }
