/* /for/candy-tables: cream, plum ink, brass; the chosen colour floods --c. Cormorant Garamond + Jost. */
.fl-table {
	--fl-bg: #fbf6f1; --fl-ink: #33182c; --fl-muted: #6b5162; --fl-surface: #fffdfb;
	--fl-line: rgba(51,24,44,.12); --fl-accent: var(--c); --fl-accent-ink: #fff;
	--fl-display: 'Cormorant Garamond', Georgia, serif; --fl-body: 'Jost', system-ui, sans-serif; --fl-radius: 999px;
	--brass: #b8893b; position: relative;
	scrollbar-color: var(--c) var(--fl-bg);
}
.fl-table .fl-card { border-radius: 18px; }
.fl-table .fl-card-img { border-radius: 14px; }
.fl-table .fl-h2 { font-weight: 700; }
.ct-flood { position: absolute; inset: 0 0 auto; height: 100%; max-height: 900px; pointer-events: none; z-index: 0; background: var(--c); opacity: .14; clip-path: circle(150% at 30% 60%); }
.ct-hero, .ct-mix-sec { position: relative; z-index: 1; }
.ct-hero { padding: clamp(36px, 6vw, 88px) 0 clamp(24px, 4vw, 48px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.ct-copy .fl-h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); font-weight: 500; letter-spacing: -.01em; }
.ct-copy .fl-h1 em { color: var(--c); font-style: italic; transition: color .5s; }
.ct-lead { font-size: 1.1rem; line-height: 1.6; color: var(--fl-muted); max-width: 44ch; margin: 1rem 0 1.8rem; }
.ct-guests { display: grid; gap: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--fl-muted); max-width: 460px; }
.ct-guests output { font: 700 2.2rem/1 var(--fl-display); color: var(--fl-ink); letter-spacing: 0; text-transform: none; }
.ct-guests input { accent-color: var(--c); width: 100%; height: 30px; }
.ct-colors { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.ct-colors legend { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--fl-muted); margin-bottom: 10px; }
.ct-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; }
.ct-chip-swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 3px var(--fl-line); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.ct-chip-name { font-size: .74rem; font-weight: 500; }
.ct-chip input:checked + .ct-chip-swatch { transform: scale(1.14); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), 0 0 0 3px #fff, 0 0 0 5px var(--fl-ink); }
.ct-chip input:focus-visible + .ct-chip-swatch { outline: 3px solid var(--fl-ink); outline-offset: 4px; }

.ct-scale-wrap { text-align: center; }
.ct-scale { width: min(100%, 420px); height: auto; display: block; margin: 0 auto; }
.ct-base { fill: var(--fl-ink); }
.ct-pan { fill: var(--brass); }
.ct-stem { fill: #8f6a2c; }
.ct-face { fill: #fffdf8; stroke: var(--brass); stroke-width: 8; }
#ct-ticks line { stroke: var(--fl-ink); stroke-width: 2; }
#ct-ticks text { font: 600 11px var(--fl-body); fill: var(--fl-muted); }
.ct-needle path { fill: var(--c); transition: fill .5s; }
.ct-needle circle { fill: var(--fl-ink); }
.ct-needle { transform-origin: 160px 160px; transform-box: view-box; }
.ct-unit { font: 600 12px var(--fl-body); letter-spacing: .2em; fill: var(--fl-muted); }
.ct-readout { font: 700 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1 var(--fl-display); margin: 8px 0 0; }

.ct-mix { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ct-mix li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 18px; padding: 10px; }
.ct-mix img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 12px; }
.ct-mix a { font-weight: 600; text-decoration: none; line-height: 1.3; font-size: .95rem; }
.ct-mix a:hover { text-decoration: underline; }
.ct-mix .ct-line { color: var(--fl-muted); font-size: .88rem; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.ct-mix form { margin: 0; }
.ct-mix .fl-btn { min-height: 38px; padding: .5em 1em; font-size: .88rem; }
.ct-total { font: 700 1.6rem/1.2 var(--fl-display); margin: 18px 0 0; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } .ct-scale-wrap { order: -1; } .ct-scale { width: min(100%, 300px); } }
