/* ============================================================================
   SorbiTech R2 â Components  (components.css)
   Footer, contact form, article layout, pagination.
   V8.3 brand identity. Uses tokens defined in main.css.
   ========================================================================== */

/* ââ Footer (navy anchor) âââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-footer { background: var(--st-blue-900); color: rgba(255,255,255,0.78); }

.st-footer__enquiry {
  background: rgba(255,255,255,0.04);
  padding-block: var(--st-space-6);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.st-footer__enquiry-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--st-space-5); flex-wrap: wrap;
}
.st-footer__enquiry-text { display: flex; flex-direction: column; gap: 4px; }
.st-footer__enquiry-heading {
  display: block; font-size: 1.15rem; font-weight: 600;
  color: #fff;
}
.st-footer__enquiry-sub {
  display: block; font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.st-footer__main { padding-block: var(--st-space-8); }
.st-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--st-space-7);
  align-items: start;
}
@media (max-width: 1100px) { .st-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px)  { .st-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .st-footer__grid { grid-template-columns: 1fr; } }

.st-footer__col--brand { display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-footer__logo img {
  margin-bottom: var(--st-space-3);
  filter: brightness(0) invert(1);
  height: auto; max-width: 360px; width: 100%;
}
.st-footer__tagline {
  font-family: var(--st-font-tagline);
  font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--st-blue-300);
  margin-bottom: var(--st-space-2);
}
.st-footer__positioning {
  font-size: 0.9rem; line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--st-space-3);
  max-width: 320px;
}
.st-footer__email {
  font-size: 0.9rem; font-weight: 600;
  color: var(--st-blue-300);
  text-decoration: none;
}
.st-footer__email:hover { color: #fff; }

.st-footer__col-heading {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; /* V9 decision #18: footer column labels = White uppercase */
  margin-bottom: var(--st-space-4);
}
.st-footer__links { display: flex; flex-direction: column; gap: var(--st-space-2); }
.st-footer__links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color var(--st-transition);
}
.st-footer__links a:hover { color: #fff; text-decoration: none; }

/* ââ Four-entity group strip âââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-footer__group-strip {
  background: rgba(0,0,0,0.18);
  padding-block: var(--st-space-5);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.st-footer__group-inner {
  display: flex; align-items: center;
  gap: var(--st-space-6); flex-wrap: wrap;
}
.st-footer__group-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.st-footer__group-brands {
  display: flex;
  gap: var(--st-space-3);
  flex-wrap: wrap;
}
.st-footer__brand {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--st-space-3) var(--st-space-4);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  color: #fff;
  text-decoration: none;
  transition: background var(--st-transition), border-color var(--st-transition);
}
.st-footer__brand:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.st-footer__brand--sorbitech {
  background: rgba(111,160,239,0.15); /* Sky at 15% â V9 Â§14.5 current-entity tint */
  border-color: var(--st-sky);        /* V9 Â§14.5: Sky border, not Blue */
}
.st-footer__brand strong {
  font-size: 0.95rem; font-weight: 600;
  color: #fff;
}
.st-footer__brand span {
  font-size: 0.75rem;
  color: var(--st-blue-300);
}

/* ââ Legal strip ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-footer__legal {
  background: rgba(0,0,0,0.25);
  padding-block: var(--st-space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.st-footer__legal .st-container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--st-space-3);
}
.st-footer__copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.st-footer__legal-links { display: flex; gap: var(--st-space-4); }
.st-footer__legal-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.st-footer__legal-links a:hover { color: rgba(255,255,255,0.85); }

/* ââ Contact form âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-form { max-width: 640px; }
.st-form__row--2col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--st-space-4);
}
@media (max-width: 560px) { .st-form__row--2col { grid-template-columns: 1fr; } }

.st-form__field { margin-bottom: var(--st-space-4); }
.st-form__label {
  display: block;
  font-size: 0.9rem; font-weight: 600;
  color: var(--st-gray-800);
  margin-bottom: var(--st-space-2);
}
.st-form__label span[aria-hidden] {
  color: var(--st-error);
  margin-left: 2px;
}
.st-form__input,
.st-form__textarea {
  display: block; width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--st-font-sans);
  font-size: 1rem;
  color: var(--st-gray-800);
  background: var(--st-white);
  border: 1.5px solid var(--st-gray-300);
  border-radius: var(--st-radius);
  transition: border-color var(--st-transition), box-shadow var(--st-transition);
  outline: none;
}
.st-form__input::placeholder,
.st-form__textarea::placeholder { color: var(--st-gray-400); }
.st-form__input:focus,
.st-form__textarea:focus {
  border-color: var(--st-blue-500);
  box-shadow: 0 0 0 3px rgba(47,102,196,0.15);
}
.st-form__textarea { min-height: 140px; resize: vertical; }
.st-form__honeypot {
  position: absolute;
  top: -9999px; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.st-form__submit { margin-top: var(--st-space-4); }
.st-form__status {
  margin-top: var(--st-space-4);
  padding: var(--st-space-3) var(--st-space-4);
  font-size: 0.95rem;
  border-left: 4px solid;
}
/* Banner body text always Dark Gray per palette-usage-spec.md rule #6.
   Colour stays on the left border (already set above, 4px solid). */
.st-form__status--success { border-color: var(--st-green);     background: var(--st-off-white); color: var(--st-dark-gray); }
.st-form__status--error   { border-color: var(--st-error-red); background: var(--st-off-white); color: var(--st-dark-gray); }

/* V9 Â§14.2 Rule 8: error + focused â Red 3px ring replaces Blue (prevents Blue-on-Red collision) */
.st-form__input--error:focus,
.st-form__input[aria-invalid="true"]:focus,
.st-form__textarea--error:focus,
.st-form__textarea[aria-invalid="true"]:focus {
  border-color: var(--st-error-red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
  outline: 3px solid var(--st-error-red);
  outline-offset: 2px;
}
/* V9 Â§14.2 Rule 7: required asterisk White on Navy surfaces */
.st-hero--capture .st-form__label span[aria-hidden],
.st-contact-cta .st-form__label span[aria-hidden],
.st-footer .st-form__label span[aria-hidden] { color: var(--st-white); }

/* ââ Article layout âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-article__header {
  background: var(--st-off-white);
  border-bottom: 3px solid var(--st-blue-500);
  padding-block: var(--st-space-7);
}
.st-article__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--st-gray-800);
}
.st-article__meta {
  font-family: var(--st-font-sans);
  font-size: 0.875rem;
  color: var(--st-gray-600);
  margin-top: var(--st-space-3);
}
.st-article__hero { padding-block: var(--st-space-5) 0; }
.st-article__hero img {
  width: 100%; max-height: 460px;
  object-fit: cover;
}
.st-article__body { padding-block: var(--st-space-7); }

/* ââ Capture / funnel page âââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-main--funnel .st-section--compat { padding-block: var(--st-space-7); }

/* ââ Pagination âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.st-pagination,
.st-posts-navigation,
.nav-links {
  display: flex; justify-content: center;
  gap: var(--st-space-2);
  margin-top: var(--st-space-7);
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--st-gray-300);
  background: var(--st-white);
  font-size: 0.9rem;
  color: var(--st-gray-800);
  text-decoration: none;
  transition: background var(--st-transition), border-color var(--st-transition), color var(--st-transition);
}
.page-numbers:hover {
  background: var(--st-blue-50);
  border-color: var(--st-blue-500);
  color: var(--st-blue-700);
}
.page-numbers.current {
  background: var(--st-blue-500);
  border-color: var(--st-blue-500);
  color: var(--st-white);
  font-weight: 600;
}

/* ââ WP admin meta table styling âââââââââââââââââââââââââââââââââââââââââââââ */
.sbc-meta-table th { vertical-align: top; padding-top: 12px !important; }

/* ââ Responsive footer âââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
@media (max-width: 768px) {
  .st-footer__enquiry-inner { flex-direction: column; align-items: flex-start; }
  .st-footer__group-inner   { flex-direction: column; align-items: flex-start; }
  .st-footer__legal .st-container { flex-direction: column; }
}

/* ââ Inline content photographs (sbc_image) âââââââââââââââââââââââââââââ
   Real product / system / app / industry photos embedded in entity body
   content. Default behaviour: SMALL + RIGHT-FLOATED so prose wraps around
   it (industry-standard editorial datasheet placement, similar to Linde /
   BASF / GEA product pages). Clears at the next section. */
.st-content-photo, .st-figure.st-content-photo,
figure.st-content-photo, figure.wp-block-image.st-content-photo {
  float: right;
  clear: right;
  width: 38%;
  max-width: 360px;
  min-width: 240px;
  margin: 8px 0 16px 24px;
  padding: 0;
  background: transparent;
  text-align: center;
}
.st-content-photo img,
.st-figure.st-content-photo img,
figure.st-content-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  box-shadow: 0 4px 14px rgba(15, 42, 92, 0.06);
  background: var(--st-off-white, #F5F5F5);
}
.st-content-photo figcaption,
.st-figure.st-content-photo figcaption,
figure.st-content-photo figcaption {
  margin-top: 8px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--st-light-gray, #6B6B6B);
  font-style: normal;
  text-align: left;
}

/* On narrow viewports (phones, small tablet portrait) the float would
   crush prose â collapse back to a centered block image. */
@media (max-width: 640px) {
  .st-content-photo, .st-figure.st-content-photo,
  figure.st-content-photo, figure.wp-block-image.st-content-photo {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
  }
  .st-content-photo figcaption { text-align: center; }
}

/* Make sure section ends clear the float. */
.st-section, .r2-readable, .st-prose { overflow-wrap: break-word; }
.st-section::after, .r2-readable::after, .st-prose::after {
  content: ""; display: table; clear: both;
}

/* ââ Card image: full-width inside the card, no surrounding gap âââââââ */
.st-card { padding: 0; }
.st-card__image { margin: 0; padding: 0; }
.st-card__image img { display: block; }

/* ââ Sticky info-rail components (single-application sidebar, single-industry sidebar) ââ */
.st-rail-figure {
  margin: 0;
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  background: var(--st-white, #fff);
  box-shadow: 0 4px 14px rgba(15, 42, 92, 0.06);
}
.st-rail-figure img { display: block; width: 100%; height: auto; }
.st-rail-figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--st-light-gray, #6B6B6B);
  border-top: 1px solid var(--st-hairline-gray, #D0D5DD);
}

.st-rail-list {
  background: var(--st-white, #fff);
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 42, 92, 0.06);
}
.st-rail-list__title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--st-dark-gray, #434343);
  text-transform: uppercase;
}
.st-rail-list ul { list-style: none; margin: 0; padding: 0; }
.st-rail-list li { padding: 8px 0; border-bottom: 1px solid var(--st-hairline-gray, #D0D5DD); }
.st-rail-list li:last-child { border-bottom: 0; }
.st-rail-list li a {
  color: var(--st-blue, #2F66C4);
  text-decoration: none;
  font-size: 0.95rem;
}
.st-rail-list li a:hover { text-decoration: underline; color: var(--st-navy, #0F2A5C); }
.st-rail-list__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--st-blue, #2F66C4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Block button â used in rail under spec-card/list as final CTA */
.st-btn--block { display: block; width: 100%; text-align: center; }

/* ââ Rail capability card ââââââââââââââââââââââââââââââââââââââââââââââ
   Industry / system rails use this when the content is a chip-cloud of
   capability scope (media families, system categories, engagement modes).
   It's factual scope, NOT customer-count or claim-based metric.           */
.st-rail-capability {
  background: var(--st-white, #fff);
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 42, 92, 0.06);
}
.st-rail-capability__title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--st-dark-gray, #434343);
  text-transform: uppercase;
}
.st-rail-capability__group { margin: 0 0 14px; }
.st-rail-capability__group:last-child { margin-bottom: 0; }
.st-rail-capability__group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-light-gray, #6B6B6B);
  margin-bottom: 8px;
}
.st-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-chip-cloud li,
.st-chip-cloud a {
  display: inline-block;
  font-size: 0.83rem;
  line-height: 1.2;
  padding: 5px 10px;
  border: 1px solid var(--st-hairline-gray, #D0D5DD);
  border-radius: 4px;
  background: var(--st-off-white, #F5F5F5);
  color: var(--st-dark-gray, #434343);
  text-decoration: none;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.st-chip-cloud a:hover {
  border-color: var(--st-blue, #2F66C4);
  color: var(--st-blue, #2F66C4);
  background: var(--st-white, #fff);
}
.st-rail-capability__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--st-blue, #2F66C4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ââ Specialist Contact Card ââââââââââââââââââââââââââââââââââââââââââ
   The dark anchor of every sticky rail. Dark Navy panel that visually
   stops the rail and gives the visitor a focused, sector-framed contact
   path. Inspired by GEA / BASF / Linde sector specialist sidebars: one
   panel, one route, no clutter.                                          */
.st-rail-specialist {
  background: var(--st-navy, #0F2A5C);
  color: var(--st-white, #fff);
  padding: 22px 22px 24px;
  border-radius: 0;
  position: relative;
  box-shadow: 0 8px 22px rgba(15, 42, 92, 0.16);
  overflow: hidden;
}
.st-rail-specialist::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--st-sky, #6FA0EF);
}
.st-rail-specialist__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-sky, #6FA0EF);
  margin-bottom: 8px;
}
.st-rail-specialist__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--st-white, #fff);
  font-weight: 600;
}
.st-rail-specialist__sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.st-rail-specialist__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-rail-specialist__action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--st-white, #fff);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.st-rail-specialist__action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--st-sky, #6FA0EF);
  color: var(--st-white, #fff);
}
.st-rail-specialist__action-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  color: var(--st-sky, #6FA0EF);
}
.st-rail-specialist__action-icon svg { width: 18px; height: 18px; display: block; }
.st-rail-specialist__action-label { flex: 1; }

/* ââ On This Page navigator (sticky TOC) ââââââââââââââââââââââââââââââ
   The ONE element in every entity-page sticky rail. Matches the BASF /
   GEA / Linde / Honeywell UOP sidebar TOC pattern: vertical list of the
   page's sections, active item bolded with a filled bullet, smooth scroll
   on click, JS-driven active highlight on scroll.

   Visual: 1px Blue accent rail on the left, generous vertical rhythm,
   labels in Dark Gray, active item in Blue + bold. No background panel
   â feels light and editorial, lets the rail breathe.                   */
.st-otp {
  position: relative;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--st-hairline-gray, #D0D5DD);
}
.st-otp__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-light-gray, #6B6B6B);
  margin-bottom: 14px;
}
.st-otp__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: otp-step;
}
.st-otp__item {
  margin: 0;
  padding: 0;
}
.st-otp__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  text-decoration: none;
  color: var(--st-dark-gray, #434343);
  font-size: 0.94rem;
  line-height: 1.4;
  transition: color 140ms ease;
}
.st-otp__bullet {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--st-hairline-gray, #D0D5DD);
  background: var(--st-white, #fff);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.st-otp__label { flex: 1; }
.st-otp__link:hover { color: var(--st-blue, #2F66C4); }
.st-otp__link:hover .st-otp__bullet { border-color: var(--st-blue, #2F66C4); }

/* Active state â driven by JS adding .is-active on the matching <li>     */
.st-otp__item.is-active > .st-otp__link {
  color: var(--st-blue, #2F66C4);
  font-weight: 600;
}
.st-otp__item.is-active > .st-otp__link .st-otp__bullet {
  background: var(--st-blue, #2F66C4);
  border-color: var(--st-blue, #2F66C4);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(47, 102, 196, 0.18);
}
.st-otp__item.is-active::before {
  /* Pulled-out accent against the left rail of .st-otp                   */
  content: "";
  position: absolute;
  left: -1px;
  width: 3px;
  margin-top: 9px;
  height: 32px;
  background: var(--st-blue, #2F66C4);
  border-radius: 2px;
}
.st-otp__item { position: relative; }

/* On compact screens the rail collapses to a flat single column. Hide
   the TOC there â the page-bottom CTA + floating widget cover navigation. */
@media (max-width: 1023px) {
  .st-otp { display: none; }
}
