/**
 * GiaTieu global UI layer.
 * Loaded after style.css; keep this file as one clean pass without per-page polish overrides.
 */

.site-header__topline.gt-ticker-shell {
  padding: 0;
  border-bottom: 0;
  background: linear-gradient(90deg, #1f3318 0%, #2a4a22 50%, #1f3318 100%);
}

.gt-ticker {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.gt-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 8px 0;
  white-space: nowrap;
  animation: gt-ticker-scroll 48s linear infinite;
  will-change: transform;
}

.gt-ticker:hover .gt-ticker__track,
.gt-ticker:focus-within .gt-ticker__track {
  animation-play-state: paused;
}

@keyframes gt-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

.gt-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 246, 224, 0.94);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.gt-ticker__item:hover {
  color: #fff;
}

.gt-ticker__name {
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid rgba(255, 246, 224, 0.25);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gt-ticker__price {
  color: #fff8e8;
  font-variant-numeric: tabular-nums;
}

.gt-ticker__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.gt-ticker__delta--up {
  color: #9be09f;
}

.gt-ticker__delta--down {
  color: #ff9f8a;
}

.gt-ticker__delta--flat {
  color: rgba(255, 246, 224, 0.72);
}

.gt-ticker__arrow {
  font-size: 0.7rem;
  line-height: 1;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .gt-ticker__track {
    animation: none;
  }
}

/* Front page. */
.home-index {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  padding: 22px 0 48px;
}

.home-landing-wrap,
.home-prices-stack {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
}

.home-landing {
  display: grid;
  gap: 28px;
}

.home-hero-landing {
  --home-hero-shade: linear-gradient(90deg, rgba(31, 26, 18, 0.76) 0%, rgba(31, 26, 18, 0.56) 42%, rgba(31, 26, 18, 0.18) 100%);
  position: relative;
  min-height: clamp(390px, 54vw, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 137, 63, 0.28);
  background:
    var(--home-hero-shade),
    radial-gradient(900px 520px at 78% 14%, rgba(138, 163, 82, 0.32), transparent 64%),
    linear-gradient(135deg, #4d3825 0%, #526936 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.home-hero-landing--has-img {
  background-image:
    var(--home-hero-shade),
    var(--home-hero-img);
  background-position: center;
  background-size: cover;
}

.home-hero-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 22%),
    linear-gradient(0deg, rgba(31, 26, 18, 0.20), transparent 42%);
  pointer-events: none;
}

.home-hero-landing__content {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  color: #fff8ee;
}

.home-hero-landing__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero-landing__date::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9be09f;
  box-shadow: 0 0 0 4px rgba(155, 224, 159, 0.18);
}

.home-hero-landing__title {
  max-width: 12ch;
  margin: 0;
  color: #fffdf8;
  font-family: var(--serif-display);
  font-size: clamp(2.35rem, 8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.home-hero-landing__lead {
  max-width: 50ch;
  margin: 18px 0 0;
  color: rgba(255, 248, 238, 0.92);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}

.home-hero-landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.home-hero-landing__btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff8e8;
  color: var(--green-deep);
}

.home-hero-landing__btn--ghost {
  border: 1px solid rgba(255, 248, 238, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
}

.home-hero-landing__btn:hover {
  transform: translateY(-1px);
}

.home-hero-landing__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero-landing__stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero-landing__stat-label {
  display: block;
  color: rgba(255, 248, 238, 0.70);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero-landing__stat-value {
  display: block;
  margin-top: 6px;
  color: #fffdf8;
  font-size: clamp(0.96rem, 1.6vw, 1.16rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-commodities {
  margin: 0;
}

.home-commodities__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.home-commodities__kicker-line {
  flex: 0 0 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.home-commodities__kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-commodities__head,
.news-panel__head--market {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.home-commodities__title,
.news-panel__title--market {
  margin: 0;
  color: var(--heading);
  font-family: var(--font);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.home-commodities__all,
.news-panel__pill,
.news-panel__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-commodities__all:hover,
.news-panel__pill:hover,
.news-panel__all:hover {
  border-color: rgba(184, 137, 63, 0.48);
  background: #f6ead0;
  color: #5c3d12;
}

.home-commodity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-commodity {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(75, 53, 35, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-commodity:hover {
  border-color: rgba(184, 137, 63, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.home-commodity--muted {
  opacity: 0.9;
}

.home-commodity__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-commodity__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 137, 63, 0.18);
  border-radius: 8px;
  background: #f1e6c8;
  color: var(--green-deep);
}

.home-commodity__icon .commodity-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.home-commodity__meta {
  min-width: 0;
}

.home-commodity__name {
  display: block;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-commodity__tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.home-commodity__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.home-commodity__price {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.home-commodity__unit {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-commodity__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.home-commodity__badge--up {
  border: 1px solid rgba(47, 138, 58, 0.22);
  background: rgba(47, 138, 58, 0.10);
  color: var(--spot-up);
}

.home-commodity__badge--down {
  border: 1px solid rgba(195, 63, 47, 0.22);
  background: rgba(195, 63, 47, 0.08);
  color: var(--spot-down);
}

.home-commodity__badge--flat {
  border: 1px solid rgba(122, 106, 82, 0.18);
  background: rgba(122, 106, 82, 0.08);
  color: var(--muted);
}

.home-commodity__foot {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-prices-stack {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
}

.home-prices-stack__prices.section,
.home-prices-stack__news {
  margin: 0;
}

/* Price hub component on the front page. */
.gt-price-shell {
  --gt-forest: var(--green);
  --gt-forest-soft: var(--green-mid);
  --gt-forest-mid: var(--green-bright);
  --gt-surface: #fff;
  --gt-ink: var(--text);
  --gt-muted: var(--muted);
  --gt-border: var(--line);
  border-radius: var(--radius);
}

.gt-price-shell--hub {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.gt-price-shell--hub .gt-dash-head,
.gt-price-shell--hub > .gt-prices-tabs > .gt-tab-bar {
  display: none;
}

.gt-price-shell--hub > .gt-prices-tabs,
.gt-price-shell--hub .gt-dash--hub {
  padding: 0;
  background: transparent;
}

.gt-price-shell--hub .gt-dash__hub {
  gap: 18px;
}

.home-prices-stack .gt-price-shell--hub .gt-panel,
.home-prices-stack .gt-price-shell--hub .gt-dash__line--hub {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.home-prices-stack .gt-price-shell--hub .gt-panel__headrow {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(75, 53, 35, 0.08);
}

.home-prices-stack .gt-price-shell--hub .gt-panel__title--hub,
.home-prices-stack .gt-price-shell--hub .gt-dash__line-title {
  margin: 0;
  color: var(--green-deep);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-prices-stack .gt-price-shell--hub .gt-panel__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ee;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.home-prices-stack .gt-price-shell--hub .gt-panel__all:hover {
  border-color: rgba(184, 137, 63, 0.45);
  background: #efe9dc;
  color: #5c3d12;
}

.home-prices-stack .gt-price-shell--hub .gt-table-scroll {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 53, 35, 0.08);
  border-radius: 8px;
  background: #fff;
}

.home-prices-stack .gt-price-shell--hub .gt-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.home-prices-stack .gt-price-shell--hub .gt-table thead th {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(75, 53, 35, 0.1);
  border-radius: 0;
  background: #ebe7df;
  color: #5c5346;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-prices-stack .gt-price-shell--hub .gt-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(75, 53, 35, 0.06);
  color: var(--text);
  font-size: 0.92rem;
  vertical-align: middle;
}

.home-prices-stack .gt-price-shell--hub .gt-table tbody tr:nth-child(even) td {
  background: #faf9f7;
}

.home-prices-stack .gt-price-shell--hub .gt-table tbody tr:last-child td {
  border-bottom: 0;
}

.home-prices-stack .gt-price-shell--hub .gt-table tbody tr:hover td {
  background: #f3efe6;
}

.home-prices-stack .gt-price-shell--hub .gt-table .gt-table-region {
  display: block;
  margin-top: 2px;
  color: #8a7d6b;
  font-size: 0.75rem;
  font-weight: 500;
}

.home-prices-stack .gt-price-shell--hub .gt-table .gt-td-price {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-prices-stack .gt-price-shell--hub .gt-td-change__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-prices-stack .gt-price-shell--hub .gt-td-change__pill--up {
  border: 1px solid rgba(47, 138, 58, 0.22);
  background: rgba(47, 138, 58, 0.10);
  color: var(--spot-up);
}

.home-prices-stack .gt-price-shell--hub .gt-td-change__pill--down {
  border: 1px solid rgba(195, 63, 47, 0.22);
  background: rgba(195, 63, 47, 0.08);
  color: var(--spot-down);
}

.home-prices-stack .gt-price-shell--hub .gt-td-change__pill--flat {
  border: 1px solid rgba(122, 106, 82, 0.15);
  background: rgba(122, 106, 82, 0.08);
  color: #6b5f4d;
}

.home-prices-stack .gt-price-shell--hub .gt-panel__disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(75, 53, 35, 0.1);
  color: #7a6f62;
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.45;
}

.gt-price-shell--hub .gt-chart-commodity-pill,
.gt-commodity-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(184, 137, 63, 0.32);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--green-deep);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.gt-commodity-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gt-commodity-dd__btn {
  cursor: pointer;
}

.gt-commodity-dd__chev,
.gt-chart-commodity-pill__chev {
  color: var(--gold);
  font-size: 0.76rem;
}

.gt-commodity-dd__btn[aria-expanded="true"] .gt-commodity-dd__chev {
  transform: rotate(180deg);
}

.gt-commodity-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(184, 137, 63, 0.26);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(75, 53, 35, 0.16);
  list-style: none;
}

.gt-commodity-dd__menu[hidden] {
  display: none;
}

.gt-commodity-dd__opt {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
}

.gt-commodity-dd__opt:hover,
.gt-commodity-dd__opt:focus-visible,
.gt-commodity-dd__opt.is-active {
  background: #f6ead0;
  color: var(--green-deep);
  outline: none;
}

.gt-range-tabs {
  display: flex;
  gap: 20px;
  margin: 6px 0 14px;
  padding-bottom: 10px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(75, 53, 35, 0.10);
}

.gt-range-tab {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.gt-range-tab:hover,
.gt-range-tab--active,
.gt-range-tab.is-active {
  color: var(--gold);
}

.gt-range-tab--active::after,
.gt-range-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.gt-price-shell--hub .gt-chart {
  padding: 18px;
  border: 1px solid rgba(75, 53, 35, 0.10);
  border-radius: 10px;
  background: linear-gradient(180deg, #fdf9f0 0%, #f9f2e0 100%);
  box-shadow: none;
}

.gt-price-shell--hub .gt-chart__meta,
.gt-price-shell--hub .gt-dash__chart-ref {
  display: none;
}

.gt-price-shell--hub .gt-dash__chart-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}

.gt-price-shell--hub .gt-chart.is-loading {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.gt-price-shell--hub .gt-chart-empty {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px dashed rgba(184, 137, 63, 0.45);
  border-radius: 8px;
  background: #fffaf0;
  color: #6d521f;
  font-size: 0.9rem;
  text-align: center;
}

/* Market news cards on the front page. */
.news-section--market {
  margin: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(184, 137, 63, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(61, 82, 39, 0.07) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98) 0%, rgba(247, 237, 212, 0.92) 100%);
  box-shadow: 0 18px 44px rgba(75, 53, 35, 0.09);
}

.news-section--market .news-panel--market {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.news-panel__head--market {
  padding: 0;
  border: 0;
  margin-bottom: 20px;
  align-items: center;
}

.news-panel__intro {
  min-width: 0;
}

.news-panel__sub {
  max-width: 46rem;
  margin: 7px 0 0;
  color: #6b604d;
  font-size: 0.94rem;
  line-height: 1.55;
}

.news-panel__pill {
  gap: 8px;
  border-color: rgba(61, 82, 39, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-deep);
  box-shadow: 0 8px 18px rgba(75, 53, 35, 0.07);
}

.news-panel__pill::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.16s ease;
}

.news-panel__pill:hover::after {
  transform: translateX(2px);
}

.news-list--market {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list__item--market {
  grid-column: span 3;
  margin: 0;
  padding: 0;
}

.news-list__item--market-featured {
  grid-column: span 6;
}

.news-list__item--market-empty {
  grid-column: 1 / -1;
}

.news-market-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed rgba(75, 53, 35, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.news-market-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(61, 82, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(75, 53, 35, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.news-market-card:hover {
  border-color: rgba(61, 82, 39, 0.32);
  background: #fff;
  box-shadow: 0 18px 36px rgba(75, 53, 35, 0.13);
  transform: translateY(-2px);
}

.news-market-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2d4a30;
}

.news-market-card--featured .news-market-card__media {
  aspect-ratio: 16 / 8.7;
}

.news-market-card__media--v0 {
  background: linear-gradient(135deg, #2a4a2c 0%, #3d5c32 38%, #8b6a3d 100%);
}

.news-market-card__media--v1 {
  background: linear-gradient(135deg, #2c4630 0%, #4a5c32 36%, #9a703f 100%);
}

.news-market-card__media--v2 {
  background: linear-gradient(135deg, #314d36 0%, #506b3a 36%, #8b6a3d 100%);
}

.news-market-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 12, 0.24) 100%);
  pointer-events: none;
}

.news-market-card__media--has-img {
  background: #1a1a18;
}

.news-market-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.news-market-card:hover .news-market-card__img {
  transform: scale(1.035);
}

.news-market-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.news-market-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.news-market-card__tag {
  min-width: 0;
  overflow: hidden;
  padding: 4px 9px;
  border: 1px solid rgba(82, 105, 54, 0.2);
  border-radius: 7px;
  background: rgba(232, 239, 209, 0.8);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.news-market-card__date {
  flex: 0 0 auto;
  color: #79694f;
  font-size: 0.76rem;
  font-weight: 800;
}

.news-market-card__title {
  margin: 0;
  color: var(--green-deep);
  font-family: var(--font);
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.34;
}

.news-market-card--featured .news-market-card__title {
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.28;
}

.news-market-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #665947;
  font-size: 0.9rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-market-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

@media (min-width: 1021px) {
  .news-list--market {
    align-items: stretch;
  }

  .news-list__item--market {
    grid-column: 8 / -1;
  }

  .news-list__item--market-featured {
    grid-column: 1 / span 7;
    grid-row: span 2;
  }

  .news-list__item--market:not(.news-list__item--market-featured) .news-market-card {
    display: grid;
    grid-template-columns: minmax(164px, 42%) minmax(0, 1fr);
    min-height: 202px;
  }

  .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__media {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__body {
    padding: 16px 18px;
  }

  .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__title {
    font-size: clamp(1.02rem, 1.3vw, 1.16rem);
    line-height: 1.32;
  }

  .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__excerpt {
    -webkit-line-clamp: 2;
  }

  .news-market-card--featured .news-market-card__body {
    padding: 18px 20px 20px;
  }
}

/* Drawer and bottom nav. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: block;
  pointer-events: none;
  visibility: hidden;
}

body:has(.nav-toggle:checked) .nav-drawer {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.50);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.24s ease;
}

body:has(.nav-toggle:checked) .nav-drawer__backdrop {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 380px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf0 0%, #fbf3df 100%);
  box-shadow: -22px 0 48px rgba(20, 16, 10, 0.20);
  transform: translateX(105%);
  transition: transform 0.30s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body:has(.nav-toggle:checked) .nav-drawer__panel {
  transform: translateX(0);
}

body:has(.nav-toggle:checked) {
  overflow: hidden;
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(184, 137, 63, 0.18);
}

.nav-drawer__brand {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.nav-drawer__logo-img {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.nav-drawer__close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--muted);
  cursor: pointer;
}

.nav-drawer__close:hover {
  border-color: rgba(184, 137, 63, 0.32);
  background: #f6ead0;
  color: var(--text);
}

.nav-drawer__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-drawer__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0 28px;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-drawer__list li {
  margin: 0;
}

.nav-drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(75, 53, 35, 0.08);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-drawer__list a::after {
  content: "->";
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 700;
}

.nav-drawer__list a:hover,
.nav-drawer__list a:focus-visible {
  background: rgba(255, 250, 234, 0.72);
  color: var(--green-deep);
  outline: none;
}

.nav-drawer__list .current-menu-item > a,
.nav-drawer__list .current-menu-parent > a,
.nav-drawer__list .current-menu-ancestor > a,
.nav-drawer__list .current_page_item > a {
  background: #f6ead0;
  color: #a3611e;
}

.site-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.94);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-bottom-nav a {
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.site-bottom-nav a b {
  display: block;
  margin-bottom: 2px;
  color: var(--green-mid);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

/* Shared landing system. */
body .gtp-page--seo,
body .gcp-page,
body .ngp-page {
  --landing-radius: 8px;
  --landing-radius-md: 10px;
  --landing-radius-lg: 12px;
  --landing-border: rgba(75, 53, 35, 0.12);
  --landing-shadow: 0 8px 24px rgba(75, 53, 35, 0.06);
}

body .gtp-page--seo .gtp-hero,
body .gtp-page--seo .gtp-section,
body .gtp-page--seo .gtp-shortcuts,
body .gtp-page--seo .gtp-article,
body .gtp-page--seo .gtp-extra,
body .gcp-page .gcp-hero,
body .gcp-page .gcp-shortcuts,
body .gcp-page .gcp-section,
body .gcp-page .gcp-disclaimer,
body .gcp-page .gcp-article,
body .ngp-page .ngp-hero,
body .ngp-page .ngp-shortcuts,
body .ngp-page .ngp-article,
body .ngp-page .ngp-related,
body .ngp-page .ngp-extra,
body .ngp-page .ngp-note {
  border-radius: var(--landing-radius-lg);
  box-shadow: var(--landing-shadow);
}

body .gtp-page--seo .gtp-shortcut,
body .gtp-page--seo .gtp-region-card,
body .gtp-page--seo .gtp-world-teaser,
body .gtp-page--seo .gtp-region-pill,
body .gcp-page .gcp-shortcut,
body .gcp-page .gcp-region,
body .gcp-page .gcp-kpi,
body .gcp-page .gcp-trend__summary,
body .gcp-page .gcp-trend__table-wrap,
body .ngp-page .ngp-shortcut,
body .ngp-page .ngp-chip,
body .ngp-page .gsr-card,
body .ngp-page .gcc-card,
body .ngp-page .gsr-grid,
body .ngp-page .gcc-grid,
body .ngp-page .gsr-seo-block,
body .ngp-page .gcc-seo-block,
body .ngp-page .gcc-updated {
  border-radius: var(--landing-radius-md);
}

body .gtp-page--seo .gtp-cta,
body .gcp-page .gcp-cta,
body .ngp-page .ngp-cta {
  border-radius: var(--landing-radius);
}

body .gcp-page .gcp-article {
  margin: 0;
  padding: 22px 22px 24px;
  border: 1px solid rgba(58, 44, 28, 0.1);
  background: #fff;
  color: var(--text);
}

body .gcp-page .gcp-article__title {
  margin: 0 0 10px;
  color: #2a3a1a;
  font-family: var(--font);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
}

body .gcp-page .gcp-article__p {
  margin: 0 0 12px;
  color: #6a5e48;
  font-size: 0.94rem;
  line-height: 1.65;
}

body .gcp-page .gcp-article__p:last-child {
  margin-bottom: 0;
}

body .gcp-page .gcp-article__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

body .gcp-page .gcp-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(61, 82, 39, 0.16);
  border-radius: var(--landing-radius);
  background: rgba(61, 82, 39, 0.08);
  color: #2a3a1a;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .home-commodity-grid,
  .home-hero-landing__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list--market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list__item--market {
    grid-column: span 1;
  }

  .news-list__item--market-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .menu,
  .nav-toggle:checked ~ .menu {
    display: none !important;
  }

  .home-landing-wrap,
  .home-prices-stack {
    padding-inline: 0;
  }

  .home-hero-landing {
    min-height: auto;
    align-items: end;
    background-image:
      linear-gradient(180deg, rgba(31, 26, 18, 0.34) 0%, rgba(31, 26, 18, 0.78) 100%),
      var(--home-hero-img, linear-gradient(135deg, #4d3825, #526936));
  }

  .home-hero-landing__content {
    padding: 30px 20px;
  }

  .home-hero-landing__title {
    max-width: 10ch;
  }

  .home-commodities__head,
  .news-panel__head--market {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-prices-stack .gt-price-shell--hub .gt-dash__hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .site-bottom-nav {
    display: flex;
  }

  .home-index {
    gap: 26px;
    padding-top: 14px;
  }

  .home-landing-wrap,
  .home-prices-stack {
    padding-inline: 0;
  }

  .home-hero-landing {
    border-radius: 12px;
  }

  .home-hero-landing__content {
    padding: 28px 16px;
  }

  .home-hero-landing__lead {
    font-size: 0.98rem;
  }

  .home-hero-landing__actions {
    flex-direction: column;
  }

  .home-hero-landing__btn {
    width: 100%;
  }

  .home-hero-landing__stats,
  .home-commodity-grid {
    grid-template-columns: 1fr;
  }

  .home-commodity {
    padding: 14px;
  }

  .home-prices-stack .gt-price-shell--hub .gt-panel,
  .home-prices-stack .gt-price-shell--hub .gt-dash__line--hub {
    padding: 16px 12px 14px;
  }

  .home-prices-stack .gt-price-shell--hub .gt-panel__headrow {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .home-prices-stack .gt-price-shell--hub .gt-table thead th,
  .home-prices-stack .gt-price-shell--hub .gt-table tbody td {
    padding: 11px 10px;
    font-size: 0.86rem;
  }

  body > main.wrap {
    padding-inline: 10px;
  }

  body .gtp-page--seo,
  body .gcp-page,
  body .ngp-page {
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 32px;
  }

  body .gtp-page--seo .gtp-hero,
  body .gtp-page--seo .gtp-section,
  body .gtp-page--seo .gtp-shortcuts,
  body .gtp-page--seo .gtp-article,
  body .gcp-page .gcp-hero,
  body .gcp-page .gcp-shortcuts,
  body .gcp-page .gcp-section,
  body .gcp-page .gcp-article,
  body .ngp-page .ngp-hero,
  body .ngp-page .ngp-shortcuts,
  body .ngp-page .ngp-article,
  body .ngp-page .ngp-related,
  body .ngp-page .ngp-extra {
    padding: 16px 14px 18px;
    border-radius: 10px;
  }

  body .gtp-page--seo .gtp-hero__title,
  body .gcp-page .gcp-hero__title,
  body .ngp-page .ngp-hero__title {
    font-size: clamp(1.56rem, 7vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0;
  }

  body .gtp-page--seo .gtp-hero__lead,
  body .gcp-page .gcp-hero__lead,
  body .ngp-page .ngp-hero__lead {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  body .gtp-page--seo .gtp-cta,
  body .gcp-page .gcp-cta,
  body .ngp-page .ngp-cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  body .gtp-shortcuts__grid--hub,
  body .gcp-page .gcp-shortcuts__grid,
  body .ngp-page .ngp-shortcuts__grid {
    grid-template-columns: 1fr;
  }

  body .ngp-page .ngp-shortcut {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body .ngp-page .ngp-shortcut__arrow {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }

  body .ngp-page .ngp-shortcut__icon {
    width: 40px;
    height: 40px;
  }

  .news-section--market {
    padding: 16px 12px 18px;
    border-radius: 10px;
  }

  .news-list--market {
    grid-template-columns: 1fr;
  }

  .news-list__item--market,
  .news-list__item--market-featured {
    grid-column: 1 / -1;
  }

  .news-market-card__body {
    padding: 13px 14px 15px;
  }

  .news-market-card__media,
  .news-market-card--featured .news-market-card__media {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 821px) {
  .nav-drawer {
    display: none;
  }
}

/* Front-page market news refresh. */
.news-section--market {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.8vw, 30px);
  border-color: rgba(184, 137, 63, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(61, 82, 39, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fffaf0 0%, #f4e8ca 100%);
  box-shadow: 0 18px 42px rgba(75, 53, 35, 0.1);
}

.news-section--market::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
}

.news-section--market .news-panel__head--market {
  align-items: flex-end;
  gap: 18px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(75, 53, 35, 0.1);
}

.news-section--market .news-panel__sub {
  max-width: 42rem;
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.58;
}

.news-section--market .news-panel__pill {
  min-width: max-content;
  gap: 8px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 22px rgba(61, 82, 39, 0.18);
}

.news-section--market .news-panel__pill::after {
  content: "\2192";
  font-weight: 900;
  transition: transform 0.16s ease;
}

.news-section--market .news-panel__pill:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

.news-section--market .news-panel__pill:hover::after {
  transform: translateX(2px);
}

.news-section--market .news-list--market {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-section--market .news-list__item--market {
  grid-column: 2;
}

.news-section--market .news-list__item--market-featured {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.news-section--market .news-market-card {
  position: relative;
  border-color: rgba(61, 82, 39, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(75, 53, 35, 0.09);
}

.news-section--market .news-market-card:hover {
  border-color: rgba(61, 82, 39, 0.34);
  box-shadow: 0 20px 40px rgba(75, 53, 35, 0.14);
}

.news-section--market .news-market-card--featured {
  min-height: 510px;
  background: #182414;
  color: #fff;
}

.news-section--market .news-market-card--featured .news-market-card__media {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.news-section--market .news-market-card__media::after {
  inset: 0;
  height: auto;
  background: linear-gradient(180deg, rgba(12, 16, 9, 0.05) 0%, rgba(12, 16, 9, 0.1) 42%, rgba(12, 16, 9, 0.82) 100%);
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__media::after {
  background: linear-gradient(180deg, transparent 45%, rgba(12, 16, 9, 0.16) 100%);
}

.news-section--market .news-market-card__body {
  position: relative;
  z-index: 2;
}

.news-section--market .news-market-card--featured .news-market-card__body {
  justify-content: flex-end;
  min-height: 510px;
  padding: clamp(22px, 3vw, 30px);
  color: #fff;
}

.news-section--market .news-market-card--featured .news-market-card__tag {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-deep);
}

.news-section--market .news-market-card--featured .news-market-card__date {
  color: rgba(255, 255, 255, 0.82);
}

.news-section--market .news-market-card--featured .news-market-card__title {
  max-width: 17em;
  color: #fff;
  font-size: clamp(1.42rem, 2.7vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.news-section--market .news-market-card--featured .news-market-card__excerpt {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  -webkit-line-clamp: 2;
}

.news-section--market .news-market-card--featured .news-market-card__read {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card {
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  min-height: 247px;
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__media {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__body {
  padding: 17px 18px;
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__title {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.3;
}

.news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__excerpt {
  -webkit-line-clamp: 2;
}

@media (max-width: 1020px) {
  .news-section--market .news-list--market {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .news-section--market .news-list__item--market,
  .news-section--market .news-list__item--market-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .news-section--market .news-market-card--featured {
    min-height: 0;
    background: #fff;
    color: var(--text);
  }

  .news-section--market .news-market-card--featured .news-market-card__media {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 8.6;
  }

  .news-section--market .news-market-card--featured .news-market-card__body {
    min-height: 0;
    padding: 18px 20px 20px;
    color: var(--text);
  }

  .news-section--market .news-market-card--featured .news-market-card__title {
    color: var(--green-deep);
    font-size: clamp(1.22rem, 4vw, 1.55rem);
  }

  .news-section--market .news-market-card--featured .news-market-card__excerpt {
    color: #665947;
  }

  .news-section--market .news-market-card--featured .news-market-card__date {
    color: #79694f;
  }

  .news-section--market .news-market-card--featured .news-market-card__read {
    background: var(--green);
    color: #fff;
  }
}

@media (max-width: 720px) {
  .news-section--market {
    padding: 16px 12px 18px;
  }

  .news-section--market .news-panel__head--market {
    align-items: stretch;
    gap: 12px;
  }

  .news-section--market .news-panel__pill {
    width: 100%;
  }

  .news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__media,
  .news-section--market .news-market-card--featured .news-market-card__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-section--market .news-market-card__body,
  .news-section--market .news-list__item--market:not(.news-list__item--market-featured) .news-market-card__body {
    padding: 14px;
  }
}
