/* Help centre. Flat, grid-based and clinical: thin borders, no shadows,
   no decorative shapes. Builds on the tokens in /styles.css. */

.help-header { padding: 112px 0 56px; }
.help-header::before { display: none; }
.help-header-article { text-align: left; }
.help-header-article .breadcrumbs { justify-content: flex-start; flex-wrap: wrap; }
.help-header-article h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.help-header-article p { margin: 0; max-width: 720px; }
.help-header .container { max-width: 880px; }
.help-header-article .container { max-width: 820px; }

.help-search {
  position: relative;
  max-width: 560px;
  margin: 32px auto 0;
}
.help-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); pointer-events: none;
}
.help-search input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit; font-size: 1rem; color: var(--gray-900);
}
.help-search input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--primary); }
.help-search-count { min-height: 1.4em; margin-top: 12px !important; font-size: 0.95rem !important; }

.help-section { padding: 56px 0 80px; background: var(--white); }

.help-start, .help-role { margin-bottom: 56px; }
.help-role-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.help-role-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.help-role-head p { margin: 0; color: var(--gray-600); }
.help-role-icon {
  flex: 0 0 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--primary); background: var(--gray-50);
}

.help-path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.help-path-step a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px; border: 1px solid var(--gray-200); border-top: 3px solid var(--primary);
  border-radius: var(--radius-sm); background: var(--white); color: var(--gray-900); text-decoration: none;
}
.help-path-step a:hover, .help-path-step a:focus-visible { border-color: var(--primary); }
.help-path-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: var(--radius-sm); background: var(--primary); color: var(--white); font-weight: 700;
}
.help-path-title { font-weight: 700; line-height: 1.3; }
.help-path-sub { color: var(--gray-600); font-size: 0.92rem; line-height: 1.45; }

.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-card {
  display: flex; gap: 14px; padding: 18px; height: 100%;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-900); text-decoration: none;
}
.help-card:hover, .help-card:focus-visible { border-color: var(--primary); background: var(--gray-50); }
.help-card-icon {
  flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: rgba(22,50,61,0.07); color: var(--primary);
}
.help-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.help-card-title { font-weight: 700; line-height: 1.3; }
.help-card-summary { color: var(--gray-600); font-size: 0.93rem; line-height: 1.45; }
.help-card-meta { margin-top: auto; padding-top: 4px; }

.help-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6; white-space: nowrap;
  border: 1px solid transparent;
}
.help-badge-live { background: #e6f2ec; color: #1d5b3f; border-color: #bcdccb; }
.help-badge-rolling { background: #fdf1e1; color: #8a4f0d; border-color: #f1d3a6; }
.help-badge-soon { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-300); }

.help-legend { margin: 8px 0 48px; padding: 24px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-50); }
.help-legend h2 { font-size: 1.1rem; margin: 0 0 12px; }
.help-legend ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.help-legend li { display: flex; gap: 10px; align-items: baseline; }
.help-legend p { margin: 0; color: var(--gray-600); font-size: 0.95rem; }
.help-empty { padding: 24px; border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); text-align: center; }

/* Article */
.help-article { max-width: 820px; }
.help-article h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.help-article-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.help-role-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px;
  background: rgba(255,255,255,0.1); color: var(--white); font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
}
.help-status-note {
  display: flex; gap: 12px; align-items: baseline; margin: 0 0 8px; padding: 14px 16px;
  border: 1px solid var(--gray-200); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--gray-50);
  font-size: 0.95rem; color: var(--gray-700);
}
.help-status-live { border-left-color: #2f7d57; }
.help-status-rolling { border-left-color: #d08a2c; }
.help-status-soon { border-left-color: var(--gray-400); }
.help-before ul, .help-tips ul, .help-soon ul, .help-reading ul { margin: 0; padding-left: 20px; }
.help-before li, .help-tips li, .help-soon li, .help-reading li { margin-bottom: 8px; }
.help-before { margin-top: 24px; }
.help-before h2 { margin-top: 24px; }

.help-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; display: grid; gap: 0; }
.help-steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--gray-200);
}
.help-steps li:last-child { border-bottom: 1px solid var(--gray-200); }
.help-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: var(--primary); color: var(--white); font-weight: 700;
}
.help-steps h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.help-steps p { margin: 0; color: var(--gray-700); line-height: 1.6; }

.help-figure { margin: 32px 0 0; }
.help-figure img { width: 100%; height: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); display: block; }
.help-figure figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--gray-600); }
.help-placeholder {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); background: var(--gray-50);
  color: var(--gray-500); font-size: 0.95rem;
}
.help-soon { margin-top: 8px; }
.help-soon h2 { display: flex; gap: 10px; align-items: center; }

.help-feedback {
  margin-top: 48px; padding: 20px 24px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
}
.help-feedback h2 { margin: 0; font-size: 1.05rem; }
.help-feedback-buttons { display: flex; gap: 8px; }
.help-feedback-thanks { flex-basis: 100%; margin: 0; color: var(--gray-700); }

.help-related h2 { margin-top: 48px; }
.help-grid-related { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.help-stuck {
  margin-top: 48px; padding: 24px; display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-50);
}
.help-stuck h2 { margin: 0 0 4px; font-size: 1.2rem; }
.help-stuck p { margin: 0; color: var(--gray-700); }
.help-stuck-icon {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--primary); color: var(--white);
}
.help-stuck-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .help-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .help-header { padding: 96px 0 40px; }
  .help-path, .help-grid { grid-template-columns: 1fr; }
  .help-stuck { grid-template-columns: 1fr; }
}

/* Search hides cards and sections with [hidden]; flex and grid must not win. */
.help-page [hidden] { display: none !important; }

.help-article a:not(.btn):not(.help-card) { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.help-article a:not(.btn):not(.help-card):hover { color: var(--primary-light); }
.help-legend a, .help-empty a { color: var(--primary); text-decoration: underline; }
.help-article .help-stuck { grid-template-columns: 56px 1fr; }
.help-article .help-stuck-actions { grid-column: 2; }
@media (max-width: 640px) {
  .help-article .help-stuck { grid-template-columns: 1fr; }
  .help-article .help-stuck-actions { grid-column: auto; }
}
