/* All Sign Customizer — Roadmap (/roadmap/) and feature requests (/roadmap/<request>/). */

:root {
  --asc-rm-ink: #0B132B;
  --asc-rm-muted: #4B5563;
  --asc-rm-line: #E5E7EB;
  --asc-rm-soft: #F6F8FA;
  --asc-rm-tint: #ECFBF7;
  --asc-rm-link: #00775F;
  --asc-rm-error: #B42318;
}

/* ----- Hero */
.asc-rm-hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 120% at 85% 0%, rgb(38 208 124 / .16), transparent 60%),
    radial-gradient(50% 100% at 10% 10%, rgb(0 184 156 / .14), transparent 60%),
    var(--asc-navy);
  color: #fff;
  text-align: center;
}
.asc-rm-hero h1 { max-width: 820px; margin: 16px auto 12px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; }
.asc-rm-hero p { max-width: 640px; margin: 0 auto; color: #CBD5E1; font-size: 1.1rem; }
.asc-rm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 28px; }
.asc-rm-hero .vpf-btn-primary { border-color: var(--vpf-accent); background: var(--vpf-accent); color: var(--vpf-primary); box-shadow: none; }
.asc-rm-hero .vpf-btn-primary:hover { border-color: #fff; background: #fff; }
.asc-rm-hero-link { color: var(--asc-green); font-weight: 600; text-decoration: none; }
.asc-rm-hero-link:hover { text-decoration: underline; }
.asc-rm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.asc-rm-stats li { padding: 6px 14px; border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; background: rgb(255 255 255 / .06); color: #E2E8F0; font-size: 14px; }
.asc-rm-stats b { color: #fff; font-variant-numeric: tabular-nums; }

.asc-rm-hero--single { padding: 44px 0 72px; text-align: left; }
.asc-rm-hero--single h1 { max-width: 860px; margin: 14px 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.asc-rm-hero--single .asc-rm-meta { max-width: none; margin: 0; font-size: 14px; }
.asc-rm-hero--single .asc-rm-meta span:not(.asc-rm-badge) { color: #CBD5E1; }
.asc-rm-crumbs { display: flex; gap: 8px; color: #94A3B8; font-size: 14px; }
.asc-rm-crumbs a { color: #CBD5E1; text-decoration: none; }
.asc-rm-crumbs a:hover { color: #fff; text-decoration: underline; }

/* ----- Notices */
.asc-rm-notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.asc-rm-notice--ok { background: var(--asc-rm-tint); color: var(--asc-rm-link); }
.asc-rm-notice--error { background: #FEF3F2; color: var(--asc-rm-error); }
.asc-rm-single .asc-rm-notice { margin: 0 0 20px; }

/* ----- Board */
.asc-rm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}
.asc-rm-notice + .asc-rm-board, .vpf-container:has(.asc-rm-notice) + .asc-rm-board { margin-top: 24px; }
.asc-rm-col {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--asc-rm-line);
  border-radius: var(--asc-r-card, 24px);
  background: #fff;
  box-shadow: 0 24px 48px -32px rgb(11 19 43 / .4);
}
.asc-rm-col header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--asc-rm-line); }
.asc-rm-col h3 { margin: 0; font-size: 1.05rem; color: var(--asc-rm-ink); }
.asc-rm-col header small { margin-left: auto; min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--asc-rm-soft); color: var(--asc-rm-muted); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.asc-rm-dot { width: 10px; height: 10px; border-radius: 50%; background: #6366F1; }
.asc-rm-col--in-progress .asc-rm-dot { background: #F59E0B; }
.asc-rm-col--shipped .asc-rm-dot { background: var(--asc-green); }
.asc-rm-col ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.asc-rm-col li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--asc-rm-soft); }
.asc-rm-col li a { color: var(--asc-rm-ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.asc-rm-col li a:hover { color: var(--asc-rm-link); text-decoration: underline; }
.asc-rm-col-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--asc-rm-muted); font-size: 13px; }
.asc-rm-col-empty { margin: 14px 0 0; color: var(--asc-rm-muted); font-size: 14px; line-height: 1.55; }

/* ----- Section heads */
.asc-rm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.asc-rm-head h2 { margin: 0; color: var(--asc-rm-ink); font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.asc-rm-head p { margin: 6px 0 0; color: var(--asc-rm-muted); }
.asc-rm-head > a:not(.vpf-btn-secondary) { color: var(--asc-rm-link); font-weight: 600; text-decoration: none; }
.asc-rm-head > a:not(.vpf-btn-secondary):hover { text-decoration: underline; }

/* ----- Latest releases */
.asc-rm-releases { margin-top: 64px; }
.asc-rm-releases ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.asc-rm-releases a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--asc-rm-line); border-radius: 18px; color: var(--asc-rm-ink); text-decoration: none; transition: border-color .2s ease; }
.asc-rm-releases a:hover { border-color: var(--asc-teal); }
.asc-rm-releases a:focus-visible { outline: 3px solid rgb(0 184 156 / .45); outline-offset: 2px; }
.asc-rm-release-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--asc-rm-muted); font-size: 13px; }
.asc-rm-releases strong { line-height: 1.4; }
.asc-rm-releases small { margin-top: auto; color: var(--asc-rm-muted); font-size: 13px; }
.asc-rm-releases .asc-cl-type { padding: 3px 10px; border-radius: 999px; background: #EEF2FF; color: #3730A3; font-size: 12px; font-weight: 600; }
.asc-rm-releases .asc-cl-type--new { background: var(--asc-rm-tint); color: var(--asc-rm-link); }
.asc-rm-releases .asc-cl-type--fix { background: #FEF3E2; color: #8A4B00; }

/* ----- Requests */
.asc-rm-requests { margin-top: 64px; scroll-margin-top: 96px; }
.asc-rm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.asc-rm-search { box-sizing: border-box; min-width: 0; display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 340px; padding: 0 14px; border: 1px solid #D1D5DB; border-radius: 12px; background: #fff; color: var(--asc-rm-muted); }
.asc-rm-search:focus-within { border-color: var(--asc-teal); box-shadow: 0 0 0 3px rgb(0 184 156 / .2); }
.asc-roadmap .asc-rm-search input[type="search"] { flex: 1; min-width: 0; height: 44px; color: var(--asc-rm-ink); font: inherit; outline: none; -webkit-appearance: none; appearance: none; }
/* The framework styles every input with a long :not() chain: only !important wins. */
.asc-rm-search input[type="search"] { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.asc-rm-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.asc-rm-filters button { min-height: 40px; padding: 0 14px; border: 1px solid var(--asc-rm-line); border-radius: 999px; background: #fff; color: var(--asc-rm-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.asc-rm-filters button span { margin-left: 4px; color: var(--asc-rm-muted); font-variant-numeric: tabular-nums; }
.asc-rm-filters button[aria-pressed="false"], .asc-rm-filters button[aria-pressed="false"]:focus { background: #fff; color: var(--asc-rm-ink); }
.asc-rm-filters button:hover { border-color: var(--asc-teal); }
.asc-rm-filters button[aria-pressed="true"] { border-color: var(--asc-navy); background: var(--asc-navy); color: #fff; }
.asc-rm-filters button[aria-pressed="true"] span { color: #CBD5E1; }
.asc-rm-filters button:focus-visible { outline: 3px solid rgb(0 184 156 / .45); outline-offset: 2px; }
.asc-rm-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--asc-rm-muted); font-size: 14px; }
.asc-rm-sort select { height: 40px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff; color: var(--asc-rm-ink); font: inherit; font-size: 14px; }

.asc-rm-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.asc-rm-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--asc-rm-line); border-radius: 18px; background: #fff; }
.asc-rm-item[hidden] { display: none; }
.asc-rm-item-body { flex: 1; min-width: 0; }
.asc-rm-item h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.asc-rm-item h3 a { color: var(--asc-rm-ink); text-decoration: none; }
.asc-rm-item h3 a:hover { color: var(--asc-rm-link); text-decoration: underline; }
.asc-rm-item-body > p:not(.asc-rm-meta) { margin: 6px 0 0; color: var(--asc-rm-muted); line-height: 1.55; overflow-wrap: anywhere; }
.asc-rm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: var(--asc-rm-muted); font-size: 13px; }
.asc-rm-none { padding: 28px; border: 1px dashed #D1D5DB; border-radius: 18px; color: var(--asc-rm-muted); text-align: center; }

.asc-rm-vote {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 60px;
  min-height: 64px;
  border: 1px solid var(--asc-rm-line);
  border-radius: 14px;
  background: #fff;
  color: var(--asc-rm-ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.asc-rm-vote b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.asc-rm-vote svg { color: var(--asc-rm-muted); }
a.asc-rm-vote:hover { border-color: var(--asc-teal); }
a.asc-rm-vote:hover svg { color: var(--asc-rm-link); }
a.asc-rm-vote:active { transform: scale(.96); }
a.asc-rm-vote:focus-visible { outline: 3px solid rgb(0 184 156 / .45); outline-offset: 2px; }
.asc-rm-vote.is-voted { border-color: var(--asc-teal); background: var(--asc-rm-tint); }
.asc-rm-vote.is-voted svg { color: var(--asc-rm-link); }
.asc-rm-vote.is-closed { background: var(--asc-rm-soft); color: var(--asc-rm-muted); cursor: default; }

/* Status badges */
.asc-rm-badge { padding: 3px 10px; border-radius: 999px; background: #F1F5F9; color: #334155; font-size: 12px; font-weight: 600; }
.asc-rm-badge--planned { background: #EEF2FF; color: #3730A3; }
.asc-rm-badge--in-progress { background: #FEF3E2; color: #8A4B00; }
.asc-rm-badge--shipped { background: var(--asc-rm-tint); color: var(--asc-rm-link); }
.asc-rm-badge--declined { background: #F3F4F6; color: #4B5563; }

/* ----- Suggest */
.asc-rm-suggest { margin-top: 80px; padding: 72px 0; background: var(--asc-rm-soft); scroll-margin-top: 72px; }
.asc-rm-suggest-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.asc-rm-how h2 { margin: 14px 0 10px; color: var(--asc-rm-ink); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.asc-rm-how > p { margin: 0; color: var(--asc-rm-muted); font-size: 1.05rem; }
.asc-rm-how ol { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: rm; }
.asc-rm-how li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; counter-increment: rm; }
.asc-rm-how li::before { content: counter(rm); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--asc-gradient-on-light); color: #fff; font-weight: 700; font-size: 15px; }
.asc-rm-how li b { color: var(--asc-rm-ink); }
.asc-rm-how li span { color: var(--asc-rm-muted); font-size: 15px; line-height: 1.5; }

.asc-rm-card { padding: 28px; border: 1px solid var(--asc-rm-line); border-radius: var(--asc-r-card, 24px); background: #fff; box-shadow: 0 24px 48px -36px rgb(11 19 43 / .35); }

/* ----- Forms */
.asc-rm-form { display: grid; gap: 16px; }
.asc-rm-form h2 { margin: 0; color: var(--asc-rm-ink); font-size: 1.2rem; }
.asc-rm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.asc-rm-field { display: grid; gap: 6px; margin: 0; }
.asc-rm-field label { color: var(--asc-rm-ink); font-size: 14px; font-weight: 600; }
.asc-rm-field label span, .asc-rm-field label small { color: var(--asc-rm-muted); font-weight: 400; }
.asc-rm-field input, .asc-rm-field textarea, .asc-rm-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  background: #fff;
  color: var(--asc-rm-ink);
  font: inherit;
  font-size: 16px;
}
.asc-rm-field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.asc-rm-field input:focus, .asc-rm-field textarea:focus, .asc-rm-field select:focus { border-color: var(--asc-teal); outline: none; box-shadow: 0 0 0 3px rgb(0 184 156 / .2); }
.asc-rm-field [aria-invalid="true"] { border-color: var(--asc-rm-error); }
.asc-rm-help { color: var(--asc-rm-muted); font-size: 13px; }
.asc-rm-error { color: var(--asc-rm-error); font-size: 13px; font-weight: 500; }
.asc-rm-error:empty { display: none; }
.asc-rm-consent { margin: 0; color: var(--asc-rm-muted); font-size: 13px; line-height: 1.5; }
.asc-rm-consent a { color: var(--asc-rm-link); }
.asc-rm-status { margin: 0; font-weight: 500; }
.asc-rm-status:empty { display: none; }
.asc-rm-status.is-error { color: var(--asc-rm-error); }
.asc-rm-status.is-ok { padding: 14px 16px; border-radius: 12px; background: var(--asc-rm-tint); color: var(--asc-rm-link); }
.asc-rm-form button[type="submit"] { justify-self: start; }
.asc-rm-form button[aria-busy="true"] { opacity: .6; pointer-events: none; }
.asc-rm-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Vote dialog */
.asc-rm-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--asc-r-card, 24px); box-shadow: 0 40px 80px -24px rgb(11 19 43 / .45); }
.asc-rm-dialog::backdrop { background: rgb(11 19 43 / .55); }
.asc-rm-dialog .asc-rm-form { padding: 28px; }
.asc-rm-dialog .asc-rm-row { grid-template-columns: 1fr; }
.asc-rm-dialog-idea { margin: -8px 0 0; color: var(--asc-rm-muted); font-weight: 500; }
.asc-rm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.asc-rm-dialog .asc-rm-form button[type="submit"] { justify-self: auto; }

/* ----- Single request */
.asc-rm-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: -40px; position: relative; z-index: 2; }
.asc-rm-content { color: var(--asc-rm-ink); font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.asc-rm-content > :first-child { margin-top: 0; }
.asc-rm-content > :last-child { margin-bottom: 0; }
.asc-rm-shipped { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--asc-rm-tint); color: var(--asc-rm-link); font-weight: 500; }
.asc-rm-shipped a { color: inherit; font-weight: 700; }
.asc-rm-note { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--asc-teal); border-radius: 0 12px 12px 0; background: var(--asc-rm-soft); }
.asc-rm-note h2 { margin: 0 0 8px; color: var(--asc-rm-ink); font-size: 1rem; }
.asc-rm-note p { margin: 0 0 8px; color: var(--asc-rm-muted); }
.asc-rm-note p:last-child { margin-bottom: 0; }
.asc-rm-side { display: grid; gap: 20px; scroll-margin-top: 110px; }
.asc-rm-side .asc-rm-row { grid-template-columns: 1fr; }
.asc-rm-side-count { display: flex; align-items: baseline; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--asc-rm-line); color: var(--asc-rm-muted); }
.asc-rm-side-count b { color: var(--asc-rm-ink); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.asc-rm-closed { margin: 0; color: var(--asc-rm-muted); }
.asc-rm-back { color: var(--asc-rm-link); font-weight: 600; text-decoration: none; }
.asc-rm-back:hover { text-decoration: underline; }
.asc-roadmap--single { padding-bottom: 80px; }

/* ----- Responsive */
@media (max-width: 960px) {
  .asc-rm-board { grid-template-columns: 1fr; }
  .asc-rm-releases ol { grid-template-columns: 1fr; }
  .asc-rm-suggest-inner { grid-template-columns: 1fr; gap: 32px; }
  .asc-rm-single { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .asc-rm-hero { padding: 56px 0 80px; }
  .asc-rm-row { grid-template-columns: 1fr; }
  .asc-rm-item { gap: 14px; padding: 16px; }
  .asc-rm-vote { width: 52px; min-height: 58px; }
  .asc-rm-sort { margin-left: 0; }
  .asc-rm-search { flex-basis: 100%; max-width: 100%; }
  .asc-rm-card { padding: 22px; }
  .asc-rm-suggest { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .asc-rm-vote, .asc-rm-releases a { transition: none; }
}
