/* Accasio public page sections.
   Everything is scoped under .acc-sections so it cannot reach the rest of the
   UNA template. Palette matches ops/una/theme/accasio.css: business blue,
   green, light blue, white. */
.acc-sections {
  --acc-blue: #2563eb;
  --acc-blue-dark: #1d4ed8;
  --acc-ink: #0f1f3d;
  --acc-body: #46546f;
  --acc-green: #15803d;
  --acc-sky: #e8f0fe;
  --acc-line: #dbe4f3;
  --acc-paper: #ffffff;
  --acc-r: 7px;
  color: var(--acc-body);
  font-size: 16px;
  line-height: 1.6;
}
.acc-sections * {
  box-sizing: border-box;
}
.acc-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------- section */
.acc-section {
  position: relative;
  margin: 0 0 8px;
  border-radius: var(--acc-r);
  overflow: hidden;
}
.acc-section.acc-no-bg.acc-hero {
  background: linear-gradient(180deg, var(--acc-sky) 0%, var(--acc-paper) 100%);
}

/* The image and its overlay are separate layers so the contrast guard reasons
   about exactly one alpha over exactly one image. */
.acc-bg,
.acc-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.acc-bg {
  background-size: cover;
  background-repeat: no-repeat;
}
.acc-bg-overlay {
  z-index: 1;
}

.acc-hero {
  padding: 56px 0 48px;
}
.acc-h-tall {
  padding: 92px 0 84px;
}
.acc-h-full {
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.acc-align-center {
  text-align: center;
}
.acc-align-center .acc-lede,
.acc-align-center .acc-note {
  margin-left: auto;
  margin-right: auto;
}
.acc-align-center .acc-cta-row {
  justify-content: center;
}

.acc-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc-blue);
}
.acc-heading {
  color: var(--acc-ink);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 17ch;
}
.acc-align-center .acc-heading {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.acc-heading-sm {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: none;
}
.acc-hl {
  color: var(--acc-blue);
}
.acc-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 54ch;
  margin: 0 0 28px;
}
.acc-sub {
  margin: 0 0 8px;
  max-width: 60ch;
}
.acc-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
  max-width: 60ch;
}

/* Light text over a dark image. The eyebrow and highlight have to lift too, or
   they vanish into the photograph they were meant to stand out against. */
.acc-text-light .acc-heading,
.acc-text-light .acc-lede,
.acc-text-light .acc-note,
.acc-text-light .acc-sub {
  color: #ffffff;
}
.acc-text-light .acc-eyebrow,
.acc-text-light .acc-hl {
  color: #bfdbfe;
}
.acc-text-light .acc-btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.acc-text-light .acc-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------- buttons */
.acc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.acc-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.acc-btn-primary {
  background: var(--acc-blue);
  color: #fff;
}
.acc-btn-primary:hover {
  background: var(--acc-blue-dark);
  color: #fff;
  text-decoration: none;
}
.acc-btn-ghost {
  border-color: var(--acc-line);
  color: var(--acc-ink);
  background: var(--acc-paper);
}
.acc-btn-ghost:hover {
  border-color: var(--acc-blue);
  color: var(--acc-blue);
  text-decoration: none;
}

/* ------------------------------------------------------------------ cards */
.acc-cards,
.acc-rich,
.acc-ledger-wrap {
  margin-top: 40px;
}
.acc-grid {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.acc-card {
  background: var(--acc-paper);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-r);
  padding: 24px 22px;
}
.acc-card h3 {
  color: var(--acc-ink);
  font-size: 1.08rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.acc-card p {
  margin: 0;
  font-size: 0.96rem;
}
/* Exactly four cards: two by two rather than three and a lone fourth. This page only;
   the other pages keep their layout. */
.acc-page-solution-ideas .acc-grid:has(> .acc-card:nth-child(4):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

/* ----------------------------------------------------------------- ledger */
.acc-ledger {
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-r);
  overflow: hidden;
}
.acc-ledger-head {
  background: var(--acc-ink);
  color: #fff;
  padding: 22px 24px;
}
.acc-ledger-head h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.acc-ledger-head p {
  margin: 0;
  color: #c7d4ec;
  font-size: 0.95rem;
}
.acc-ledger-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.acc-ledger-col {
  padding: 22px 24px;
  background: var(--acc-paper);
}
.acc-ledger-col + .acc-ledger-col {
  border-left: 1px solid var(--acc-line);
}
.acc-ledger-col h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.acc-ledger-col.is-live h4 {
  color: var(--acc-green);
}
.acc-ledger-col.is-not h4 {
  color: #94a3b8;
}
.acc-ledger-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-ledger-col li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.95rem;
}
.acc-ledger-col li::before {
  position: absolute;
  left: 0;
  top: 5px;
  font-weight: 700;
}
.acc-ledger-col.is-live li::before {
  content: '\2713';
  color: var(--acc-green);
}
.acc-ledger-col.is-not li::before {
  content: '\2014';
  color: #94a3b8;
}

.acc-prose {
  max-width: 70ch;
}

@media (max-width: 720px) {
  .acc-hero {
    padding: 38px 0 34px;
  }
  .acc-h-tall {
    padding: 56px 0 50px;
  }
  .acc-h-full {
    min-height: 0;
    padding: 56px 0;
    display: block;
  }
  .acc-ledger-col + .acc-ledger-col {
    border-left: 0;
    border-top: 1px solid var(--acc-line);
  }
}

/* A visitor who prefers less motion gets no parallax-ish scaling anywhere. */
@media (prefers-reduced-motion: reduce) {
  .acc-btn {
    transition: none;
  }
}

/* ----------------------------------------------------------------------
   Privacy and Terms.

   Set as a document, not as a page of interface: one column, a measure
   people can read a clause in without losing their place, and headings
   that give the thing a shape you can scan for the section you came for.
   Legal text nobody reads is legal text badly set. */
.acc-legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4px 0 40px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ac-gray-800, #1f2937);
}

.acc-legal h2 {
  margin: 34px 0 10px;
  padding-top: 6px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ac-gray-900, #111827);
}

.acc-legal h3 {
  margin: 22px 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
}

.acc-legal p {
  margin: 0 0 14px;
}

.acc-legal ul {
  margin: 0 0 16px;
  padding-left: 1.3rem;
  list-style: disc;
}

.acc-legal li {
  margin: 0 0 7px;
}

.acc-legal a {
  color: var(--ac-blue-700, #1d4ed8);
}

.acc-legal code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ac-gray-100, #f3f4f6);
  font-size: 0.9em;
}

/* The rule between sections is a breath, not a border: these documents
   are long and an unbroken wall of text is the reason nobody finishes
   one. */
.acc-legal hr {
  height: 0;
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--ac-gray-200, #e5e7eb);
}

/* The "this is not legal advice" note, and anything else set apart.
   Marked clearly without being alarming — it is a caveat, not a hazard. */
.acc-legal .acc-legal-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--ac-amber-400, #fbbf24);
  border-radius: 0 8px 8px 0;
  background: var(--ac-amber-50, #fffbeb);
}

.acc-legal .acc-legal-note p:last-child {
  margin: 0;
}

.acc-legal-t {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.acc-legal-t th,
.acc-legal-t td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ac-gray-200, #e5e7eb);
  text-align: left;
  vertical-align: top;
}

.acc-legal-t th {
  font-weight: 700;
  color: var(--ac-gray-900, #111827);
  border-bottom-width: 2px;
}

@media (max-width: 719px) {
  .acc-legal {
    font-size: 0.96rem;
  }

  .acc-legal-t {
    font-size: 0.88rem;
  }
}

/* ------------------------------------------------- signed in, nothing here */

/* The card BxAccasioPagesRender::nothingForAMember draws when every live
   section on a page was addressed to guests. It is a fallback, not a
   feature: quiet, bordered rather than coloured, and sized so it cannot be
   mistaken for the hero it stands in place of. */

.acc-section-signedin {
  border: 1px solid var(--acc-line);
  background: var(--acc-paper);
  padding: 28px 24px;
  text-align: center;
}

.acc-signedin-l {
  margin: 0 0 6px;
  color: var(--acc-ink);
  font-size: 1.12rem;
  font-weight: 600;
}

.acc-signedin-b {
  margin: 0 0 18px;
  color: var(--acc-body);
}

.acc-signedin-go {
  margin: 0;
}

/* ---------------------------------------------------- contents and anchors
 *
 * A contents list for a page long enough to get lost in, and one stable
 * anchor per section so a link into an article keeps working.
 *
 * THE ANCHOR IS AN EMPTY ELEMENT WITH A SCROLL OFFSET, not an id on the
 * section. The site header is fixed, so jumping straight to a section lands
 * with its heading hidden underneath it — the classic anchor fault, and the
 * one a reader blames on the page rather than on the header. `scroll-margin-top`
 * on the anchor leaves room for it, and `scroll-behavior: smooth` is
 * deliberately NOT set: it fights a reader who is navigating by keyboard and
 * is ignored anyway under reduced motion.
 */
.acc-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.acc-contents {
  padding: 28px 0 8px;
}

.acc-contents .acc-contents-count {
  margin: 0 0 14px;
  color: var(--acc-body);
  font-size: 0.95rem;
}

/* Columns, because a single column of 124 links is a scroll of its own.
 * `columns` rather than a grid so a short list stays one column and nothing
 * is positioned by hand. */
.acc-contents-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

@media (min-width: 1000px) {
  .acc-contents-list {
    columns: 3;
  }
}

/* A list item must not be split across two columns: half a link at the foot
 * of one column and half at the head of the next reads as two broken links. */
.acc-contents-list li {
  break-inside: avoid;
  margin: 0 0 7px;
  font-size: 0.97rem;
  line-height: 1.45;
}

.acc-contents-list a {
  color: var(--acc-blue-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.acc-contents-list a:hover {
  border-bottom-color: var(--acc-blue);
}

/* A visible focus ring, and not only on hover: this page is for somebody who
 * may be navigating it entirely from the keyboard. */
.acc-contents-list a:focus-visible {
  outline: 2px solid var(--acc-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- illustration
   A `figure` section. First drawn on /solution-ideas, 18 November 2026: six steps
   three by two on a desktop or tablet, a vertical timeline on a phone,
   then the loop every milestone goes round. Connectors are borders and pseudo
   elements, so a screen reader hears only the two lists. */
.acc-figure {
  margin-top: 40px;
}
.acc-fig {
  margin: 24px 0 0;
}
.acc-ico {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.acc-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acc-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--acc-paper);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-r);
  padding: 18px 14px 14px;
  margin: 0;
}
/* The thread between steps: a line from this card's icon to the next one's, with a
   chevron where it lands. Drawn only where the steps sit in one row. */
.acc-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 43px;
  right: -11px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--acc-blue);
  border-right: 2px solid var(--acc-blue);
  transform: translateX(-2px) rotate(45deg);
  background: transparent;
  z-index: 3;
}
.acc-flow-mark {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 0 12px;
}
.acc-flow-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--acc-sky);
  color: var(--acc-blue);
}
.acc-flow-n {
  position: absolute;
  right: -6px;
  top: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--acc-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--acc-paper);
}
.acc-flow-step.is-fund .acc-flow-ico,
.acc-flow-step.is-accept .acc-flow-ico {
  background: #e7f6ec;
  color: var(--acc-green);
}
.acc-flow-step h3 {
  color: var(--acc-ink);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.acc-flow-you {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--acc-ink);
}
.acc-flow-you .acc-ico {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--acc-green);
}
.acc-flow-dev {
  margin: auto 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--acc-line);
  font-size: 0.82rem;
  line-height: 1.45;
}
/* Pushes the developer line to the foot of the card, and keeps the gap above it
   when the card is short. */
.acc-flow-you + .acc-flow-dev {
  margin-top: 12px;
}
.acc-flow-step:has(.acc-flow-dev) .acc-flow-you {
  margin-bottom: auto;
}
.acc-flow-who {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-blue);
  margin: 0 0 2px;
}

/* The loop. */
.acc-loop {
  margin: 14px 0 0;
  padding: 22px 22px 18px;
  border-radius: var(--acc-r);
  background: linear-gradient(180deg, var(--acc-sky) 0%, var(--acc-paper) 100%);
  border: 1px solid var(--acc-line);
}
.acc-loop-t {
  color: var(--acc-ink);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.acc-loop-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.acc-loop-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px;
  background: var(--acc-paper);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-r);
  font-size: 0.86rem;
  line-height: 1.4;
}
.acc-loop-step strong {
  color: var(--acc-ink);
  font-size: 0.95rem;
}
.acc-loop-ico {
  color: var(--acc-blue);
  margin: 0 0 6px;
}
.acc-loop-step.is-held {
  border: 2px solid var(--acc-blue);
}
.acc-loop-step.is-ok {
  border: 2px solid var(--acc-green);
}
.acc-loop-step.is-ok .acc-loop-ico {
  color: var(--acc-green);
}
.acc-loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-top: 2px solid var(--acc-blue);
  border-right: 2px solid var(--acc-blue);
  transform: rotate(45deg);
}
/* Back to the start: a bracket under the loop, from the last step to the first. */
.acc-loop-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 12.5% 0;
  padding: 12px 0 0;
  border: 2px dashed #9db8ee;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  height: 34px;
  box-sizing: content-box;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--acc-blue-dark);
}
.acc-loop-next .acc-ico {
  width: 18px;
  height: 18px;
}
.acc-loop-alt {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.acc-loop-alt li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  background: var(--acc-paper);
  border: 1px solid var(--acc-line);
  border-left: 3px solid #b45309;
  border-radius: var(--acc-r);
  font-size: 0.88rem;
  line-height: 1.45;
}
.acc-loop-alt .acc-ico {
  color: #b45309;
}
.acc-loop-alt strong {
  color: var(--acc-ink);
}
.acc-fig-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  max-width: 80ch;
}

/* No thread from the end of one row to the start of the next; the numbers carry it.
   (Six in one row was tried first: at 1024px the developer lines wrapped to seven lines.) */
.acc-flow-step:nth-child(3n)::after {
  display: none;
}

/* Phone: a timeline down the left, and the loop as a column with arrows down. */
@media (max-width: 640px) {
  .acc-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .acc-flow-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    padding: 14px;
  }
  .acc-flow-mark {
    grid-row: 1 / span 3;
    margin: 0;
  }
  .acc-flow-step h3,
  .acc-flow-you,
  .acc-flow-dev {
    grid-column: 2;
  }
  .acc-flow-step:has(.acc-flow-dev) .acc-flow-you {
    margin-bottom: 0;
  }
  .acc-flow-step:not(:last-child)::after,
  .acc-flow-step:nth-child(3n)::after {
    display: block;
    top: auto;
    bottom: -12px;
    left: 40px;
    right: auto;
    width: 2px;
    height: 12px;
    border: 0;
    background: var(--acc-blue);
    transform: none;
  }
  .acc-loop {
    padding: 18px 14px 14px;
  }
  .acc-loop-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .acc-loop-step:not(:last-child)::after {
    top: auto;
    bottom: -17px;
    right: auto;
    left: 50%;
    margin: 0 0 0 -6px;
    transform: rotate(135deg);
  }
  .acc-loop-next {
    margin: 12px 0 0;
    padding: 10px;
    height: auto;
    border: 2px dashed #9db8ee;
    border-radius: 14px;
  }
  .acc-loop-alt {
    grid-template-columns: 1fr;
  }
}
