/* Shared interaction feedback. Layout, content and touch targets stay in their templates. */
:root {
  --feedback-accent:#b74b20;
  --feedback-ink:#17384e;
  --feedback-wash:#f1f5f7;
  --feedback-line:#7c95a7;
  --feedback-time:180ms;
  --feedback-ease:cubic-bezier(.2,.7,.3,1);
}

/* Information surfaces keep a normal cursor and never become extra tab stops. */
.ci-records>div,.ci-note,.ci-series>li,.credential,.company-metrics>div,
.cat-process>article,.ci-programme>li {
  transition:background-color var(--feedback-time) ease,border-color var(--feedback-time) ease,box-shadow var(--feedback-time) ease;
}
.ci-gallery>figure,.ci-resource {
  transition:border-color var(--feedback-time) ease,box-shadow var(--feedback-time) ease;
}
.ci-gallery figcaption,.ci-resource-body {
  transition:background-color var(--feedback-time) ease;
}
.ci-records dd,.ci-note h3,.ci-series strong,.ci-resource h3,.ci-programme h3,
.cat-process h3,.home-product-copy h3,.cat-tile-body h3,
.home-journal-list h3,.ed-story h3 a,.ed-related-card h3 a,.ed-feature h2 a {
  transition:color var(--feedback-time) ease;
}
.ci-table tbody tr>*,.cat-spec tbody tr>* {
  transition:background-color var(--feedback-time) ease;
}

/* Linked surfaces use text, a quiet rule and a small directional response. */
.ci-resource .ci-card-img,.ed-feature-image,.ed-story-image {
  overflow:hidden;
}
.ci-resource .ci-card-img img,.ed-feature-image img,.ed-story-image img {
  transition:transform 320ms var(--feedback-ease);
}
.ci-row,.cat-recommendation,.home-journal-list>a,.ed-story,.ed-related-card,
.ed-neighbours>a,.cat-filter-disclosure>summary,.cat-sidebar-mobile>summary,
.faqs summary,.ci-question summary,.ed-toc-toggle {
  transition:background-color var(--feedback-time) ease,border-color var(--feedback-time) ease,color var(--feedback-time) ease;
}
.ci-row i,.cat-arrow span,.ed-text-link span,.contact-storefront span,
.delivery-full-process span,.home .home-projects .home-case-link i {
  display:inline-block;
  transition:transform var(--feedback-time) var(--feedback-ease),color var(--feedback-time) ease;
}
.cat-sector-cta {
  display:block;
  transition:transform var(--feedback-time) var(--feedback-ease),color var(--feedback-time) ease;
}
.cat-solution-row {
  transition:box-shadow var(--feedback-time) ease;
}
.home .home-products .home-product-card,.cat-catalogue-results .cat-tile {
  transition:border-color var(--feedback-time) ease;
}
.home .home-products .home-product-visual,.cat-catalogue-results .cat-plate {
  transition:background-color var(--feedback-time) ease;
}
.cat-reference-photo,.home-product-visual img {
  transition:transform 320ms var(--feedback-ease);
}

/* Existing button colours remain local to each page; missing transitions are shared. */
:where(.btn,.s-btn,.cat-action,.ci-pill,.ed-button,.cat-clear,
 .cat-gallery-thumb,.cat-gallery-controls>button,.project-controls>button,
 .project-step-dots>button,.film-control,.file-picker-button,.file-picker-clear,
 .ed-query button,.ed-results-bar button,.cat-pagination-links a,.ed-pagination a,
 .nav-parent,.nav-pop a,.cat-sidebar-links>a,.ed-category-links>a,
 .cat-product-tabs>a,.ed-toc a,.ci-toc a,.textlink,.ci-link,.cat-text-link,
 .cat-pill,.cat-product-technical-link,.channel,.contact-records a,
 .cat-contact-row a,.ed-back,.contact-storefront,.foot a,.credit-copy a,
 .cat-process a,.breadcrumbs a) {
  transition:color var(--feedback-time) ease,background-color var(--feedback-time) ease,border-color var(--feedback-time) ease,box-shadow var(--feedback-time) ease,transform var(--feedback-time) var(--feedback-ease);
}
.briefgrid :is(input:not([type=checkbox]):not([type=file]),select,textarea),
.cat-filter-fields :is(input,select),.ed-query>div {
  transition:border-color var(--feedback-time) ease,box-shadow var(--feedback-time) ease;
}

@media (hover:hover) and (pointer:fine) {
  .ci-records>div:hover,.ci-note:hover {
    background-color:#e8f0fa;
    border-top-color:#587c9d;
    box-shadow:inset 3px 0 0 var(--feedback-accent);
  }
  .ci-records>div:hover dd,.ci-note:hover h3 {
    color:#123b61;
  }
  .ci-series>li:hover,.cat-process>article:hover,.ci-programme>li:hover {
    background-color:var(--feedback-wash);
    border-top-color:var(--feedback-accent);
    box-shadow:inset 3px 0 0 var(--feedback-accent);
  }
  .ci-series>li:hover strong,.cat-process>article:hover h3,.ci-programme>li:hover h3 {
    color:var(--feedback-accent);
  }
  .credential:hover,.company-metrics>div:hover {
    background-color:var(--feedback-wash);
    border-color:var(--feedback-line);
    box-shadow:inset 0 -2px 0 var(--feedback-accent);
  }
  .ci-gallery>figure:hover,.ci-resource:hover {
    border-color:var(--feedback-line);
    box-shadow:0 4px 16px #142f4610;
  }
  .ci-gallery>figure:hover figcaption,.ci-resource:hover .ci-resource-body {
    background-color:var(--feedback-wash);
  }
  .ci-resource:hover h3 {
    color:var(--feedback-accent);
  }
  .ci-resource:hover .ci-card-img:not(.ci-full-structure) img {
    transform:scale(1.025);
  }
  .ci-table tbody tr:hover>*,.cat-product-section .cat-spec tbody tr:hover>* {
    background-color:#e9f0f6;
  }
  .ci-row:hover,.cat-recommendation:hover,.home .home-journal-list>a:hover,
  .ed-story:hover,.ed-related-card:hover,.ed-neighbours>a:hover {
    background-color:var(--feedback-wash);
  }
  .ci-row:hover strong,.cat-recommendation:hover .cat-recommendation-name,
  .home .home-journal-list>a:hover h3,.ed-story:hover h3 a,
  .ed-related-card:hover h3 a,.ed-feature:hover h2 a {
    color:var(--feedback-accent);
  }
  .ci-row:hover i,.home .home-projects .field-grid a:hover .home-case-link i,
  .home .home-products .home-product-card:hover .home-product-copy i {
    transform:translate(3px,-3px);
  }
  .home .home-projects .field-grid a:hover .home-case-link {
    color:var(--feedback-accent);
  }
  .home .home-products .home-product-card:hover,.cat-catalogue-results .cat-tile:hover {
    border-bottom-color:var(--feedback-accent);
  }
  .home .home-products .home-product-card:hover h3,.cat-catalogue-results .cat-tile:hover h3 {
    color:var(--feedback-accent);
  }
  .home .home-products .home-product-card:hover .is-full-tower,
  .cat-catalogue-results .cat-tile:hover .is-full-tower {
    background-color:#e5ecee;
  }
  .cat-tile-link:hover .cat-arrow span,.ed-text-link:hover span,
  .contact-storefront:hover span,.delivery-full-process:hover span {
    transform:translateX(3px);
  }
  .cat-solution-row:hover {
    box-shadow:inset 0 -3px 0 #f79a63;
  }
  .cat-solution-row:hover .cat-sector-cta {
    color:#ffd2b7;
    transform:translateX(3px);
  }
  .cat-solution-row:hover .cat-sector-photo {
    transform:scale(1.025);
  }
  .ed-feature:hover .ed-feature-image img,.ed-story:hover .ed-story-image img,
  .ed-related-card:hover .ed-story-image img {
    transform:scale(1.025);
  }
  .faqs summary:hover,.ci-question summary:hover,
  .cat-filter-disclosure>summary:hover,.cat-sidebar-mobile>summary:hover,.ed-toc-toggle:hover {
    color:var(--feedback-accent);
    background-color:var(--feedback-wash);
  }
  .cat-sidebar-links>a:not([aria-current]):hover,.ed-category-links>a:not([aria-current]):hover,
  .ed-toc li a:hover,.ci-toc a:hover {
    color:var(--feedback-accent);
    background-color:var(--feedback-wash);
  }
  .top .nav-parent:hover,.top .nav-parent[aria-expanded=true] {
    color:#ffc4a2;
  }
  .nav-pop a:hover {
    background-color:#ffffff17;
    color:#ffc4a2;
  }
  .menutoggle:hover {
    background-color:#ffffff12;
  }
  .film-control:hover {
    background-color:#244360;
    border-color:#fff;
  }
  .cat-gallery-thumb:not([aria-pressed=true]):hover {
    border-color:#a86545;
    background-color:#e9eff1;
  }
  .channel[href]:hover,.contact-directory a.channel:hover,.cat-contact-row dd a:hover,
  .contact-records dd a:hover,.file-picker-clear:hover,.cat-clear:hover {
    color:var(--feedback-accent);
  }
  .foot a:not(.wordmark):hover {
    color:#ffc4a2;
  }
  .ed-results-bar button:hover,.credit-copy a:hover,.ed-article-sources a:hover,
  .ci-prose a:hover,.cat-product-facts a:hover {
    color:var(--feedback-accent);
    text-decoration:underline;
    text-underline-offset:4px;
  }
  .briefgrid :is(input:not([type=checkbox]):not([type=file]),select,textarea):not(:disabled):hover,
  .cat-filter-fields :is(input,select):not(:disabled):hover,.ed-query>div:hover {
    border-color:#6d889d;
  }
}

/* Keyboard feedback follows the same surfaces without adding focus to plain copy. */
.ci-resource:focus-within,.ci-gallery>figure:focus-within {
  border-color:var(--feedback-line);
  box-shadow:0 4px 16px #142f4610;
}
.ci-resource:focus-within .ci-resource-body,.ci-programme>li:focus-within,
.ci-row:focus-visible,.cat-recommendation:focus-visible,.ed-story:focus-within,
.ed-related-card:focus-within,.ed-neighbours>a:focus-visible,
.home .home-journal-list>a:focus-visible {
  background-color:var(--feedback-wash);
}
.ci-resource:focus-within h3,.ci-programme>li:focus-within h3,.ci-row:focus-visible strong,
.cat-recommendation:focus-visible .cat-recommendation-name,
.ed-story:focus-within h3 a,.ed-related-card:focus-within h3 a,
.ed-feature:focus-within h2 a,.home .home-journal-list>a:focus-visible h3 {
  color:var(--feedback-accent);
}
.home .home-products .home-product-card:focus-visible,.cat-catalogue-results .cat-tile:focus-within {
  border-bottom-color:var(--feedback-accent);
}
.home .home-products .home-product-card:focus-visible h3,.cat-tile-link:focus-visible h3 {
  color:var(--feedback-accent);
}
.home .home-journal-feature:focus-visible h3,.ed-neighbours>a:focus-visible strong {
  color:var(--feedback-accent);
}
.home .home-products .home-product-card:focus-visible .is-full-tower,
.cat-catalogue-results .cat-tile:focus-within .is-full-tower {
  background-color:#e5ecee;
}
.home .home-products .home-product-card:focus-visible .home-product-copy>span,
.home .home-projects .field-grid a:focus-visible .home-case-link,
.ci-link:focus-visible,.cat-text-link:focus-visible,.ed-text-link:focus-visible,
.contact-storefront:focus-visible,.delivery-full-process:focus-visible {
  color:var(--feedback-accent);
}
.top .nav-parent:focus-visible,.nav-pop a:focus-visible {
  color:#ffc4a2;
  outline-color:#ffc4a2;
}
.nav-pop a:focus-visible {
  background-color:#ffffff17;
}
.faqs summary:focus-visible,.ci-question summary:focus-visible,
.cat-filter-disclosure>summary:focus-visible,.cat-sidebar-mobile>summary:focus-visible,
.ed-toc-toggle:focus-visible,.ed-toc li a:focus-visible,.ci-toc a:focus-visible {
  color:var(--feedback-accent);
  background-color:var(--feedback-wash);
}
.ed-query>div:focus-within {
  border-color:#376c91;
  box-shadow:0 0 0 1px #376c91;
}
.cat-gallery-thumb[aria-pressed=true]:is(:hover,:focus-visible) {
  border-color:#dc5723;
}
.cat-solution-row:focus-visible .cat-sector-photo {
  transform:scale(1.025);
}

/* Touch does not retain the older desktop image scaling after a tap. */
@media (hover:none),(pointer:coarse) {
  .home .home-products .home-product-card:hover .home-product-visual img,
  .home .home-journal-feature:hover img,.industry-card:hover img,
  .field-grid a:hover img,.cat-solution-row:hover .cat-sector-photo,
  .cat-catalogue-results .cat-tile:hover .cat-reference-photo,
  .cat-recommendation:hover img {
    transform:none;
  }
  .btn:hover,.s-btn:hover,.cat-action:hover,.cat-rfq .btn:hover,.cat-band .btn:hover,.cat-empty .btn:hover {
    transform:none;
  }
}

@media (prefers-reduced-motion:reduce) {
  :root {--feedback-time:0ms;}
  .btn:hover,.s-btn:hover,.cat-action:hover,.cat-rfq .btn:hover,.cat-band .btn:hover,.cat-empty .btn:hover {
    transform:none;
  }
  .ci-resource .ci-card-img img,.ed-feature-image img,.ed-story-image img,
  .cat-reference-photo,.home-product-visual img,.cat-sector-photo,
  .home-journal-photo img,.industry-card img,.field-grid img,
  .cat-recommendation img,.ci-row i,.cat-arrow span,.ed-text-link span,
  .contact-storefront span,.delivery-full-process span,.cat-sector-cta,
  .home .home-projects .home-case-link i,.home .home-products .home-product-copy i {
    transform:none!important;
    transition:none!important;
  }
}
