/* Content pages: About, Help, Contact and the legal pages. Uses the --cx-* tokens of the design system. */

/* -----------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.cx-about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 80px; align-items: center; }
.cx-about-row--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.cx-about-row__media { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: var(--cx-radius-md); }
.cx-about-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cx-about-row__copy { display: grid; justify-items: start; gap: var(--cx-eyebrow-gap); }
.cx-about-row__copy .cx-h2 { max-width: 620px; }
.cx-about-row__copy .cx-pill { margin-top: 10px; }
.cx-about-row__lead { max-width: 600px; color: var(--cx-text); }
.cx-about-row__copy > .cx-body { max-width: 600px; }

.cx-about-list { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.cx-about-list li { display: flex; align-items: flex-start; gap: 14px; font-size: var(--cx-fs-body-lg); line-height: 1.45; color: var(--cx-text); }
.cx-about-list .cx-icon { flex: none; margin-top: 3px; font-size: 20px; color: var(--cx-primary); }
.cx-about-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }

.cx-about-mission .cx-heading { margin-inline: auto; }
.cx-about-mission__text { max-width: var(--cx-measure); color: var(--cx-text-muted); }
.cx-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cx-value {
  position: relative; display: grid; align-content: start; gap: 12px; min-height: 300px; padding: 30px 28px 32px;
  border: var(--cx-border-w) solid var(--cx-grey-300); border-radius: var(--cx-radius-md); background: var(--cx-white);
  transition: background var(--cx-dur) var(--cx-ease), border-color var(--cx-dur) var(--cx-ease);
}
.cx-value:hover { border-color: var(--cx-primary); background: var(--cx-grey-50); }
.cx-value__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--cx-grey-100); color: var(--cx-primary); font-size: 24px; }
.cx-value__index { position: absolute; top: 30px; right: 28px; font-family: var(--cx-font-label); font-size: var(--cx-fs-label); letter-spacing: var(--cx-ls-label); color: var(--cx-ink-subtle); }
.cx-value__title { font-size: var(--cx-fs-h5); line-height: 1.25; font-weight: var(--cx-fw-regular); color: var(--cx-text); }
.cx-value__text { font-size: var(--cx-fs-body); line-height: 1.6; color: var(--cx-text-muted); }
.cx-about-mission__cta { display: flex; justify-content: center; margin-top: var(--cx-space-9); }

.cx-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-method { display: grid; align-content: start; gap: 8px; padding: 30px 30px 34px; border-radius: var(--cx-radius-md); background: var(--cx-white); }
.cx-method__symbol { font-size: var(--cx-fs-symbol-sm); line-height: 1; font-weight: var(--cx-fw-regular); color: var(--cx-primary); }
.cx-method__title { margin-top: 26px; font-size: var(--cx-fs-h5); line-height: 1.25; font-weight: var(--cx-fw-regular); color: var(--cx-text); }
.cx-method__how { font-size: var(--cx-fs-body); line-height: 1.5; color: var(--cx-primary); }
.cx-method__what { font-size: var(--cx-fs-body); line-height: 1.6; color: var(--cx-text-muted); }
.cx-about-declare { display: grid; gap: 22px; margin-top: 16px; padding: var(--cx-space-8); border-radius: var(--cx-radius-md); background: var(--cx-white); }

.cx-about-check { background: var(--cx-grad-deep); color: var(--cx-white); }
.cx-about-check__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px 80px; align-items: end; }
.cx-about-check__inner .cx-tag { margin-bottom: var(--cx-eyebrow-gap); }
.cx-about-check__title { color: var(--cx-white); }
.cx-about-check__text { max-width: 640px; margin-top: 22px; font-size: var(--cx-fs-body-lg); line-height: 1.6; color: var(--cx-white); } /* Lc 78 on the band's lightest corner */
.cx-about-check__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -----------------------------------------------------------------------------
   Help
   -------------------------------------------------------------------------- */
.cx-helpcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cx-helpcat {
  position: relative; display: grid; align-content: start; gap: 10px; padding: 28px 26px 30px;
  border: var(--cx-border-w) solid var(--cx-grey-300); border-radius: var(--cx-radius-md); background: var(--cx-white);
  transition: border-color var(--cx-dur) var(--cx-ease), background var(--cx-dur) var(--cx-ease);
}
.cx-helpcat:hover { border-color: var(--cx-primary); background: var(--cx-grey-50); }
.cx-helpcat__index { font-family: var(--cx-font-label); font-size: var(--cx-fs-label); letter-spacing: var(--cx-ls-label); color: var(--cx-ink-subtle); }
.cx-helpcat__title { margin-top: 18px; font-size: var(--cx-fs-h5); line-height: 1.25; font-weight: var(--cx-fw-regular); }
.cx-helpcat__title a { color: var(--cx-text); }
.cx-helpcat__title a::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the topic */
.cx-helpcat__text { font-size: var(--cx-fs-body); line-height: 1.55; color: var(--cx-text-muted); }
.cx-helpcat__links { position: relative; z-index: 1; display: grid; justify-items: start; gap: 0; margin: 8px 0 0; padding: 14px 0 0; list-style: none; border-top: var(--cx-border-w) solid var(--cx-grey-300); }
.cx-helpcat__links a { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--cx-fs-ui); color: var(--cx-primary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--cx-dur-fast) var(--cx-ease); }
.cx-helpcat__links a:hover { text-decoration-color: currentColor; }

.cx-guides { display: grid; gap: 16px; margin-top: var(--cx-space-10); }
.cx-guide {
  display: grid; justify-items: start; gap: 16px; padding: var(--cx-space-8); scroll-margin-top: 130px;
  border-radius: var(--cx-radius-md); background: var(--cx-grey-50);
  font-size: var(--cx-fs-body); line-height: 1.65; color: var(--cx-text-muted);
}
.cx-guide > p { max-width: var(--cx-measure); }
.cx-guide a { color: var(--cx-primary); text-decoration: underline; text-underline-offset: 3px; }
.cx-guide .cx-h4 { margin-top: 4px; color: var(--cx-text); }
.cx-guide__list { display: grid; gap: 10px; max-width: var(--cx-measure); margin: 0; padding: 0; list-style: none; }
.cx-guide__list li { position: relative; padding-left: 24px; color: var(--cx-text); }
.cx-guide__list li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-primary); }
.cx-guide__steps { display: grid; gap: 12px; max-width: var(--cx-measure); margin: 0; padding: 0; list-style: none; counter-reset: cx-guide; }
/* the number sits outside the text flow, so links inside a step stay inline */
.cx-guide__steps li { position: relative; min-height: 36px; padding: 2px 0 0 50px; color: var(--cx-text); counter-increment: cx-guide; }
.cx-guide__steps li::before {
  content: counter(cx-guide, decimal-leading-zero); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--cx-white); color: var(--cx-primary); font-size: var(--cx-fs-xs);
}
.cx-guide__note { max-width: var(--cx-measure); padding: 14px 18px; border-left: 3px solid var(--cx-primary); border-radius: 0 var(--cx-radius-sm) var(--cx-radius-sm) 0; background: var(--cx-white); color: var(--cx-text); }
.cx-guide__table { width: 100%; max-width: 900px; overflow-x: auto; border-radius: var(--cx-radius-sm); background: var(--cx-white); }
.cx-guide__table:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 2px; }
.cx-guide__table table { width: 100%; border-collapse: collapse; font-size: var(--cx-fs-ui); line-height: 1.5; }
.cx-guide__table th, .cx-guide__table td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: var(--cx-border-w) solid var(--cx-grey-300); }
.cx-guide__table tr:last-child td { border-bottom: 0; }
.cx-guide__table th { font-family: var(--cx-font-label); font-size: var(--cx-fs-label); font-weight: 400; letter-spacing: var(--cx-ls-label); text-transform: uppercase; color: var(--cx-ink-subtle); }
.cx-guide__table td:first-child { width: 38%; color: var(--cx-text); }

.cx-helpfaq { margin-top: var(--cx-section-y-sm); scroll-margin-top: 130px; }
.cx-helpfaq__group { margin: 40px 0 6px; color: var(--cx-primary); }
.cx-helpfaq .cx-heading + .cx-helpfaq__group { margin-top: 0; }
.cx-helpcta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: var(--cx-section-y-sm); padding: var(--cx-space-8); border: var(--cx-border-w) solid var(--cx-grey-300); border-radius: var(--cx-radius-md);
}
.cx-helpcta .cx-body { max-width: var(--cx-measure); margin-top: 10px; }

/* -----------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.cx-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px 56px; align-items: start; scroll-margin-top: 130px; }
.cx-contact__details { display: grid; gap: 28px; padding: var(--cx-space-8); border-radius: var(--cx-radius-md); background: var(--cx-grey-50); }
.cx-contact__list { display: grid; gap: 20px; margin: 0; }
.cx-contact__list dt { margin-bottom: 6px; color: var(--cx-ink-subtle); }
.cx-contact__list dd { margin: 0; font-size: var(--cx-fs-body-lg); line-height: 1.5; color: var(--cx-text); overflow-wrap: anywhere; }
.cx-contact__list dd a { color: var(--cx-primary); }
.cx-contact__list small { display: block; margin-top: 6px; font-size: var(--cx-fs-label); line-height: 1.45; color: var(--cx-text-muted); }
.cx-contact__address { font-style: normal; }
.cx-contact__note { padding-top: 24px; border-top: var(--cx-border-w) solid var(--cx-grey-300); }
.cx-contact__note .cx-body { margin-top: 8px; }
.cx-contact__form { display: grid; gap: 18px; padding: var(--cx-space-8); border: var(--cx-border-w) solid var(--cx-grey-300); border-radius: var(--cx-radius-md); background: var(--cx-white); }
.cx-contact__form .cx-btn { justify-self: start; margin-top: 4px; }
.cx-contact__form select.cx-input {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233A5487' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.cx-contact__form input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cx-primary); }
.cx-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* -----------------------------------------------------------------------------
   Legal pages (page content in .cx-prose)
   -------------------------------------------------------------------------- */
.cx-prose ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 8px; }
.cx-prose strong { font-weight: var(--cx-fw-medium); color: var(--cx-text); }
.cx-prose .cx-legal-meta { font-size: var(--cx-fs-body); color: var(--cx-ink-subtle); }
.cx-prose .cx-legal-toc { display: grid; gap: 6px; padding: 22px 26px; border-radius: var(--cx-radius-sm); background: var(--cx-grey-50); font-size: var(--cx-fs-body); }
.cx-prose .cx-legal-toc ol { gap: 4px; }
.cx-prose .cx-legal-toc a { display: inline-block; } /* a whole line tall (30px), not just the glyphs */
.cx-prose h2 { scroll-margin-top: 130px; }
.cx-prose table { width: 100%; border-collapse: collapse; font-size: var(--cx-fs-ui); line-height: 1.5; }
.cx-prose th, .cx-prose td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: var(--cx-border-w) solid var(--cx-grey-300); }
.cx-prose th { font-family: var(--cx-font-label); font-size: var(--cx-fs-label); font-weight: 400; letter-spacing: var(--cx-ls-label); text-transform: uppercase; color: var(--cx-ink-subtle); }
.cx-prose .cx-legal-table { overflow-x: auto; }

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .cx-values, .cx-helpcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cx-about-row, .cx-about-row--reverse, .cx-contact, .cx-about-check__inner { grid-template-columns: minmax(0, 1fr); }
  .cx-about-row--reverse .cx-about-row__media { order: -1; }
  .cx-about-row__media { aspect-ratio: 16 / 10; }
  .cx-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-about-check__inner { align-items: start; }
}
@media (max-width: 768px) {
  .cx-values, .cx-helpcats, .cx-methods, .cx-about-list--cols { grid-template-columns: minmax(0, 1fr); }
  .cx-value { min-height: 0; }
  .cx-guide, .cx-helpcta, .cx-contact__details, .cx-contact__form, .cx-about-declare { padding: var(--cx-space-6); }
  .cx-guides { margin-top: 40px; }
  .cx-guide__table th, .cx-guide__table td { padding: 10px 12px; }
  .cx-guide__table td:first-child { width: 42%; }
  .cx-about-list li { font-size: var(--cx-fs-body); }
}

/* Links in a page header's lead (Contact links to the Help Center) */
.cx-pagehero__lead a { color: var(--cx-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Touch screens: 44px targets for the topic links, the legal contents and the contact links */
@media (pointer: coarse) {
  .cx-helpcat__links a { min-height: 44px; }
  .cx-prose .cx-legal-toc a { display: inline-flex; align-items: center; min-height: 44px; }
  .cx-prose .cx-legal-toc ol { gap: 0; }
  .cx-contact__list dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -9px; } /* 44px to tap, the list keeps its rhythm */
}

/* Phones (1.6): Help topics as a compact 2 × 2 of jump links; About's measurements two across */
@media (max-width: 768px) {
  .cx-helpcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cx-helpcat { padding: 16px; min-height: 0; }
  .cx-helpcat__text, .cx-helpcat__links { display: none; } /* the sections below hold the same links */
  .cx-helpcat__title { font-size: var(--cx-fs-body-lg); }
  .cx-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cx-method { padding: 18px 16px; }
  .cx-method__symbol { font-size: 40px; }
  .cx-method__title { font-size: var(--cx-fs-body-lg); }
  .cx-method__how, .cx-method__what { font-size: var(--cx-fs-xs); }
}
@media (max-width: 768px) {
  .cx-helpcat__title a::after { content: ""; position: absolute; inset: 0; } /* the whole compact card is the link */
}
@media (pointer: coarse) {
  .cx-contact__form input[type="checkbox"] { width: 24px; height: 24px; }
}
@media (max-width: 768px) {
  /* Help: each guide folds to its title (site.js) */
  .cx-guide__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .cx-guide__toggle::after { content: "+"; flex: none; font-size: 26px; line-height: 1; font-weight: var(--cx-fw-light); color: var(--cx-primary); }
  .cx-guide__toggle[aria-expanded="true"]::after { content: "–"; }
  .cx-guide { padding: 18px 20px; }
  .cx-guide > h2 { justify-self: stretch; font-size: var(--cx-fs-h5); } /* every + on the right edge, titles scan as a list */
  .cx-guide__body { display: grid; justify-items: start; gap: 16px; width: 100%; }
  .cx-guide__body > p { max-width: var(--cx-measure); }
  .cx-guide .cx-guide__toggle { text-decoration: none; }
  .cx-guide__body[hidden] { display: none; }
}
