/* Couchwork Help: shares the palette and type of couchwork.co.uk */
:root {
  --teal-dark: #0e3b43; --teal-darker: #0a2c33; --teal: #0f7c8a; --amber: #b7791f; --terra: #c8552d;
  --bg: #fff; --alt: #f6f2ea; --text: #1d1c1d; --muted: #5e5c5f; --border: #e6e0d4; --card: #fff; --accent: #0f7c8a;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11171a; --alt: #151d22; --text: #eef5f6; --muted: #9fb0b5; --border: #26343a; --card: #18232a; --accent: #5fc0cf; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: rgba(183,121,31,.14); padding: 1px 6px; border-radius: 5px; word-break: break-word; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.brand small { font-weight: 600; color: var(--muted); font-size: .95rem; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--border); }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .94rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #17717e 0%, transparent 60%), linear-gradient(180deg, var(--teal-dark), var(--teal-darker)); color: #fff; padding: 72px 0 80px; text-align: center; }
.pill { display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.03em; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); margin: 0 auto 28px; max-width: 560px; }
.search { max-width: 560px; margin: 0 auto; }
.search input { width: 100%; padding: 16px 20px; font: inherit; font-size: 1.05rem; border-radius: 12px; border: 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); background: #fff; color: #1d1c1d; }
.search input:focus { outline: 3px solid #f2a37c; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: -36px; position: relative; }
.topic { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 50px -30px rgba(14,59,67,.4); scroll-margin-top: 80px; }
.topic .ico { font-size: 1.6rem; }
.topic h2 { margin: 8px 0 4px; font-size: 1.15rem; }
.topic p { margin: 0 0 12px; color: var(--muted); font-size: .94rem; }
.topic ul { margin: 0; padding: 0; list-style: none; }
.topic li a { display: block; padding: 6px 0; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); font-size: .95rem; }
.topic li a:hover { color: var(--accent); }
.popular { margin: 56px 0 72px; }
.eyebrow { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0; }
.popular h2 { margin: 4px 0 20px; font-size: 1.6rem; letter-spacing: -.02em; }
#results { margin: 32px 0 72px; }
.results { display: grid; gap: 10px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.result:hover { border-color: var(--teal); transform: translateY(-1px); }
.result .t { font-weight: 600; }
.result .s { color: var(--muted); font-size: .92rem; }
.tag { flex: none; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--alt); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.empty { color: var(--muted); }

.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 32px 0 80px; }
.side .fix-sticky { position: sticky; top: 88px; }
.side details { border-bottom: 1px solid var(--border); padding: 8px 0; }
.side summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.side ul { list-style: none; margin: 8px 0 4px; padding: 0; }
.side li a { display: block; padding: 4px 0 4px 10px; text-decoration: none; color: var(--muted); font-size: .9rem; border-left: 2px solid transparent; }
.side li a:hover { color: var(--text); }
.side li a[aria-current] { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; margin: 12px 0; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 8px; letter-spacing: -.02em; scroll-margin-top: 80px; }
.intro { font-size: 1.15rem; color: var(--muted); }
.doc p, .doc li { font-size: 1.02rem; }
.ui { display: inline-block; background: var(--alt); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; font-weight: 600; font-size: .9em; line-height: 1.5; color: var(--text); white-space: nowrap; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--border); }
.plain { padding-left: 22px; }
.plain li { margin: 6px 0; }
.note { display: flex; gap: 14px; border-radius: 12px; padding: 14px 18px; margin: 20px 0; border: 1px solid var(--border); background: var(--alt); }
.note p { margin: 2px 0 0; font-size: .97rem; }
.note-ico { font-size: 1.2rem; line-height: 1.5; }
.note-tip { background: color-mix(in srgb, var(--teal) 10%, var(--bg)); border-color: color-mix(in srgb, var(--teal) 35%, var(--border)); }
.note-warn { background: color-mix(in srgb, var(--terra) 10%, var(--bg)); border-color: color-mix(in srgb, var(--terra) 40%, var(--border)); }
.note-need { background: color-mix(in srgb, var(--amber) 11%, var(--bg)); border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.toc { background: var(--alt); border-radius: 12px; padding: 14px 20px; margin: 20px 0; font-size: .95rem; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.15rem; }
.btn { display: inline-block; background: var(--terra); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.notfound { text-align: center; padding: 96px 16px; }
.site-footer { border-top: 1px solid var(--border); background: var(--alt); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer p { margin: 8px 0 0; }

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 12px; }
  .side { order: 2; margin-top: 24px; }
  .side .fix-sticky { position: static; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 10px; }
  .bar { gap: 8px; padding-top: 10px; }
  .result { flex-direction: column; align-items: flex-start; gap: 8px; }
}
