/* Forum components on the site's dark theme */
.input { width: 100%; border-radius: 0.5rem; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem; color: #fff; }
.input:focus, .input:focus-within { outline: none; border-color: #F2C94C; }
select.input option { background: #111827; }
.btn { display: inline-block; border-radius: 0.75rem; padding: 0.55rem 1.1rem; font-weight: 600; transition: background-color .15s, color .15s; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: #F2C94C; color: #000; }
.btn-gold:hover { background: rgba(242, 201, 76, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
details.menu > summary::-webkit-details-marker, details > summary.list-none::-webkit-details-marker { display: none; }

/* Rendered Markdown in posts */
.post-content { color: rgba(255, 255, 255, 0.8); line-height: 1.75; overflow-wrap: anywhere; }
.post-content > * + * { margin-top: 1em; }
.post-content h3 { font-size: 1.3rem; font-weight: 700; color: rgba(255, 255, 255, 0.95); margin-top: 1.5em; }
.post-content h4, .post-content h5, .post-content h6 { font-size: 1.1rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); margin-top: 1.25em; }
.post-content a { color: #F2C94C; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: #fff; }
.post-content a.mention { text-decoration: none; background: rgba(242, 201, 76, 0.12); padding: 0 0.3em; border-radius: 0.3em; }
.post-content strong, .post-content b { color: rgba(255, 255, 255, 0.95); font-weight: 600; }
.post-content ul { list-style: disc; padding-left: 1.5em; }
.post-content ol { list-style: decimal; padding-left: 1.5em; }
.post-content li + li { margin-top: 0.3em; }
.post-content li > input[type=checkbox] { margin-right: 0.4em; }
.post-content blockquote { border-left: 3px solid #27AE60; padding: 0.25em 0 0.25em 1em; color: rgba(255, 255, 255, 0.65); }
.post-content pre { background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.75rem;
  padding: 0.9rem 1.1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; color: #e5e7eb; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07); padding: 0.1em 0.35em; border-radius: 0.3em; }
.post-content pre code { background: none; padding: 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.post-content hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 1.5em 0; }
.post-content table { border-collapse: collapse; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.4em 0.75em; }
.post-content th { background: rgba(255, 255, 255, 0.04); }

/* Toggle switch: <label class="switch"><input type="checkbox"><span></span></label> */
.switch { position: relative; display: inline-block; width: 3rem; height: 1.6rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.15); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: #27AE60; }
.switch input:checked + span::after { transform: translateX(1.4rem); }
.switch input:focus-visible + span { outline: 2px solid #F2C94C; outline-offset: 2px; }

/* Composer pin toggle */
.pin-toggle.pin-is-on { color: #F2C94C; border-color: rgba(242, 201, 76, 0.5); background: rgba(242, 201, 76, 0.12); }
.pin-toggle.pin-is-off { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.15); }
.pin-toggle.pin-is-off:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
