/* X-Sist public Help — base styles
   E20: readable, grouped formatting; spacing tuned at original selectors.
   No changes to FAQ content, JavaScript, customer data, or payment logic. */

:root {
  --ink: #10304b;
  --muted: #5d7083;
  --blue: #004181;
  --cyan: #06c3ff;
  --line: #dce7ef;
  --ice: #eef8fd;
  --surface: #fff;
  --gradient: linear-gradient(110deg,#06c3ff,#004181);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color: var(--ink);
  background: white;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button,input {
  font: inherit;
}

button,a,input,summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #0da9e2;
  outline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1160px,calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px;
}

.skip:focus {
  top: 8px;
}

.help-header {
  background: white;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  width: 132px;
  height: 80px;
  object-fit: contain;
}

.help-name {
  font-size: 20px;
  font-weight: 650;
  border-left: 1px solid #d6e4ed;
  padding-left: 20px;
  line-height: 1.3;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a+a {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.hero {
  background: linear-gradient(112deg,#f2fbff 5%,#e5f5ff 100%);
  border-bottom: 1px solid #dceef7;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,1fr);
  gap: 28px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 750;
  color: #24749f;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(30px,3.5vw,43px);
  line-height: 1.2;
  letter-spacing: -.045em;
  margin: 0 0 10px;
  font-weight: 800;
  color: #0b3254;
}

.hero-lead {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 520px;
}

.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbdce8;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px #164d7510;
  padding: 8px 8px 8px 16px;
  max-width: 650px;
}

.search-form>svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #74899b;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 0;
  color: var(--ink);
  font-size: 14px;
}

.search-form input:focus {
  outline: 0;
}

.search-form:focus-within {
  outline: 2px solid #32bcf1;
  outline-offset: 2px;
}

.search-form button {
  border: 0;
  border-radius: 8px;
  background: #004181;
  color: white;
  cursor: pointer;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 650;
}

.search-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.search-results {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px #10304b0b;
}

.search-results h2 {
  font-size: 17px;
  margin: 0;
}

.search-results [role=status] {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 10px;
}

.search-results a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #edf2f6;
}

.search-results a strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.search-results a small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.home-content {
  padding-top: 24px;
  padding-bottom: 34px;
}

.order-help {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 18px #15354b05;
}

.order-help h2 {
  margin: 2px 0 5px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.order-help p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  padding: 10px 15px;
  min-height: 44px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--blue);
  background: #f2f9fd;
  border-color: #cbdfea;
}

.topic-section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 25px;
  letter-spacing: -.035em;
  line-height: 1.3;
  margin: 0;
}

.section-heading>p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.topic-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 16px;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px #16354c04;
  transition: border-color .15s,box-shadow .15s;
}

.topic-card:hover {
  border-color: #54bce5;
  box-shadow: 0 5px 18px #1382b512;
  text-decoration: none;
}

.topic-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: #eaf7ff;
  border: 1px solid #d2eefa;
  color: #0872a4;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.topic-icon svg {
  width: 24px;
  height: 24px;
}

.topic-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 5px;
}

.topic-card small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.topic-arrow {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: #7a96aa;
  font-size: 17px;
}

.popular {
  margin-top: 30px;
}

.popular ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.popular li {
  border-bottom: 1px solid var(--line);
}

.popular a {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 13px 2px;
  font-size: 14px;
  color: var(--ink);
}

.popular a>span:last-child {
  color: #638ca8;
  flex-shrink: 0;
}

.safety-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f1f8fc;
  border: 1px solid #d9eaf5;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 22px;
}

.safety-note>svg {
  width: 28px;
  height: 28px;
  color: #2c85b0;
  flex-shrink: 0;
}

.safety-note p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.safety-note strong {
  color: #274b65;
}

.help-footer {
  background: #f1f7fb;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
}

.footer-title {
  font-weight: 800;
  color: var(--blue);
  font-size: 17px;
  margin: 0 0 8px;
}

.footer-grid p:not(.footer-title),.footer-grid a {
  font-size: 13px;
  color: #58738a;
  line-height: 1.9;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px 28px;
  align-content: start;
}

.footer-bottom {
  border-top: 1px solid #dbe7ef;
  margin-top: 25px;
  padding-top: 17px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6c8191;
}

.footer-bottom a {
  color: #506c81;
}

.chat-float {
  position: fixed;
  bottom: 20px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #004181;
  color: white;
  font-size: 12px;
  font-weight: 650;
  padding: 12px 17px;
  border-radius: 40px;
  box-shadow: 0 4px 14px #00305b35;
  z-index: 4;
}

.chat-float svg {
  width: 22px;
  height: 22px;
}

.chat-float:hover {
  text-decoration: none;
  background: #075b9c;
}

.category-main {
  padding-top: 16px;
  padding-bottom: 36px;
  min-height: 0;
}

.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  color: #7890a3;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.category-layout {
  display: grid;
  grid-template-columns: 252px minmax(0,1fr);
  gap: 26px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 600;
  color: #506c81;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid transparent;
}

.side-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.side-nav a[aria-current=page] {
  color: var(--blue);
  background: #eaf6fe;
  border-color: #d1eaf9;
}

.side-contact {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 12px;
  font-size: 13px;
}

.side-contact p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.side-contact .button {
  font-size: 12px;
  width: 100%;
}

.category-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 12px;
}

.category-heading .topic-icon {
  width: 47px;
  height: 47px;
  flex-basis: 47px;
}

.category-heading h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 0 0 10px;
}

.category-heading .eyebrow {
  margin: 0 0 6px;
}

.category-heading p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.faq-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  padding: 12px 2px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary>span {
  font-size: 21px;
  font-weight: 400;
  color: #6f95ae;
  flex-shrink: 0;
  transition: transform .15s;
}

.faq[open] summary {
  color: var(--blue);
}

.faq[open] summary>span {
  transform: rotate(45deg);
}

.answer {
  padding: 0 20px 14px 2px;
  color: #526d81;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.answer p {
  margin: 0 0 10px;
}

.article-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  border-top: 1px dashed #dbe7ef;
  margin-top: 16px;
  padding-top: 13px;
}

.category-end {
  padding: 18px;
  border: 1px solid #d9eaf3;
  border-radius: 12px;
  background: #f4faff;
  margin-top: 20px;
  font-size: 14px;
}

.category-end p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 12px;
}

.category-end a {
  font-size: 13px;
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* E21 DESKTOP ONLY: Help home density.
   Keep the <=1000px rules untouched: user's mobile layout is already approved.
   Change only content layout; no header, footer, account, or FAQ behavior. */
@media (min-width:1001px) {
  .hero-grid { padding-top:16px; padding-bottom:16px; gap:22px; }
  .hero-art { display:flex; align-items:center; justify-content:center; }
  .hero-art svg { width:auto; max-width:100%; max-height:200px; }
  .hero .eyebrow { margin-bottom:5px; }
  .hero h1 { font-size:38px; margin-bottom:7px; }
  .hero-lead { margin-bottom:10px; }
  .hero .search-caption { margin-top:5px; }
  .home-content { padding-top:15px; padding-bottom:24px; }
  .order-help { padding:12px 18px; gap:14px; }
  .order-help h2 { font-size:19px; margin:0 0 3px; }
  .order-help p { font-size:13px; line-height:1.4; }
  .topic-section, .popular { margin-top:18px; }
  .section-heading { margin-bottom:9px; }
  .section-heading h2 { font-size:23px; }
  .topic-grid { gap:10px; }
  .topic-card { min-height:96px; padding:12px 13px; gap:9px; }
  .topic-card strong { font-size:13px; margin-bottom:3px; }
  .topic-card small { font-size:11px; }
  .topic-arrow { bottom:8px; right:10px; }
  .popular a { padding:10px 2px; }
  .safety-note { margin-top:17px; }
}

@media (max-width:1000px) {
  .topic-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .order-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .category-layout {
    grid-template-columns: 220px minmax(0,1fr);
    gap: 26px;
  }

  .hero-grid {
    gap: 18px;
  }

  .topic-card {
    padding: 15px 13px;
  }

  .topic-card small {
    font-size: 11px;
  }
}

@media (max-width:700px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 72px;
    gap: 11px;
  }

  .brand img {
    width: 98px;
    height: 66px;
  }

  .help-name {
    font-size: 15px;
    padding-left: 11px;
  }

  .header-nav {
    font-size: 12px;
    gap: 0;
  }

  .account-link {
    display: none;
  }

  .hero-grid {
    display: block;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .hero-art {
    display: none;
  }

  .hero h1 {
    font-size: clamp(26px,7.4vw,31px);
    line-height: 1.2;
    margin-bottom: 9px;
  }

  .hero-lead {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .search-form {
    padding: 7px 7px 7px 12px;
    gap: 8px;
  }

  .search-form input {
    font-size: 12px;
  }

  .search-form button {
    font-size: 12px;
    padding: 9px 12px;
  }

  .search-form>svg {
    width: 18px;
    height: 18px;
  }

  .home-content {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .order-help {
    padding: 14px 15px;
    gap: 10px;
    border-radius: 12px;
  }

  .order-help h2 {
    font-size: 19px;
  }

  .order-help p {
    font-size: 12px;
  }

  .order-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8px;
  }

  .button {
    font-size: 12px;
    padding: 9px 10px;
    gap: 6px;
  }

  .topic-section,.popular {
    margin-top: 22px;
  }

  .section-heading {
    display: block;
    margin-bottom: 11px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .section-heading>p {
    margin-top: 8px;
    font-size: 12px;
  }

  .topic-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .topic-card {
    display: block;
    padding: 13px 12px 19px;
    min-height: 0;
  }

  .topic-icon {
    width: 34px;
    height: 34px;
  }

  .topic-card strong {
    font-size: 13px;
    margin: 8px 0 4px;
  }

  .topic-card small {
    font-size: 11px;
  }

  .popular ul {
    grid-template-columns: minmax(0,1fr);
  }

  .popular a {
    font-size: 13px;
    padding: 12px 0;
  }

  .safety-note {
    padding: 12px;
    align-items: flex-start;
    margin-top: 17px;
  }

  .safety-note p {
    font-size: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-grid nav {
    gap: 10px 18px;
  }

  .help-footer {
    padding-bottom: 90px;
  }

  .footer-grid a {
    font-size: 12px;
  }

  .footer-bottom {
    gap: 12px 20px;
  }

  .chat-float {
    padding: 12px;
    right: 15px;
    bottom: 16px;
  }

  .chat-float span {
    display: none;
  }

  .chat-float svg {
    width: 23px;
    height: 23px;
  }

  .category-main {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .breadcrumb {
    margin-bottom: 13px;
    font-size: 11px;
    gap: 8px;
  }

  .category-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .category-layout>aside {
    min-width: 0;
  }

  .side-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .side-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    padding: 9px;
    border-color: var(--line);
    border-radius: 8px;
  }

  .side-nav svg {
    width: 16px;
    height: 16px;
  }

  .side-contact {
    display: none;
  }

  .category-heading {
    gap: 12px;
    margin-bottom: 12px;
  }

  .category-heading h1 {
    font-size: 25px;
  }

  .category-heading .topic-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .category-heading p:last-child {
    font-size: 12px;
  }

  .faq-list {
    margin-top: 14px;
  }

  .faq summary {
    font-size: 14px;
    padding: 12px 0;
  }

  .answer {
    font-size: 13px;
    padding-right: 5px;
    line-height: 1.8;
  }

  .category-end {
    padding: 15px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .article-links {
    gap: 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width:380px) {
  .header-inner {
    gap: 8px;
  }

  .brand img {
    width: 88px;
    height: 62px;
  }

  .help-name {
    font-size: 14px;
    padding-left: 8px;
  }

  .header-nav {
    font-size: 11px;
  }
}

.help-footer {
  padding: 24px 0 22px;
}

.help-footer .footer-grid {
  gap: 22px 48px;
}

.help-footer .footer-title {
  margin: 0 0 10px;
  line-height: 1.1;
}

.help-footer .footer-grid p:not(.footer-title) {
  margin: 0 0 10px;
  line-height: 1.1;
}

.help-footer .footer-grid a {
  line-height: 1.1;
}

.help-footer .footer-grid nav {
  gap: 0 22px;
}

.help-footer .footer-grid nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 0;
}

.help-footer .footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  line-height: 1.1;
}

@media (max-width:700px) {
  .help-footer {
    padding-bottom: 80px;
  }

  .help-footer .footer-grid {
    gap: 12px;
  }

  .help-footer .footer-grid nav {
    gap: 0 18px;
  }

  .help-footer .footer-bottom {
    gap: 12px 16px;
  }
}

.side-nav .topic-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: none;
  border: 0;
  border-radius: 0;
}

.side-nav .topic-icon svg {
  width: 20px;
  height: 20px;
}

/* E22: remove the obsolete floating text label on Help; preserve the WA icon. */
#xp-consult-tip25, #consultation-tip, .xp-consult-tip25 { display:none!important; }
