/* Compact sticky Market Pulse at the top of the page + Large Smart Analysis entry in Screening */
#page-content > .market-pulse-bottom{
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 32;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 8px 0 10px;
  padding: 0;
  border: 0;
}

#page-content > .market-pulse-bottom > #marketPulse{
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  min-height: 28px;
  border-radius: 10px;
  background: rgba(6, 16, 24, 0.94);
  backdrop-filter: blur(12px);
}

#page-content .pulse-analysis-entry{
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  margin: 0 0 12px;
}

#page-content .pulse-analysis-square{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(88, 199, 255, 0.42);
  background: linear-gradient(135deg, rgba(18, 35, 61, 0.96), rgba(8, 17, 32, 0.96));
  color: var(--rt-text, #edf6ff);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

/* 7.80.116: proportional smart-analysis button — a centred pill the size of one toolbar button, caption underneath. */
#page-content [data-daily-panel="future"] .pulse-analysis-entry{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 12px;
}

#page-content [data-daily-panel="future"] .pulse-analysis-square{
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  min-width: 220px;
  height: 54px;
  min-height: 54px;
  padding: 10px 22px;
  border-radius: 16px;
}

#page-content .pulse-analysis-square:hover,
#page-content .pulse-analysis-square:focus-visible{
  border-color: rgba(88, 199, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(88, 199, 255, 0.16), 0 12px 26px rgba(0, 0, 0, 0.30);
  outline: none;
  transform: translateY(-1px);
}

#page-content .pulse-analysis-icon{
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rt-accent, #58c7ff);
}

#page-content .pulse-analysis-icon svg{
  width: 22px;
  height: 22px;
  display: block;
}

#page-content .pulse-analysis-label{
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  border: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--rt-text, #edf6ff);
  letter-spacing: -0.01em;
}

#page-content .pulse-analysis-caption{
  display: none;
}

#page-content [data-daily-panel="future"] .pulse-analysis-caption{
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--rt-muted, #b4cce6);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-content .pulse-analysis-note{
  flex: 1 1 100%;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 198, 109, 0.32);
  background: rgba(38, 26, 8, 0.78);
  color: #ffe3b0;
  font-size: 12px;
  line-height: 1.65;
}

#page-content .pulse-analysis-note[hidden]{
  display: none !important;
}

@media (max-width: 640px){
  #page-content > .market-pulse-bottom{
    gap: 5px;
    margin: 4px 0 6px;
  }
  #page-content [data-daily-panel="future"] .pulse-analysis-square{
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 8px 14px;
    border-radius: 12px;
  }
  #page-content .pulse-analysis-label{
    font-size: 14.5px;
  }
  #page-content [data-daily-panel="future"] .pulse-analysis-caption{
    font-size: 11px;
  }
}

/* Layout only: English ad-slot decoration and commodity row labels. */
html[lang|="en"] #page-content .ad-slot::after {
  right: 0;
  bottom: 0;
  max-width: 100%;
  max-height: 100%;
  filter: none;
  pointer-events: none;
}

/* Wrap both the product name and its full benchmark/contract warning. */
#page-content #commodGrid .cl-table tbody th[scope="row"] {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
#page-content #commodGrid .cl-table tbody th[scope="row"] small {
  max-inline-size: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

/* Conversion-rate, source and comparison notes must also remain readable. */
#page-content #commodGrid .cl-table tbody td {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
#page-content #commodGrid .cl-table tbody td small {
  max-inline-size: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

