/* support.claym.me – the CLAYM help centre, in the colours of claym.me. */
:root {
  --forest: #1E3A2B; --night: #16261D; --moss: #2F5A40; --lime: #D7EA77; --lime-soft: #EFF5C9; --orange: #F26B1D;
  --cream: #F6F3EA; --sand: #ECE7D9; --line: #DDD8C9; --ink: #1B1F1C; --text: #3c423e; --muted: #5d635e;
  --display: Archivo, "Segoe UI", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); color: var(--forest); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 19px; }
a { color: var(--forest); }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.small { font-size: 14px; color: var(--muted); }
.block { padding-block: 32px; display: flex; flex-direction: column; gap: 22px; }

/* header and footer */
.top { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-family: var(--display); font-size: 19px; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-weight: 900; letter-spacing: 2px; }
.to-site { margin-inline-start: auto; font-size: 14px; white-space: nowrap; }
.foot { border-top: 1px solid var(--line); margin-top: 32px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-block: 20px 28px; font-size: 14px; color: var(--muted); }
.foot-in a { color: var(--muted); }
.langs { margin-inline-start: auto; }

/* search */
.search { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding-inline: 16px 6px; }
.search:focus-within { border-color: var(--forest); outline: 3px solid rgba(215, 234, 119, .6); }
.search .icon { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 10px; outline: none; }
.search.small { flex: 1; max-width: 420px; }
.search.big { max-width: 680px; margin-inline: auto; padding: 6px 8px 6px 20px; box-shadow: 0 16px 40px rgba(30, 58, 43, .18); }
.search.big input { font-size: 18px; padding: 12px; }
.search.page { max-width: 680px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(30, 58, 43, .18); z-index: 30; text-align: start; }
.suggest a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--lime-soft); }
.suggest small { color: var(--muted); }
.suggest .all { font-weight: 700; color: var(--forest); }
mark { background: var(--lime); color: inherit; border-radius: 3px; padding: 0 1px; }

/* home */
.hero { position: relative; isolation: isolate; z-index: 2; background: var(--forest); color: var(--cream); padding-block: clamp(48px, 8vw, 96px); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 88% 10%, rgba(215, 234, 119, .35), transparent 50%), radial-gradient(circle at 4% 104%, rgba(242, 107, 29, .25), transparent 42%); }
.hero h1 { color: var(--lime); margin-bottom: 26px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 22px; border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(215, 234, 119, .4), transparent 60%), #fff; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.cat:hover, .cat:focus-visible { border-color: var(--forest); }
.cat .icon { grid-row: span 3; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--forest); color: var(--lime); }
.cat b { font-family: var(--display); font-size: 20px; color: var(--forest); line-height: 1.2; }
.cat small { color: var(--muted); font-size: 13px; }
.art-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.art-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.art-list a:hover, .art-list a:focus-visible { border-color: var(--forest); }
.art-list b { color: var(--forest); font-size: 17px; }
.more { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--cream); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-block: 16px; }
.more::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 90% 0, rgba(215, 234, 119, .3), transparent 50%); }
.more h2 { color: var(--lime); }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--lime); color: var(--forest); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e4f28f; }

/* category and article */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.cat-head { display: flex; gap: 16px; align-items: center; }
.cat-head .icon { width: 56px; height: 56px; padding: 13px; border-radius: 16px; background: var(--forest); color: var(--lime); }
.cat-head p { color: var(--text); margin: 6px 0 0; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.art { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.art .lead { font-size: 19px; color: var(--text); margin: 0; }
.art .note { font-size: 14px; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 10px 14px; margin: 0; }
.body { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; color: var(--text); }
.body > * { max-width: 72ch; margin: 0; }
.body h2 { margin-top: 18px; scroll-margin-top: 90px; }
.body h3 { margin-top: 8px; }
.body ul, .body ol { padding-inline-start: 24px; display: flex; flex-direction: column; gap: 6px; }
.body b { color: var(--ink); }
.body code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.body img { border-radius: 16px; border: 1px solid var(--line); }
.tip { background: var(--lime-soft); border-radius: 14px; padding: 14px 18px; color: var(--ink); }
.tabs { border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 18px; max-width: 72ch; }
.tab-list { display: inline-flex; gap: 4px; padding: 4px; margin: 10px 0 8px; border-radius: 999px; background: var(--cream); }
.tab-list button { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--forest); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--forest); color: var(--cream); }
.tab-panel { display: flex; flex-direction: column; gap: 12px; }
.tab-panel[hidden] { display: none; }
.vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; font-weight: 700; color: var(--forest); }
.vote button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--forest); cursor: pointer; }
.vote button:hover { border-color: var(--forest); }
.vote-msg { flex-basis: 100%; margin: 0; font-weight: 400; color: var(--text); }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.toc, .side-list { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 18px; padding: 18px; }
.toc b, .side-list b { font-family: var(--display); color: var(--forest); margin-bottom: 6px; }
.toc a, .side-list a { padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px; line-height: 1.35; }
.toc a:hover, .side-list a:hover, .toc a.on { background: var(--lime-soft); color: var(--forest); }

/* search page, contact */
.results { display: flex; flex-direction: column; gap: 14px; }
.facets { display: flex; flex-wrap: wrap; gap: 6px; }
.facets button { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 0; background: var(--sand); font: inherit; color: var(--forest); cursor: pointer; }
.facets button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.results .hit small { color: var(--muted); }
.narrow-block { max-width: 820px; }
.contact { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact legend { font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; }
.topics span { display: inline-flex; min-height: 42px; align-items: center; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; }
.topics input:checked + span { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.topics input:focus-visible + span { outline: 3px solid var(--lime); }
.tips ul { margin: 6px 0 0; padding-inline-start: 22px; color: var(--text); }

@media (max-width: 900px) {
  .art-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .search.small { order: 3; flex-basis: 100%; max-width: none; }
  .brand span { font-size: 17px; }
  .langs { margin-inline-start: 0; }
}
