/* SiteForge — per-client settings-menu styles.
 * v1.0.0 (2026-06-20) — extracted VERBATIM from tools/build-library-dashboard.py
 *   (the showroom menu CSS block at :4008-4076) so per-client baseline sites
 *   share ONE menu code path + token scheme with the showroom. Do not fork:
 *   regenerate from that source if the showroom menu CSS changes.
 *
 * Token reconciliation: this block reads --color-fg / --color-rule /
 *   --color-muted / --color-card alongside the baseline --color-bg /
 *   --color-link / --color-heading. The shared site css/styles.css aliases
 *   --color-fg := --color-body and defines defaults for the rest so the menu
 *   renders correctly on a baseline page.
 */
.settings-trigger, .sf-back { position: fixed; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-link); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, opacity .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.settings-trigger { right: 24px; }
.sf-back { right: 84px; opacity: 0; pointer-events: none; }
.sf-back.visible { opacity: 1; pointer-events: auto; }
.settings-trigger:hover, .settings-trigger.active, .sf-back:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,0.2); background: var(--color-link); }
.settings-trigger:hover .settings-icon, .settings-trigger.active .settings-icon, .sf-back:hover .sf-back-icon { color: var(--color-bg); }
.settings-icon { font-size: 22px; line-height: 1; color: var(--color-link); transition: color .25s ease; }
.sf-back-icon { font-size: 26px; line-height: 1; color: var(--color-link); transition: color .25s ease; }
.settings-menu, .settings-panel { position: fixed; bottom: 84px; right: 24px; background: var(--color-bg); border: 2px solid var(--color-link); border-radius: 8px; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.18); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.settings-menu { padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 210px; }
.settings-menu.active, .settings-panel.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.settings-menu-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; width: 100%; text-align: left; font-family: inherit; transition: background-color .2s ease; }
.settings-menu-item:hover { background: rgba(128,128,128,0.12); }
.menu-icon { font-size: 19px; width: 22px; text-align: center; }
.menu-label { font-size: 14px; font-weight: 500; color: var(--color-fg); }
.settings-panel { width: 300px; max-width: calc(100vw - 48px); max-height: 72vh; overflow: hidden; display: flex; flex-direction: column; }
.panel-header { padding: 12px 14px 8px; flex-shrink: 0; }
.panel-title { display: block; text-align: center; font-size: 14px; font-weight: 600; color: var(--color-heading); text-transform: uppercase; letter-spacing: 0.04em; }
.pager { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; flex-shrink: 0; }
.pager-arrow { width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--color-rule); background: var(--color-bg); color: var(--color-link); border-radius: 6px; cursor: pointer; font-size: 17px; line-height: 1; font-family: inherit; }
.pager-arrow:hover { background: rgba(128,128,128,0.1); }
.pager-arrow:disabled { opacity: 0.32; cursor: default; }
.pager-ind { flex: 1; text-align: center; font-size: 12px; color: var(--color-muted); font-weight: 600; }
/* Tight pagers (2.12.1/2.12.2): ‹ … › sit as one centered group; the 🎲
   random button anchors to the panel's right padding edge (all panels). */
.pager-tight { position: relative; justify-content: center; }
.pager-nav-group { display: flex; align-items: center; gap: 6px; }
.pager-tight .pager-ind { flex: none; min-width: 46px; }
.pager-dice { position: absolute; right: 14px; top: 0; font-size: 15px; }
.mode-btn-single { border: 1px solid var(--color-rule); background: var(--color-bg); font-family: inherit; font-size: 16px; line-height: 1; padding: 5px 16px; border-radius: 6px; cursor: pointer; }
.mode-btn-single:hover { background: rgba(128,128,128,0.1); }
.pager-dots { display: flex; justify-content: center; gap: 6px; padding: 0 14px 6px; }
.pager-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-rule); border: 0; padding: 0; cursor: pointer; }
.pager-dot.active { background: var(--color-link); }
.sf-list { padding: 6px 8px 10px; overflow-y: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.palette-option, .typeface-option, .style-option { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background-color .15s ease; border: 2px solid transparent; }
.palette-option:hover, .typeface-option:hover, .style-option:hover { background: rgba(128,128,128,0.07); }
.palette-option.active, .typeface-option.active, .style-option.active { border-color: var(--color-link); background: rgba(128,128,128,0.1); }
.typeface-option { padding: 5px 10px; }
.palette-swatches { display: flex; gap: 3px; flex-shrink: 0; }
.palette-sw { width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(128,128,128,0.3); position: relative; cursor: pointer; }
/* 2.12.2: per-swatch edit affordance — translucent + on hover (desktop);
   touch devices have no hover, so it stays faintly visible there. */
.sw-plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.7); background: rgba(0,0,0,0.22); border-radius: 50%; opacity: 0; transition: opacity .15s ease; }
.palette-sw:hover .sw-plus { opacity: 1; }
@media (hover: none) { .sw-plus { opacity: 0.4; } }
.palette-name, .typeface-name { font-size: 13.5px; font-weight: 500; color: var(--color-fg); flex: 1; }
/* "+ add new palette" row — dimmed until hover ("rdy to add … on mouse-over"); duplicates the active palette. */
.palette-add { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-top: 2px; border-radius: 6px; border: 1.5px dashed rgba(128,128,128,0.4); color: var(--color-fg); opacity: 0.55; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .15s ease, background-color .15s ease, border-color .15s ease; }
.palette-add:hover { opacity: 1; background: rgba(128,128,128,0.08); border-color: var(--color-link); }
.palette-add-plus { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 13px; line-height: 1; font-weight: 700; }
@media (hover: none) { .palette-add { opacity: 0.85; } }
.typeface-preview { font-size: 21px; width: 36px; text-align: center; color: var(--color-heading); flex-shrink: 0; }
.style-swatch { width: 30px; height: 30px; flex-shrink: 0; background: var(--color-link); border: 1px solid rgba(128,128,128,0.35); }
.style-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.style-name { font-size: 13.5px; font-weight: 600; color: var(--color-fg); }
.style-desc { font-size: 11px; color: var(--color-muted); }
.sf-theme-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-rule); background: var(--color-card); color: var(--color-fg); cursor: pointer; font-size: 15px; line-height: 1; flex-shrink: 0; }
.sf-theme-toggle:hover { border-color: var(--color-link); }
@media (prefers-reduced-motion: no-preference) {
  html.sf-reveal-fade [data-section]:not(.hero) { transition: opacity .6s ease; }
  html.sf-reveal-fade [data-section]:not(.hero):not(.sf-in) { opacity: 0; }
  html.sf-reveal-slide [data-section]:not(.hero) { transition: opacity .6s ease, transform .6s ease; }
  html.sf-reveal-slide [data-section]:not(.hero):not(.sf-in) { opacity: 0; transform: translateY(30px); }
  html.sf-reveal-zoom [data-section]:not(.hero) { transition: opacity .55s ease, transform .55s ease; }
  html.sf-reveal-zoom [data-section]:not(.hero):not(.sf-in) { opacity: 0; transform: scale(.965); }
}
