/* Refinement of the existing printed-paper system. */

/* The deliverables panel is an inked sheet: the grain is quiet enough to
   keep its white type readable, and the checklist has a clear rhythm. */
body main .delivery {
  background-color: #0b3a95;
  background-image: linear-gradient(rgba(11, 48, 120, .89), rgba(9, 43, 110, .92)),
    url('/images/brand/paper-fibre.webp');
  background-position: center, left top;
  background-size: auto, 900px auto;
  box-shadow: 0 14px 34px rgba(13, 38, 76, .15);
}
body main .delivery ul > li {
  border-top-color: rgba(226, 239, 250, .34);
}
body main .delivery ul > li svg {
  flex: none;
  color: #d8ebf9;
}
body main .delivery aside {
  border-color: rgba(226, 239, 250, .38);
}

/* Related pages remain a reading list; a small ink wash marks the current
   pointer or keyboard target without making every row a separate card. */
body main .related.related li > a,
body main .reading .reading-related a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
body main .related.related li > a:focus-visible,
body main .reading .reading-related a:focus-visible {
  outline: 2px solid #0b3a95;
  outline-offset: 3px;
}

/* Full contact panels get tactile paper and a stronger individual focus.
   Compact hero contacts keep their established layout. */
body main > :is(.final-contact, .contact-section, .contacts) {
  background-image: linear-gradient(rgba(247, 251, 253, .52), rgba(237, 247, 251, .60)),
    url('/images/brand/paper-fibre.webp');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action) {
  background-color: #f1f8fb;
  background-image: linear-gradient(rgba(255, 255, 255, .50), rgba(239, 248, 252, .58)),
    url('/images/brand/paper-fibre.webp');
  background-position: center, right bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
  border-color: #b5cadd;
  box-shadow: 0 7px 20px rgba(13, 38, 76, .09), 0 1px 3px rgba(13, 38, 76, .05);
}
body main .contact-actions:not(.contact-actions-compact) .contact-message {
  background-image: linear-gradient(rgba(255, 255, 255, .37), rgba(239, 248, 252, .48)),
    url('/images/brand/paper-fibre.webp');
  background-position: center, left top;
  background-size: auto, cover;
  background-repeat: no-repeat;
  box-shadow: 0 9px 24px rgba(13, 38, 76, .10), 0 2px 5px rgba(13, 38, 76, .04);
}
body main .contact-actions:not(.contact-actions-compact) .contact-message textarea {
  background-color: rgba(255, 255, 255, .9);
  border-color: #9db9d5;
}

/* Interactive stages behave like a marked-up working document: the selected
   number gets an ink tile, while the label and its explanation stay in flow. */
body.home-page main .neural-steps button .neural-step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  color: #0b3a95;
  border: 1px solid #9eb8d5;
  background: rgba(255, 255, 255, .45);
}
body.home-page main .neural-steps button[aria-pressed='true'] .neural-step-number {
  color: #fff;
  border-color: #0b3a95;
  background: #0b3a95;
}
body.home-page main .neural-steps button[aria-pressed='true'] {
  background-color: rgba(225, 239, 248, .76);
}
body.home-page main .working-format-steps button[aria-pressed='true'] {
  color: #0b3a95;
  text-decoration: underline;
  text-decoration-color: rgba(11, 58, 149, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
body.home-page main .working-format-steps button[aria-pressed='true'] svg {
  color: #0b3a95;
}

@media (prefers-reduced-motion: no-preference) {
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action),
  body main .related.related li > a,
  body main .reading .reading-related a,
  body.home-page main .neural-steps button,
  body.home-page main .neural-steps .neural-step-number,
  body.home-page main .working-format-steps button {
    transition: color 200ms ease, background-color 200ms ease,
      border-color 200ms ease, box-shadow 280ms cubic-bezier(.23, 1, .32, 1);
  }
  body.home-page main .working-format-steps button svg {
    transition: transform 260ms cubic-bezier(.23, 1, .32, 1);
  }
}

@media (hover: hover) and (pointer: fine) {
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):hover,
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):focus-visible {
    border-color: #7297c2;
    box-shadow: 0 13px 27px rgba(13, 38, 76, .15), 0 2px 5px rgba(13, 38, 76, .06);
  }
  body main .related.related li > a:hover,
  body main .reading .reading-related a:hover {
    background-color: rgba(213, 232, 244, .58);
    color: #0b3a95;
  }
  body.home-page main .neural-steps button:hover .neural-step-number,
  body.home-page main .neural-steps button:focus-visible .neural-step-number {
    border-color: #0b3a95;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.home-page main .working-format-steps button:not(:disabled):hover svg,
  body.home-page main .working-format-steps button:not(:disabled):focus-visible svg {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action),
  body main .related.related li > a,
  body main .reading .reading-related a,
  body.home-page main .neural-steps button,
  body.home-page main .neural-steps .neural-step-number,
  body.home-page main .working-format-steps button,
  body.home-page main .working-format-steps button svg { transition: none; }
}
