/* Shared styles for the price list guide pages, in Qrable's brand. The price lists are styled by the component itself. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");
:root {
	--ink: #031a57;
	--muted: #43506e;
	--line: #c9daea;
	--panel: #e2f0fb;
	--accent: #106ebe;
	--accent-2: #c8102e;
	--bg: #f3f8fc;
	--card: #fff;
	--code-bg: #0b1f4d;
	--code-ink: #dbe6fb;
	--font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font-body); }
a { color: var(--accent); }
.container { max-width: 60rem; margin: 0 auto; padding: 0 16px 4rem; }
header.top { background: linear-gradient(135deg, #106ebe 0%, #0a3399 100%); color: #fff; margin-bottom: 2.5rem; box-shadow: 0 8px 24px -16px rgba(3,26,87,.6); }
header.top .container { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { flex: 1 1 auto; font: 800 1.05rem/1.3 var(--font-heading); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.brand-back { order: -1; display: inline-flex; align-items: center; padding: .35rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-back:hover { background: rgba(255,255,255,.15); }
nav.pages { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; }
nav.pages a { padding: .3rem .8rem; border-radius: 999px; color: #dbe6fb; text-decoration: none; }
nav.pages a:hover { background: rgba(255,255,255,.12); color: #fff; }
nav.pages a[aria-current="page"] { background: #fff; color: var(--accent); font-weight: 600; }
.container > h1 { font: 800 clamp(1.75rem, 4vw, 2.3rem)/1.15 var(--font-heading); letter-spacing: -.02em; margin: 0 0 .6rem; }
.container > h2, .choice h2 { font: 700 1.35rem/1.25 var(--font-heading); margin: 2.75rem 0 .85rem; }
.container > h2::before { content: ""; display: block; width: 2.5rem; height: 4px; margin-bottom: .75rem; border-radius: 2px; background: var(--accent-2); }
.container > h3 { font: 700 1.05rem/1.3 var(--font-heading); margin: 1.75rem 0 .5rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
code, pre { font: 13px/1.6 var(--font-mono); font-variant-ligatures: none; }
:not(pre) > code { background: var(--panel); color: #0a3399; padding: .1em .4em; border-radius: 5px; word-break: break-word; }
pre { background: var(--code-bg); color: var(--code-ink); border: 0; border-radius: 12px; padding: 1.1rem 1.25rem; overflow: auto; max-height: 28rem; white-space: pre; box-shadow: 0 10px 30px -20px rgba(3,26,87,.8); }
pre .j-key { color: #8fc1ff; }
pre .j-str { color: #9be9a8; }
pre .j-num { color: #ffcf70; }
pre .j-lit { color: #ff9ab0; }
pre .j-pun { color: #7f93c4; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; margin: .5rem 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
tr:last-child > td { border-bottom: 0; }
th { background: var(--panel); color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
tr:hover > td { background: #f7fbfe; }
td a[data-link], td a[data-show], td a[data-keep-site] { font-weight: 600; text-decoration: none; }
.table-wrap { overflow-x: auto; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.endpoint .method { background: #1a7f37; color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 6px; }
.endpoint code { background: none; color: var(--ink); padding: 0; word-break: break-all; }
.try { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.try a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); text-decoration: none; font-size: .9rem; }
.try a:hover { background: var(--accent); color: #fff; }
.demo { border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; margin: .75rem 0 1.5rem; }
.status { font-size: .85rem; color: var(--muted); margin: .25rem 0 .5rem; }
.status.ok::before { content: "● "; color: #1a7f37; }
.status.bad::before { content: "● "; color: #cf222e; }
.note { border-left: 4px solid var(--accent); background: var(--card); padding: .85rem 1.1rem; border-radius: 0 12px 12px 0; box-shadow: 0 1px 2px rgba(3,26,87,.06); }
.site { font-size: .85rem; color: var(--muted); }
td > code, th > code { white-space: nowrap; word-break: normal; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.choice { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 0 1.1rem 1.1rem; min-width: 0; box-shadow: 0 10px 30px -24px rgba(3,26,87,.5); }
.choice h2 { margin-top: 1rem; padding-top: 0; }
.cta a { display: inline-block; padding: .6rem 1.15rem; border-radius: 999px; background: var(--accent-2); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 20px -12px rgba(200,16,46,.8); }
.cta a:hover { background: #a50d26; }
.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.response { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 1rem; box-shadow: 0 14px 40px -28px rgba(3,26,87,.6); }
.response__bar { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.response__request { background: none !important; color: var(--ink) !important; padding: 0 !important; word-break: break-all; }
.response__status { font-size: .85rem; color: var(--muted); }
.response__status.ok::before { content: "● "; color: #1a7f37; }
.response__status.bad::before { content: "● "; color: #cf222e; }
.response__tabs { display: flex; gap: .25rem; padding: .5rem 1rem 0; border-bottom: 1px solid var(--line); }
.response__tabs button { padding: .45rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; margin-bottom: -1px; }
.response__tabs button[aria-selected="true"] { border-color: var(--code-bg); background: var(--code-bg); color: #fff; font-weight: 600; }
.response__json { margin: 0; border-radius: 0; box-shadow: none; max-height: 32rem; }
.response__back { margin: 0; padding: .5rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.response__back a { font-weight: 600; text-decoration: none; }
#response { scroll-margin-top: 1rem; }
