.wd-hero { display: grid; gap: 14px; }
.wd-hero h1 { margin: 0; }
.wd-hero .lede { margin: 0; max-width: 68ch; }
.wd-endpoint { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.wd-endpoint code { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: #fff; border: 1px solid var(--border-blue, #A8D2E3); border-radius: 6px; padding: 5px 10px; word-break: break-all; }
.wd-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-facts span { font-size: 13px; border: 1px solid var(--border-blue, #A8D2E3); background: #fff; border-radius: 999px; padding: 3px 12px; color: var(--primary, #005C8C); }

.hero .wd-hero { justify-items: center; text-align: center; }
.hero .wd-hero .section-label { color: rgba(255,255,255,.8); margin: 0; }
.hero .wd-endpoint { justify-content: center; color: rgba(255,255,255,.85); }
.hero .wd-endpoint code { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .wd-facts { justify-content: center; }
.hero .wd-facts span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
/* Wayne for AI assistants: documentation page. Scoped to .wd; colours come from the site's tokens. */
.wd { --wd-ink: var(--text-primary, #121212); --wd-ink2: var(--text-secondary, #555); --wd-muted: var(--text-muted, #888);
  --wd-primary: var(--primary, #005C8C); --wd-accent: var(--accent, #0085B4); --wd-tint: var(--light-blue, #D8E9F0);
  --wd-border: var(--border-blue, #A8D2E3); --wd-bg: var(--bg, #F5F9FC); --wd-line: #e2e8ec; --wd-code: #f3f6f8;
  --wd-ok: #2f8a72; --wd-ok-bg: #e3f4ef; --wd-warn: #b35f00; --wd-warn-bg: #fff1e0; --wd-alarm: #a7405a; --wd-alarm-bg: #f7e8ec;
  --wd-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--wd-ink); font-size: 15px; line-height: 1.6; }
.wd *, .wd *::before, .wd *::after { box-sizing: border-box; }
.wd a { color: var(--wd-primary); }
.wd a:focus-visible, .wd button:focus-visible, .wd input:focus-visible, .wd select:focus-visible, .wd summary:focus-visible { outline: 2px solid var(--wd-accent); outline-offset: 2px; }
.wd code, .wd pre, .wd-mono { font-family: var(--wd-mono); font-size: 0.86em; }
.wd :not(pre) > code { background: var(--wd-code); border: 1px solid var(--wd-line); border-radius: 4px; padding: 0 4px; }
.wd h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.wd h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.wd p { margin: 0; max-width: 70ch; }
.wd ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }

.wd-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
.wd-index { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.wd-index a { color: var(--wd-ink2); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--wd-line); }
.wd-index a:hover { color: var(--wd-primary); border-left-color: var(--wd-accent); text-decoration: none; }
.wd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wd-ink2); margin-bottom: 6px; }
.wd-main { min-width: 0; display: grid; gap: 56px; }
.wd-sec { display: grid; gap: 16px; min-width: 0; scroll-margin-top: 90px; }
.wd-lede { color: var(--wd-ink2); }
.wd-note { font-size: 14px; color: var(--wd-ink2); }
.wd-panel { background: #fff; border: 1px solid var(--wd-line); border-radius: 10px; padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.wd-panel.wd-flush { padding: 0; }
.wd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wd-callout { border-left: 3px solid var(--wd-accent); background: #fff; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; }
.wd-callout.warn { border-left-color: var(--wd-warn); background: var(--wd-warn-bg); }

.wd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: wds; }
.wd-steps > li { counter-increment: wds; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--wd-line); border-radius: 10px; padding: 18px; }
.wd-steps > li::before { content: counter(wds); width: 30px; height: 30px; border-radius: 50%; background: var(--wd-tint); color: var(--wd-primary); font-weight: 700; display: grid; place-items: center; }
.wd-body { display: grid; gap: 12px; min-width: 0; }
.wd-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.wd-path span { background: var(--wd-bg); border: 1px solid var(--wd-line); border-radius: 4px; padding: 2px 8px; }
.wd-path i { color: var(--wd-muted); font-style: normal; }
.wd-shot { margin: 0; border: 1px solid var(--wd-line); border-radius: 8px; overflow: hidden; background: #fff; max-width: 100%; }
.wd-shot img { display: block; width: 100%; height: auto; }
.wd-shot-narrow { max-width: 460px; }

.wd-form { display: grid; grid-template-columns: max-content minmax(0, 260px); gap: 10px 14px; align-items: center; font-size: 14px; }
.wd-form label { color: var(--wd-ink2); }
.wd-form select, .wd-form input, .wd-filter input { font: inherit; font-size: 14px; border: 1px solid var(--wd-border); border-radius: 6px; padding: 7px 10px; background: #fff; color: var(--wd-ink); width: 100%; }
.wd-where { font-size: 14px; color: var(--wd-ink2); }
.wd-code { position: relative; min-width: 0; }
.wd pre { margin: 0; background: var(--wd-code); border: 1px solid var(--wd-line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.55; color: var(--wd-ink); }
.wd-copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; background: #fff; border: 1px solid var(--wd-line); color: var(--wd-primary); border-radius: 4px; padding: 3px 9px; cursor: pointer; }
.wd-copy:hover { border-color: var(--wd-accent); }

.wd-examples { display: grid; gap: 18px; }
.wd-chat { background: #fff; border: 1px solid var(--wd-line); border-radius: 10px; overflow: hidden; min-width: 0; }
.wd-chat-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--wd-line); background: var(--wd-bg); }
.wd-chat-head h3 { font-size: 16px; }
.wd-tag { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wd-ink2); border: 1px solid var(--wd-line); border-radius: 999px; padding: 1px 9px; background: #fff; }
.wd-turns { display: grid; gap: 14px; padding: 18px; }
.wd-you { justify-self: end; max-width: 85%; background: var(--wd-primary); color: #fff; border-radius: 12px 12px 2px 12px; padding: 10px 14px; }
.wd-calls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--wd-ink2); }
.wd-calls code { background: var(--wd-tint) !important; border-color: var(--wd-border) !important; color: var(--wd-primary); }
.wd-ai { max-width: 92%; background: var(--wd-bg); border: 1px solid var(--wd-line); border-radius: 12px 12px 12px 2px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.wd-ai p { max-width: none; }
.wd-tbl { overflow-x: auto; min-width: 0; }
.wd table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wd th, .wd td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--wd-line); vertical-align: top; }
.wd th { font-weight: 500; color: var(--wd-ink2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.wd-ai td { background: #fff; }
.wd-pill { display: inline-block; font-size: 12px; border-radius: 999px; padding: 1px 9px; font-weight: 500; white-space: nowrap; }
.wd-pill.off { background: #eef0f1; color: var(--wd-ink2); }
.wd-pill.warn { background: var(--wd-warn-bg); color: var(--wd-warn); }
.wd-pill.alarm { background: var(--wd-alarm-bg); color: var(--wd-alarm); }

.wd-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-tabs button { font: inherit; font-size: 14px; border: 1px solid var(--wd-line); background: #fff; color: var(--wd-ink2); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.wd-tabs button[aria-selected="true"] { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }
.wd-prompts { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.wd-prompts li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--wd-line); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; }
.wd-prompts li span { min-width: 0; }
.wd-prompts button { flex: none; font: inherit; font-size: 12px; background: #fff; border: 1px dashed var(--wd-border); color: var(--wd-primary); border-radius: 4px; padding: 3px 10px; cursor: pointer; }

.wd-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wd-filter input { width: min(320px, 100%); }
.wd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chips button { font: inherit; font-size: 13px; border: 1px solid var(--wd-line); background: #fff; color: var(--wd-ink2); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.wd-chips button[aria-pressed="true"] { background: var(--wd-tint); border-color: var(--wd-border); color: var(--wd-primary); }
.wd-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.wd-tool { background: #fff; border: 1px solid var(--wd-line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.wd-tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.wd-tool-head code { font-size: 14px !important; font-weight: 500; color: var(--wd-primary); background: none !important; border: 0 !important; padding: 0 !important; }
.wd-tool p { font-size: 14px; color: var(--wd-ink2); }
.wd-args { display: flex; flex-wrap: wrap; gap: 4px; }
.wd-args span { font-family: var(--wd-mono); font-size: 11.5px; background: var(--wd-code); border: 1px solid var(--wd-line); border-radius: 3px; padding: 0 5px; }
.wd-args span.req { border-color: var(--wd-border); background: var(--wd-tint); }
.wd-perm { font-size: 11.5px; color: var(--wd-ink2); }

.wd dl { margin: 0; display: grid; gap: 10px; }
.wd dt { font-family: var(--wd-mono); font-size: 13px; color: var(--wd-primary); font-weight: 500; }
.wd dd { margin: 0; font-size: 14px; color: var(--wd-ink2); }
.wd-withheld { font-family: var(--wd-mono); font-size: 13px; background: #fff; color: var(--wd-warn); border-radius: 3px; padding: 0 5px; }

.wd-faq { display: grid; gap: 8px; }
.wd-faq details { background: #fff; border: 1px solid var(--wd-line); border-radius: 8px; padding: 0 16px; }
.wd-faq summary { cursor: pointer; padding: 12px 0; font-weight: 500; }
.wd-faq details p { padding: 0 0 14px; color: var(--wd-ink2); font-size: 14.5px; }
.wd-faq details[open] summary { color: var(--wd-primary); }

@media (max-width: 900px) {
  .wd-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wd-index { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .wd-index .wd-eyebrow { width: 100%; }
  .wd-index a { border: 1px solid var(--wd-line); border-radius: 999px; padding: 2px 10px; background: #fff; }
  .wd-two { grid-template-columns: minmax(0, 1fr); }
  .wd-you, .wd-ai { max-width: 100%; }
  .wd-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
