/* Worker Rights Workshop — Resources Page (standalone, light, printable).
   Self-contained ON PURPOSE: the deck's styles.css is a DARK projection theme
   with html,body{overflow:hidden}, a landscape @page, and dark→light print
   inversion — all of which would break a scrolling, printable handout. So this
   page does NOT load styles.css; everything it needs is here. Uses the deck's
   blue accent so it stays on-brand. Bilingual is shown SIMULTANEOUSLY (zh + en),
   matching the deck (which has no language toggle). */

:root {
  --primary:       #1e3a5f;   /* deck header/card navy-blue */
  --primary-dark:  #14213d;
  --accent:        #2563eb;
  --accent-light:  #eaf1fd;
  --bg:            #f5f7fb;
  --surface:       #ffffff;
  --border:        #d8e0ec;
  --text:          #14213d;
  --text-sub:      #5b6b82;
  --green:         #15803d;
  --green-light:   #e9f6ec;
  --red:           #dc2626;
  --red-light:     #fdecec;
  --r-md:          10px;
  --r-pill:        999px;
  --shadow:        0 1px 3px rgba(20,33,61,0.08);
  --font:          system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* ── Header ─────────────────────────────────────────────── */
.wr-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.wr-title-zh { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.wr-title-en { font-size: 0.95rem; opacity: 0.85; margin-top: 3px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.res-action {
  border-radius: var(--r-md);
  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;
  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: #1d4ed8; }
.res-action:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

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

/* ── QR top (revisit the slides) ────────────────────────── */
.qr-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
#qr-top { flex-shrink: 0; }
#qr-top canvas, #qr-top img { border-radius: 6px; border: 2px solid var(--primary); display: block; }
.qr-top-zh { 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; }

/* ── Big phone callout ──────────────────────────────────── */
.phone-banner {
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: center;
}
.phone-banner .pb-label-zh { font-size: 1rem; font-weight: 700; color: var(--primary-dark); }
.phone-banner .pb-label-en { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 4px; }
.phone-banner .pb-num { font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.phone-banner .pb-num a { color: inherit; text-decoration: none; }
.phone-banner .pb-sub { font-size: 0.82rem; color: var(--text-sub); margin-top: 2px; }

/* ── Section ────────────────────────────────────────────── */
.resource-section { margin-bottom: 34px; }
.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-size: 1.375rem; font-weight: 800; color: var(--primary-dark); }
.section-title-en { font-size: 0.875rem; color: var(--text-sub); }

/* ── Tables (bilingual: zh primary line + en sub line per cell) ── */
.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.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); }
.cell-zh { font-weight: 600; color: var(--text); }
.cell-en { font-size: 0.85rem; color: var(--text-sub); display: block; margin-top: 1px; }
.cell-num { font-size: 1.15rem; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ── Rights list (status protections etc.) ──────────────── */
.rights-list { list-style: none; padding: 0; }
.rights-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
}
.rights-list li:last-child { border-bottom: none; }
.rights-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--green);
  font-weight: 800;
}
.rl-zh { font-weight: 600; color: var(--text); }
.rl-en { font-size: 0.85rem; color: var(--text-sub); display: block; margin-top: 1px; }
.rl-cite { font-size: 0.78rem; color: var(--accent); font-weight: 700; }

/* ── Callout ────────────────────────────────────────────── */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 12px 16px;
  margin-top: 12px;
}
.callout .co-zh { font-weight: 600; color: var(--primary-dark); }
.callout .co-en { font-size: 0.85rem; color: var(--text-sub); display: block; margin-top: 2px; }

/* ── Org 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(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.org-name-zh { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.org-name-en { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 8px; }
.org-phone { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.org-phone a { color: inherit; text-decoration: none; }
.org-detail { font-size: 0.85rem; color: var(--text-sub); line-height: 1.55; }
.org-detail a { color: var(--accent); }
.org-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ── Footer ─────────────────────────────────────────────── */
.res-footer {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

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