.ynsugar-price-hub-page {
  --yph-blue-900: #1f4e79;
  --yph-blue-800: #2f4468;
  --yph-blue-100: #eaf2f8;
  --yph-ink: #212121;
  --yph-muted: #65707c;
  --yph-line: #dce2e8;
  --yph-surface: #fff;
  --yph-gain: #237a4b;
  --yph-loss: #b33a3a;
  --yph-flat: #68717a;
  --yph-shadow: 0 1px 3px rgba(31, 78, 121, .09);
}

.ynsugar-price-hub-page .site-content {
  display: block;
  max-width: 1160px;
  padding: 32px 20px 72px;
}

.ynsugar-price-hub-page .content-area,
.ynsugar-price-hub-page .site-main {
  width: 100%;
}

.ynsugar-price-hub-page .inside-article {
  padding: 0;
  background: transparent;
}

.ynsugar-price-hub-page .entry-title {
  color: var(--yph-blue-800);
  font-size: 36px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: pretty;
}

.ynsugar-price-hub-page .entry-content {
  margin-top: 0;
}

.ynsugar-price-hub-page .entry-content:not(:first-child) {
  margin-top: 12px;
}

.yph {
  color: var(--yph-ink);
  font-variant-numeric: tabular-nums;
}

.yph *,
.yph *::before,
.yph *::after {
  box-sizing: border-box;
}

.yph button,
.yph select {
  font: inherit;
}

.yph-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--yph-line);
}

.yph-lede {
  max-width: 760px;
  margin: 0;
  color: var(--yph-muted);
  font-size: 17px;
  text-wrap: pretty;
}

.yph-updated {
  margin: 0 0 2px;
  color: var(--yph-muted);
  font-size: 13px;
  white-space: nowrap;
}

.yph-section {
  padding-top: 40px;
}

.yph-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.yph-section-heading h2,
.yph-methodology h2 {
  margin: 0 0 4px;
  color: var(--yph-blue-800);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.yph-section-heading p {
  margin: 0;
  color: var(--yph-muted);
  font-size: 13px;
}

.yph-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.yph-quote-card {
  min-width: 0;
  padding: 20px;
  background: var(--yph-surface);
  border: 1px solid var(--yph-line);
  border-radius: 4px;
  box-shadow: var(--yph-shadow);
}

.yph-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.yph-quote-top h3 {
  margin: 0;
  color: var(--yph-blue-800);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.yph-quote-top span {
  color: var(--yph-muted);
  font-size: 12px;
}

.yph-price {
  margin-bottom: 5px;
  color: var(--yph-ink);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.yph-price span {
  color: var(--yph-muted);
  font-size: 12px;
  font-weight: 500;
}

.yph-quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--yph-muted);
  font-size: 13px;
}

.yph-change {
  font-weight: 700;
}

.yph-change.is-gain { color: var(--yph-gain); }
.yph-change.is-loss { color: var(--yph-loss); }
.yph-change.is-flat { color: var(--yph-flat); }

.yph-controls,
.yph-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.yph-select {
  display: block;
  min-width: 144px;
}

.yph-select select {
  width: 100%;
  min-height: 40px;
  padding: 7px 34px 7px 12px;
  color: var(--yph-ink);
  background: var(--yph-surface);
  border: 1px solid #b9c4ce;
  border-radius: 4px;
}

.yph-segments {
  display: inline-flex;
  overflow: hidden;
  background: var(--yph-surface);
  border: 1px solid #b9c4ce;
  border-radius: 4px;
}

.yph-segments button {
  min-width: 48px;
  min-height: 38px;
  padding: 6px 11px;
  color: var(--yph-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--yph-line);
  cursor: pointer;
}

.yph-segments button:last-child {
  border-right: 0;
}

.yph-segments button[aria-pressed="true"] {
  color: #fff;
  background: var(--yph-blue-900, #1f4e79);
}

.yph button:focus-visible,
.yph select:focus-visible,
.yph a:focus-visible {
  outline: 3px solid rgba(31, 78, 121, .28);
  outline-offset: 2px;
}

.yph-chart-frame {
  position: relative;
  height: 390px;
  padding: 20px 14px 12px;
  background: var(--yph-surface);
  border: 1px solid var(--yph-line);
  border-radius: 4px;
  box-shadow: var(--yph-shadow);
}

.yph-chart {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: crosshair;
}

.yph-chart::after {
  content: "";
  position: absolute;
  inset: 18px 18px 42px 76px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 78, 121, .04), rgba(31, 78, 121, 0));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.yph-chart.is-hovering::after {
  opacity: 1;
}

.yph-chart-grid-line {
  position: absolute;
  height: 1px;
  background: #e7ebef;
}

.yph-chart-grid-label,
.yph-chart-date {
  position: absolute;
  color: var(--yph-muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.yph-chart-grid-label {
  transform: translate(-100%, -50%);
}

.yph-chart-segment {
  position: absolute;
  z-index: 2;
  height: 3px;
  background: var(--yph-blue-900, #1f4e79);
  border-radius: 2px;
  transform-origin: 0 50%;
}

.yph-chart-point {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  background: var(--yph-blue-900, #1f4e79);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(31, 78, 121, .25);
}

.yph-chart-crosshair,
.yph-chart-focus {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
  will-change: transform;
}

.yph-chart-crosshair {
  left: 0;
  width: 1px;
  background: rgba(31, 78, 121, .32);
}

.yph-chart-focus {
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: #fff;
  border: 3px solid var(--yph-blue-900, #1f4e79);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(31, 78, 121, .24);
}

.yph-chart-crosshair.is-visible,
.yph-chart-focus.is-visible {
  opacity: 1;
}

.yph-chart-date {
  bottom: 2px;
  transform: translateX(-50%);
}

.yph-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 176px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(31, 48, 70, .96);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(19, 35, 51, .2);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, visibility 140ms ease;
  will-change: left, top;
}

.yph-chart-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.yph-chart-tooltip strong,
.yph-chart-tooltip span {
  display: block;
}

.yph-chart-tooltip span {
  color: #dce6ef;
}

.yph-chart-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--yph-loss);
  background: var(--yph-surface);
}

.yph-table-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.yph-exchange-rate {
  margin: 0;
  color: var(--yph-ink);
  font-size: 13px;
  text-align: right;
}

.yph-exchange-rate strong {
  color: var(--yph-blue-800);
}

.yph-exchange-rate span {
  color: var(--yph-muted);
}

.yph-table-shell {
  overflow-x: auto;
  background: var(--yph-surface);
  border: 1px solid var(--yph-line);
  border-radius: 4px;
  box-shadow: var(--yph-shadow);
}

.yph-history-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.yph-load-more,
.yph-link-card {
  border-radius: 4px;
}

.yph-load-more {
  min-height: 40px;
  padding: 8px 18px;
  color: var(--yph-blue-900, #1f4e79);
  background: #fff;
  border: 1px solid #b9c4ce;
  cursor: pointer;
}

.yph-load-more:hover {
  background: #f1f5f8;
}

.yph table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.yph th,
.yph td {
  padding: 13px 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--yph-line);
  white-space: nowrap;
}

.yph th {
  color: var(--yph-blue-800);
  background: #f5f7f9;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.yph tbody tr:last-child td {
  border-bottom: 0;
}

.yph tbody tr:hover {
  background: #f8fbfd;
}

.yph .yph-number {
  text-align: right;
}

.yph-methodology {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--yph-blue-100);
  border-top: 3px solid var(--yph-blue-900);
}

.yph-methodology h2 {
  font-size: 20px;
}

.yph-methodology p {
  margin: 0 0 8px;
  font-size: 14px;
}

.yph-methodology p:last-child {
  margin-bottom: 0;
}

.yph-discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  gap: 20px;
}

.yph-article-list,
.yph-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yph-article-list li + li,
.yph-link-list li + li {
  border-top: 1px solid var(--yph-line);
}

.yph-article-list a,
.yph-link-list a {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  color: var(--yph-ink);
  text-decoration: none;
}

.yph-article-list strong,
.yph-link-list strong {
  color: var(--yph-blue-800);
  font-size: 15px;
  line-height: 1.35;
}

.yph-article-list span,
.yph-link-list span {
  color: var(--yph-muted);
  font-size: 12px;
}

.yph-link-card {
  padding: 18px 20px;
  background: var(--yph-surface);
  border: 1px solid var(--yph-line);
  box-shadow: var(--yph-shadow);
}

.yph-link-card h3 {
  margin: 0 0 8px;
  color: var(--yph-blue-800);
  font-size: 17px;
}

.yph-empty {
  padding: 32px;
  color: var(--yph-muted);
  background: #fff;
  border: 1px solid var(--yph-line);
}

@media (hover: hover) {
  .yph-segments button:hover:not([aria-pressed="true"]) {
    background: #f1f5f8;
  }
}

@media (max-width: 820px) {
  .yph-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .yph-quote-grid {
    grid-template-columns: 1fr;
  }

  .yph-quote-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .yph-quote-top {
    grid-column: 1 / -1;
  }

  .yph-quote-meta {
    display: grid;
    justify-items: end;
  }

  .yph-methodology {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .yph-discovery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ynsugar-price-hub-page .site-content {
    padding: 24px 14px 56px;
  }

  .ynsugar-price-hub-page .entry-title {
    font-size: 30px;
  }

  .yph-section-heading {
    display: block;
  }

  .yph-section-heading-controls .yph-controls {
    margin-top: 14px;
  }

  .yph-chart-frame {
    height: 330px;
    padding-inline: 8px;
  }

  .yph-select {
    flex: 1 1 140px;
  }

  .yph-segments {
    flex: 1 0 auto;
  }

  .yph-segments button {
    flex: 1;
  }

  .yph-table-toolbar .yph-select,
  .yph-exchange-rate {
    width: 100%;
  }

  .yph-exchange-rate {
    text-align: left;
  }

  .yph th,
  .yph td {
    padding: 12px;
  }

  .yph-methodology {
    margin-inline: -14px;
    padding: 22px 14px;
  }
}

@media (max-width: 420px) {
  .yph-quote-card {
    display: block;
  }

  .yph-quote-meta {
    display: flex;
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .yph button,
  .yph a,
  .yph select {
    transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
  }
}
