/* Goldstraw Help (help-v2.js): goldstraw.app/help, /tell-us, app.goldstraw.app/support,
   the web app's Help tab and Android 1.0.9. Mobile first, Brand Book v2 palette only,
   sentence case, the Brand Book's type sizes (40, 28, 22, 17 and 15px), no text under
   15px, every target at least 44px, and every edge that shows where to type at 3:1 or more. */
.gs-help {
  --gs-green: var(--customer-green, #155b3d);
  --gs-green-deep: var(--customer-green-deep, #123f2c);
  --gs-gold: var(--customer-gold, #e4b83f);
  --gs-ink: var(--customer-ink, #23392d);
  --gs-muted: var(--customer-muted, #596a5f);
  --gs-paper: var(--customer-paper, #f8f5ee);
  --gs-soft: var(--customer-soft-green, #eaf0e4);
  --gs-sky: #3f7899;
  --gs-line: #23392d26;
  /* Muted, lightened: 3.6:1 on white, for the edges of boxes and choices. */
  --gs-edge: #7b8a81;
  --gs-card: #ffffff;
  display: grid;
  gap: 20px;
  max-width: 40rem;
  color: var(--gs-ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.gs-help *, .gs-help *::before, .gs-help *::after { box-sizing: border-box; }
.gs-help h1, .gs-help h2, .gs-help p, .gs-help ul, .gs-help ol { margin: 0; }
.gs-help h1, .gs-help h2 { color: var(--gs-green-deep); letter-spacing: -.015em; line-height: 1.15; }
.gs-help h1 { font-size: 1.75rem; font-weight: 700; }
.gs-help h2 { font-size: 1.375rem; font-weight: 700; }
.gs-help ul, .gs-help ol { padding: 0; list-style: none; }
.gs-help a { color: var(--gs-green); font-weight: 600; text-underline-offset: .2em; }
/* A link on its own line is a tap target: 44px tall, like every button. */
.gs-help .gs-help-link-line > a { display: inline-flex; align-items: center; min-height: 44px; }
.gs-help :focus-visible { outline: 3px solid var(--gs-green); outline-offset: 2px; border-radius: 6px; }
/* A heading Help moved focus to (help-v2.js) shows no ring unless the person is using the keyboard. */
.gs-help .gs-help-quiet-focus:focus { outline: none; }
.gs-help [hidden] { display: none !important; }

.gs-help-header { display: flex; align-items: center; gap: 14px; }
.gs-help-header > div { min-width: 0; }
/* Drawn Goldie behind his counter (6:5, unclipped; Ruling D5). */
.gs-help-goldie { flex: none; display: block; width: 112px; height: auto; }
.gs-help-goldie img { display: block; width: 100%; height: auto; }
.gs-help-lead { margin-top: 4px; color: var(--gs-muted); font-size: 1.0625rem; }

.gs-help-card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--gs-line); border-radius: 20px; background: var(--gs-card); }
.gs-help-form { display: grid; gap: 14px; }
.gs-help-label { color: var(--gs-green-deep); font-size: 1.0625rem; font-weight: 700; }
.gs-help-field { display: grid; gap: 6px; }
.gs-help-field label { font-weight: 600; }
.gs-help-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--gs-edge); border-radius: 14px; background: #ffffff; color: var(--gs-ink); font: inherit; font-size: 1.0625rem; }
.gs-help-input::placeholder { color: var(--gs-muted); opacity: 1; }
.gs-help-input:focus { border-color: var(--gs-green); outline: 3px solid #155b3d33; outline-offset: 0; }
.gs-help-textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.gs-help-hint { color: var(--gs-muted); font-size: .9375rem; }

.gs-help-suggestions { display: grid; gap: 6px; }
.gs-help-suggestions-title, .gs-help-wait { color: var(--gs-muted); font-size: .9375rem; font-weight: 600; }
.gs-help-suggestion-list { display: grid; gap: 6px; }
.gs-help-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #155b3d40; border-radius: 12px; background: var(--gs-soft); color: var(--gs-green-deep); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.gs-help-suggestion::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--gs-green); border-bottom: 2px solid var(--gs-green); transform: rotate(45deg) translateY(-2px); }
.gs-help-suggestion[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.gs-help-answer-body { display: grid; gap: 8px; padding: 10px 14px 4px; }

.gs-help-topics { display: grid; gap: 8px; }
.gs-help-topics-label { color: var(--gs-muted); font-size: .9375rem; font-weight: 600; }
.gs-help-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-help-chip { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--gs-edge); border-radius: 999px; background: #ffffff; color: var(--gs-ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.gs-help-chip[aria-pressed="true"] { border-color: var(--gs-green); background: var(--gs-soft); color: var(--gs-green-deep); }
.gs-help-chip[aria-pressed="true"]::before { content: "\2713"; content: "\2713" / ""; margin-right: 6px; color: var(--gs-green); }
.gs-help-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.gs-help-check input { width: 22px; height: 22px; accent-color: var(--gs-green); }

.gs-help-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 14px; background: var(--gs-green); color: #ffffff; font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
.gs-help-primary:hover:not(:disabled) { background: var(--gs-green-deep); }
.gs-help-primary:disabled { cursor: not-allowed; opacity: .45; }
.gs-help-primary.is-busy { opacity: .8; }
.gs-help-primary.is-busy::before { content: ""; width: 18px; height: 18px; border: 2.5px solid #ffffff66; border-top-color: #ffffff; border-radius: 50%; animation: gs-help-spin .8s linear infinite; }
@keyframes gs-help-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gs-help-primary.is-busy::before { animation: none; } }
.gs-help-secondary { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--gs-green); border-radius: 12px; background: #ffffff; color: var(--gs-green-deep); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.gs-help-link-button { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gs-green); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.gs-help-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gs-help-inline .gs-help-input { flex: 1 1 14rem; }

.gs-help-small-print { display: grid; gap: 6px; color: var(--gs-muted); font-size: .9375rem; }
.gs-help-note { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: 14px; font-size: .9375rem; }
.gs-help-note-sky { border-left: 4px solid var(--gs-sky); background: #3f78991a; color: var(--gs-ink); }
/* A data request's copy: three full-width buttons, each with a short line under it. */
.gs-help-copy { margin: 4px 0 12px; border-left: 4px solid var(--gs-sky); background: #3f78991a; color: var(--gs-ink); justify-items: stretch; }
.gs-help-copy > p { margin: 0; }
.gs-help-copy-title { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.gs-help-copy-buttons { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gs-help-copy-buttons li { display: grid; gap: 4px; }
.gs-help-copy-button { width: 100%; }
.gs-help-copy-button:disabled { cursor: wait; opacity: .7; }
.gs-help-copy-hint { margin: 0; color: var(--gs-muted); font-size: .875rem; }
.gs-help-copy-status:empty { display: none; }
.gs-help-note-green { border-left: 4px solid var(--gs-green); background: var(--gs-soft); color: var(--gs-ink); }
.gs-help-confirm { border-left: 4px solid var(--gs-sky); background: #ffffff; color: var(--gs-ink); width: 100%; }
.gs-help-confirm .gs-help-inline .gs-help-primary { width: auto; }
.gs-help-status:empty { display: none; }

.gs-help-sent { gap: 12px; }
.gs-help-sent-title { display: flex; align-items: center; gap: 12px; }
.gs-help-tick { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gs-gold); }
.gs-help-tick::after { content: ""; position: absolute; left: 12px; top: 7px; width: 9px; height: 16px; border-right: 3px solid var(--gs-green-deep); border-bottom: 3px solid var(--gs-green-deep); transform: rotate(45deg); }
.gs-help-sent-later { color: var(--gs-green-deep); font-weight: 600; }
.gs-help-add-email { display: grid; gap: 8px; }
.gs-help-add-email label { font-weight: 600; }

.gs-help-messages { display: grid; gap: 10px; }
.gs-help-rows { display: grid; gap: 8px; }
.gs-help-row { display: grid; gap: 4px; width: 100%; min-height: 64px; padding: 12px 16px; border: 1px solid var(--gs-line); border-radius: 16px; background: var(--gs-card); color: var(--gs-ink); font: inherit; text-align: left; cursor: pointer; }
.gs-help-row:hover { border-color: #155b3d66; }
/* Two lines before a subject is cut, so similar messages can still be told apart at 360px. */
.gs-help-row-subject { display: -webkit-box; overflow: hidden; font-weight: 700; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gs-help-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--gs-muted); font-size: .9375rem; }
.gs-help-row.is-unread .gs-help-row-status { color: var(--gs-green-deep); font-weight: 700; }
.gs-help-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gs-green); }
/* "Goldie has replied" at the top of Help. */
.gs-help-replied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border: 1px solid #155b3d40; border-radius: 16px; background: var(--gs-soft); color: var(--gs-ink); }
.gs-help-replied p { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.gs-help-replied strong { color: var(--gs-green-deep); }

.gs-help-answers { display: grid; gap: 0; border-bottom: 1px solid var(--gs-line); }
.gs-help-answers h2 { padding-bottom: 8px; }
.gs-help-answers details { border-top: 1px solid var(--gs-line); }
.gs-help-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; color: var(--gs-green-deep); font-weight: 700; cursor: pointer; list-style: none; }
.gs-help-answers summary::-webkit-details-marker { display: none; }
.gs-help-answers summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--gs-green); border-bottom: 2px solid var(--gs-green); transform: translateY(-3px) rotate(45deg); }
.gs-help-answers details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.gs-help-answers details > p { padding-bottom: 14px; }
.gs-help-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.gs-help-links a, .gs-help-links .gs-help-link-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: .9375rem; }

.gs-help-conversation { display: grid; gap: 16px; }
.gs-help-conversation-top { display: grid; gap: 4px; }
.gs-help-back { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gs-green); font: inherit; font-weight: 700; cursor: pointer; }
/* The person's own words as the title: 22px, never a shouting headline (it also wins over the app's page h1). */
.gs-help .gs-help-conversation-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.gs-help-ai { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--gs-soft); color: var(--gs-ink); font-size: .9375rem; }
.gs-help-ai .gs-help-goldie { display: grid; place-items: center; width: 40px; height: 40px; }
.gs-help-ai .gs-help-goldie svg { display: block; width: 40px; height: 40px; }
.gs-help-keep { width: 100%; }
.gs-help-write-new { justify-self: start; width: auto; min-width: 14rem; }
.gs-help-thread { display: grid; gap: 12px; }
.gs-help-bubble { display: grid; gap: 4px; max-width: 88%; padding: 12px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.gs-help-bubble-label { color: var(--gs-muted); font-size: .9375rem; font-weight: 600; }
.gs-help-bubble-text { white-space: pre-wrap; }
.gs-help-mine { justify-self: end; border-bottom-right-radius: 6px; background: var(--gs-soft); }
.gs-help-mine .gs-help-bubble-label { text-align: right; }
.gs-help-goldie-reply { justify-self: start; border: 1px solid var(--gs-line); border-bottom-left-radius: 6px; background: var(--gs-card); }
.gs-help-receipt { justify-self: center; max-width: 34rem; padding: 4px 8px; color: var(--gs-muted); font-size: .9375rem; text-align: center; }
.gs-help-sorted { display: grid; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--gs-line); }
.gs-help-sorted p { font-weight: 700; }
.gs-help-reply-form { display: grid; gap: 10px; }
.gs-help-ref { color: var(--gs-muted); font-size: .9375rem; }

/* goldstraw.app/help: the page supplies the heading, Goldie and the quick answers.
   Goldie (goldie-web-v1.css) reaches 28px below the line under the title, so he
   stands on whatever comes first: the form's top edge here, or the line that
   opens the quick answers (also 28px down) when the form isn't shown. An open
   conversation gets the same straight edge, so he never stands in mid-air. */
.help .gs-help { margin-top: 28px; }
.help > .gs-help-mount > .gs-help-conversation { padding-top: 12px; border-top: 1px solid var(--site-line, #e3e8e1); }
.help-in-app { margin-top: 32px; }
.help-in-app p + p { margin-top: 4px; }

@media (min-width: 640px) {
  .gs-help-card { padding: 24px; }
  .gs-help-primary { width: auto; justify-self: start; min-width: 14rem; }
  .gs-help h1 { font-size: 2.5rem; }
}

/* goldstraw.app/whats-new */
.whats-new-list { display: grid; gap: 0; margin-top: 28px; border-bottom: 1px solid var(--site-line, #e3e8e1); }
.whats-new-entry { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--site-line, #e3e8e1); }
.whats-new-entry h2 { font-size: 1.375rem; }
.whats-new-date { color: var(--customer-muted, #596a5f); font-size: .9375rem; font-weight: 600; }
.whats-new-thanks { color: var(--customer-green-deep, #123f2c); font-size: .9375rem; }
.whats-new-more { margin-top: 28px; }
.whats-new-more a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* The Help pages footer links are 44px targets in both directions (welcome-v2.css gives them 48px of height). */
body[data-help-page] .site-footer nav a { min-width: 44px; justify-content: center; }

/* goldstraw.app/help: other ways to get help, under the quick answers. */
.help-more { display: grid; gap: 8px; }
.help-more p { margin: 0; }
.help-more a { font-weight: 600; }
.tell-us .gs-help { margin-top: 0; }
.gs-help-ratings .gs-help-rating { min-width: 7.5rem; justify-content: center; }

/* Wave 27: Brand v3 visual alignment for /help (public/help.html remains locked). */
body.help-v3 {
  --v3-green: #123f2c;
  --v3-green-deep: #0e3223;
  --v3-cream: #f6efe2;
  --v3-paper: #fffdf8;
  --v3-gold: #f2b632;
  --v3-ink: #23392d;
  --v3-muted: #4b5e54;
  --v3-line: #d9d1c2;
  background: var(--v3-cream);
  color: var(--v3-ink);
}
body.help-v3 .skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--v3-gold);
  color: var(--v3-green);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-300%);
}
body.help-v3 .skip-link:focus,
body.help-v3 .skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  outline: 3px solid var(--v3-green);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--v3-gold), 0 6px 18px rgb(0 0 0 / 0.24);
}
body.help-v3 .site-header {
  background: var(--v3-green);
  border-bottom: 1px solid rgb(248 245 238 / 0.14);
  padding-block: 14px;
  gap: 8px 16px;
}
body.help-v3 .site-header .brand {
  color: #f8f5ee;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
body.help-v3 .site-header .brand:hover { color: #ffffff; }
body.help-v3 .site-header .site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  max-width: 100%;
}
body.help-v3 .site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: rgb(248 245 238 / 0.92);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
body.help-v3 .site-header .site-nav a:hover {
  background: rgb(248 245 238 / 0.12);
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.help-v3 .site-header .site-nav a.help-header-signin {
  border: 1px solid rgb(248 245 238 / 0.42);
  padding-inline: 14px;
  color: #f8f5ee;
}
body.help-v3 .site-header .site-nav a.help-header-signin:hover {
  border-color: #f8f5ee;
  background: rgb(248 245 238 / 0.14);
}
body.help-v3 .site-header a:focus-visible {
  outline: 3px solid var(--v3-gold);
  outline-offset: 2px;
}
body.help-v3 .help h1 {
  color: var(--v3-green);
}
body.help-v3 .help-lead {
  color: var(--v3-muted);
}
body.help-v3 .help,
.help.has-counter-v6 {
  grid-template-columns: minmax(0, calc(40rem - 124px)) 116px;
  column-gap: 8px;
}
.help > .goldie-help.is-counter-v6 {
  width: 112px;
  margin: 0 0 -28px auto;
}
.help > .goldie-help.is-counter-v6 img {
  width: 112px;
  height: auto;
}
@media (min-width: 640px) {
  body.help-v3 .help,
  .help.has-counter-v6 {
    grid-template-columns: minmax(0, calc(40rem - 140px)) 132px;
    column-gap: 12px;
  }
  .help > .goldie-help.is-counter-v6 {
    width: 128px;
  }
  .help > .goldie-help.is-counter-v6 img {
    width: 128px;
  }
}
body.help-v3 .gs-help-card {
  background: var(--v3-paper);
  border-color: var(--v3-line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgb(18 63 44 / 0.08);
}
body.help-v3 .help-answers {
  border-bottom-color: var(--v3-line);
}
body.help-v3 .help-answers details {
  border-top-color: var(--v3-line);
}
body.help-v3 .help-answers summary {
  color: var(--v3-green);
}
body.help-v3 .help-contact {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
}
body.help-v3 .site-footer {
  background: var(--v3-green-deep);
  border-top: 1px solid rgb(248 245 238 / 0.14);
  color: rgb(248 245 238 / 0.88);
  padding-block: 32px max(40px, env(safe-area-inset-bottom));
}
body.help-v3 .site-footer .site-footer-inner {
  display: grid;
  gap: 16px;
}
body.help-v3 .site-footer h2 {
  margin: 0 0 8px;
  color: var(--v3-gold);
  font-size: 1.0625rem;
  font-weight: 700;
}
body.help-v3 .site-footer .footer-guides ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.help-v3 .site-footer nav[aria-label="Footer"] {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
body.help-v3 .site-footer nav a {
  color: #f8f5ee;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  text-decoration: underline;
  text-decoration-color: rgb(248 245 238 / 0.35);
  text-underline-offset: 0.2em;
}
body.help-v3 .site-footer nav a:hover {
  color: var(--v3-gold);
  text-decoration-color: var(--v3-gold);
}
body.help-v3 .site-footer p {
  color: rgb(248 245 238 / 0.72);
}

/* Wave 30: Live Help chat craft, optimistic reply state, and Quick Answers search. */
.gs-help-conversation-top {
  gap: 6px;
  min-width: 0;
}
.gs-help-back {
  padding-inline: 2px;
  min-width: 44px;
  text-align: left;
}
.gs-help-thread {
  gap: 14px;
}
.gs-help-bubble {
  gap: 6px;
  padding: 13px 16px;
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
}
.gs-help-mine {
  border: 1px solid #c9dec9;
}
.gs-help-goldie-reply {
  border: 1px solid var(--gs-line);
  border-left: 3px solid var(--gs-green);
  background: #ffffff;
  box-shadow: 0 2px 8px rgb(18 63 44 / 0.05);
}
.gs-help-bubble.is-sending {
  opacity: 0.78;
  border-style: dashed;
}
.gs-help-reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.gs-help-reply-count {
  color: var(--gs-muted);
  font-size: .9375rem;
  font-weight: 600;
}
.gs-help-faq-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  min-width: 0;
}
.gs-help-faq-search .gs-help-input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
}
.gs-help-faq-search .gs-help-secondary {
  min-height: 44px;
  flex: 0 0 auto;
}
.gs-help-faq-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px 0;
}
.gs-help-faq-empty[hidden],
.gs-help-faq-search [hidden],
.gs-help-reply-count[hidden] {
  display: none;
}
.help > .gs-help-faq-search,
.help > .gs-help-faq-empty {
  grid-column: 1 / -1;
  min-width: 0;
}
@media (max-width: 420px) {
  .gs-help-bubble {
    max-width: 94%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gs-help-bubble,
  .gs-help-faq-search * {
    transition: none !important;
  }
}
