/* Website help — kept separate to preserve the existing site styles. */
.site-header {
  gap: 24px;
}
.security-help-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.security-help-link strong {
  display: block;
  font-weight: 600;
}
.security-help-link small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.security-help-link > span:last-child {
  color: #a83d13;
  font-size: 22px;
}
.security-help-link:hover {
  border-color: var(--orange);
  background: #fff1e8;
}
.security-help-link:focus-visible, .website-help :focus-visible {
  outline: 3px solid #b34416;
  outline-offset: 4px;
}
.website-help {
  box-sizing: border-box;
  width: min(800px, calc(100% - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 90px #17171733;
  overflow: hidden;
  outline: none;
}
/* Keep the native scrollbar inside a clipped, rounded outer frame. */
.help-scroll {
  margin: 12px 0;
  max-height: calc(90vh - 26px);
  max-height: calc(90dvh - 26px);
  overflow: auto;
  overscroll-behavior: contain;
}
.website-help::backdrop {
  background: #17171799;
}
body.website-help-open {
  overflow: hidden;
}
.help-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.help-top img {
  width: 42px;
  height: 44px;
  object-fit: contain;
}
.help-close {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.help-content {
  padding: 30px 36px 36px;
}
.help-content h2 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin: 12px 0 20px;
}
.help-content h3 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
  margin: 30px 0 12px;
}
.help-content p, .help-content li, .help-content dd {
  font-size: 16px;
  line-height: 1.65;
}
.help-content p {
  margin: 0 0 16px;
}
.help-content .help-lead {
  font-size: 19px;
}
.help-date {
  color: var(--muted);
  font-size: 13px !important;
}
.help-reassurance {
  padding: 20px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}
.help-glossary {
  margin: 0;
}
.help-glossary dt {
  font-weight: 600;
  margin-top: 16px;
}
.help-glossary dd {
  margin: 4px 0 0;
}
.help-message {
  margin-top: 18px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.help-message h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.help-message label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.help-message textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aaa49a;
  border-radius: 8px;
  font: inherit;
  line-height: 1.55;
}
.help-message button, .help-contact {
  display: inline-block;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.help-message button:hover, .help-contact:hover {
  background: #4b3a30;
}
.help-copy-status {
  margin: 12px 0 0 !important;
  min-height: 26px;
  font-size: 14px !important;
}
.help-sources {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 4px;
}
.help-sources a {
  color: #9d3a13;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-sources ul {
  padding-left: 20px;
}
@media (max-width: 1700px) and (min-width: 761px) {
  .site-header {
  height: auto;
  min-height: 142px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
  .site-header nav {
  flex: 1 0 100%;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px 30px;
}
}
@media (max-width: 760px) {
  .site-header {
  height: auto;
  min-height: 108px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
  .security-help-link {
  order: 3;
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}
  .site-header nav {
  margin-left: auto;
}
  .help-content {
  padding: 24px 20px;
}
  .help-top {
  padding: 12px 20px;
}
  .website-help {
  width: calc(100% - 20px);
  max-height: calc(100dvh - 20px);
  border-radius: 14px;
}
  .help-message {
  padding: 16px;
}
  .help-message textarea {
  min-height: 210px;
}
}

@media (max-width: 760px) {
  .help-scroll {
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
  }
}
