/* Resume Workshop — Resources Page components
   Loaded ONLY by resources.html (after styles.css). Additive: defines new
   component classes; does not modify any rule used by the deck/builder/worksheet.
   Ported from interview-skills-workshop pattern, remapped to resume-workshop tokens. */

/* Fill the token gaps the ported rules expect, scoped to this page. */
.resources-body {
  --accent:        var(--secondary);   /* teal-green emphasis (phones, tips) */
  --accent-dark:   #0f6347;
  --accent-light:  #e7f5ef;
  --surface:       #ffffff;
  --text-sub:      var(--text-muted);
  --radius-card:   var(--r-md);
  --radius-btn:    var(--r-sm);
  min-height: 100vh;
  background: var(--bg-alt);
}

/* ─── Header ─────────────────────────────────────────────── */
.resources-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.resources-title-zh {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.resources-title-en { font-size: 0.95rem; opacity: 0.85; margin-top: 3px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Header action links/buttons (white-on-primary). Scoped so it never touches
   the deck's .btn-* classes. */
.res-action {
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.res-action:hover { background: rgba(255, 255, 255, 0.16); }
.res-action--primary { background: var(--accent); border-color: var(--accent); }
.res-action--primary:hover { background: var(--accent-dark); }
.res-action:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Reuse the deck's lang-pill (already styled for a --primary bar) inside the header. */

/* ─── Page body ──────────────────────────────────────────── */
.resources-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ─── QR top row (points at the Builder) ─────────────────── */
.qr-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
#qr-top img {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  border: 2px solid var(--primary);
}
.qr-top-zh {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.qr-top-en { font-size: 0.875rem; color: var(--text-sub); margin-bottom: 6px; }
.qr-top-url { font-size: 0.85rem; color: var(--accent); font-weight: 700; word-break: break-all; }

/* ─── Section ────────────────────────────────────────────── */
.resource-section { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.section-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title-zh {
  font-family: var(--font);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.section-title-en { font-size: 0.875rem; color: var(--text-sub); }

/* ─── Tables ─────────────────────────────────────────────── */
.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.res-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
}
.res-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.res-table tr:last-child td { border-bottom: none; }
.res-table tr:nth-child(even) td { background: var(--bg-alt); }
.zh-cell {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.en-cell { font-size: 0.95rem; color: var(--text-sub); }
.tip-cell { font-size: 0.9rem; color: var(--accent); font-weight: 600; }

/* ─── Two-column include / leave-out lists ───────────────── */
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.col-card.is-good { border-left: 5px solid var(--green); }
.col-card.is-bad  { border-left: 5px solid var(--red); }
.col-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.col-card.is-good .col-title { color: var(--green); }
.col-card.is-bad  .col-title { color: var(--red); }
.col-list { list-style: none; padding: 0; }
.col-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}
.col-card.is-good .col-list li::before { content: "✓"; color: var(--green); }
.col-card.is-bad  .col-list li::before { content: "✗"; color: var(--red); }
.col-list li::before { position: absolute; left: 0; font-weight: 800; }

/* ─── Verb bank chips ────────────────────────────────────── */
.verb-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.verb-chip {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ─── Callouts & checklist ───────────────────────────────── */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  margin-top: 12px;
}
.callout strong { color: var(--accent-dark); }
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ─── Organisation cards ─────────────────────────────────── */
.org-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.org-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.org-name-zh {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.org-name-en { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 8px; }
.org-phone { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.org-phone a { color: inherit; text-decoration: none; }
.org-detail { font-size: 0.875rem; color: var(--text-sub); line-height: 1.55; }
.org-detail a { color: var(--primary); }
.org-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ─── Link list (templates / sites) ──────────────────────── */
.link-list { list-style: none; padding: 0; }
.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.link-list li:last-child { border-bottom: none; }
.link-list .res-url {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
  margin-top: 2px;
}

/* ─── Mobile (≤768px) ────────────────────────────────────── */
@media (max-width: 768px) {
  .resources-header { padding: 14px 16px; }
  .resources-title-zh { font-size: 1.25rem; }
  .resources-page { padding: 24px 16px 48px; }
  .col-grid { grid-template-columns: 1fr; }
  .org-cards { grid-template-columns: 1fr; }
  .res-table { font-size: 0.9rem; }
  .zh-cell { font-size: 0.95rem; }
  .qr-top-row { flex-direction: column; text-align: center; }
}
