/* Comments: ONE look for the Feature Requests board (/ideas) and for every shared page (notes, chats, answers).
   Both pages load this sheet and build the markup with comments-ui.js, so the heading, rows, name and time line, composer,
   buttons, states and the dark palette cannot drift apart. Everything is scoped to .comments-ui.
   The tokens below are the board's own values (marketing-v1.css :root, light and dark); the shared page has a different
   token set, so they are restated here for the comments section only. Change a comment colour here and nowhere else. */
.comments-ui{
  --ax:#cc8c39; --ax-ink:#1a1206; --ax-text:#8f5a12;
  --ink:#252528; --ink-2:#3a3a3f; --subtle:#86868b; --faint-t:#a1a1a6; --placeholder:#b0b0b5;
  --line-s:#efeff2; --field:#f3f3f5; --card:#fff; --pill-fg:#fff; --err:#b3261e; --shd:10 10 30;
  --ease:cubic-bezier(.2,.8,.2,1);
  color:var(--ink);
}
@media (prefers-color-scheme:dark){
  .comments-ui{
    --ax-text:#e0a45a;
    --ink:#ededf0; --ink-2:#cfcfd5; --subtle:#8c8c94; --faint-t:#8a8a92; --placeholder:#7a7a82;
    --line-s:#26262b; --field:#26262b; --card:#1e1e22; --pill-fg:#1a1a1c; --err:#f2928c; --shd:0 0 0;
  }
}
.comments-ui *{box-sizing:border-box}
.comments-ui :focus-visible{outline:2px solid var(--ax);outline-offset:3px;border-radius:6px}
.comments-ui .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.comments-ui h2{margin:0 0 12px;font-size:22px;font-weight:700;letter-spacing:-.022em;text-wrap:balance}
.comments-ui .cmts{list-style:none;margin:0;padding:0}
.comments-ui .cmt{padding:16px 0;border-top:1px solid var(--line-s)}
.comments-ui .cmt:first-child{border-top:0}
.comments-ui .cmt-h{font-size:15px;font-weight:600;letter-spacing:-.01em}
.comments-ui .cmt-h time{margin-left:8px;font-weight:400;font-size:13.5px;color:var(--faint-t)}
.comments-ui .cmt p{margin:3px 0 0;font-size:16px;line-height:1.45;color:var(--ink-2);overflow-wrap:anywhere;white-space:pre-line}
.comments-ui .edited{margin-left:6px;font-size:13px;font-weight:400;color:var(--faint-t)}
.comments-ui .cmt-h .link-quiet{margin-left:12px;font-size:13px;font-weight:400}

/* people are links */
.comments-ui .who-link{color:inherit;font-weight:inherit;text-decoration:none;border-radius:4px;transition:color .2s}
.comments-ui .who-link:hover{color:var(--ink);text-decoration:underline;text-decoration-color:var(--ax);text-decoration-thickness:2px;text-underline-offset:4px}

/* composer */
.comments-ui .cform-wrap{margin-top:20px}
.comments-ui .cform{display:flex;align-items:center;gap:12px;margin-top:20px}
.comments-ui .cform-wrap .cform{margin-top:0}
.comments-ui .cform input{flex:1;min-width:0;height:44px;padding:0 18px;border:0;border-radius:99px;background:var(--field);font:inherit;font-size:16px;color:var(--ink);-webkit-appearance:none;appearance:none;transition:background .2s,box-shadow .2s}
.comments-ui .cform input::placeholder{color:var(--placeholder)}
.comments-ui .cform input:focus{outline:none;background:var(--card);box-shadow:inset 0 0 0 2px var(--ax)}
.comments-ui .login-hint{margin-top:20px;font-size:15px;color:var(--subtle)}
.comments-ui .login-hint button{all:unset;cursor:pointer;color:var(--ax-text);font-weight:600;border-radius:4px}
.comments-ui .login-hint button:hover{text-decoration:underline;text-underline-offset:3px}
.comments-ui .login-hint button:focus-visible{outline:2px solid var(--ax);outline-offset:3px}
.comments-ui .form-err{margin:10px 0 0;font-size:14px;line-height:1.4;color:var(--err)}
.comments-ui .form-err[hidden]{display:none}

/* editing one's own comment */
.comments-ui .cedit{margin-top:6px}
.comments-ui .cedit textarea{display:block;width:100%;padding:12px 18px;border:0;border-radius:18px;background:var(--field);font:inherit;font-size:16px;line-height:1.45;color:var(--ink);resize:none;transition:background .2s,box-shadow .2s}
.comments-ui .cedit textarea:focus{outline:none;background:var(--card);box-shadow:inset 0 0 0 2px var(--ax)}
.comments-ui .cedit .row{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:10px}

/* buttons (the board's pill button and quiet link) */
.comments-ui .btn{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 22px;border-radius:999px;font:inherit;font-weight:500;font-size:15px;text-decoration:none;cursor:pointer;border:1px solid transparent;transition:transform .35s var(--ease),background .25s,box-shadow .25s,border-color .25s}
.comments-ui .btn:active{transform:scale(.97)}
.comments-ui .btn-dark{background:var(--ink);color:var(--pill-fg)}
.comments-ui .btn-dark:hover{background:var(--ax);color:var(--ax-ink);box-shadow:0 10px 26px rgba(204,140,57,.28);transform:translateY(-1px)}
.comments-ui .btn-sm{height:38px;padding:0 18px;font-size:14px}
.comments-ui .link-quiet{all:unset;font-size:14px;font-weight:500;color:var(--subtle);cursor:pointer;border-radius:6px}
.comments-ui .link-quiet:hover{color:var(--ink)}
.comments-ui .link-quiet:focus-visible{outline:2px solid var(--ax);outline-offset:4px}
.comments-ui .btn[disabled],.comments-ui .link-quiet[disabled]{opacity:.5;cursor:default;pointer-events:none}
.comments-ui .more{display:flex;justify-content:center;margin-top:18px}
@media (prefers-reduced-motion:reduce){.comments-ui .btn,.comments-ui .btn:active,.comments-ui .btn-dark:hover{transition:none;transform:none}}
