/* ============================================================
   Industry / document-type pages
   ============================================================ */

.industry-page .industry-intro,
.industries-hub .industry-intro {
  font-size: 1.05rem;
  color: #444;
  max-width: 760px;
  margin: 0 0 1.5em;
}

/* Document-type list -> responsive multi-column grid */
.doc-type-grid {
  list-style: none;
  margin: 1em 0 2em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 24px;
}
.doc-type-grid li {
  position: relative;
  padding: 8px 8px 8px 26px;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}
.doc-type-grid li::before {
  content: "\2713";               /* check mark */
  position: absolute;
  left: 4px;
  top: 8px;
  color: #ff6600;
  font-weight: bold;
}

/* Cross-link between the document-types pages and the service hubs */
.industry-crosslink {
  margin: 2em 0 .5em;
  padding: 12px 16px;
  background: #fff7f0;
  border-left: 4px solid #ff6600;
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}
.industry-crosslink a { color: #ff6600; font-weight: 600; text-decoration: none; }
.industry-crosslink a:hover { text-decoration: underline; }

.industry-back {
  margin-top: 1.5em;
}
.industry-back a {
  color: #ff6600;
  text-decoration: none;
}
.industry-back a:hover { text-decoration: underline; }

/* ---------- Hub: industry cards ---------- */
.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 1.5em 0;
}
.industry-card {
  display: block;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: #222;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.industry-card:hover {
  border-color: #ff6600;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.industry-card h2 {
  margin: 0 0 .4em;
  font-size: 1.2rem;
  color: #111;
}
.industry-card p {
  margin: 0 0 .8em;
  font-size: .92rem;
  color: #555;
  line-height: 1.45;
}
.industry-card-link {
  font-weight: 600;
  color: #ff6600;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .doc-type-grid { grid-template-columns: 1fr; }
}

/* ---------- Industry hero image + prose body ---------- */
.industry-hero {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 8px;
  margin: 0 0 1.5em;
}
.industry-body {
  max-width: 760px;
  margin: 0 0 1.5em;
}
.industry-body p { margin: 0 0 1em; }

/* ---------- Vocabulary word list ---------- */
.vocab-section { margin: 2em 0; }
.vocab-section h2 { margin-bottom: .4em; }
.vocab-list {
  list-style: none;
  padding: 0;
  margin: .5em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vocab-list li {
  background: #fff3e9;
  border: 1px solid #ffcfa8;
  color: #8a4b1e;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.2;
}

/* ---------- Word-challenge widget ---------- */
.word-challenge {
  max-width: 620px;
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #ff6600;
  border-radius: 8px;
  background: #fafafa;
}
.word-challenge .wc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.word-challenge .wc-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: #ff6600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.word-challenge .wc-title { margin: 0; font-size: 1.15rem; color: #111; }
.word-challenge .wc-sub { margin: .2em 0 1em; color: #666; font-size: .9rem; }
.word-challenge .wc-question { font-weight: 600; font-size: 1.05rem; margin: .5em 0 1em; color: #222; }
.word-challenge .wc-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.word-challenge .wc-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  /* must set colour and weight explicitly: the global `button` rule in
     styles.css paints all buttons white-on-orange, which makes an unanswered
     option invisible on the white pill. */
  color: #222;
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.word-challenge .wc-opt:hover:not(:disabled) { border-color: #ff6600; background: #fff7f0; }
.word-challenge .wc-opt:disabled { cursor: default; }
.word-challenge .wc-opt.correct { border-color: #1e7d2e; background: #e9f8ec; color: #14601f; font-weight: 600; }
.word-challenge .wc-opt.wrong   { border-color: #c0392b; background: #fdecea; color: #a12a1e; }
.word-challenge .wc-note {
  display: none;
  margin: 1em 0 0;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  font-style: italic;
  color: #444;
  border: 1px dashed #ffb27a;
}
.word-challenge .wc-note.show { display: block; }
.word-challenge .wc-next {
  margin-top: 1em;
  background: none;
  border: none;
  color: #ff6600;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  padding: 4px 0;
}
.word-challenge .wc-next:hover { text-decoration: underline; }
