/* ==========================================================================
   collection-links.css

   Styles for:
     .la-layer              the Pyramid layer tag (used in three places)
     .la-collection-links   the link row inside a services.html accordion
     .la-collection-header  the strip at the top of a collection page
     .la-nav-footer         the footer row inside the Services dropdown

   Colors use var(--token, #fallback) so these inherit the real brand palette
   if the tokens exist, and still render correctly if the names differ.
   Classes are prefixed .la- to avoid collisions.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Layer tag

   Deliberately quiet. This is metadata, not a call to action — if it competes
   with "Read the full program" it is doing the wrong job. Small caps, no
   fill, a single dot for the visual hook.
   -------------------------------------------------------------------------- */

.la-layer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  border-radius: 999px;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-deep, #7A5C3E);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.la-layer:hover,
.la-layer:focus-visible {
  border-color: var(--gold-antique, #A17C3A);
  background: rgba(var(--glow-deep-rgb), 0.07);
}

.la-layer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-antique, #A17C3A);
}

/* On dark backgrounds (the ICOONE band, any espresso section). */
.la-layer--onDark {
  border-color: rgba(var(--glow-rgb), 0.38);
  color: var(--gold-leaf, #C9A24B);
}

.la-layer--onDark:hover,
.la-layer--onDark:focus-visible {
  border-color: var(--gold-leaf, #C9A24B);
  background: rgba(var(--glow-rgb), 0.12);
}


/* --------------------------------------------------------------------------
   Accordion link row (services.html)

   Wraps rather than scrolls. On a phone the layer tag sits on its own line
   above the links, which reads better than four items squeezed together.
   -------------------------------------------------------------------------- */

.la-collection-links {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
}

/* The onward link. Weighted heavier than its neighbours because it is the
   action this whole exercise exists to restore. */
.la-collection-links__primary {
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-deep, #7A5C3E);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.la-collection-links__primary:hover,
.la-collection-links__primary:focus-visible {
  color: var(--gold-antique, #A17C3A);
}

.la-collection-links__secondary {
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--taupe, #6B6155);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--taupe-rgb), 0.35);
  padding-bottom: 1px;
}

.la-collection-links__secondary:hover,
.la-collection-links__secondary:focus-visible {
  color: var(--espresso, #252019);
  border-bottom-color: currentColor;
}

/* Push the layer tag hard left and let the links group after it. */
.la-collection-links .la-layer {
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   Collection page header strip
   -------------------------------------------------------------------------- */

.la-collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.la-collection-header__results {
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-deep, #7A5C3E);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* The same link on a dark band. --gold-deep is tuned for cream and falls to
   about 3.4:1 on plum, taking its underline (currentColor) down with it.
   Mirrors .la-layer--onDark, which sits beside it in the same header. */
.la-collection-header__results--onDark {
  color: var(--accent-band, #C9A24B);
}


/* --------------------------------------------------------------------------
   Services dropdown footer row
   -------------------------------------------------------------------------- */

.la-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.14);
}

.la-nav-footer__primary,
.la-nav-footer__secondary {
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 13px;
  text-decoration: none;
}

.la-nav-footer__primary {
  font-weight: 600;
  color: var(--gold-deep, #7A5C3E);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.la-nav-footer__secondary {
  font-weight: 400;
  color: var(--taupe, #6B6155);
}

.la-nav-footer__secondary:hover,
.la-nav-footer__secondary:focus-visible {
  color: var(--espresso, #252019);
}


/* --------------------------------------------------------------------------
   Focus and motion
   -------------------------------------------------------------------------- */

.la-layer:focus-visible,
.la-collection-links a:focus-visible,
.la-collection-header a:focus-visible,
.la-nav-footer a:focus-visible {
  outline: 2px solid var(--gold-leaf, #C9A24B);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .la-layer {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  /* Layer tag takes its own line; links wrap beneath it. */
  .la-collection-links .la-layer {
    margin-right: 0;
    flex-basis: 100%;
  }

  .la-collection-links {
    gap: 10px 18px;
  }

  .la-collection-header {
    justify-content: flex-start;
  }
}
