/* Pathfinder: three questions (who you are, where you are, what comes first), then a step-by-step
   path built only from JewelLoop's own pages and directories. Institutions and places only, listed
   alphabetically with the same sources as the directories; never businesses, never rankings. */
:root {
  --paper: #ffffff; --ink: #16161a; --ink-soft: #3d3d45; --muted: #6b6b75; --rule: #e4e2de; --mist: #f4f3f1;
  --ruby: #9b1b30; --ruby-soft: #fbe9ec; --gold: #b8892f; --good: #2f7d4f;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] { --paper: #121216; --ink: #f1efe9; --ink-soft: #c9c6bf; --muted: #9a978f; --rule: #2c2c33; --mist: #1b1b21; --ruby: #e0566c; --ruby-soft: #2a1519; --gold: #e1b25a; --good: #5fbf86; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 0; }
a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; padding-block: 20px 48px; display: grid; gap: 24px; }
header.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ruby); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 4px; height: 15px; background: var(--gold); clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%); }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 52px); line-height: 1.03; margin: 6px 0 0; text-wrap: balance; }
h2.sec { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; line-height: 1.1; text-wrap: balance; }
.lede { max-width: 68ch; color: var(--ink-soft); margin: 8px 0 0; }
.prototype { font-size: 12px; color: var(--muted); border: 1px solid var(--rule); padding: 4px 10px; white-space: nowrap; }

/* the three questions */
.ask { display: grid; gap: 22px; }
.q { display: grid; gap: 10px; }
.q-h { display: flex; align-items: baseline; gap: 12px; }
.q-n { font: 500 13px var(--font-data); color: var(--paper); background: var(--ink); width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.q-t { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0; }
.q.off { opacity: .45; pointer-events: none; }
.chips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.chip { text-align: left; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 12px 14px; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.chip b { font-weight: 600; font-size: 15px; }
.chip span { font-size: 13px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ruby); background: var(--ruby-soft); box-shadow: inset 3px 0 0 var(--ruby); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
.place { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); min-width: 0; max-width: 100%; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }

/* the path */
.path { display: grid; gap: 18px; border-top: 1px solid var(--ink); padding-top: 18px; }
.path-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: end; }
.summary { margin: 4px 0 0; color: var(--ink-soft); max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { font: 600 13px var(--font-body); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 8px 12px; cursor: pointer; }
.btn:hover { background: var(--mist); }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.step::before { counter-increment: step; content: counter(step); font: 500 15px var(--font-data); width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 1; }
.step.first::before { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.step::after { content: ""; position: absolute; left: 18px; top: 36px; bottom: 0; width: 1px; background: var(--rule); }
.step:last-child::after { display: none; }
.card { display: grid; gap: 10px; min-width: 0; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 4px 0 0; line-height: 1.15; }
.why { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.do { margin: 0; font-size: 14px; padding: 8px 12px; background: var(--mist); border-left: 3px solid var(--gold); max-width: 75ch; }
.do b { color: var(--ink); }
.grp { display: grid; gap: 6px; }
.grp h4 { margin: 0; font: 600 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-size: 13.5px; border: 1px solid var(--rule); padding: 5px 10px; text-decoration: none; }
.links a:hover { border-color: var(--ruby); }
.links a .k { font: 500 12px var(--font-data); color: var(--ruby); margin-right: 6px; text-transform: uppercase; letter-spacing: .06em; }
ul.inst { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
ul.inst li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
ul.inst li .nm { font-weight: 600; }
ul.inst li .nm a { text-decoration: none; }
ul.inst li .nm a:hover { text-decoration: underline; }
ul.inst li .meta { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
ul.inst li .where { font: 500 12px var(--font-data); color: var(--muted); text-align: right; }
.scope { font-size: 12.5px; color: var(--muted); margin: 0; }
.scope b { color: var(--ink-soft); font-weight: 600; }
.more { font-size: 13px; }
.gap { font-size: 13.5px; color: var(--ink-soft); border: 1px dashed var(--rule); padding: 8px 12px; margin: 0; }

.foot { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--ink); padding-top: 18px; }
.foot div { border-top: 2px solid var(--gold); padding-top: 8px; font-size: 14px; color: var(--ink-soft); }
.foot h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 4px; color: var(--ink); }
.mail { font-family: var(--font-data); font-size: 13px; user-select: all; }
@media (max-width: 520px) { .step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; } .step::before { width: 30px; height: 30px; font-size: 13px; } .step::after { left: 15px; top: 30px; } .card h3 { font-size: 21px; } }
/* jewelloop.net: one column that never grows wider than the screen */
.wrap { grid-template-columns: minmax(0, 1fr); }
.jl-table-scroll { overflow-x: auto; max-width: 100%; }
/* shown once the page's script has run (static/visual/ready.js): no jump while loading */
html:not(.jl-ready) .wrap { visibility: hidden; }

/* On jewelloop.net the page around it shows the title and the introduction. */
header.top { display: none !important; }
