/* Home Hero Section - loaded by inc/home-hero.php on the front page only */

/* The header is absolutely positioned over the hero on desktop/tablet (see "Home Menu" css above).
   This keeps its menus above the hero image. */
.home .main-banner-ricenews {
  z-index: 100;
}

.rnt-hero {
  --rnt-red: #b02a35;
  --rnt-red-dark: #8f1f2a;
  --rnt-green: #96c84b;
  --rnt-up: #2e7d32;
  --rnt-down: #c62828;
  --rnt-muted: #6b6f6d;
  --rnt-offset: 36px; /* room for the header (header is in the page flow on mobile) */

  position: relative;
  isolation: isolate;
  margin: 0;
  padding: var(--rnt-offset) 0 48px;
  background: #1b1a16 linear-gradient(135deg, #2a2419 0%, #14130f 100%);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 768px) {
  .rnt-hero {
    --rnt-offset: 165px; /* header height + breathing room */
    padding-bottom: 110px; /* the translator box overlaps the bottom of the hero */
  }
}

.rnt-hero a,
.rnt-hero p,
.rnt-hero span {
  font-size: inherit;
}

/* Background image + readability overlay */
.rnt-hero .rnt-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.rnt-hero .rnt-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.rnt-hero .rnt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 220px),
    linear-gradient(90deg, rgba(12, 11, 8, 0.82) 0%, rgba(12, 11, 8, 0.55) 45%, rgba(12, 11, 8, 0.18) 100%);
}

/* Layout
   The wrapper uses the same widths as the header content (see the
   "main-banner-ricenews" width rules above) so both line up edge to edge. */
.rnt-hero .rnt-hero__wrap {
  width: calc(100% - 32px);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .rnt-hero .rnt-hero__wrap {
    width: calc(100% - 80px);
  }
}

@media (min-width: 1439.98px) {
  .rnt-hero .rnt-hero__wrap {
    width: 1360px;
  }
}

@media (min-width: 1599.98px) {
  .rnt-hero .rnt-hero__wrap {
    width: 1470px;
  }
}

@media (min-width: 1699.98px) {
  .rnt-hero .rnt-hero__wrap {
    width: 1560px;
  }
}

.rnt-hero .rnt-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .rnt-hero .rnt-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 64px;
  }
}

/* Left column */
.rnt-hero .rnt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font: 13px/1 "Inter-bold", sans-serif;
}

.rnt-hero .rnt-hero__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rnt-green);
  box-shadow: 0 0 0 3px rgba(150, 200, 75, 0.28);
}

.rnt-hero .rnt-hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Inter-bold", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: left;
}

.rnt-hero .rnt-hero__title span {
  display: block;
  font-size: inherit;
}

.rnt-hero .rnt-hero__lead {
  max-width: 520px;
  text-wrap: pretty;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

.rnt-hero .rnt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.rnt-hero .rnt-hero__btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--rnt-red);
  color: #fff;
  font-family: "Inter-medium", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.rnt-hero .rnt-hero__btn:hover,
.rnt-hero .rnt-hero__btn:focus-visible {
  background: var(--rnt-red-dark);
  color: #fff;
}

.rnt-hero .rnt-hero__link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-family: "Inter-medium", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}

.rnt-hero .rnt-hero__link:hover,
.rnt-hero .rnt-hero__link:focus-visible {
  border-bottom-color: var(--rnt-green);
  color: #fff;
}

.rnt-hero .rnt-hero__latest {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 560px;
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.55;
}

.rnt-hero .rnt-hero__latest-label {
  margin-right: 6px;
  color: var(--rnt-green);
  font-family: "Inter-bold", sans-serif;
}

.rnt-hero .rnt-hero__latest a {
  color: inherit;
  text-decoration: none;
}

.rnt-hero .rnt-hero__latest a:hover,
.rnt-hero .rnt-hero__latest a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Right column: price snapshot card */
.rnt-hero .rnt-hero__snapshot {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 26px 28px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  color: #111;
}

@media (max-width: 991.98px) {
  .rnt-hero .rnt-hero__snapshot {
    justify-self: start;
    max-width: 560px;
  }
}

.rnt-hero .rnt-hero__snapshot-title {
  margin: 0 0 4px;
  color: #111;
  font-family: "Inter-bold", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rnt-hero .rnt-hero__snapshot-sub {
  margin: 0 0 14px;
  color: var(--rnt-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Slides: all tables are stacked in one grid cell, so the card keeps the height
   of the tallest table and nothing jumps when the table changes. */
.rnt-hero .rnt-hero__slides {
  display: grid;
}

.rnt-hero .rnt-hero__slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.rnt-hero .rnt-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* The theme has global table/th/td styles, so they are reset here */
.rnt-hero .rnt-hero__table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: inherit;
}

.rnt-hero .rnt-hero__table th,
.rnt-hero .rnt-hero__table td {
  padding: 11px 0;
  border: 0;
  border-top: 1px solid #ececee;
  background: transparent;
  line-height: 1.3;
  vertical-align: middle;
}

.rnt-hero .rnt-hero__table tr:last-child th,
.rnt-hero .rnt-hero__table tr:last-child td {
  border-bottom: 1px solid #ececee;
}

.rnt-hero .rnt-hero__table th {
  color: #111;
  font-family: "Inter-medium", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: left;
}

.rnt-hero .rnt-hero__table td {
  font-family: "Inter-bold", sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rnt-hero .rnt-hero__price {
  width: 34%;
  color: #111;
  font-size: 16px;
}

.rnt-hero .rnt-hero__change {
  width: 56px;
  padding-left: 14px;
  font-size: 14px;
}

.rnt-hero .rnt-hero__change.is-up {
  color: var(--rnt-up);
}

.rnt-hero .rnt-hero__change.is-down {
  color: var(--rnt-down);
}

.rnt-hero .rnt-hero__change.is-flat {
  color: var(--rnt-muted);
}

.rnt-hero .rnt-hero__change.is-na {
  color: #9a9d9b;
}

.rnt-hero .rnt-hero__snapshot-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 14px;
}

.rnt-hero .rnt-hero__updated {
  color: var(--rnt-muted);
  font-size: 13px;
}

.rnt-hero .rnt-hero__all {
  color: var(--rnt-red);
  font-family: "Inter-bold", sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.rnt-hero .rnt-hero__all:hover,
.rnt-hero .rnt-hero__all:focus-visible {
  color: var(--rnt-red-dark);
  text-decoration: underline;
}

/* Slider controls (only printed in slider mode).
   The theme styles every <button>, so they are reset with all: unset. */
.rnt-hero .rnt-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.rnt-hero .rnt-hero__nav {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #111;
  font: 20px/1 "Inter-medium", sans-serif;
  cursor: pointer;
}

.rnt-hero .rnt-hero__nav:hover {
  background: #f1f1f2;
}

.rnt-hero .rnt-hero__pause {
  font-size: 10px;
  letter-spacing: -1px;
}

.rnt-hero .rnt-hero__dots {
  display: inline-flex;
  align-items: center;
}

.rnt-hero .rnt-hero__pip {
  all: unset;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rnt-hero .rnt-hero__pip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd0d3;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rnt-hero .rnt-hero__pip.is-active::before {
  background: var(--rnt-red);
  transform: scale(1.25);
}

.rnt-hero .rnt-hero__nav:focus-visible,
.rnt-hero .rnt-hero__pip:focus-visible {
  outline: 2px solid var(--rnt-red);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .rnt-hero .rnt-hero__slide,
  .rnt-hero .rnt-hero__pip::before {
    transition: none;
  }
}

/* Keyboard focus */
.rnt-hero a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.rnt-hero .rnt-hero__snapshot a:focus-visible {
  outline-color: var(--rnt-red);
}

/* Small screens */
@media (max-width: 575.98px) {
  .rnt-hero .rnt-hero__lead {
    font-size: 16px;
  }

  .rnt-hero .rnt-hero__snapshot {
    padding: 20px 18px 18px;
  }
}

