.article-sidebar-shell {
  max-width: 1240px;
}

.article-inline-hero {
  display: block;
  padding: 4px 0 clamp(22px, 2.6vw, 32px);
}

.article-inline-hero h1 {
  max-width: none !important;
  margin-top: 14px;
  font-size: clamp(3rem, 3.8vw, 3.85rem) !important;
  line-height: 0.99 !important;
  text-wrap: balance;
}

.article-inline-hero .hero-lead {
  max-width: 72rem;
  margin: 20px 0 0;
  color: #41423f !important;
  font-size: clamp(1.02rem, 1.35vw, 1.14rem) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

.article-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.article-sidebar-layout .entry-panel--flat {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-sidebar-layout .entry-content {
  display: block;
  color: #343532;
  font-size: 1.075rem;
  line-height: 1.78;
}

.article-sidebar-layout .entry-content p,
.article-sidebar-layout .entry-content li {
  color: #41423f;
  font-weight: 450;
}

.article-sidebar-layout .prose-flow > * + * {
  margin-top: 1.2rem;
}

.article-sidebar-layout .prose-flow h2 {
  margin-top: clamp(3.2rem, 7vw, 5.6rem);
}

.article-sidebar-layout .prose-flow h3 {
  margin-top: 2.2rem;
}

.article-sidebar-layout .article-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.article-sidebar-layout .article-table-wrap table {
  min-width: 680px;
  border-collapse: collapse;
}

.article-sidebar-layout .article-table-wrap th,
.article-sidebar-layout .article-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-sidebar-layout .article-table-wrap th {
  background: var(--brand-deep);
  color: #fff;
}

.article-sidebar-layout .article-toc {
  width: min(100%, 560px);
  margin: 38px 0 50px !important;
  padding: 0 !important;
  border: 2px solid rgba(70, 73, 76, 0.42) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 2px 5px rgba(30, 35, 42, 0.06);
  overflow: hidden;
}

.article-sidebar-layout .article-toc > summary {
  display: flex !important;
  min-height: 108px;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 18px 28px !important;
  list-style: none;
  color: #25344d !important;
  cursor: pointer;
  font-family: var(--font-sans) !important;
  font-size: clamp(1.65rem, 2.5vw, 2rem) !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.article-sidebar-layout .article-toc > summary::-webkit-details-marker {
  display: none;
}

.article-sidebar-layout .article-toc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 2px solid rgba(91, 88, 86, 0.58);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Cg fill='none' stroke='%23939597' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M10 7h17M10 16h17M10 25h17'/%3E%3C/g%3E%3Cg fill='%23939597'%3E%3Ccircle cx='4' cy='7' r='1.8'/%3E%3Ccircle cx='4' cy='16' r='1.8'/%3E%3Ccircle cx='4' cy='25' r='1.8'/%3E%3Cpath d='M34 8l4 5h-8zM34 24l-4-5h8z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-family: var(--font-sans);
  font-size: 0;
  font-weight: 400;
  line-height: 1;
  transform: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.article-sidebar-layout .article-toc[open] .article-toc__icon {
  border-color: #9a5d24;
  background-color: rgba(173, 103, 32, 0.1);
  transform: none;
}

.article-sidebar-layout .article-toc__body {
  padding: 2px 28px 26px !important;
}

.article-sidebar-layout .article-toc > summary:focus-visible {
  outline: 3px solid rgba(15, 93, 88, 0.18);
  outline-offset: 4px;
}

.article-sidebar-layout .article-faq-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(41, 38, 33, 0.2) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.article-sidebar-layout .article-faq-item:first-of-type {
  margin-top: 28px !important;
  border-top: 1px solid rgba(41, 38, 33, 0.2) !important;
}

.article-sidebar-layout .article-faq-item > summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  list-style: none;
  color: #292621;
  cursor: pointer;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.38;
}

.article-sidebar-layout .article-faq-item > summary::-webkit-details-marker {
  display: none;
}

.article-sidebar-layout .article-faq-item > summary:focus-visible {
  outline: 3px solid rgba(173, 103, 32, 0.18);
  outline-offset: 4px;
}

.article-sidebar-layout .article-faq-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(173, 103, 32, 0.1);
  color: #9a5d24;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.article-sidebar-layout .article-faq-item[open] .article-faq-icon {
  background: rgba(173, 103, 32, 0.16);
  transform: rotate(45deg);
}

.article-sidebar-layout .article-faq-answer {
  max-width: 48rem;
  padding: 0 52px 24px 2px;
}

.article-sidebar-layout .article-faq-answer > :first-child {
  margin-top: 0;
}

.article-rfq {
  position: sticky;
  top: 116px;
  padding: 28px;
  border: 1px solid rgba(27, 28, 29, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(34, 28, 20, 0.12);
}

.article-rfq__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-rfq h2 {
  margin-top: 10px;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.article-rfq__intro {
  margin-top: 14px;
  color: #4b4c49;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.article-rfq__form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.article-rfq__form label,
.article-rfq__form label span {
  display: grid;
  gap: 6px;
}

.article-rfq__form label span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-rfq__form input,
.article-rfq__form textarea {
  width: 100%;
  border: 1px solid rgba(27, 28, 29, 0.16);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  line-height: 1.4;
}

.article-rfq__form textarea {
  resize: vertical;
}

.article-rfq__form input:focus,
.article-rfq__form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 93, 88, 0.12);
}

.article-rfq__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.article-rfq__form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.article-rfq__form button:hover,
.article-rfq__form button:focus-visible {
  background: var(--brand-deep);
}

.article-rfq__note {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.article-rfq__alert {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #edf7f2;
  color: #24533e;
  font-size: 0.82rem;
  line-height: 1.5;
}

.article-rfq__alert--error {
  background: #fff0ec;
  color: #7c3028;
}

.article-rfq__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

@media (max-width: 980px) {
  .article-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .article-rfq {
    position: static;
    max-width: 680px;
    margin: 24px auto 0;
  }

  .article-inline-hero h1 {
    max-width: none !important;
  }

}

/* Keep the article project CTA stable after WordPress strips layout display
   declarations from inline styles and inserts a <br> between adjacent links. */
.article-sidebar-layout .article-project-cta__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  line-height: normal;
}

.article-sidebar-layout .article-project-cta__actions > br {
  display: none !important;
}

.article-sidebar-layout .article-project-cta__actions > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-sizing: border-box;
  line-height: 1.25 !important;
  text-align: center;
}

@media (max-width: 640px) {
  body.single-post .floating-contact-bar,
  body.single-post .floating-actions {
    display: none !important;
  }

  .article-sidebar-layout .article-toc {
    width: 100%;
    margin: 32px 0 42px !important;
  }

  .article-sidebar-layout .article-toc > summary {
    min-height: 82px;
    padding: 14px 18px !important;
    font-size: 1.35rem !important;
  }

  .article-sidebar-layout .article-toc__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    background-size: 34px 27px;
  }

  .article-sidebar-layout .article-toc__body {
    padding: 0 18px 22px !important;
  }

  .article-sidebar-layout .article-faq-item > summary {
    min-height: 68px;
    gap: 16px;
    padding: 17px 0;
  }

  .article-sidebar-layout .article-faq-answer {
    padding: 0 0 20px;
  }

  .article-inline-hero {
    padding-bottom: 24px;
  }

  .article-inline-hero h1 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 11.5vw, 3.15rem) !important;
    line-height: 1.02 !important;
  }

  .article-inline-hero .hero-lead {
    margin-top: 18px;
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .article-rfq {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .article-rfq__row {
    grid-template-columns: 1fr;
  }

  .article-sidebar-layout .article-project-cta__actions {
    flex-direction: column;
  }

  .article-sidebar-layout .article-project-cta__actions > a {
    width: 100%;
  }
}
