/* RoboProbe community features: assets/app/*.css, joined by build/bundle_app.py. Edit those files, not this one. */
/* ==== 00-base.css */
/* Discussion (assets/app/*.js): comments under each blog post, the forum on the Discussion page, and the dialogs
   (sign in, choose a Probie). Everything the script draws carries .dx; colours come from the theme tokens, so light
   and dark mode follow the rest of the page. */

.discuss { margin: 72px 0 0; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.dx { --up: #f2603a; --down: #6b7cff; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.dx [hidden] { display: none !important; }
.dx .d-h { margin: 0 0 20px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.dx .d-h-sm { margin: 0 0 16px; font: 600 16px/1.3 var(--sans); letter-spacing: 0; }
.dx .d-count { margin-left: 6px; font: 500 14px/1 var(--sans); color: var(--ink-3); vertical-align: middle; }
.dx .d-note, .dx .d-empty { color: var(--ink-2); }
.dx .d-empty { padding: 18px 0; }

/* controls */
.dx .d-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.dx .d-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.dx .d-btn svg { width: 18px; height: 18px; flex: none; }
.dx .d-btn-sm { padding: 7px 14px; font-size: 14px; }
.dx .d-primary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dx .d-primary:hover { color: var(--paper); opacity: .88; }
.dx .d-primary:disabled { opacity: .5; cursor: default; }
.dx .d-link { padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 13px/1.4 var(--sans); text-decoration: none; cursor: pointer; }
.dx .d-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dx .d-pill { display: inline-flex; align-items: center; padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.dx .d-pill:hover { background: var(--card); color: var(--ink); }
.dx .d-pill[aria-current], .dx .d-pill[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); }
.dx input, .dx textarea { box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); }
.dx input:focus, .dx textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.dx button:focus-visible, .dx a:focus-visible, .dx summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dx .d-msg { margin: 10px 0 0; font-size: 13.5px; color: #c2410c; }
.dx .d-msg:empty { display: none; }
.dx .d-row { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 10px; }
.dx .d-row .d-msg { margin: 0 auto 0 0; }
.dx .d-dot { color: var(--ink-3); }
.dx .d-name { font-weight: 600; color: var(--ink); }
.dx .d-name.is-gone { font-weight: 500; color: var(--ink-3); }
.dx .d-team { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--up) 14%, transparent); color: #c2410c; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.dx .d-flag { font-size: 12px; color: var(--ink-3); }
.dx time { font-size: 12.5px; color: var(--ink-3); }
.dx .d-body { overflow-wrap: anywhere; }
.dx .d-body a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* avatars: everyone is a Probie */
.dx .d-av { display: block; flex: none; border-radius: 50%; }
.dx .d-av-none { background: var(--line-soft); }

/* signing in */
.dx .d-signin { padding: 22px 22px 18px; border-radius: 14px; background: var(--card); }
.dx .d-lead { margin: 0 0 14px; font-weight: 600; }
.dx .d-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dx .d-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--ink-3); font-size: 13px; }
.dx .d-or::before, .dx .d-or::after { content: ""; flex: 1; border-top: 1px solid var(--line-soft); }
.dx .d-email { display: flex; gap: 10px; flex-wrap: wrap; }
.dx .d-email input { flex: 1 1 220px; min-width: 0; }
.dx .d-sent { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.dx .d-sent p { margin: 0; padding-left: 28px; position: relative; color: var(--ink); }
.dx .d-sent p::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #2f9e5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dx .d-sent .d-link { margin-left: 28px; }
.dx .d-privacy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* the account at the top right of every page, right of the language and theme switch (which moves over for it) */
.acct { position: fixed; top: 18px; right: 22px; z-index: 41; display: flex; align-items: center; gap: 4px; height: 36px; min-width: 36px; }
.acct:empty { width: 36px; border-radius: 50%; background: var(--cream); }
/* the language/theme switch sits left of the account, whose width the script measures (--acct-w) */
:root { --acct-w: 36px; }
.modes { right: calc(22px + var(--acct-w) + 10px); }
.site-bar { --modes-w: calc(175px + var(--acct-w)); }
.acct-in { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink-2); cursor: pointer; transition: color .2s; }
.acct-in:hover { color: var(--ink); }
.acct-signin { height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: opacity .2s; }
.acct-signin:hover { opacity: .88; }
.acct-in svg, .acct-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-ico { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); transition: color .2s, background .2s; }
.acct-ico:hover, .acct-ico[aria-current] { color: var(--ink); background: var(--cream); }
.acct-badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #f2603a; color: #fff; font: 700 10px/16px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.acct-me { display: block; margin-left: 2px; border-radius: 50%; line-height: 0; }
.acct-me .d-av { transition: box-shadow .2s; }
.acct-me:hover .d-av, .acct-me[aria-current] .d-av { box-shadow: 0 0 0 2px var(--line); }
@media (max-width: 820px) { .acct { top: 14px; right: 18px; } .modes { right: calc(18px + var(--acct-w) + 8px); } }

/* the site's links: in the bar on wide screens; on a phone they fold into the ☰ menu, opened as a panel */
.nav-items { display: contents; }
.nav-menu { display: none; }
@media (max-width: 600px) {
  .site-bar { justify-content: flex-start; gap: 4px; }
  .site-links { margin-right: 0; }
  .nav-menu { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
  .nav-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-menu[aria-expanded="true"] { background: var(--cream); }
  .nav-items { display: none; }
  html.nav-open .nav-items { position: fixed; top: 60px; left: 12px; z-index: 46; display: grid; min-width: 220px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--paper); box-shadow: 0 14px 40px rgba(0, 0, 0, .16); }
  html.nav-open .nav-items .nav-link { padding: 11px 14px; border-radius: 9px; font-size: 16px; color: var(--ink); }
  html.nav-open .nav-items .nav-link:hover, html.nav-open .nav-items .nav-link[aria-current] { background: var(--cream); }
  html.nav-open .nav-items .gh-link { display: inline-grid; width: auto; height: auto; justify-content: start; padding: 11px 14px; }
}
/* on a phone the switch gets narrower: "EN" for English (the word stays for screen readers) */
@media (max-width: 480px) {
  .modes a { padding: 5px 9px; }
  .modes a[data-mode="en"] { font-size: 0; }
  .modes a[data-mode="en"]::before { content: "EN"; font-size: 13px; }
}
@media (max-width: 380px) {
  .modes a { padding: 5px 6px; }
  .modes { right: calc(18px + var(--acct-w) + 4px); }
  .acct { gap: 0; }
}

/* writing */
.dx .d-compose textarea { display: block; width: 100%; resize: vertical; min-height: 84px; }
.dx .d-compose.is-reply { margin: 10px 0 4px; }
.dx .d-compose.is-reply textarea { min-height: 64px; }

/* votes */
.dx .v { display: flex; align-items: center; color: var(--ink-2); }
.dx .v-col { flex-direction: column; gap: 1px; width: 40px; }
.dx .v-row { gap: 2px; margin-right: 6px; }
.dx .v button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.dx .v button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dx .v .v-up:hover { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.dx .v .v-dn:hover { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.dx .v-n { min-width: 2ch; font: 700 13px/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.dx .v.is-up .v-up, .dx .v.is-up .v-n { color: var(--up); }
.dx .v.is-down .v-dn, .dx .v.is-down .v-n { color: var(--down); }
.dx .v.is-up .v-up svg, .dx .v.is-down .v-dn svg { fill: currentColor; }

/* a comment thread: replies hang off a line from their parent's Probie; the line (or −/+) folds the branch */
.dx .c-sort { display: flex; align-items: center; gap: 4px; margin: 26px 0 0; font-size: 13px; color: var(--ink-3); }
.dx .c-sort span { margin-right: 6px; }
.dx .c-sort .d-pill { padding: 4px 11px; font-size: 13px; }
.dx .c-list { margin-top: 18px; }
.dx .c { margin-top: 16px; }
.dx .c-kids > .c:first-child { margin-top: 12px; }
.dx .c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-height: 26px; font-size: 14px; }
.dx .c-to, .dx .c-n { font-size: 12.5px; color: var(--ink-3); }
.dx .c-tog { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: 500 16px/1 var(--sans); cursor: pointer; }
.dx .c-tog:hover { background: var(--card); color: var(--ink); }
.dx .c-wrap { position: relative; margin: 2px 0 0 11px; padding: 0 0 2px 21px; border-left: 2px solid var(--line-soft); }
.dx .c-wrap:has(> .c-line:hover) { border-left-color: var(--ink-3); }
.dx .c-line { position: absolute; top: 0; bottom: 0; left: -9px; width: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
.dx .c-wrap > .d-body { padding-top: 2px; }
.dx .c-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 4px 0 0 -6px; }
.dx .c.is-deleted .d-body { color: var(--ink-3); }
.dx .c.is-hidden > .c-wrap > .d-body, .dx .c.is-hidden > .c-head { opacity: .6; }
.dx .c.is-shut > .c-head { opacity: .75; }
.dx .c.is-new > .c-wrap > .d-body { animation: d-flash 1.6s ease; }
@keyframes d-flash { from { background: color-mix(in srgb, var(--up) 16%, transparent); } to { background: transparent; } }

/* the forum: a bar (sorting, account, new post), then posts with their votes on the left */
.dx .f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.dx .f-sort { display: flex; gap: 4px; }
.dx .f-right { display: flex; align-items: center; gap: 10px; }
.dx .f-list { margin: 0; padding: 0; list-style: none; }
.dx .f-post, .dx .f-full { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }
.dx .f-post { padding: 14px 6px 12px; border-bottom: 1px solid var(--line-soft); border-radius: 0; transition: background .15s; }
.dx .f-post:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.dx .f-post.is-hidden, .dx .f-full.is-hidden { opacity: .6; }
.dx .f-main { min-width: 0; }
.dx .f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin: 0 0 3px; font-size: 13px; }
.dx .f-meta .d-name { font-weight: 500; }
.dx .f-title { margin: 0; font: 600 18px/1.35 var(--sans); letter-spacing: -.005em; }
.dx .f-title a { color: var(--ink); text-decoration: none; }
.dx .f-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dx .f-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.dx .f-foot { margin: 8px 0 0 -8px; }
.dx .f-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; color: var(--ink-2); font: 600 13px/1.2 var(--sans); text-decoration: none; }
.dx .f-chip:hover { background: var(--card); color: var(--ink); }
.dx .f-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dx .f-more { margin: 22px 0 0; text-align: center; }
.dx .f-empty { display: grid; justify-items: center; gap: 14px; padding: 56px 0 40px; color: var(--ink-2); text-align: center; }
.dx .f-empty p { margin: 0; }

/* one post, and writing one */
.dx .f-backrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.dx .f-back { color: var(--ink-2); font: 500 14px/1.4 var(--sans); text-decoration: none; }
.dx .f-back:hover { color: var(--ink); }
.dx .f-h { margin: 2px 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.22; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dx .f-body { font-size: 16px; line-height: 1.65; }
.dx .f-full .c-acts { margin: 14px 0 0; }
.dx .f-comments { margin: 30px 0 0; padding: 26px 0 0 52px; border-top: 1px solid var(--line-soft); }
.dx .f-form { display: grid; gap: 12px; }
.dx .f-form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dx .f-form-head .f-h { margin: 0; }
.dx .f-form input { font-size: 17px; font-weight: 600; }
.dx .f-form textarea { resize: vertical; min-height: 180px; }

/* the dialog */
html.d-lock { overflow: hidden; }
.d-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15, 15, 18, .45); animation: d-fade .18s ease; }
.d-modal .d-sheet { position: relative; box-sizing: border-box; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 22px; border-radius: 18px; background: var(--paper); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.d-modal .d-sheet.is-signin .d-signin { padding: 0; background: none; }
.d-modal .d-sheet.is-signin .d-lead { margin-right: 28px; font: 500 22px/1.25 var(--serif); }
.d-modal .d-slot { display: contents; }
.d-modal .d-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font: 400 24px/1 var(--sans); cursor: pointer; z-index: 2; }
.d-modal .d-x:hover { background: var(--card); color: var(--ink); }
.d-modal .d-mh { margin: 0 40px 16px 0; font: 500 24px/1.2 var(--serif); }
@keyframes d-fade { from { opacity: 0; } }

/* choosing a Probie (on the profile page): the preview on the left, a row per part on the right */
.dx .pk { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; }
.dx .pk-prev { display: grid; justify-items: center; align-content: start; gap: 10px; padding-top: 6px; text-align: center; }
.dx .pk-prev p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.dx .pk-rows { display: grid; gap: 16px; }
.dx .pk-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.dx .pk-row legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dx .pk-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.dx .pk-opt { padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; transition: transform .12s; }
.dx .pk-opt:hover { transform: scale(1.08); }
.dx .pk-opt[aria-pressed="true"] { border-color: var(--ink); }
.dx .pf-pick .d-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* the profile page: who you are, then a card for your Probie and one for your name */
.profile-page .profile { max-width: 800px; margin-top: clamp(20px, 3vh, 32px); }
.dx .pf-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.dx .pf-who { flex: 1; min-width: 0; }
.dx .pf-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 600 24px/1.25 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dx .pf-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.dx .pf-sub i { font-style: normal; color: var(--ink-3); }
.dx .pf-card { margin-top: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: 16px; background: var(--card); }
.dx .pf-h { margin: 0 0 16px; font: 600 16px/1.3 var(--sans); }
.dx .pf-card .pk-opt[aria-pressed="false"]:hover { border-color: var(--line); }
.dx .pf-form { display: flex; flex-wrap: wrap; gap: 10px; }
.dx .pf-form input { flex: 1 1 240px; min-width: 0; }
.dx .pf-help { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.dx .d-msg.is-ok { color: #2f9e5b; }

/* a short note (e.g. "sign in to vote") */
.d-toast { position: fixed; z-index: 1001; left: 50%; bottom: 28px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14px/1.3 var(--sans); opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.d-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the Discussion page: the forum is the page, so it needs no rule of its own */
.discussion-page .discuss[data-forum] { max-width: 800px; margin-top: clamp(28px, 4vh, 44px); padding-top: 0; border-top: 0; }

@media (max-width: 820px) {
  .discuss { margin-top: 56px; }
  .dx .d-signin { padding: 18px 16px 14px; }
  .dx .c-wrap { margin-left: 11px; padding-left: 11px; }
  .dx .f-post, .dx .f-full { grid-template-columns: 34px minmax(0, 1fr); gap: 0 8px; }
  .dx .f-post { padding-left: 0; padding-right: 0; }
  .dx .v-col { width: 34px; }
  .dx .f-comments { padding-left: 0; }
  .dx .f-bar { flex-wrap: nowrap; gap: 6px; }
  .dx .f-sort { gap: 0; }
  .dx .f-bar .d-pill { padding: 6px 10px; }
  .dx .f-right { gap: 6px; margin-left: auto; }
  .dx .f-new { padding: 9px 13px; }
  .dx .f-title { font-size: 16.5px; }
  .dx .pk { grid-template-columns: 1fr; gap: 14px; }
  .dx .pf-head { flex-wrap: wrap; gap: 14px; }
  .dx .pf-head .d-av { width: 64px; height: 64px; }
  .dx .pf-who { flex: 1 1 calc(100% - 80px); }
  .dx .pf-out { order: 3; margin-left: 78px; }
  .dx .pk-prev { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; }
  .dx .pk-prev .d-av { width: 84px; height: 84px; grid-row: span 2; }
  .d-modal { align-items: end; padding: 0; }
  .d-modal .d-sheet { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 22px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .d-modal, .dx .c.is-new > .c-wrap > .d-body { animation: none; }
}
/* ==== 90-features.css */
/* assets/app/90-features.css: Markdown, the editor, Community extras (search, tags, pictures, Blog requests),
   profiles, notifications, the back end and the report dialog. Colours come from the theme tokens. */

/* people: names link to profiles; the ORCID-verified mark */
.dx a.d-name { text-decoration: none; }
.dx a.d-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dx .d-av-link { display: inline-block; line-height: 0; border-radius: 50%; }
.dx .d-verified, .d-verified { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 1px; border-radius: 50%; background: #a6ce39; color: #fff; font: 700 8.5px/1 var(--sans); letter-spacing: -.02em; vertical-align: middle; cursor: default; }
.dx .d-edited { font-size: 12px; color: var(--ink-3); font-style: italic; }
.dx .d-quiet { color: var(--ink-3); }
.dx .c-time { color: inherit; text-decoration: none; }
.dx .c-time:hover time { text-decoration: underline; }
.dx .d-msg.is-ok { color: #2f9e5b; }
.dx .d-btn.is-danger { border-color: color-mix(in srgb, #d14343 45%, var(--line)); color: #c13b3b; }
.dx .d-btn-gh { width: 100%; justify-content: center; padding: 12px 18px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; }
.dx .d-btn-gh:hover { color: var(--paper); opacity: .9; }
.dx .d-use-email { display: block; margin: 14px auto 0; }
.dx .d-email:not([hidden]) { margin-top: 12px; }

/* ---------- Markdown ---------- */
.dx .md { overflow-wrap: anywhere; }
.dx .md > :first-child { margin-top: 0; }
.dx .md > :last-child { margin-bottom: 0; }
.dx .md p, .dx .md ul, .dx .md ol, .dx .md blockquote, .dx .md pre, .dx .md table { margin: 0 0 .75em; }
.dx .md ul, .dx .md ol { padding-left: 1.4em; }
.dx .md li + li { margin-top: .2em; }
.dx .md h2, .dx .md h3, .dx .md h4, .dx .md h5, .dx .md h6 { margin: 1.3em 0 .5em; font-family: var(--sans); font-weight: 650; line-height: 1.3; }
.dx .md h2 { font-size: 1.3em; } .dx .md h3 { font-size: 1.15em; } .dx .md h4, .dx .md h5, .dx .md h6 { font-size: 1em; }
.dx .md blockquote { padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--ink-2); }
.dx .md code { padding: .12em .38em; border-radius: 5px; background: var(--card); font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size: .9em; line-height: 1.4; }
.dx .md pre { padding: 12px 14px; overflow-x: auto; border-radius: 10px; background: var(--card); }
.dx .md pre code { padding: 0; background: none; font-size: .86em; }
.dx .md table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94em; }
.dx .md th, .dx .md td { padding: 6px 10px; border: 1px solid var(--line-soft); text-align: left; }
.dx .md th { background: var(--card); font-weight: 600; }
.dx .md hr { margin: 1.4em 0; border: 0; border-top: 1px solid var(--line-soft); }
.dx .md img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: 10px; }
.dx .md a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.dx .md .md-math-block { display: block; margin: .9em 0; overflow-x: auto; text-align: center; }
.dx .md .md-math:not(.is-done) { font-family: var(--mono); font-size: .9em; color: var(--ink-2); }
.dx .md input[type="checkbox"] { margin: 0 6px 0 0; vertical-align: middle; }
.dx .f-body.md, .dx .f-body .md { font-size: 16px; line-height: 1.7; }

/* ---------- the editor ---------- */
.dx .ed { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.dx .ed:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.dx .ed.is-drop { border-color: var(--accent); border-style: dashed; }
.dx .ed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--card) 70%, transparent); }
.dx .ed-tabs { display: flex; gap: 2px; }
.dx .ed-tab { padding: 5px 11px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 600 13px/1.2 var(--sans); cursor: pointer; }
.dx .ed-tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-soft); }
.dx .ed-tools { display: flex; flex-wrap: wrap; gap: 1px; }
.dx .ed-tool { display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 600 13px/1 var(--sans); cursor: pointer; }
.dx .ed-tool:hover { background: var(--paper); color: var(--ink); }
.dx .ed-italic { font-style: italic; font-family: var(--serif); }
.dx .ed-code { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11.5px; }
.dx .ed-tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dx.is-preview .ed-tools, .dx .ed.is-preview .ed-tools { visibility: hidden; }
.dx .ed-text { display: block; width: 100%; min-height: 96px; margin: 0; padding: 12px 14px; border: 0; border-radius: 0; resize: vertical; font: 400 15px/1.6 var(--sans); background: none; }
.dx .ed-text:focus { box-shadow: none; }
.dx .ed-preview { min-height: 96px; padding: 12px 14px; }
.dx .ed-hint { margin: 0; padding: 5px 12px 7px; border-top: 1px dashed var(--line-soft); font-size: 12px; color: var(--ink-3); }
.dx .d-compose .ed { margin: 0; }
.dx .d-compose.is-reply .ed-text, .dx .d-compose.is-edit .ed-text { min-height: 72px; }
.dx .d-compose.is-edit { margin: 6px 0; }

/* ---------- forum extras: search, tags, pictures, the Community intro ---------- */
.dx .f-bar { flex-wrap: wrap; }
.dx .f-search { position: relative; flex: 1 1 200px; max-width: 320px; margin: 0 auto 0 4px; }
.dx .f-search span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); line-height: 0; pointer-events: none; }
.dx .f-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dx .f-search input { width: 100%; box-sizing: border-box; padding: 8px 12px 8px 34px; border-radius: 999px; font-size: 14px; }
.dx .f-intro { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.dx .f-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.dx .f-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--ink-2); font: 500 12.5px/1.5 var(--sans); text-decoration: none; }
.dx .f-tag span { color: var(--ink-3); font-size: 11.5px; }
.dx .f-tag:hover, .dx .f-tag.is-on { background: color-mix(in srgb, #a6ce39 22%, var(--card)); color: var(--ink); }
.dx .f-filter { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.dx .f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dx .f-foot .f-tag { padding: 2px 9px; }
.dx .f-post.has-pic { grid-template-columns: 40px minmax(0, 1fr) 120px; }
.dx .f-pic { align-self: start; margin-top: 4px; overflow: hidden; border-radius: 10px; background: var(--card); line-height: 0; aspect-ratio: 4 / 3; }
.dx .f-pic img { width: 100%; height: 100%; object-fit: cover; }
.dx .f-blog { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #f2603a 14%, transparent); color: #c2410c; font: 600 11.5px/1.5 var(--sans); }
.dx .f-featured { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; }
.dx .f-featured a { color: var(--ink); font-weight: 600; }
.dx .f-tagline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dx .f-full .f-h { font-size: clamp(24px, 3.2vw, 32px); }
.dx .f-form > .ed .ed-text { min-height: 280px; }
.dx .f-gate { padding: 22px; border-radius: 14px; background: var(--card); }
.dx .f-gate p { margin: 0 0 14px; }

/* a Blog request on your own Community post */
.dx .f-apply { margin: 18px 0 0; border: 0; }
.dx .f-apply summary { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 13.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; list-style: none; }
.dx .f-apply summary::-webkit-details-marker { display: none; }
.dx .f-apply summary::after { content: none; }
.dx .f-apply[open] summary { background: var(--card); }
.dx .f-apply-form { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--card); }
.dx .f-apply-form p { margin: 0 0 10px; }
.dx .f-apply-form textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.dx .f-app { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--card); font-size: 14.5px; }
.dx .f-app p { margin: 0; }
.dx .f-app.is-ok { background: color-mix(in srgb, #2f9e5b 12%, var(--card)); }
.dx .f-app.is-no { background: color-mix(in srgb, #f2603a 9%, var(--card)); }
.dx .f-app-note { width: 100%; color: var(--ink-2); font-size: 13.5px; }

/* ---------- profiles ---------- */
.dx .pf-bio { margin: 6px 0 0; font-size: 15px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.dx .pf-sub b { color: var(--ink); }
.dx .pf-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.dx .pf-tabs .d-pill span { margin-left: 4px; color: var(--ink-3); font-weight: 500; }
.dx .pf-list { margin: 0; padding: 0; list-style: none; }
.dx .pf-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.dx .pf-item .f-meta a { color: var(--ink); font-weight: 500; }
.dx .pf-item .d-body { margin-top: 4px; }
.dx .pf-area { padding: 0 7px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.dx .pf-form-bio { align-items: flex-start; }
.dx .pf-form-bio textarea { flex: 1 1 260px; resize: vertical; }
.dx .pf-orcid { gap: 8px; }
.dx .pf-switch { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.dx .pf-switch input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--ink); }
.dx .pf-out-row { margin: 22px 0 0; }

/* ---------- notifications ---------- */
.dx .nt-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.dx .nt-list { margin: 0; padding: 0; list-style: none; }
.dx .nt { border-bottom: 1px solid var(--line-soft); }
.dx .nt-link { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; padding: 14px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.dx a.nt-link:hover { background: var(--card); }
.dx .nt.is-new .nt-link { background: color-mix(in srgb, #f2603a 8%, transparent); }
.dx .nt.is-new .nt-what::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 2px 0; border-radius: 50%; background: #f2603a; }
.dx .nt-what, .dx .nt-ex, .dx .nt-time { margin: 0; }
.dx .nt-on { color: var(--ink-2); }
.dx .nt-ex { margin-top: 3px; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dx .nt-time { margin-top: 4px; }
.dx .nt-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: #c2410c; font-weight: 700; }
.dx .nt-blog { color: #b98500; }

/* ---------- the back end ---------- */
.admin-page .profile { max-width: 920px; }
.dx .ad-storage { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--card); font-size: 14px; }
.dx .ad-st-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.dx .ad-st-head span { color: var(--ink-2); }
.dx .ad-st-head .d-link { margin-left: auto; }
.dx .ad-st-bar { position: relative; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dx .ad-st-bar i { position: absolute; inset: 0 auto 0 0; min-width: 4px; border-radius: 999px; background: #2f9e5b; }
.dx .ad-st-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-3); }
.dx .ad-storage.is-warn .ad-st-bar i { background: #e6a91a; }
.dx .ad-storage.is-locked .ad-st-bar i { background: #d14343; }
.dx .ad-st-msg { margin: 10px 0 0; font-weight: 600; }
.dx .ad-storage.is-locked .ad-st-msg { color: #c13b3b; }
.dx .ad-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #f2603a; color: #fff; font-size: 11px; }
.dx .ad-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.dx .ad-pills .d-pill { padding: 4px 11px; font-size: 13px; }
.dx .ad-list { margin: 0; padding: 0; list-style: none; }
.dx .ad-card { margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--paper); }
.dx .ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.dx .ad-kind { padding: 1px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 600; }
.dx .ad-chip { padding: 1px 8px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.dx .ad-chip.is-pending { background: color-mix(in srgb, #e6a91a 22%, var(--card)); color: var(--ink); }
.dx .ad-chip.is-accepted, .dx .ad-chip.is-ready { background: color-mix(in srgb, #3b7be8 18%, var(--card)); color: var(--ink); }
.dx .ad-chip.is-published { background: color-mix(in srgb, #2f9e5b 20%, var(--card)); color: var(--ink); }
.dx .ad-title { margin: 4px 0 6px; font: 600 17px/1.35 var(--sans); }
.dx .ad-title a { color: var(--ink); text-decoration: none; }
.dx .ad-title a:hover { text-decoration: underline; }
.dx .ad-body { margin: 0 0 8px; color: var(--ink); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.dx .ad-notes { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.dx .ad-act { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.dx .ad-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dx .ad-orcid { padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, #a6ce39 20%, var(--card)); color: var(--ink); font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dx .ad-id { margin-left: 6px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.dx .ad-user { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 0 14px; align-items: center; }
.dx .ad-u-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 2px; }
.dx .ad-user .ad-meta { margin: 0; font-size: 13px; }
.dx .ad-search input { width: 100%; box-sizing: border-box; border-radius: 999px; }
.dx .ad-quote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--card); border-radius: 0 10px 10px 0; font-size: 14.5px; }
.dx .ad-orig { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; }
.dx .ad-orig summary { font-weight: 600; cursor: pointer; }
.dx .ad-orig[open] summary { margin-bottom: 12px; }
.dx details.ad-orig { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.dx .ad-decide, .dx .ad-draft { display: grid; gap: 12px; margin: 14px 0 0; padding: 18px; border-radius: 14px; background: var(--card); }
.dx .ad-decide textarea, .dx .ad-field input, .dx .ad-field textarea { width: 100%; box-sizing: border-box; }
.dx .ad-field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dx .ad-field small { font-weight: 400; color: var(--ink-3); }
.dx .ad-draft .ed-text { min-height: 360px; }
.dx .ad-publish { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, #2f9e5b 10%, var(--paper)); font-size: 14px; }
.dx .ad-publish p { margin: 0; }
.dx .ad-live { font-size: 15px; }
.dx .ad-log { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.dx .ad-log li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- the report dialog ---------- */
.dx .d-report { display: grid; gap: 12px; }
.dx .d-report .d-note { margin: 0; }
.dx .d-reasons { display: grid; gap: 6px; }
.dx .d-reasons label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; }
.dx .d-reasons label:has(input:checked) { border-color: var(--ink); background: var(--card); }
.dx .d-report textarea { width: 100%; box-sizing: border-box; resize: vertical; }

/* ---------- narrow screens ---------- */
@media (max-width: 820px) {
  .dx .f-post.has-pic { grid-template-columns: 34px minmax(0, 1fr) 84px; }
  .dx .f-search { order: 3; flex-basis: 100%; max-width: none; margin: 4px 0 0; }
  .dx .ad-user { grid-template-columns: 36px minmax(0, 1fr); }
  .dx .ad-user > .d-btn { grid-column: 2; justify-self: start; margin-top: 8px; }
}
@media (max-width: 480px) {
  .dx .f-post.has-pic { grid-template-columns: 34px minmax(0, 1fr) 64px; }
  .dx .ed-tools { width: 100%; }
}

/* ---------- Community posts on the Blog: their cover in lists, and the note under the article ---------- */
.cover-ugc { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #fde3da, #f6efe4 60%, #e9f3d6); }
.cover-ugc svg { width: 38%; height: auto; }
.cover-ugc .cu-label { position: absolute; left: 16px; top: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #202126; font: 600 12px/1.4 var(--sans); letter-spacing: .02em; }
.cover:has(> .cover-ugc) { position: relative; overflow: hidden; }
.ugc-blog .ugc-body img { display: block; max-width: 100%; height: auto; margin: 1.4em 0; border-radius: 12px; }
.ugc-blog .ugc-body pre { padding: 14px 16px; overflow-x: auto; border-radius: 10px; background: var(--card); }
.ugc-blog .ugc-body code { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .9em; }
.ugc-blog .ugc-body table { border-collapse: collapse; margin: 1.2em 0; font-size: .95em; }
.ugc-blog .ugc-body th, .ugc-blog .ugc-body td { padding: 7px 12px; border: 1px solid var(--line-soft); }
.ugc-blog .ugc-body .katex-display { overflow-x: auto; overflow-y: hidden; }
.ugc-blog .ub-role { display: block; font-size: 12.5px; color: var(--ink-3); }
.ugc-blog .ugc-note { margin: 40px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--card); font-size: 14px; color: var(--ink-2); }
.ugc-blog .ugc-note a { color: var(--ink); }

/* ---------- the ORCID badge (optional, shown by choice): the iD mark in ORCID green, opening their record ---------- */
.d-orcid { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; background: #a6ce39; color: #fff !important; font: 700 8.5px/1 var(--sans); letter-spacing: -.02em; text-decoration: none !important; vertical-align: middle; }
a.d-orcid:hover { box-shadow: 0 0 0 2px color-mix(in srgb, #a6ce39 35%, transparent); }
.dx .pf-name .d-orcid { width: 20px; height: 20px; font-size: 10px; }

/* ---------- categories ---------- */
.dx .f-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dx .f-catpill { padding: 7px 15px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--ink-2); font: 600 14px/1.2 var(--sans); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.dx .f-catpill:hover { color: var(--ink); border-color: var(--line); }
.dx .f-catpill[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.dx .f-cat { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font: 600 11.5px/1.5 var(--sans); text-decoration: none; }
.dx .f-cat.is-research, .dx .f-catpill.is-research[aria-current] { background: #e8eefc; color: #2b56b8; }
.dx .f-cat.is-question, .dx .f-catpill.is-question[aria-current] { background: #fff1d6; color: #9a5b00; }
.dx .f-cat.is-idea, .dx .f-catpill.is-idea[aria-current] { background: #f0e8fd; color: #6a3fc0; }
.dx .f-cat.is-resource, .dx .f-catpill.is-resource[aria-current] { background: #e2f4e8; color: #23784a; }
.dx .f-catpill[aria-current]:is(.is-research, .is-question, .is-idea, .is-resource) { border-color: transparent; }
html[data-theme="dark"] .dx .f-cat.is-research, html[data-theme="dark"] .dx .f-catpill.is-research[aria-current] { background: #23314f; color: #9db9f2; }
html[data-theme="dark"] .dx .f-cat.is-question, html[data-theme="dark"] .dx .f-catpill.is-question[aria-current] { background: #3d2f17; color: #f0c06d; }
html[data-theme="dark"] .dx .f-cat.is-idea, html[data-theme="dark"] .dx .f-catpill.is-idea[aria-current] { background: #2f2645; color: #c4a8f5; }
html[data-theme="dark"] .dx .f-cat.is-resource, html[data-theme="dark"] .dx .f-catpill.is-resource[aria-current] { background: #1c3527; color: #8fd5a8; }
.dx .f-catpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.dx .f-catpick legend { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dx .f-catpick label { display: grid; gap: 2px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.dx .f-catpick input { position: absolute; opacity: 0; pointer-events: none; }
.dx .f-catpick b { font: 650 14.5px/1.3 var(--sans); }
.dx .f-catpick small { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.dx .f-catpick label:hover { border-color: var(--line); }
.dx .f-catpick label:has(input:checked) { border-color: var(--ink); background: var(--card); }
.dx .f-catpick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- a question's answer ---------- */
.dx .f-answered { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: #e2f4e8; color: #23784a; font: 600 11.5px/1.5 var(--sans); }
html[data-theme="dark"] .dx .f-answered { background: #1c3527; color: #8fd5a8; }
.dx .c-answer { padding: 0 8px; border-radius: 999px; background: #e2f4e8; color: #23784a; font-size: 12px; font-weight: 600; }
html[data-theme="dark"] .dx .c-answer { background: #1c3527; color: #8fd5a8; }
.dx .c.is-answer > .c-wrap > .d-body { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #2f9e5b 9%, transparent); }
.dx .d-answer-btn { color: #23784a; }
@media (max-width: 820px) { .dx .f-catpick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
