/* Help center (tiptalk.pro/help, /pt/ajuda). Pages are generated by
   scripts/build-help.mjs; loaded after styles.css and pages.css. */

.help-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 8px;
}
.help-skip:focus {
  left: 12px;
}
.help-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.help-brand-sub {
  margin-left: 6px;
  font-weight: 500;
  opacity: 0.7;
}

/* ---------- Hero and search ---------- */

.help-hero {
  z-index: 2;
  /* Let the search results drop below the hero; the glow is clipped on its own layer. */
  overflow: visible;
  padding: 132px 0 64px;
}
.help-hero .sky {
  overflow: hidden;
}
.help-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}
.help-hero h1.help-article-title {
  font-size: clamp(30px, 4.2vw, 46px);
}
.help-search {
  position: relative;
  max-width: 640px;
  margin-top: 30px;
}
.help-search > svg {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.help-search input {
  width: 100%;
  padding: 17px 20px 17px 50px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.help-search input:focus {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: 2px;
}
.help-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 420px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 20, 36, 0.22);
}
.help-results a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.help-results a:hover,
.help-results a[aria-selected='true'] {
  background: var(--soft);
}
.help-results strong {
  display: block;
  font-size: 15px;
}
.help-results span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.help-results .help-empty {
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Collection cards ---------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.help-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.help-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 34px rgba(15, 20, 36, 0.08);
  transform: translateY(-2px);
}
.help-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}
.help-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.09);
  border-radius: 12px;
}
.help-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.help-card p {
  flex: 1;
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}
.help-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Collection page ---------- */

.help-collection-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.help-collection-head .help-card-icon {
  margin: 8px 0 0;
  color: #fcd34d;
  background: rgba(255, 255, 255, 0.1);
}
.help-collection-head .lead {
  margin-top: 10px;
}
.help-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.help-list li + li {
  border-top: 1px solid var(--line);
}
.help-list a {
  display: block;
  padding: 18px 22px;
  color: var(--ink);
  text-decoration: none;
}
.help-list a:hover {
  background: var(--soft);
}
.help-list strong {
  display: block;
  font-size: 16.5px;
}
.help-list span {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Article ---------- */

.help-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.help-article .prose h2 {
  margin-top: 36px;
  font-size: 23px;
}
.help-article kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 7px;
  font: inherit;
  font-size: 0.86em;
  text-align: center;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
}
.help-article code {
  padding: 1px 6px;
  font-size: 0.9em;
  background: var(--soft);
  border-radius: 5px;
}
.help-related {
  position: sticky;
  top: 100px;
}
.help-related h2 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.help-related .help-list a {
  padding: 13px 16px;
}
.help-related .help-list strong {
  font-size: 14.5px;
}
.help-related .help-list span {
  display: none;
}

.help-contact-band {
  padding-top: 0;
  padding-bottom: 64px;
}
.help-footer {
  padding: 24px 0;
}
.help-footer .footer-bottom {
  margin-top: 0;
}
.help-footer .copyright a {
  color: inherit;
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-article {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .help-related {
    position: static;
  }
}
@media (max-width: 600px) {
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-hero {
    padding: 112px 0 48px;
  }
  .help-brand-sub {
    display: none;
  }
}
