/* ingrid.fyi role pages. Loads after base.css and story-pages/story.css. Role pages are free in full. */

/* the signed-in reader's name in the header (preview: ?view=member) */
ig-header .reader { display: none; font-family: var(--sans); font-size: 0.85rem; }
body.member ig-header .reader { display: inline; }
body.member ig-header .signin { display: none; }

/* the two quiet gateway links under the title */
ig-gateways { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: -0.8rem 0 2.2rem; font-family: var(--sans); font-size: 0.85rem; }

/* skills at a glance: five same-size names, no order, no marks */
ig-skills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin: 0.8rem 0 1.2rem; }
ig-skill {
  display: block; text-align: center; border: 1px solid var(--teal); color: var(--teal); border-radius: 2px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500; padding: 0.4em 0.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the overview reads as the page's lede; the collection stories keep the normal reading size */
ig-section[kind="overview"] ig-lede { font-size: 1.2rem; }

/* where the role is rarely hired: shorter and quieter */
ig-section[kind="rare"], ig-section[kind="nextdoor"], ig-section[kind="terms"] { border-top-color: var(--hair); }
ig-section[kind="rare"] ig-section-title, ig-section[kind="nextdoor"] ig-section-title, ig-section[kind="terms"] ig-section-title { font-size: 1.15rem; margin-bottom: 0.7rem; }
ig-section[kind="rare"] p { color: var(--muted); }

/* roles next door: one row per neighbouring role, the role name leading */
ig-nextdoor { display: block; background: var(--card); padding: 0.2rem 1.1rem; }
ig-next { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); }
ig-next:last-child { border-bottom: 0; }
ig-next > ig-link:first-child a { font-weight: 600; }

/* terms: a footnote glossary, as on hiring pages */
ig-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2.2rem; margin: 0; font-size: 0.9rem; line-height: 1.5; }
ig-gloss { display: block; }
ig-gloss-term { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

ig-updated { display: block; margin-top: 2.4rem; font-size: 0.85rem; font-style: italic; color: var(--muted); }

@media (max-width: 760px) {
  ig-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  ig-glossary { grid-template-columns: 1fr; }
  ig-section[kind="overview"] ig-lede { font-size: 1.1rem; }
}
