/* Appily Eighteen — Produce Row Glossary help center */

.page-row-glossary {
  --rg-wood: #5c4a32;
  --rg-wood-light: #7a6348;
  --rg-slate: #3d4a3a;
  --rg-chalk: #f8f6f0;
  --rg-chalk-line: rgba(44, 36, 25, 0.08);
  --rg-stamp: var(--amber);
  --rg-leaf: var(--sage);
  --rg-canvas: #f3efe6;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(143, 174, 122, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(198, 125, 58, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, var(--rg-canvas) 0%, var(--white) 420px);
}

/* ── Hero: row markers on a crate sill ── */
.rg-hero {
  position: relative;
  padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 4vw, 36px);
  overflow: hidden;
}

.rg-hero-crate {
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--rg-wood) 0,
      var(--rg-wood) 28px,
      var(--rg-wood-light) 28px,
      var(--rg-wood-light) 30px
    );
  opacity: 0.55;
}

.rg-hero-crate::before {
  content: "";
  position: absolute;
  inset: -6px 0 auto;
  height: 6px;
  background: linear-gradient(180deg, transparent, rgba(44, 36, 25, 0.12));
}

.rg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 40px);
  align-items: end;
}

.rg-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-stamp);
}

.rg-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--bark);
}

.rg-hero h1 em {
  font-style: normal;
  color: var(--rg-leaf);
}

.rg-lede {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.rg-marker-lot {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-bottom: 6px;
}

.rg-marker-post {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

.rg-marker-post:hover { transform: translateY(-4px); }

.rg-marker-cap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 4px 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(44, 36, 25, 0.18);
}

.rg-marker-post:nth-child(1) .rg-marker-cap { background: var(--mocha); }
.rg-marker-post:nth-child(2) .rg-marker-cap { background: var(--rg-leaf); }
.rg-marker-post:nth-child(3) .rg-marker-cap { background: var(--rg-stamp); }
.rg-marker-post:nth-child(4) .rg-marker-cap { background: var(--rg-slate); }

.rg-marker-stake {
  width: 6px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c4a574, #8b6f47);
}

.rg-marker-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 64px;
  text-align: center;
  line-height: 1.3;
}

/* ── Quick jump strip ── */
.rg-jump-strip {
  margin-top: 28px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rg-jump-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.rg-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bark);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.rg-jump-chip:hover {
  background: rgba(143, 174, 122, 0.15);
  border-color: var(--rg-leaf);
  color: var(--mocha-dark);
}

.rg-jump-chip span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  background: var(--mocha);
}

.rg-jump-chip:nth-child(3) span { background: var(--rg-leaf); }
.rg-jump-chip:nth-child(4) span { background: var(--rg-stamp); }
.rg-jump-chip:nth-child(5) span { background: var(--rg-slate); }

/* ── Main floor layout ── */
.rg-floor {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

/* ── Field notes binder ── */
.rg-binder {
  position: relative;
  background: var(--rg-chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rg-binder-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(
    180deg,
    var(--mocha) 0,
    var(--mocha) 8px,
    var(--mocha-dark) 8px,
    var(--mocha-dark) 16px
  );
  border-right: 2px solid rgba(0, 0, 0, 0.12);
}

.rg-binder-body {
  margin-left: 14px;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(var(--rg-chalk-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rg-chalk-line) 1px, transparent 1px);
  background-size: 100% 28px, 28px 100%;
}

.rg-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(107, 91, 62, 0.25);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.rg-row-head + .rg-row-head {
  margin-top: 36px;
}

.rg-row-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--mocha);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.rg-row-head[data-row="b"] .rg-row-badge { background: var(--rg-leaf); }
.rg-row-head[data-row="c"] .rg-row-badge { background: var(--rg-stamp); }

.rg-row-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.rg-row-head p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.rg-note {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 2px 0 rgba(44, 36, 25, 0.04);
  overflow: hidden;
}

.rg-note:last-child { margin-bottom: 0; }

.rg-note summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bark);
  transition: background var(--transition);
}

.rg-note summary::-webkit-details-marker { display: none; }

.rg-note summary::before {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--mocha);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.rg-note[open] summary::before {
  content: "−";
  transform: rotate(180deg);
  background: var(--rg-leaf);
  color: var(--white);
  border-color: var(--rg-leaf);
}

.rg-note summary:hover { background: rgba(247, 244, 238, 0.7); }

.rg-note-body {
  padding: 0 16px 16px 52px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.rg-note-body a {
  color: var(--mocha);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rg-note-body a:hover { color: var(--rg-stamp); }

/* ── Chalk price slate sidebar ── */
.rg-slate-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.rg-slate {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  color: var(--rg-chalk);
  background:
    linear-gradient(165deg, #4a5a48 0%, var(--rg-slate) 45%, #2f3a2e 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rg-slate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.rg-slate-frame {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.rg-slate h3 {
  position: relative;
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.rg-slate h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--rg-stamp);
}

.rg-slate-item {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  line-height: 1.65;
}

.rg-slate-item:last-child { border-bottom: 0; padding-bottom: 0; }

.rg-slate-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-leaf);
}

.rg-slate a {
  color: #f0e8d8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rg-slate a:hover { color: var(--white); }

.rg-slate-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rg-slate-links a {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bark);
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rg-slate-links a:hover {
  background: var(--white);
  color: var(--mocha);
}

.rg-desk-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.rg-desk-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  background: rgba(143, 174, 122, 0.18);
}

.rg-desk-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.rg-desk-card p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.rg-desk-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--mocha);
  transition: background var(--transition);
}

.rg-desk-btn:hover {
  background: var(--mocha-dark);
  color: var(--white);
}

.rg-desk-email {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.rg-desk-email a {
  color: var(--mocha);
  font-weight: 600;
}

.rg-desk-email a:hover { color: var(--rg-stamp); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .rg-hero-grid {
    grid-template-columns: 1fr;
  }

  .rg-marker-lot {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .rg-layout {
    grid-template-columns: 1fr;
  }

  .rg-slate-stack {
    position: static;
  }
}

@media (max-width: 600px) {
  .rg-marker-cap {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .rg-marker-stake { height: 28px; }

  .rg-jump-strip {
    padding: 12px 14px;
  }

  .rg-note-body {
    padding-left: 16px;
  }
}
