/* ==========================================================================
   Bhavi Plast — navigation + floating-button stylesheet for the article pages
   Used by: Article-Counter-Cross, Article-FRP-Codes, Article-FRP-Failure,
            Article-Fan-Curve, Article-Resin-Selection, Article-Scrubber-Sizing

   The rules in section 2 are copied unchanged, in their original order, from
   css/style.css (top info bar, navbar, dropdown menus, mobile menu, WhatsApp /
   call buttons) so the article pages get exactly the same menu as every other
   page.  Only those rules are included: the article body keeps the styling it
   already had.  Load order on article pages: article.css, then this file.
   ========================================================================== */

/* ---- 1. page offsets for the fixed top bar (40px) + navbar (84px) ---- */
@keyframes fabIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
body { margin: 0; padding-top: 124px; }
html { scroll-padding-top: 130px; }               /* anchor jumps (table of contents) land below the fixed bars */
.s003 a, .s007 a, .fabs a { text-decoration: none; }   /* same as the global link rule on the other pages */
.s007, .fabs { font-family: "IBM Plex Sans", "Segoe UI", sans-serif; }   /* the other pages inherit this from <body>; the article body font is left as it was */

/* ---- 2. copied from css/style.css ---- */
@layer site {
  [data-bp] a.is-btn { transition: transform .2s cubic-bezier(.2,0,0,1), background-color .24s ease, border-color .24s ease, box-shadow .24s ease; }
  [data-bp] a.is-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(23,51,108,.22); }
  [data-bp] .navbar { transition: height .3s cubic-bezier(.32,.72,0,1), box-shadow .3s ease, background-color .3s ease; }
  [data-bp] .navbar.compact { height: 62px; box-shadow: 0 4px 24px rgba(23,51,108,.12); background: rgba(255,255,255,.93); backdrop-filter: saturate(160%) blur(10px); }
  [data-bp] .navbar.compact img { height: 38px; }
  [data-bp] .navbar img { transition: height .3s cubic-bezier(.32,.72,0,1); }
  [data-bp] .fab .fab-lbl { max-width: 0; opacity: 0; padding-right: 0; transition: max-width .38s cubic-bezier(.32,.72,0,1), opacity .25s ease, padding-right .38s cubic-bezier(.32,.72,0,1); }
  [data-bp] .fab:hover .fab-lbl { max-width: 220px; opacity: 1; padding-right: 22px; }
  [data-bp] .fab { transition: transform .2s cubic-bezier(.2,0,0,1), box-shadow .2s ease; }
  [data-bp] .fab:hover { transform: translateY(-2px); }
  [data-bp] .fabs > a { animation: fabIn .6s cubic-bezier(.16,1,.3,1) both; }
  [data-bp] .fabs > a:nth-child(1) { animation-delay: 1.1s; }
  [data-bp] .fabs > a:nth-child(2) { animation-delay: 1.25s; }
}
.s003 {
  height: 40px;
  flex-shrink: 0;
  background: #17336C;
  color: #AFC0DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-family: 'IBM Plex Mono', monospace;
}
.s004 {
  display: flex;
  gap: 28px;
  align-items: center;
}
.s005 { color: #AFC0DA; }
.s006 { color: #FFFFFF; }
.s007 {
  height: 84px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid #D9E2EF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}
.s008 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #17336C;
}
.s009 {
  height: 46px;
  width: auto;
  display: block;
}
.s010 {
  display: flex;
  flex-direction: column;
}
.s011 {
  font-family: 'Instrument Serif', serif;
  font-size: 25px;
  line-height: 1;
}
.s012 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #5C6D8A;
  margin-top: 4px;
}
.s013 {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.s014 { color: #1F3157; }
.s015 {
  background: #17336C;
  color: #FFFFFF;
  padding: 13px 22px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 14px;
}
.s154 {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.s155 {
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 26px;
  background: #17336C;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(23,51,108,.28);
  overflow: hidden;
}
.s156 {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s157 {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.s158 {
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 26px;
  background: #FFFFFF;
  color: #17336C;
  border: 1px solid #D9E2EF;
  box-shadow: 0 10px 28px rgba(23,51,108,.16);
  overflow: hidden;
}
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .navbar { position: sticky; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; margin: 0; background: transparent;
    border: 1px solid #D9E2EF; border-radius: 3px; cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: #17336C; transition: transform .28s cubic-bezier(.32,.72,0,1), opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none !important; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch !important; gap: 0 !important;
    background: #FFFFFF; border-bottom: 1px solid #D9E2EF; box-shadow: 0 18px 30px rgba(23,51,108,.14);
    padding: 8px 32px 24px; max-height: calc(100vh - 124px); overflow-y: auto;
  }
  .nav-links.is-open { display: flex !important; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid #EAEFF7; font-size: 16px !important; }
  .nav-links a.is-btn { margin-top: 18px; text-align: center; border-bottom: 0; padding: 15px 22px; }
}
@media (max-width: 1024px) {
  .s003 { height: auto; min-height: 40px; padding: 8px 32px; flex-wrap: wrap; gap: 4px 20px; }
  .s003 { padding: 0 32px 0 32px; }
  .s007 { padding: 0 32px 0 32px; }
}
@media (max-width: 640px) {
  .s003 { padding: 8px 20px; justify-content: flex-end; }
  .s003 > div:first-child { display: none; }
  .s003 > div { flex-wrap: wrap; gap: 4px 16px !important; justify-content: flex-end; }
  .s003 { padding: 0 20px 0 20px; }
  .s007 { padding: 0 20px 0 20px; }
}
@media (max-width: 1024px) {
  .fabs { right: 16px !important; bottom: 16px !important; }
}
@media (max-width: 1180px) {
  .nav-links a[aria-current="page"] { font-weight: 600; }
}
@media (max-width: 640px) {
  .nav-links { padding: 8px 20px 24px; }
}
@media (max-width: 640px) {
  *:has(> a.is-btn) { flex-wrap: wrap; }
  *:has(> a.is-btn) > a.is-btn { flex: 1 1 auto; text-align: center; }
}
.industries-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.industries-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.dropdown-arrow {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.industries-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.industries-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 15px 40px rgba(0,0,0,0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99999;
  transition:
  opacity 0.2s ease,
  visibility 0.2s ease;
}
.industries-dropdown:hover .industries-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.industries-menu a {
  display: block;
  padding: 13px 18px;
  color: #111;
  background: #fff;
  text-decoration: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
  background 0.2s ease,
  color 0.2s ease,
  padding-left 0.2s ease;
}
.industries-menu a:hover {
  background: #f4f7f8;
  color: #007f78;
  padding-left: 23px;
}
@media (max-width: 767px) {
  .industries-dropdown {
    width: 100%;
    display: block;
  }
  .industries-link {
    width: 100%;
    justify-content: space-between;
  }
  .industries-menu {
    position: static;
    width: 100%;
    margin-top: 5px;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .industries-dropdown:hover .industries-menu { display: block; }
  .industries-menu a {
    padding: 11px 18px;
    font-size: 11px;
  }
  .industries-menu a:hover { padding-left: 22px; }
}
.s003 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-sizing: border-box;
}
.s007 {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}
.s007 { background: #FFFFFF; }
@media (max-width: 768px) {
  .s003 {
    padding-left: 12px;
    padding-right: 12px;
  }
  .s007 {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.industries-dropdown:has(:focus-visible) .industries-menu,
.industries-dropdown.is-open .industries-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.industries-dropdown:has(:focus-visible) .dropdown-arrow, .industries-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }
.industries-menu a:focus-visible {
  background: #f4f7f8;
  color: #007f78;
  outline: none;
}
.industries-link:focus-visible {
  outline: 2px solid #17336C;
  outline-offset: 4px;
}
@media (max-width: 1180px) {
  .industries-dropdown {
    display: block;
    width: 100%;
  }
  .nav-links .industries-link {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links .dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    margin: -12px -8px -12px 0;
    align-self: stretch;
    font-size: 14px;
  }
  .nav-links .industries-menu {
    position: static;
    display: none;
    width: 100%;
    transform: none;
    margin: 0;
    padding: 0 0 6px;
    background: #F7F9FC;
    border: 0;
    border-bottom: 1px solid #EAEFF7;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .industries-dropdown:hover .industries-menu { display: none; }
  .industries-dropdown.is-open .industries-menu, .industries-dropdown.is-open:hover .industries-menu { display: block; }
  .industries-dropdown:hover .dropdown-arrow { transform: none; }
  .industries-dropdown.is-open .dropdown-arrow, .industries-dropdown.is-open:hover .dropdown-arrow { transform: rotate(180deg); }
  .nav-links .industries-menu a {
    padding: 12px 16px;
    font-size: 12px !important;
    line-height: 1.4;
    background: transparent;
    border-bottom: 1px solid #EAEFF7;
  }
  .nav-links .industries-menu a:last-child { border-bottom: 0; }
  .nav-links .industries-menu a:hover,
  .nav-links .industries-menu a:focus-visible {
    background: #EEF3FA;
    padding-left: 20px;
  }
}
