/* Fountain Labs components. Plain CSS classes, prefixed fl-. Every value comes from tokens.css. */
.fl { font-family: var(--font-sans); color: var(--ink); box-sizing: border-box; }
.fl *, .fl *::before, .fl *::after { box-sizing: inherit; }

/* Eyebrow and tags */
.fl-eyebrow { font-family: var(--font-display); font-size: 13px; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0; }
.fl-tag { display: inline-flex; align-items: center; gap: var(--space-0); padding: 6px 12px; border: var(--stroke) solid var(--line); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; box-shadow: var(--shadow-sticker-sm); }
.fl-tag--accent { background: var(--accent); color: var(--on-accent); border-color: var(--navy); }
.fl-tag--ink { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.fl-tag--saguaro { background: var(--cpuc26-saguaro); color: var(--cream); border-color: var(--navy); }
.fl-tag--sun { background: var(--cpuc26-sun); color: var(--navy); border-color: var(--navy); }

/* Buttons */
.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 48px; padding: 0 var(--space-3); border: var(--stroke) solid var(--navy); border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 19px; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sticker-sm); transition: transform .08s ease, box-shadow .08s ease; }
.fl-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--navy); }
.fl-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.fl-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-btn--ink { background: var(--navy); color: var(--cream); }
.fl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
[data-theme="dark"] .fl-btn:hover { box-shadow: 4px 4px 0 0 var(--blue); }
[data-theme="dark"] .fl-btn--ink { background: var(--cream); color: var(--navy); border-color: var(--cream); }

/* Sticker card */
.fl-card { position: relative; background: var(--surface-raised); color: var(--ink); border: var(--stroke) solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-sticker); }
.fl-card--flat { box-shadow: none; }
.fl-card__title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin: var(--space-1) 0 0; }
.fl-card__body { font-size: 16px; line-height: 1.5; margin: var(--space-1) 0 0; color: var(--ink); }
.fl-card__meta { font-size: 14px; line-height: 1.45; color: var(--ink-muted); margin: var(--space-1) 0 0; }

/* Halftone panel: navy dots over blue/shade, the shading used in both marks */
.fl-halftone { position: relative; overflow: hidden; border: var(--stroke) solid var(--navy); border-radius: var(--radius-lg); background-color: var(--blue); color: var(--navy); padding: var(--space-4) var(--space-4) var(--space-6); }
.fl-halftone::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--navy) 0 2.2px, transparent 2.6px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 100%); mask-image: linear-gradient(to bottom, transparent 58%, #000 100%); opacity: .9; }
.fl-halftone > * { position: relative; }
.fl-halftone--deep { background-color: var(--shade); color: var(--cream); }

/* Hosts */
.fl-hosts { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.fl-host { display: inline-flex; align-items: center; gap: var(--space-1); padding: 6px 16px 6px 6px; border: var(--stroke) solid var(--line); border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: var(--shadow-sticker-sm); }
.fl-host__mark { width: 36px; height: 36px; border-radius: 50%; border: var(--stroke) solid var(--navy); background: var(--blue); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; }
.fl-host__name { font-weight: 700; font-size: 15px; }
.fl-host__role { font-size: 13px; color: var(--ink-muted); }

/* Agenda */
.fl-agenda { border: var(--stroke) solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.fl-agenda__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--navy); color: var(--cream); }
.fl-agenda__day { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin: 0; }
.fl-agenda__date { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.fl-agenda__rows { list-style: none; margin: 0; padding: var(--space-1) 0; }
.fl-agenda__row { display: grid; grid-template-columns: 92px 1fr; gap: var(--space-2); padding: 10px var(--space-3); border-top: var(--stroke-hair) solid var(--line-soft); font-size: 15px; line-height: 1.4; }
.fl-agenda__row:first-child { border-top: 0; }
.fl-agenda__time { font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.fl-agenda__row--key { background: var(--surface-sunken); font-weight: 700; }

/* Session card */
.fl-session { display: grid; gap: var(--space-1); }
.fl-session__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.fl-session__time { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; }

/* Name badge (4 x 3 in at 96 px/in = 384 x 288) */
.fl-badge { position: relative; width: 384px; height: 288px; background: var(--cream); color: var(--navy); border: var(--stroke) solid var(--navy); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-rows: 64px 1fr 40px; }
.fl-badge__top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-2); background: var(--blue); border-bottom: var(--stroke) solid var(--navy); }
.fl-badge__top img { height: 44px; display: block; }
.fl-badge__body { padding: var(--space-2) var(--space-3); display: grid; align-content: center; gap: 2px; }
.fl-badge__first { font-family: var(--font-display); font-size: 56px; line-height: .95; margin: 0; }
.fl-badge__last { font-weight: 700; font-size: 18px; margin: 0; }
.fl-badge__org { font-size: 15px; color: var(--ink-muted); margin: 4px 0 0; }
.fl-badge__foot { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-2); background: var(--navy); color: var(--cream); font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.fl-badge--host .fl-badge__foot { background: var(--cpuc26-mesa); color: var(--navy); }

/* Fixed-size frames for formats (designed at real pixel size, scale the whole frame) */
.fl-frame { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.fl-frame--slide { width: 1280px; height: 720px; }
.fl-frame--square { width: 1080px; height: 1080px; }
.fl-frame--story { width: 1080px; height: 1920px; }
.fl-frame--letter { width: 816px; height: 1056px; }
.fl-scale { transform-origin: top left; }

/* Hero */
.fl-hero { position: relative; overflow: hidden; border: var(--stroke) solid var(--navy); border-radius: var(--radius-lg); background: var(--blue); }
.fl-hero__art { display: block; width: 100%; height: auto; }
.fl-hero__panel { position: absolute; left: var(--space-4); top: var(--space-4); max-width: 54%; background: var(--cream); color: var(--navy); border: var(--stroke) solid var(--navy); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-sticker); }

/* Sticker sheet */
.fl-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); align-items: center; justify-items: center; padding: var(--space-4); background: var(--surface-sunken); border-radius: var(--radius-lg); }
.fl-stickers img { max-width: 100%; height: auto; display: block; filter: none; }

/* Placeholder copy that must be replaced before sending */
.fl-fill { background: var(--cpuc26-sun); color: var(--navy); padding: 0 4px; border-radius: var(--radius-sm); font-weight: 700; }

/* Large agenda for slides and screens */
.fl-agenda--lg .fl-agenda__head { padding: 20px var(--space-3); }
.fl-agenda--lg .fl-agenda__day { font-size: 34px; }
.fl-agenda--lg .fl-agenda__date { font-size: 14px; }
.fl-agenda--lg .fl-agenda__row { grid-template-columns: 110px 1fr; font-size: 19px; padding: 15px var(--space-3); }
