/* Joblancer Help Center: search, topic cards and questions */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.crumbs { font-size: 0.9rem; color: #666; margin: 2.5rem 0 1rem; }
.crumbs a { color: #1d4ed8; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.help { padding-top: 0.5rem; padding-bottom: 3.5rem; }
.help h1 { font-size: 2.4rem; line-height: 1.2; color: #1a1a1a; margin-bottom: 0.75rem; }
.help .intro { font-size: 1.1rem; line-height: 1.5; color: #444; max-width: 760px; margin-bottom: 2rem; }
.help a { color: #1d4ed8; }

/* Search */
.help-search { max-width: 640px; margin-bottom: 2.25rem; }
.help-search label { display: block; font-size: 0.95rem; font-weight: 600; color: #222; margin-bottom: 0.5rem; }
.help-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #c9d3dc;
  border-radius: 10px;
  background: #fff;
  color: #222;
}
.help-search input:focus { outline: 2px solid #1d4ed8; outline-offset: 1px; border-color: #1d4ed8; }
.help-empty { margin-top: 0.75rem; color: #555; font-size: 0.95rem; }

/* Topic cards: four topics in a 2 x 2 grid on desktop, one column on phones */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.help-card {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.help-card:hover, .help-card:focus-within {
  border-color: #1d4ed8;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.14);
}
.help-card h2 { font-size: 1.25rem; line-height: 1.3; color: #1a1a1a; margin-bottom: 0.5rem; }

.help-card details { border-top: 1px solid #e1e8ed; }
.help-card details:last-child { border-bottom: none; }
.help-card summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2rem 0.85rem 0;
  position: relative;
  font-weight: 600;
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
}
.help-card summary::-webkit-details-marker { display: none; }
.help-card summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.7rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: #1d4ed8;
}
.help-card details[open] summary::after { content: '\2212'; }
.help-card summary:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; border-radius: 4px; }
.help-card details p {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.55;
  padding: 0 0 1rem;
}

/* Still need help */
.help-next {
  margin-top: 2.5rem;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-left: 3px solid #1d4ed8;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.help-next h2 { font-size: 1.25rem; color: #1a1a1a; margin-bottom: 0.25rem; }
.help-next p { color: #444; font-size: 0.98rem; }
.help-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.help .help-btn { color: #fff; }
.help-btn:hover { background: #1e40af; }

/* Footer matches the rest of the site */
footer { background: #fff; border-top: 1px solid #e1e8ed; padding: 2.5rem 0 1.5rem; font-size: 0.95rem; color: #666; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr !important; gap: 2rem; margin-bottom: 2rem; }
.footer-brand img { width: 12rem; height: auto; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer-grid h4 { font-size: 0.95rem; color: #222; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #555; text-decoration: none; }
.footer-grid a:hover { color: #1d4ed8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid #e1e8ed; padding-top: 1.25rem; font-size: 0.85rem; color: #888; }

/* Tablets and up: 2 x 2 topic grid */
@media (min-width: 760px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones: 16px gutter, no horizontal scroll */
@media (max-width: 760px) {
  .container { padding: 0 1rem; }
  .help h1 { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.75rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
}
