/* Public home page and design votes (site.js). Builds on /app.css tokens and controls. */

.site-top { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-top nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-top nav .ghost { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.site-main { max-width: 960px; margin: 0 auto; padding: 4px 16px 40px; }
.site-foot { max-width: 960px; margin: 0 auto; padding: 18px 16px 40px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
.narrow { max-width: 560px; margin: 0 auto; }
.narrow h1 { font-size: 22px; }
.lead { color: var(--muted); }
.sub { color: var(--muted); margin: 4px 0 14px; font-size: 14.5px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ok-line { color: var(--ok); font-size: 14px; margin: 8px 0 0; }
.empty-line { color: var(--faint); padding: 8px 2px; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--c-slate-bg); color: var(--c-slate); white-space: nowrap; }
.pill.open { background: var(--c-green-bg); color: var(--c-green); }
fieldset.pw { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 2px; margin: 4px 0 0; }
fieldset.pw legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
fieldset.pw .hint { margin: 0 0 10px; }
.turnstile { margin-bottom: 14px; }
.turnstile:empty { display: none; }
.tabs.small { margin: 0; }
.tabs.small button { padding: 5px 12px; font-size: 13px; }

/* hero */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; }
.hero > p { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 10px 0 20px; }
.jump { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.jump-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .12s; }
.jump-card:hover { border-color: var(--accent); }
.jump-card b { display: block; font-size: 16px; }
.jump-card span { color: var(--muted); font-size: 14px; }

/* sections */
.block { padding-top: 34px; scroll-margin-top: 10px; }
.block h2 { font-size: 21px; letter-spacing: -.01em; }
.block-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: border-color .12s; }
.tile-card:hover { border-color: var(--accent); }
.tile-card .pill { align-self: flex-start; }
.tile-card b { font-size: 16.5px; }
.tile-card span:not(.pill) { color: var(--muted); font-size: 14px; }
.tile-card small { color: var(--faint); font-size: 12.5px; margin-top: auto; }

/* ideas */
.signin-nudge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.signin-nudge p { margin: 0; color: var(--muted); }
.idea-form .textarea { margin-top: 8px; min-height: 80px; }
.ideas-list { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ideas-list .empty-line { padding: 18px; }
.idea-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); scroll-margin-top: 10px; }
.idea-item:first-child { border-top: 0; }
.idea-item.is-hidden { opacity: .6; }
.idea-item h3 { font-size: 15.5px; }
.idea-body { margin: 4px 0 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-top: 6px; }
.upvote { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 15px; height: fit-content; }
.upvote b { font-size: 13px; font-variant-numeric: tabular-nums; }
.upvote:hover { border-color: var(--accent); }
.upvote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.team-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* design votes */
.back { display: inline-block; margin: 10px 0 12px; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; font-size: 14px; }
.vote-head h1 { font-size: 24px; letter-spacing: -.01em; margin: 2px 0 8px; }
.vote-head > p { color: var(--muted); }
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0; }
.note { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.note p { margin: 0 0 4px; }
.note.info { background: var(--c-blue-bg); border-color: color-mix(in srgb, var(--c-blue) 30%, transparent); }
.note.ok { background: var(--c-green-bg); border-color: color-mix(in srgb, var(--c-green) 35%, transparent); }
.vote-options { display: grid; gap: 14px; margin-top: 14px; }
.vote-option h3 { font-size: 18px; }
.vote-option.is-like { border-color: color-mix(in srgb, var(--c-green) 55%, transparent); }
.vote-option.is-dislike { border-color: color-mix(in srgb, var(--c-rose) 45%, transparent); }
.demo { margin: 10px 0 12px; }
.react-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.react-btn { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; cursor: pointer; }
.react-btn:disabled { cursor: default; opacity: .65; }
.react-btn.like.on { background: var(--c-green-bg); border-color: var(--c-green); color: var(--c-green); opacity: 1; }
.react-btn.dislike.on { background: var(--c-rose-bg); border-color: var(--c-rose); color: var(--c-rose); opacity: 1; }
.results { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.result-line { display: flex; justify-content: space-between; gap: 10px; }
.result-bar { display: flex; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 8px; }
.result-bar .like { background: var(--c-green); }
.result-bar .dislike { background: var(--c-rose); }
.why { margin: 4px 0; color: var(--muted); }
.why .who { color: var(--faint); font-size: 12.5px; }
.vote-send { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vote-send .error { margin: 0; }
.another { margin-top: 18px; }
.another h2 { font-size: 18px; }
.another .textarea { margin-top: 8px; min-height: 70px; }

/* The delivery-days demos copy the app's Order Entry look, so they keep its light colours in dark mode too. */
.dd_frame { border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; color: #1f2937; padding: 12px; }
.dd_frame button { color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
.dd_label { font-weight: bold; font-size: .9rem; margin-bottom: 8px; }
.dd_chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dd_frame .dd_chip { padding: 6px 12px; border: 1px solid #ccc; border-radius: 999px; background: white; font-size: .9rem; user-select: none; }
.dd_frame .dd_chip:hover { background: #f3f4f6; }
.dd_frame .dd_chip.dd_ok, .dd_starpill.dd_ok { background: #007bff; border-color: #007bff; color: white; }
.dd_frame .dd_chip.dd_pref, .dd_starpill.dd_pref { background: #16a34a; border-color: #16a34a; color: white; }
.dd_starpill { display: inline-flex; align-items: stretch; border: 1px solid #ccc; border-radius: 999px; background: white; font-size: .9rem; overflow: hidden; }
.dd_frame .dd_starday { padding: 6px 12px; }
.dd_frame .dd_star { padding: 6px 10px 6px 4px; font-size: 1rem; line-height: 1; }
.dd_grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-size: .9rem; }
.dd_gridday { font-weight: 600; }
.dd_segments { display: inline-flex; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; background: white; justify-self: start; }
.dd_frame .dd_segment { padding: 4px 10px; border-left: 1px solid #ccc; }
.dd_frame .dd_segment:first-child { border-left: none; }
.dd_frame .dd_segment.dd_on_no { background: #6b7280; color: white; }
.dd_frame .dd_segment.dd_on_ok { background: #007bff; color: white; }
.dd_frame .dd_segment.dd_on_pref { background: #16a34a; color: white; }
.dd_footer { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-size: .85rem; }
.dd_summary { color: #374151; }
.dd_frame .dd_reset { color: #6b7280; text-decoration: underline; flex-shrink: 0; }
.dd_legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .8rem; color: #4b5563; }
.dd_swatch { display: inline-block; width: 12px; height: 12px; border-radius: 999px; border: 1px solid #ccc; vertical-align: -1px; margin-right: 4px; background: white; }
.dd_swatch.dd_ok { background: #007bff; border-color: #007bff; }
.dd_swatch.dd_pref { background: #16a34a; border-color: #16a34a; }

@media (max-width: 520px) {
	.idea-item { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
	.vote-head h1 { font-size: 20px; }
}
