/* Syndicate Help (wiki.stusyn.com). Paper-and-ink like syndicatemarketing.co, with a dark version.
   Layout: search-first home, then topics; articles are a readable column with a sticky side rail. */
:root {
  --paper: #f5f4ef; --card: #ffffff; --ink: #0d0f0c; --ink-2: #3b4038; --muted: #646a60; --line: #e3e1d8; --line-2: #d3d1c6;
  --lime: #c6ff3d; --link: #3d6200; --hl: #e6ff9e; --tip: #eefbd0; --warn: #fff1d6; --warn-ink: #7a4a00; --dark: #0b0d10;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0b0d10; --card: #121519; --ink: #eef1f3; --ink-2: #c9ced4; --muted: #98a0a9; --line: #22272e; --line-2: #2f353d; --link: #c6ff3d; --hl: rgba(198,255,61,.22); --tip: rgba(198,255,61,.08); --warn: rgba(255,179,107,.1); --warn-ink: #ffcf9e; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0b0d10; --card: #121519; --ink: #eef1f3; --ink-2: #c9ced4; --muted: #98a0a9; --line: #22272e; --line-2: #2f353d; --link: #c6ff3d; --hl: rgba(198,255,61,.22); --tip: rgba(198,255,61,.08); --warn: rgba(255,179,107,.1); --warn-ink: #ffcf9e; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.035em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.w-skip:focus { left: 12px; }
.w-wrap { max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.w-narrow { max-width: 780px; padding-block: 40px 64px; display: grid; gap: 18px; align-content: start; }
.w-dim { color: var(--muted); font-size: 14px; }
.w-eyebrow { margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.w-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: linear-gradient(transparent 62%, var(--hl) 62%); padding: 0 .08em; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.w-btn:hover { opacity: .88; }
.w-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
/* header */
.w-hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.w-hdr-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.w-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; letter-spacing: -.02em; }
.w-logo svg { width: 30px; height: 30px; }
.w-logo b { font-weight: 700; }
.w-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 14.5px; }
.w-nav a:not(.w-btn) { color: var(--ink-2); text-decoration: none; }
.w-nav a:not(.w-btn):hover { color: var(--ink); text-decoration: underline; }
.w-nav .w-btn { height: 36px; }
.w-search { display: flex; gap: 8px; }
.w-search input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 15.5px var(--sans); }
.w-search input::placeholder { color: var(--muted); }
.w-search.sm { flex: 1 1 220px; max-width: 360px; }
.w-search.sm input { height: 38px; font-size: 14.5px; }
.w-search.lg input { height: 56px; font-size: 17px; padding: 0 22px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); }
.w-search.lg button { height: 56px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--lime); color: #0b0f00; font: 700 15px var(--sans); cursor: pointer; }
@media (max-width: 640px) { .w-search.sm { order: 3; max-width: none; flex-basis: 100%; } .w-nav { gap: 12px; } .w-search.lg { flex-direction: column; } .w-search.lg button { height: 48px; } }
/* home */
.w-hero { border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 15% 0%, var(--tip), transparent 70%); }
.w-hero .w-wrap { padding-block: 56px 48px; display: grid; gap: 18px; max-width: 860px; }
.w-hint { margin: 0; font-size: 14px; color: var(--muted); }
.w-home { padding-block: 40px 56px; display: grid; gap: 40px; }
.w-h2 { font-size: 20px; margin-bottom: 14px; }
.w-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.w-cat { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.w-cat:hover { border-color: var(--ink); transform: translateY(-1px); }
.w-cat b { font-size: 16.5px; }
.w-cat span { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.w-cat small { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.w-cats.sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.w-cats.sm .w-cat { padding: 12px 14px; }
.w-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .w-two { grid-template-columns: 1fr; } }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; }
.w-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.w-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.w-list a:hover { text-decoration: underline; }
.w-list small { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
/* lists of articles */
.w-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.w-crumbs a { color: var(--muted); }
.w-lede { margin: 0; font-size: 18.5px; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.w-arts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.w-arts a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.w-arts a:hover { border-color: var(--ink); }
.w-arts span { color: var(--ink-2); font-size: 15px; }
.w-arts small { color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }
/* article */
.w-article { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; padding-block: 36px 64px; align-items: start; }
@media (max-width: 900px) { .w-article { grid-template-columns: 1fr; gap: 28px; } }
.w-body { display: grid; gap: 16px; min-width: 0; max-width: 720px; }
.w-flag { margin: 0; justify-self: start; font: 600 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--warn); color: var(--warn-ink); }
.w-prose { min-width: 0; display: grid; gap: 1em; }
.w-prose > * { margin: 0; min-width: 0; }
.w-prose h2 { font-size: 23px; margin-top: .8em; scroll-margin-top: 90px; }
.w-prose h3 { font-size: 18.5px; margin-top: .5em; scroll-margin-top: 90px; }
.w-prose p, .w-prose ul, .w-prose ol { max-width: 68ch; }
.w-prose ul, .w-prose ol { padding-left: 1.3em; display: grid; gap: .35em; }
.w-prose li::marker { color: var(--muted); }
.w-prose code { font: 13.5px var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.w-prose pre { background: var(--dark); color: #e9eef2; padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.w-prose pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.w-prose hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.w-prose strong { font-weight: 650; }
.w-prose a.w-missing { color: #c0392b; text-decoration-style: dashed; }
.w-check { list-style: none; padding-left: 0 !important; }
.w-check li { position: relative; padding-left: 28px; }
.w-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); }
.w-check li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid #0b0f00; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.w-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.w-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.w-table th { text-align: left; font: 600 11.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.w-table tr:first-child td { border-top: 0; }
.w-num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.w-callout { margin: 0; padding: 14px 16px 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted); }
.w-callout.tip { background: var(--tip); border-left-color: #7fb800; }
.w-callout.warn { background: var(--warn); border-left-color: #e08a00; }
.w-callout p { margin: 0; }
.w-updated { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.w-helpful { border-top: 1px solid var(--line); padding-top: 18px; }
.w-helpful p { margin: 0; }
.w-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-fb > span { font-weight: 600; }
.w-fb .w-btn { height: 36px; }
.w-fb-more { flex-basis: 100%; display: grid; gap: 8px; max-width: 520px; }
.w-fb-more textarea, .w-form input, .w-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 15.5px/1.5 var(--sans); }
.w-fb-more .w-btn { justify-self: start; }
.w-side { position: sticky; top: 88px; display: grid; gap: 22px; }
@media (max-width: 900px) { .w-side { position: static; } }
.w-toc, .w-rel { display: grid; gap: 6px; font-size: 14.5px; }
.w-toc b, .w-rel b { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.w-toc a, .w-rel a { color: var(--ink-2); text-decoration: none; padding: 2px 0 2px 10px; border-left: 2px solid var(--line); }
.w-toc a:hover, .w-rel a:hover { color: var(--ink); border-left-color: var(--ink); }
.w-askbox { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: var(--r); background: var(--dark); color: #eef1f3; border: 1px solid var(--line-2); }
.w-askbox p { margin: 0; color: #b9c0c7; font-size: 14.5px; }
.w-askbox .w-btn { background: var(--lime); color: #0b0f00; }
.w-askbox.wide { padding: 22px; }
/* forms */
.w-form { display: grid; gap: 14px; }
.w-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.w-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .w-row { grid-template-columns: 1fr; } }
.w-form .w-btn { justify-self: start; height: 46px; padding: 0 22px; }
.w-hp { position: absolute; left: -9999px; }
.w-alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--warn); color: var(--warn-ink); }
/* footer */
.w-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 15px; }
.w-foot .w-wrap { display: grid; gap: 6px; }
.w-foot p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .w-hdr, .w-side, .w-helpful, .w-foot { display: none; } body { background: #fff; } }
