/* IELTS Writing pages (tools/seo-authoring/build_ielts_writing.py). Loaded after /assets/ielts-speaking.css,
   whose .is-* look and --is-* colours these pages share; only the pieces Writing needs are here (prefix iw-). */

/* the task, set out as in the test */
.iw-task{max-width:760px;margin:16px 0 0;padding:18px 20px;border-radius:16px;border:1.5px solid color-mix(in srgb,var(--is-c) 35%,transparent);
  background:var(--is-card);box-shadow:0 10px 24px -20px rgba(76,29,149,.55)}
.iw-task > * + *{margin-top:10px}
.iw-task .iw-task-tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.8125rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--is-c);background:color-mix(in srgb,var(--is-c) 10%,transparent)}
.iw-task p:first-of-type{margin-top:8px}
.iw-task .iw-q{font-weight:700;color:var(--is-ink)}

/* charts drawn from the task's data */
.iw-figure{margin:18px 0 0;padding:16px;border-radius:16px;border:1px solid var(--is-line);background:#fff;max-width:760px}
.iw-figure figcaption{font-weight:700;color:var(--is-ink);margin-bottom:10px;font-size:1rem;line-height:1.4}
.iw-figure svg{display:block;width:100%;height:auto}
/* on a phone the chart keeps a readable size and scrolls sideways inside its box */
.iw-svg{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media (max-width:640px){.iw-svg svg{min-width:520px}}
.iw-figure .iw-unit{font-size:.875rem;color:var(--is-muted);font-weight:600;margin:0 0 6px}
.iw-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 0;padding:0;list-style:none;font-size:.9375rem;color:var(--is-ink)}
.iw-legend li{display:flex;align-items:center;gap:7px}
.iw-legend i{display:inline-block;width:14px;height:14px;border-radius:4px;flex:none}
.iw-legend i.iw-dash{height:0;border-top:2px dashed var(--is-muted);border-radius:0;width:20px}
.iw-data-h{margin:14px 0 0;font-size:.9375rem;font-weight:700;color:var(--is-muted)}

/* sample answers and weaker versions */
.iw-answer{margin:16px 0 0;padding:18px 20px;border-radius:16px;border:1px solid color-mix(in srgb,#059669 35%,transparent);
  border-left:5px solid #059669;background:color-mix(in srgb,#059669 4%,#fff)}
.iw-answer > * + *{margin-top:12px}
.iw-answer .iw-meta{font-size:.9375rem;font-weight:600;color:#047857}
.iw-answer .iw-sign{margin-top:2px}
.iw-weak{margin:16px 0 0;padding:18px 20px;border-radius:16px;border:1px solid color-mix(in srgb,#d97706 35%,transparent);
  border-left:5px solid #d97706;background:color-mix(in srgb,#d97706 5%,#fff)}
.iw-weak > * + *{margin-top:12px}
.iw-weak .iw-meta{font-size:.9375rem;font-weight:600;color:#b45309}
.iw-flag{display:inline-flex;align-items:center;justify-content:center;min-width:1.45em;height:1.45em;padding:0 .3em;margin:0 .15em;border-radius:999px;
  font-size:.8125rem;font-weight:700;line-height:1;color:#fff;background:#b45309;vertical-align:.12em}

/* course map numbers on the hub and the topic tables */
.iw-topic-type{white-space:nowrap}
@media (max-width:640px){
  .iw-task,.iw-answer,.iw-weak{padding:14px 15px}
  .iw-figure{padding:12px}
}
