/* Golden Nuggets — uses the Dhan-X tokens from styles.css throughout, so the
   page follows Classic, Obsidian and Ivory without a single literal colour. */

/* The page gutter lives on the wrapper, as it does on .ps-wrap — .main-content
   carries no padding of its own, so a wrapper without padding puts the text
   hard against the sidebar on desktop and against the screen edge on a phone. */
.gn-wrap { max-width: 1200px; margin-inline: auto; padding: 8px 32px 64px; }

.gn-hero { margin: 0 0 26px; }
.gn-hero-eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 8px;
}
.gn-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 10px;
  color: var(--ink); text-wrap: balance;
}
.gn-hero-sub {
  color: var(--text-body); font-size: 15px; line-height: 1.65; margin: 0;
  max-width: 62ch;
}

/* ── The two of them ──────────────────────────────────────────────────── */
.gn-people {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px; margin: 0 0 30px;
}
.gn-person {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--parchment);
  border-radius: var(--radius-md, 14px); padding: 18px;
}
/* The portrait slot. A typographic mark stands in for a photograph: a likeness
   of a real person is a licensed work, and one placed beside a product can read
   as an endorsement. Replacing this div with <img class="gn-portrait-img">
   needs no other change. */
.gn-portrait {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(var(--forest-rgb), 0.18), rgba(var(--forest-rgb), 0.06));
  border: 1px solid rgba(var(--forest-rgb), 0.3);
}
.gn-portrait span {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600; letter-spacing: 0.04em; color: var(--forest);
}
.gn-portrait-img {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--parchment);
}
.gn-person-body { min-width: 0; }
.gn-person-name {
  font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--ink);
}
.gn-person-years { font-size: 12px; color: var(--text-muted); margin: 2px 0 8px; }
.gn-person-role { font-size: 13.5px; color: var(--text-body); margin: 0 0 6px; line-height: 1.55; }
.gn-person-note { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Filter ───────────────────────────────────────────────────────────── */
.gn-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--parchment);
}
.gn-filter {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; min-height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--parchment); background: transparent; color: var(--text-body);
}
.gn-filter:hover { border-color: rgba(var(--forest-rgb), 0.45); color: var(--ink); }
.gn-filter.is-on {
  background: var(--forest); border-color: var(--forest); color: var(--on-accent);
}
.gn-filter:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.gn-count { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }

/* ── Quotes ───────────────────────────────────────────────────────────── */
.gn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; align-items: start;
}
.gn-card {
  /* A column flex rather than a positioned box: the topic tag used to be
     absolutely placed top-right, and a quote long enough to fill the first line
     ran straight under it. In the flow it simply takes its own row. */
  display: flex; flex-direction: column; margin: 0;
  background: var(--white); border: 1px solid var(--parchment);
  border-radius: var(--radius-md, 14px); padding: 20px 20px 16px;
  /* The accent rail is the only thing separating the two voices, so it is a
     left border rather than a tint: a tint would fight the card in one theme or
     the other. */
  border-left: 3px solid rgba(var(--forest-rgb), 0.55);
}
.gn-card-munger { border-left-color: rgba(var(--amber-rgb), 0.55); }
.gn-quote {
  margin: 0 0 14px; font-family: var(--font-display); font-style: italic;
  font-size: 16px; line-height: 1.6; color: var(--ink);
}
.gn-quote::before { content: '\201C'; }
.gn-quote::after  { content: '\201D'; }
.gn-cite { display: flex; flex-direction: column; gap: 2px; }
.gn-cite-who { font-size: 13px; font-weight: 700; color: var(--text-body); }
.gn-cite-src { font-size: 12px; color: var(--text-muted); }
.gn-topic {
  align-self: flex-end; margin-bottom: 9px;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: rgba(var(--wash-rgb), 0.06);
  padding: 3px 8px; border-radius: 4px;
}

.gn-note {
  margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--parchment);
  font-size: 12.5px; line-height: 1.65; color: var(--text-muted); max-width: 72ch;
}

@media (max-width: 768px) {
  .gn-wrap { padding: 4px 18px 48px; }
}

@media (max-width: 640px) {
  .gn-grid { grid-template-columns: 1fr; }
  .gn-people { grid-template-columns: 1fr; }
  .gn-quote { font-size: 15px; }
  .gn-card { padding: 16px; }
}
