/* The research page (Manny, 2026-11-16; bones A, after Profound; approved and locked 2026-11-16): tabs by who each brief is for, then the briefs as
   cards, each led by a sample sheet drawn in code on paper stacked like a printed report. The navy top and close,
   and the links, are the services page's (sv.css). rp.js runs the tabs and draws each sample as it comes into view. */
/* The hero: the words left, Dash the brief finder right, in a panel whose colour his studio matches. He stays 280px
   wide or more, or his screen's words blur away. */
.rp-top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rp-top-say { padding-top: clamp(0px, 3vw, 48px); } /* both columns hold their top, so the words never jump as Dash's list grows */
.rp-dash { border-radius: 14px; background: #10304C; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); padding: 6px 20px 20px; }
.rp-dash .mascot { --mascot-top: #10304C; --mascot-bottom: #10304C; width: 300px; margin: 0 auto -14px; }
.rp-chat { position: relative; z-index: 1; }
.rp-bubble { margin: 0; padding: 13px 16px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.09);
  font: 600 17px/1.4 var(--font-head); color: #fff; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 38px; }
.rp-chip { padding: 10px 15px; border: 0; border-radius: 999px; background: #fff; cursor: pointer; text-decoration: none;
  font: 700 14px/1.1 var(--font-head); color: var(--navy); transition: background .2s, transform .2s; }
.rp-chip:hover { background: var(--pale-blue); transform: translateY(-1px); }
.rp-chip:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.rp-chip--go { background: var(--coral); color: #fff; }
.rp-chip--go:hover { background: var(--coral-lifted); }
.rp-chip--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.rp-chip--ghost:hover { background: rgba(255,255,255,.08); }
.rp-found .rp-paper { box-shadow: 0 0 0 3px var(--coral), 0 14px 30px -18px rgba(13,43,69,.45); }
@media (max-width: 980px) {
  .rp-top-in { grid-template-columns: minmax(0, 1fr); }
  .rp-dash { max-width: 460px; }
}

.rp-body { background: var(--bg); scroll-margin-top: 80px; padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(56px, 7vw, 104px); }

/* The tabs, in the contact page's segmented look */
.rp-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 4px;
  border-radius: 8px; background: var(--surface); }
.rp-tabs button { padding: 11px 20px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 700 15px/1.2 var(--font-head); color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.rp-tabs button:hover { color: var(--navy); }
.rp-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -2px rgba(13,43,69,.22); }
.rp-tabs button:focus-visible { outline: 2px solid var(--igm-blue); outline-offset: -2px; }

/* The cards */
.rp-grid { max-width: 1180px; margin: clamp(28px, 4vw, 48px) auto 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.rp-card { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); padding: 18px; }
.rp-card[hidden] { display: none; }

/* The sample sheet: a paper page with two pages stacked behind it */
.rp-sheet { position: relative; padding: 6px 10px 12px; }
.rp-sheet::before, .rp-sheet::after { content: ""; position: absolute; inset: 10px 14px 8px 6px; border-radius: 4px; background: #fff;
  box-shadow: 0 0 0 1px rgba(13,43,69,.08); transform: rotate(-2.2deg); }
.rp-sheet::after { transform: rotate(1.6deg); inset: 8px 8px 10px 12px; }
.rp-paper { position: relative; z-index: 1; border-radius: 4px; background: #fff; padding: 16px 18px 18px;
  box-shadow: 0 14px 30px -18px rgba(13,43,69,.45), 0 0 0 1px rgba(13,43,69,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rp-card:hover .rp-paper { transform: translateY(-4px) rotate(-.4deg); }
.rp-cap { margin: 0 0 12px; font: 700 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rp-paper svg { display: block; width: 100%; height: auto; overflow: visible; }

/* The words */
.rp-txt { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 4px; }
.rp-h { margin: 0; font: 800 22px/1.2 var(--font-head); letter-spacing: -.015em; color: var(--navy); }
.rp-q { margin: 10px 0 12px; font: 500 17px/1.4 var(--font-head); color: var(--text); }
.rp-q::before { content: "\201C"; } .rp-q::after { content: "\201D"; }
.rp-meta { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.rp-meta b { margin-right: 6px; font: 700 13px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.rp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.rp-foot .sv-link { margin-top: 0; }
.rp-price { font: 800 28px/1 var(--font-head); letter-spacing: -.02em; color: var(--igm-blue); }
.rp-price small { font: 600 13px/1 var(--font-head); letter-spacing: 0; color: var(--muted); }

@media (max-width: 520px) {
  .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-tabs button { padding: 10px 14px; }
}
