/* pages/about.css: loaded only on the "about" template.
   Ported from the source theme (RECON/assets/pretty/style.css), selectors and values kept 1:1. */
@layer custom {
  .scrollable-text {
    white-space: nowrap;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
  }
  .cc-process,
  .cc-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 3.4vw, 56px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cc-process;
  }
  .cc-process__step {
    counter-increment: cc-process;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
  }
  .cc-process__step:before {
    content: counter(cc-process, decimal-leading-zero);
    position: absolute;
    top: 26px;
    right: 0;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--clr-white-40);
  }
  .cc-process--path {
    --cc-rise: clamp(26px, 3.6vw, 64px);
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(20px, 2.2vw, 40px);
  }
  .cc-process--path .cc-process__step {
    border-top: 0;
    padding-top: 52px;
  }
  .cc-process--path .cc-process__step:nth-child(2) {
    margin-top: 0;
  }
  .cc-process--path .cc-process__step:nth-child(3) {
    margin-top: var(--cc-rise);
  }
  .cc-process--path .cc-process__step:nth-child(4) {
    margin-top: calc(var(--cc-rise) * 2);
  }
  .cc-process--path .cc-process__step:nth-child(5) {
    margin-top: calc(var(--cc-rise) * 3);
  }
  .cc-process__node {
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--clr-white);
    opacity: 0;
    transform: scale(0.4);
  }
  .cc-process__line {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    transform-origin: 0 50%;
    background: #ffffff38;
    pointer-events: none;
  }
  /* each number sits on its own node (above it), not at the far edge of the step */
  .cc-process--path .cc-process__step:before {
    top: -24px;
    left: 0;
    right: auto;
  }
  @media (max-width: 1100px) {
  .cc-process--path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 3.4vw, 56px) clamp(20px, 2.2vw, 40px);
  }
  }
  @media (max-width: 1100px) {
  .cc-process--path .cc-process__step:nth-child(2) {
    margin-top: 0;
  }
  }
  @media (max-width: 1100px) {
  .cc-process--path .cc-process__step:nth-child(3) {
    margin-top: var(--cc-rise);
  }
  }
  @media (max-width: 1100px) {
  .cc-process--path .cc-process__step:nth-child(4) {
    margin-top: 0;
  }
  }
  @media (max-width: 1100px) {
  .cc-process--path .cc-process__step:nth-child(5) {
    margin-top: var(--cc-rise);
  }
  }
  @media (max-width: 680px) {
  .cc-process--path {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 0;
  }
  }
  @media (max-width: 680px) {
  .cc-process--path .cc-process__step {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 26px;
  }
  }
  @media (max-width: 680px) {
  .cc-process--path .cc-process__step:nth-child(n) {
    margin-top: 0;
  }
  }
  @media (max-width: 680px) {
  .cc-process__line,
  .cc-process__node {
    display: none;
  }
  }
  @media (max-width: 680px) {
  .cc-process--path .cc-process__step:before {
    top: 26px;
    left: auto;
    right: 0;
  }
  }
  .cc-process__name,
  .cc-reasons__name {
    margin: 0 0 14px;
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    padding-right: 40px;
  }
  .cc-process__body,
  .cc-reasons p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
  }
  .cc-reasons__name {
    padding-right: 0;
  }
  .cc-reasons p + p {
    margin-top: 14px;
  }
  .cc-reasons > li {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  @media (max-width: 767px) {
  .cc-process,
  .cc-reasons {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  }
  /* our line is an aria-hidden <li> (a bare span is invalid inside <ol>): drop the base list-item spacing */
  li.cc-process__line {
    display: block;
    margin: 0;
    padding: 0;
  }
  /* hero h1: one block per authored line, each balanced, so a phone never leaves one word on a line (source used <br>) */
  .about-hl {
    display: block;
    text-wrap-style: balance;
  }
  /* each hero line is its own block: give consecutive lines air so descenders never crowd the next line's caps */
  .about-hl + .about-hl {
    margin-top: 0.08em;
  }
}

/* 2-column process grid: one straight line cannot join a 2x2 grid without crossing the text, so only the nodes stay */
@layer custom {
  @media (max-width: 1100px) {
    .cc-process--path .cc-process__line { display: none; }
  }
}
