/* Suite documentation. Loch ink, oxblood and brass on warm paper: the same family as the Find Care Scotland suite page. One typeface, self-hosted. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/plex-mono-400.woff2') format('woff2'); }

:root {
  --ink: #11262b; --ink2: #1d3d44; --text: #23373b; --muted: #50635f;
  --paper: #f6f1e7; --surface: #fffdf8; --line: #d9d1bf; --line-soft: #e8e1d0;
  --ox: #5a1229; --ox-tint: #f3e3e8; --brass: #d9b45a; --brass-deep: #8a6a1f; --brass-tint: #f7ecd0;
  --link: #7a1b3a; --focus: #1d6fd1;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --side: 16.5rem; --toc: 13rem; --measure: 46rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ox); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--brass); color: var(--ink); padding: .6rem 1rem; border-radius: 6px; z-index: 50; font-weight: 600; }
.skip:focus { top: .5rem; }

/* top band */
.top { background: var(--ink); color: #f6f1e7; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--brass); }
.top-in { max-width: 88rem; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; background: var(--brass); color: var(--ink); border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.search { position: relative; flex: 1; max-width: 30rem; margin-left: auto; }
.search input { width: 100%; padding: .55rem .9rem; border-radius: 999px; border: 1px solid #4b6a70; background: #1d3d44; color: #fff; font: inherit; font-size: .95rem; }
.search input::placeholder { color: #b9c9c6; }
.top-link { color: #d8e2df; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.top-link:hover { color: #fff; text-decoration: underline; }
.results { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgb(17 38 43 / .22); max-height: 70vh; overflow: auto; padding: .35rem; }
.results a { display: block; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.results a:hover, .results a:focus { background: var(--brass-tint); }
.results b { display: block; color: var(--ink); }
.results small { color: var(--muted); }
.results p { margin: .6rem .75rem; color: var(--muted); }
@media (max-width: 40rem) { .top-in { flex-wrap: wrap; gap: .6rem; } .search { order: 3; flex-basis: 100%; max-width: none; } .top-link { display: none; } .top { position: static; } }

/* shell */
.shell { max-width: 88rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.side-wide { display: none; }
.side-toggle { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .25rem .9rem; }
.side-toggle summary { cursor: pointer; font-weight: 600; padding: .55rem 0; color: var(--ink); }
.toc { display: none; }
@media (min-width: 56rem) { .shell { grid-template-columns: var(--side) minmax(0, 1fr); } .side-toggle { display: none; } .side-wide { display: block; } .side-wide .side { position: sticky; top: 5.2rem; max-height: calc(100vh - 6.5rem); overflow: auto; padding-right: .5rem; } }
@media (min-width: 82rem) { .shell { grid-template-columns: var(--side) minmax(0, var(--measure)) var(--toc); justify-content: center; } .toc { display: block; position: sticky; top: 5.2rem; align-self: start; font-size: .88rem; } body.is-home .shell { grid-template-columns: var(--side) minmax(0, 60rem); } }
.side ul { list-style: none; margin: 0; padding: 0; }
.side-home a, .side li a { display: block; padding: .32rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.side li a:hover { background: var(--line-soft); color: var(--ink); }
.side a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.side-group { margin-top: 1.1rem; }
.side-group > span { display: block; padding: 0 .7rem .25rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ox); }
.toc-t { margin: 0 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ox); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .22rem .8rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }

/* reading */
.doc { min-width: 0; }
.eyebrow { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ox); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; margin: 0 0 .6rem; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink2); margin: 0 0 1.75rem; max-width: 40rem; }
.prose { max-width: var(--measure); overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 .7rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 600; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; font-weight: 600; }
.prose h4 { font-size: 1rem; margin: 1.4rem 0 .3rem; font-weight: 600; }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin: .3rem 0; }
.prose li::marker { color: var(--brass-deep); }
.anchor { margin-left: .35rem; font-weight: 400; text-decoration: none; color: var(--line); opacity: 0; font-size: .85em; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; color: var(--link); }
code { font-family: var(--mono); font-size: .88em; background: var(--line-soft); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--ink); color: #eae6da; padding: 1rem 1.2rem; border-radius: 10px; overflow: auto; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.tablewrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .85rem; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:nth-child(even) td { background: #fbf7ee; }
.note { margin: 1.4rem 0; padding: .9rem 1.2rem; background: var(--brass-tint); border: 1px solid #e3cf93; border-radius: 10px; color: var(--ink); }
.note p { margin: .3rem 0; } .note strong { color: var(--ox); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; max-width: var(--measure); }
.pn a { display: block; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pn a:hover { border-color: var(--ink); } .pn a[rel=next] { text-align: right; grid-column: 2; }
.pn span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ox); font-weight: 700; margin-bottom: .15rem; }
.foot { background: var(--ink); color: #c9d6d3; padding: 2rem 1.25rem; font-size: .9rem; } .foot p { max-width: 70rem; margin: .3rem auto; } .foot a { color: #f2dfa2; }

/* cards and the home page */
.prose .cards { padding: 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.2rem 0 2rem; padding: 0; list-style: none; max-width: none; }
.cards li { margin: 0; max-width: none; }
.cards a { display: block; height: 100%; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--ink); background: #fff; }
.cards b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }
.cards small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.cards em { display: block; margin-top: .55rem; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ox); }
.mapwrap { background: var(--ink); border-radius: 16px; padding: 1.2rem; margin: 1.5rem 0 2rem; max-width: none; }
.is-home .prose, .is-home .prose p, .is-home .prose li { max-width: none; }
.is-home .prose > p, .is-home .prose > ul:not(.cards), .is-home .prose > ol { max-width: 44rem; }
.is-home .prose h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 20ch; margin-top: 1rem; }
.is-home .prose > p:first-of-type { font-size: 1.25rem; line-height: 1.5; color: var(--ink2); max-width: 40rem; }
.steps { counter-reset: s; list-style: none; padding: 0; } .steps li { counter-increment: s; position: relative; padding: .2rem 0 .8rem 3rem; max-width: 42rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--brass); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 40rem) { table { min-width: 34rem; } }
@media print { .top, .side-toggle, .side-wide, .toc, .pn, .foot { display: none; } .shell { display: block; padding: 0; } body { background: #fff; } }
@media (forced-colors: active) { .side a[aria-current="page"] { outline: 2px solid; } }

.sx-diagram { margin: 0; }
.sx-diagram svg { display: block; width: 100%; height: auto; }
.sx-diagram figcaption { margin-top: .75rem; font-size: .9rem; color: #b9c4c4; }
.sx-rings circle { fill: none; stroke: rgb(255 255 255 / .1); stroke-width: 1; }
.sx-live { fill: none; stroke: #d9b45a; stroke-width: 2.6; stroke-dasharray: 9 11; stroke-linecap: round; animation: sx-flow 2.4s linear infinite; }
.sx-rings circle { animation: sx-ring 5s ease-in-out infinite; } .sx-rings circle:nth-child(2) { animation-delay: 1s; } .sx-rings circle:nth-child(3) { animation-delay: 2s; }
@keyframes sx-flow { to { stroke-dashoffset: -20; } }
@keyframes sx-ring { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sx-live, .sx-rings circle { animation: none; } }
.sx-hub circle { fill: #5a1229; stroke: #d9b45a; stroke-width: 2.6; }
.sx-ht, .sx-hs, .sx-nt, .sx-ns { text-anchor: middle; }
.sx-ht { fill: #fff; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 24px; font-weight: 600; }
.sx-hs { fill: #e6c3cf; font-size: 12.5px; }
.sx-node rect { fill: #1d3d44; stroke: rgb(255 255 255 / .3); stroke-width: 1.5; }
.sx-nt { fill: #fff; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 20px; font-weight: 600; }
.sx-ns { fill: #c4bdae; font-size: 12.5px; }
.sx-here rect { stroke: #d9b45a; stroke-width: 3; fill: #24474f; }
.sx-here .sx-ns { fill: #d9b45a; font-weight: 700; }
.sx-link { cursor: pointer; }
.sx-link:hover .sx-node rect { stroke-width: 3; stroke: #fff; }
.sx-link:hover .sx-hub circle { stroke-width: 4; }
.sx-link:focus-visible { outline: 3px solid #d9b45a; outline-offset: 4px; }

