/* Shared utility and help styles, independent of the previous studio layout. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-tools {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.site-tools > a,
.site-tools > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  cursor: pointer;
}
.site-tools .icon {
  width: 20px;
  height: 20px;
}
.site-tools .tool-top {
  padding-inline: 12px;
  background: var(--surface);
  color: var(--text);
}
.site-tools .tool-whatsapp {
  background: #11684b;
  border-color: #11684b;
  color: #fff;
}
.tool-label {
  font-size: .75rem;
  font-weight: 650;
}
.site-tools > a:hover,
.site-tools > button:hover {
  border-color: var(--brand);
}
.site-tools .tool-whatsapp:hover {
  background: #0c563d;
  border-color: #0c563d;
}
.cookie-notice-open .site-tools {
  visibility: hidden;
  pointer-events: none;
}

body.help-open {
  overflow: hidden;
}
.help-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 32px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.help-dialog::backdrop {
  background: rgba(8, 14, 25, .65);
}
.help-dialog:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.help-header .eyebrow {
  margin-bottom: 12px;
  font-size: .75rem;
  color: var(--brand);
}
.help-header h2 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.help-header .icon-button {
  flex-shrink: 0;
}
.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-search > div {
  position: relative;
  flex: 1;
  min-width: 0;
}
.help-search > div > .icon {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.help-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 12px 12px 12px 42px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.help-search > .button {
  min-height: 48px;
  padding-inline: 20px;
}
.help-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.7;
}
.help-results {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.help-results:empty {
  margin-top: 0;
}
.help-result {
  position: relative;
  display: block;
  min-width: 0;
  padding: 16px 40px 16px 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.help-result:hover {
  border-color: var(--brand);
}
.help-result-type {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
}
.help-result strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.help-result p {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.75;
}
.help-result-arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--brand);
}
.help-shortcuts {
  margin-top: 28px;
}
.help-shortcuts > .eyebrow {
  margin-bottom: 16px;
  font-size: .75rem;
}
.help-shortcuts > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.help-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: .8125rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.help-shortcuts a:hover {
  background: var(--surface-alt);
}
.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.help-contact strong {
  font-size: .9375rem;
}
.help-contact p {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.7;
}
.help-contact .button {
  flex-shrink: 0;
  font-size: .8125rem;
}

@media (max-width: 767px) {
  .site-tools {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .site-tools > a,
  .site-tools > button {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
  .site-tools .tool-label {
    display: none;
  }
  .askya-agency .site-footer {
    padding-bottom: 88px;
  }
  .help-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px;
  }
  .help-header {
    gap: 16px;
  }
  .help-header h2 {
    font-size: 1.7rem;
  }
  .help-search {
    display: block;
  }
  .help-search > .button {
    width: 100%;
    margin-top: 12px;
  }
  .help-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .help-dialog {
    padding: 20px;
  }
  .help-shortcuts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-tools *,
  .help-dialog * {
    animation: none;
    transition: none;
  }
}
