/* Filament's pages (Tools/filament/pages.py): a product page per unit, dark in every theme like a studio, each maker's pages in
   its own look (--fl-panel, --fl-print, --fl-accent, --fl-font from Web/filament-src/filament.json). On top of the Manual's
   and the course's styles (the bar, the footer, the live circuit's player). */
:root:not(#fl) body.course.fl {
  --bg: #0a0a0c; --panel: #131418; --panel2: #1b1d22; --line: #25272e; --text: #f1f0ec; --muted: #9a9ca6; --accent: #ffb547;
  color-scheme: dark; background: var(--bg); color: var(--text);
}
body.fl { --fl-panel: #1d1e21; --fl-panel2: #2b2d31; --fl-print: #e9e6df; --fl-accent: #ffb547; --fl-accent2: #ffb547; --fl-font: "Inter"; }
.fl .top { background: color-mix(in srgb, #0a0a0c 88%, transparent); }
.fl-main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.fl h1, .fl h2, .fl h3 { letter-spacing: -.02em; }
.fl-section { padding: 46px 0 6px; }
.fl-section > h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 6px; }
.fl-sub { color: var(--muted); margin: 0 0 22px; max-width: 46em; }
.fl-kicker { font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fl-accent); margin: 0 0 14px; }
.fl-lede { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 40em; }
.fl-end { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ——— Materials: each maker's panel, drawn in CSS (Studio's tiles are the app's) ——— */
.mat-graphite, .mat-navy, .mat-espresso { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel) 60%); }
.mat-carbon { background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 5px, transparent 5px 10px),
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.mat-slate { background:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 4px 4px,
  radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.2px) 2px 2px / 4px 4px,
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.mat-stripe { background:
  linear-gradient(180deg, transparent 15%, var(--fl-accent) 15%, var(--fl-accent) 17%, transparent 17%),
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.fl-screws i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9dadc, #6d6f74 60%, #2b2c30);
  box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.fl-screws i::before, .fl-screws i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: rgba(0,0,0,.55); transform: rotate(35deg); }
.fl-screws i::after { transform: rotate(125deg); }
.fl-screws i:nth-child(1) { left: 14px; top: 12px; } .fl-screws i:nth-child(2) { right: 14px; top: 12px; }
.fl-screws i:nth-child(3) { left: 14px; bottom: 12px; } .fl-screws i:nth-child(4) { right: 14px; bottom: 12px; }

/* ——— The wordmark: glyph + name in the maker's font ——— */
.fl-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--fl-print); font-family: var(--fl-font), system-ui, sans-serif; font-weight: 600;
  letter-spacing: .02em; font-size: 20px; margin: 0; }
.fl-glyph { width: 28px; height: 28px; flex: none; color: var(--fl-print); }
img.fl-glyph { border-radius: 7px; }
.m-rookery > span, .fl-by.m-rookery span { letter-spacing: .08em; text-transform: uppercase; font-size: .78em; font-weight: 400; }
.m-kestrel > span { text-transform: lowercase; letter-spacing: 0; }
.m-ondine > span { text-transform: uppercase; letter-spacing: .06em; }
.m-tidewell > span { text-transform: uppercase; letter-spacing: .14em; font-size: .86em; }
.m-halden > span { letter-spacing: .04em; }

/* ——— The hub ——— */
.fl-hub-hero { padding: 54px 0 10px; text-align: center; }
.fl-hub-hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.02; margin: 0 auto 18px; max-width: 14em; letter-spacing: -.035em; }
.fl-hub-hero .fl-lede { margin: 0 auto; }
.fl-case { margin: 38px -16px 0; position: relative; }
.fl-case img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.fl-case::before { content: ""; position: absolute; inset: 10% 8% 20%; background: radial-gradient(closest-side, rgba(255,181,71,.13), transparent); filter: blur(30px); z-index: -1; }
.fl-case figcaption { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.fl-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.fl-mcard { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 40px 26px 20px; border-radius: 10px; color: var(--fl-print);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.45); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.fl-mcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px color-mix(in srgb, var(--fl-accent) 55%, transparent), 0 24px 50px rgba(0,0,0,.55); }
.fl-mcard .fl-wordmark { font-size: 22px; }
.fl-mcard-line { font-family: var(--fl-font), system-ui, sans-serif; font-size: 16.5px; line-height: 1.4; opacity: .88; min-height: 3em; }
.fl-mcard-strip { flex: 1; display: flex; align-items: flex-end; gap: 2px; min-height: 150px; }
.fl-mcard-strip img { height: 150px; width: auto; border-radius: 2px; box-shadow: 0 8px 18px rgba(0,0,0,.55); }
.fl-blank { display: flex; gap: 3px; align-items: flex-end; height: 150px; opacity: .5; }
.fl-blank i { display: block; height: 150px; width: calc(var(--hp) * 7.5px); border-radius: 2px; border: 1px dashed color-mix(in srgb, var(--fl-print) 45%, transparent); }
.fl-mcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; font-family: var(--fl-font), system-ui, sans-serif; opacity: .92; }
.fl-count { margin-left: auto; opacity: .75; }
.fl-led { width: 9px; height: 9px; border-radius: 50%; background: var(--fl-accent); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--fl-accent) 70%, transparent); }
.mat-slate .fl-led { background: linear-gradient(90deg, var(--fl-accent) 50%, var(--fl-accent2) 50%); }
.fl-progress { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.fl-progress a { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 14px 14px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-top: 3px solid var(--fl-panel2); height: 100%; }
.fl-progress a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--fl-accent) 60%, var(--line)); }
.fl-progress .n { grid-row: 1 / 4; font: 700 22px/1.1 var(--mono); color: var(--fl-accent); }
.fl-progress.lessons a { grid-template-columns: minmax(0, 1fr); }   /* (public: no step number, the "Lesson N" chip) */
.fl-progress b { font-size: 16.5px; }
.fl-progress small { color: var(--muted); font-size: 13px; }
.fl-progress .fl-status { margin-top: 6px; justify-self: start; }
.fl-progress li.s-planned a { opacity: .62; }

/* ——— The status chip ——— */
.fl-status { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); color: var(--text); white-space: nowrap; vertical-align: middle; }
.fl-status i { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.fl-status.s-built i { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.fl-status.s-draft i { background: #ffb547; box-shadow: 0 0 8px #ffb547; }
.fl-status.s-building i { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; animation: fl-pulse 1.6s ease-in-out infinite; }
.fl-status.s-planned { color: var(--muted); }
@keyframes fl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fl-status.s-building i { animation: none; } }

/* ——— A maker's page ——— */
.fl-mhero { position: relative; margin: 26px 0 0; border-radius: 14px; padding: 64px clamp(22px, 6vw, 80px) 58px; color: var(--fl-print);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.5); }
.fl-mhero .fl-wordmark { font-size: clamp(22px, 3vw, 30px); }
.fl-mhero .fl-glyph { width: 40px; height: 40px; }
.fl-mhero h1 { font-family: var(--fl-font), system-ui, sans-serif; font-weight: 500; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.1; max-width: 18em; margin: 22px 0 0; letter-spacing: -.01em; }
.m-rookery ~ h1, .fl-mhero.mat-carbon h1 { font-size: clamp(22px, 3.2vw, 36px); letter-spacing: .02em; line-height: 1.3; }
.fl-short { font-family: var(--fl-font), system-ui, sans-serif; color: var(--fl-accent); margin: 18px 0 0; font-size: 17px; }
.mat-stripe .fl-mhero-in { padding-top: 34px; }
.fl-story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
.fl-story-text p { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.65; margin: 0 0 16px; }
.fl-story-text p:first-child::first-letter { font-family: var(--fl-font), system-ui, sans-serif; color: var(--fl-accent); }
.fl-facts { margin: 4px 0 0; display: grid; gap: 14px; align-content: start; padding: 20px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--fl-accent); }
.fl-facts dt { font: 700 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fl-facts dd { margin: 0; font-size: 15.5px; }
@media (max-width: 820px) { .fl-story { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.fl-ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.fl-ucard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s; }
.fl-ucard:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--fl-accent) 60%, var(--line)); }
.fl-ucard-stage { display: grid; place-items: center; height: 300px; padding: 22px; background:
  radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--fl-accent) 16%, transparent), transparent 62%), #08080a; }
.fl-ucard-stage img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.7)); }
.fl-ucard-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.fl-ucard-text b { font-family: var(--fl-font), system-ui, sans-serif; font-size: 20px; }
.fl-ucard-text small { color: var(--muted); font-size: 14px; min-height: 1.2em; }
.fl-ucard-text .fl-status { justify-self: start; margin-top: 6px; }
.fl-later-h { margin: 34px 0 10px; font-size: 18px; }
.fl-later { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fl-later li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fl-later li a { color: var(--text); font-family: var(--fl-font), system-ui, sans-serif; }
.fl-later li > span:not(.fl-status) { color: var(--muted); flex: 1 1 260px; font-size: 15.5px; }

/* ——— A unit's page ——— */
.fl-uhero { position: relative; margin: 26px 0 0; border-radius: 16px; overflow: hidden; color: var(--fl-print);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.5); }
.fl-uhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,7,.92) 0, rgba(5,5,7,.55) 46%, rgba(5,5,7,.25)); pointer-events: none; }
.fl-uhero-in { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); }
.fl-uhero-panel { position: relative; height: clamp(380px, 46vw, 560px); aspect-ratio: calc(var(--hp) / 20); }
.fl-uhero-panel::before { content: ""; position: absolute; inset: 8% -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--fl-accent) 28%, transparent), transparent); filter: blur(20px); }
.fl-uhero-panel img { position: relative; height: 100%; width: auto; border-radius: 3px; box-shadow: 0 30px 60px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); }
.fl-by { display: inline-flex; align-items: center; gap: 10px; color: var(--fl-print); font-family: var(--fl-font), system-ui, sans-serif; font-size: 17px; font-weight: 600; opacity: .95; }
.fl-by:hover { text-decoration: none; opacity: 1; }
.fl-uhero h1 { margin: 18px 0 14px; line-height: 1; }
.fl-uname { display: block; font-family: var(--fl-font), system-ui, sans-serif; font-weight: 600; font-size: clamp(52px, 8vw, 104px); letter-spacing: .01em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.mat-carbon .fl-uname { font-weight: 400; letter-spacing: .06em; }
.mat-slate .fl-uname { text-transform: uppercase; letter-spacing: .04em; }
.fl-uhero h1 small { display: block; margin-top: 10px; font: 500 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fl-accent); }
.fl-uhero .fl-lede { color: rgba(255,255,255,.86); }
.fl-ufacts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 22px 0 0; }
.fl-ufacts dt { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.fl-ufacts dd { margin: 0; color: #fff; font-size: 15.5px; }
@media (max-width: 760px) {
  .fl-uhero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .fl-uhero-panel { height: 400px; }
  .fl-uhero::after { background: linear-gradient(180deg, rgba(5,5,7,.35), rgba(5,5,7,.9) 60%); }
  .fl-ufacts { justify-content: center; }
}

/* The showcase piece: a wide player in the maker's look */
.fl-show { display: flex; align-items: center; gap: 22px; margin: 22px 0 0; padding: 22px 26px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--fl-panel2) 70%, #000), #0d0d10);
  border: 1px solid color-mix(in srgb, var(--fl-accent) 35%, var(--line)); }
.fl-show-play { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--fl-accent); color: #0b0c10; cursor: pointer;
  box-shadow: 0 0 30px color-mix(in srgb, var(--fl-accent) 45%, transparent); }
.fl-show-play svg { width: 28px; height: 28px; margin-left: 3px; }
.fl-show-play[aria-pressed="true"] svg { display: none; }
.fl-show-play[aria-pressed="true"]::before { content: ""; width: 18px; height: 18px; border-radius: 3px; background: currentColor; }
.fl-show[data-state="waiting"] .fl-show-play { background: transparent; color: color-mix(in srgb, var(--fl-accent) 55%, transparent); border: 2px dashed color-mix(in srgb, var(--fl-accent) 45%, transparent); box-shadow: none; cursor: default; }
.fl-show-body { flex: 1; min-width: 0; }
.fl-show-k { margin: 0; font: 700 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fl-accent); }
.fl-show h2 { margin: 6px 0 10px; font-family: var(--fl-font), system-ui, sans-serif; font-size: clamp(19px, 2.3vw, 24px); font-weight: 600; }
.fl-wave { display: flex; align-items: center; gap: 2px; height: 46px; }
.fl-wave i { flex: 1; min-width: 1px; height: calc(var(--h) * 100%); border-radius: 2px; background: color-mix(in srgb, var(--fl-accent) 70%, transparent); }
.fl-show[data-state="waiting"] .fl-wave i { background: rgba(255,255,255,.13); }
.fl-wave i.past { background: var(--fl-accent); }
.fl-show-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.fl-dur { font: 600 13px/1 var(--mono); margin-left: 6px; }
@media (max-width: 600px) { .fl-show { padding: 18px; gap: 14px; } .fl-show-play { width: 52px; height: 52px; } .fl-wave i:nth-child(2n) { display: none; } }

/* The patches: the course's player, bigger, in the maker's accent */
.fl-patch { margin: 0 0 40px; }
.fl-patch-head { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 12px; }
.fl-patch-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--fl-accent); color: var(--fl-accent); font: 700 17px/1 var(--mono); }
.fl-patch-head h3 { margin: 2px 0 4px; font-family: var(--fl-font), system-ui, sans-serif; font-size: 23px; font-weight: 600; }
.fl-patch-head p { margin: 0; color: var(--muted); max-width: 52em; }
.fl .cp.fl-fig { --part: var(--fl-accent); max-width: none; border-radius: 18px; background: #101114; }
.fl .cp.fl-fig .cp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "schem schem" "parts smpl"; }
.fl .cp.fl-fig .cp-schem { grid-area: schem; background: radial-gradient(ellipse at 50% 40%, #16181d, #0d0e11); }
.fl .cp.fl-fig .cp-parts { grid-area: parts; }
.fl .cp.fl-fig .cp-smpl { grid-area: smpl; }
.fl .cp.fl-fig .cp-svg { min-height: 260px; padding: 10px 18px 16px; justify-content: center; }
.fl .cp.fl-fig .cp-svg svg { max-height: 520px; }
.fl .cp.fl-fig.playing .cp-svg svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fl-accent) 45%, transparent)); }
.fl .cp.fl-fig .code pre { max-height: 330px; overflow-y: auto; }
.fl .cp.fl-fig .cp-scope canvas { height: 190px; }
.fl .cp.fl-fig .knob b { font-family: var(--fl-font), var(--mono); letter-spacing: .04em; }
.fl .cp-play { box-shadow: 0 0 22px color-mix(in srgb, var(--fl-accent) 40%, transparent); }
@media (max-width: 860px) { .fl .cp.fl-fig .cp-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "schem" "parts" "smpl"; } }
.fl-webnote { margin: 10px 4px 0; color: var(--muted); font-size: 14px; max-width: 60em; }
/* The SMPL in the Code view's colours (the app's .codepanel) */
.fl .cp-smpl .m { color: var(--k, #8cb8ff); font-weight: 600; }
.fl .cp-smpl .number, .fl .cp-smpl .times { color: #ffcf6b; }
.fl .cp-smpl .arrow { color: #8f96ab; }
.fl .cp-smpl .section { color: #c49bff; font-weight: 600; }
.fl .cp-smpl .string { color: #7fd8a4; }
.fl .cp-smpl .comment { color: #7c8296; font-style: italic; }

/* The manual */
.fl-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; }
@media (max-width: 860px) { .fl-cols { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.fl-prose { font-size: 17.5px; line-height: 1.65; max-width: 40em; }
.fl-prose p { margin: 0 0 16px; }
.fl-ctl h3 { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fl-accent); margin: 4px 0 10px; }
.fl-ctl ul { list-style: none; margin: 0 0 22px; padding: 0; }
.fl-ctl li { display: grid; grid-template-columns: 30px minmax(70px, auto) 1fr; gap: 2px 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.fl-ctl li b { font-family: var(--fl-font), var(--mono); font-weight: 600; letter-spacing: .05em; font-size: 14.5px; white-space: nowrap; }
.fl-ctl li em { display: none; }
.fl-ctl li > span:last-child { color: color-mix(in srgb, var(--text) 80%, transparent); font-size: 15.5px; }
.fl-ctl-knob { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #55575d, #18191c); box-shadow: 0 0 0 1px rgba(255,255,255,.12); position: relative; align-self: center; }
.fl-ctl-knob::after { content: ""; position: absolute; left: 9px; top: 2px; width: 2px; height: 7px; background: var(--fl-print); border-radius: 1px; }
.fl-ctl-knob.big { width: 26px; height: 26px; margin-left: -3px; }
.fl-ctl-knob.big::after { left: 12px; height: 9px; }
.fl-ctl-jack { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #050506 32%, #8b8d92 36%, #c9cacd 60%, #6b6d71); align-self: center; }
.fl-ctl-jack.out { box-shadow: 0 0 0 3px var(--fl-print); }
@media (max-width: 520px) { .fl-ctl li { grid-template-columns: 30px 1fr; } .fl-ctl li > span:last-child { grid-column: 2; } }

/* Inside: the circuit */
.fl-inside > .fl-prose { margin: 0 0 22px; }
.fl-circ { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0 0 18px; align-items: start; }
.fl-circ:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.fl-circ .code { margin: 0; }
.fl-circ .code pre { max-height: 460px; overflow-y: auto; }
@media (max-width: 860px) { .fl-circ { grid-template-columns: minmax(0, 1fr); } }
.fl-parts { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 6px 16px; }
.fl-parts table { width: 100%; border-collapse: collapse; }
.fl-parts th { text-align: left; vertical-align: top; font-size: 14px; font-weight: 600; padding: 10px 14px 10px 0; white-space: nowrap; width: 1%; }
.fl-parts th small { color: var(--fl-accent); font: 700 12px/1 var(--mono); margin-left: 4px; }
.fl-parts td { padding: 10px 0; font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--text) 82%, transparent); border-bottom: 0; }
.fl-parts tr + tr th, .fl-parts tr + tr td { border-top: 1px solid var(--line); }
.fl-parts code { font-size: 12.5px; margin-right: 1px; }
@media (max-width: 520px) { .fl-parts th { white-space: normal; width: 34%; } }

/* Pictures, the lesson, where it stands */
.fl-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.fl-shot { margin: 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.fl-shot.beauty img { max-height: 560px; width: 100%; object-fit: cover; object-position: top; }
.fl-shot figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); background: var(--panel); }
@media (max-width: 760px) { .fl-gallery { grid-template-columns: minmax(0, 1fr); } }
.fl-tutcard { display: flex; gap: 18px; padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); max-width: 760px; }
.fl-tut-n { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--fl-accent); color: #0b0c10; font: 800 24px/1 var(--mono); }
.fl-tutcard h3 { margin: 2px 0 6px; font-size: 21px; }
.fl-tutcard p { margin: 0 0 6px; }
.fl-tut-s { color: var(--muted); font-size: 14.5px; }
.fl-where p { max-width: 54em; }

/* Follow along: the lesson's video (its place kept until it's published) and the way into the Mac app */
.fl-follow-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .fl-follow-in { grid-template-columns: minmax(0, 1fr); } }
.fl-follow-in.novideo { grid-template-columns: minmax(0, 1fr); }   /* (no video yet: the lesson's card alone) */
.fl-follow .cp-video { margin: 0; max-width: none; }
.fl-vidslot { position: relative; display: grid; place-content: center; justify-items: center; gap: 8px; aspect-ratio: 16 / 9; border-radius: 14px; text-align: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--fl-accent) 14%, transparent), transparent 65%), #08080a; border: 1px dashed color-mix(in srgb, var(--fl-accent) 35%, var(--line)); }
.fl-vidslot-play { display: grid; place-items: center; width: 68px; height: 48px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--fl-accent) 50%, transparent); color: color-mix(in srgb, var(--fl-accent) 60%, transparent); }
.fl-vidslot-play svg { width: 24px; height: 24px; }
.fl-vidslot > span:not(.fl-vidslot-play) { font-family: var(--fl-font), system-ui, sans-serif; font-weight: 600; font-size: 19px; }
.fl-vidslot small { color: var(--muted); font-size: 14px; }
.fl-follow .fl-tutcard { max-width: none; }
.fl-build { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 18px; border-radius: 999px; background: var(--fl-accent); color: #0b0c10; font-weight: 700; font-size: 15px; }
.fl-build:hover { text-decoration: none; filter: brightness(1.08); }

/* Fixes after the first look (13 Nov) */
.fl-ucard-stage img { height: 256px; }
.fl-mcard.mat-stripe { padding-top: 64px; background:
  linear-gradient(180deg, transparent 30px, var(--fl-accent) 30px, var(--fl-accent) 37px, transparent 37px),
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.fl-mhero.mat-stripe { padding-top: 92px; background:
  linear-gradient(180deg, transparent 40px, var(--fl-accent) 40px, var(--fl-accent) 49px, transparent 49px),
  linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.fl-uhero.mat-stripe { background: linear-gradient(180deg, transparent 22px, var(--fl-accent) 22px, var(--fl-accent) 28px, transparent 28px), linear-gradient(165deg, var(--fl-panel2), var(--fl-panel)); }
.mat-stripe .fl-mhero-in { padding-top: 0; }
.fl-blank i { position: relative; }
.fl-blank b { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font: 600 11px/1.2 var(--fl-font), system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 0 4px; }
.m-kestrel ~ .fl-mcard-strip .fl-blank b, .mat-stripe .fl-blank b { text-transform: lowercase; letter-spacing: 0; }
.fl-case img { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.fl-case { margin-top: 30px; }
.fl-case figcaption { margin-top: -10px; position: relative; }
.fl-parts .fl-pv { display: inline-block; margin: 0 16px 2px 0; }
.fl-parts .fl-pv b { font-weight: 600; color: var(--text); }
.fl-parts .fl-pv i { font-style: normal; color: var(--fl-accent); font-family: var(--mono); font-size: 12.5px; }
.fl-parts .fl-pv small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.fl .fl-patch:not(.first) .cp.fl-fig .cp-svg svg { max-height: 360px; }
.fl .cp.fl-fig .cp-open { color: var(--fl-accent); }
.fl-blank i { width: calc(var(--hp) * 9.5px); }
.fl-blank b { font-size: 10.5px; letter-spacing: .03em; overflow-wrap: anywhere; hyphens: auto; }
.fl-mcard.mat-carbon .fl-mcard-line { font-size: 14px; letter-spacing: .01em; }
.fl-mcard.mat-carbon .fl-mcard-foot { font-size: 11.5px; }
.fl-mcard.mat-carbon .fl-wordmark { font-size: 17px; }
.fl-shows .fl-show + .fl-show { margin-top: 12px; }
/* Studio's renders (<picture> around one WebP <img>: no AVIF) */
.fl-uhero-panel picture, .fl-shot picture, .fl-case picture { display: contents; }
.fl-uhero-panel.studio { aspect-ratio: auto; }
.fl-uhero-panel.studio img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
.fl-case.studio img { border-radius: 14px; filter: none; }
.fl-shot img { display: block; }
/* Growth's "built in the open" note */
.fl-open { max-width: 760px; margin: 26px auto 0; padding: 20px 24px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.fl-open h2 { margin: 0 0 8px; font-size: 19px; }
.fl-open p { margin: 0 0 8px; color: var(--text); font-size: 15.5px; }
.fl-open .fl-open-where { margin-top: 12px; font-weight: 600; }
.fl-open ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.fl-open li { margin: 4px 0; }
.fl-open-line { max-width: 1180px; margin: 18px auto 0; padding: 0 16px; color: var(--muted); font-size: 14.5px; }
.fl-open-line::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fl-accent); margin: 0 9px 1px 0; }

/* Open the circuit (Jorge, 14 Nov): the hub's four steps from a unit to a module of your own, and each unit's "Open it up" */
.fl-openup { padding-top: 54px; }
.fl-ou-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; counter-reset: none; }
.fl-ou-step { margin: 0; min-width: 0; }
.fl-ou-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0d0e11; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.fl-ou-stage picture, .fl-ou-stage > img { display: block; width: 100%; height: 100%; }
.fl-ou-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fl-ou-stage.s1 img { object-position: 50% 40%; }
.fl-ou-stage.s2 img { object-position: 0 0; }
.fl-ou-cap { margin: 14px 2px 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.fl-ou-cap b { color: var(--text); font-weight: 650; margin-right: 4px; }
.fl-ou-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #0b0c10;
  font: 700 13px/1 var(--mono); vertical-align: 1px; }
.fl-ou-code { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 18px;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,181,71,.10), transparent 62%), #0d0e11; }
.fl-ou-code pre { margin: 0; padding: 0; background: none; border: 0; font: 400 clamp(13px, 1.55vw, 17px)/1.75 var(--mono); color: #c9cbd3; }
.fl-ou-code .ln { display: block; white-space: pre; }
.fl-ou-code b { color: #7cb7ff; font-weight: 400; }
.fl-ou-code del { color: #8b8e98; text-decoration-thickness: 2px; text-decoration-color: rgba(255,93,93,.85); }
.fl-ou-code ins { text-decoration: none; color: #ffcf6e; background: rgba(255,181,71,.16); border-radius: 4px; padding: 0 4px; }
.fl-ou-code .add { color: #b7f0c8; }
.fl-ou-code .add i { font-style: normal; color: #4ade80; margin: 0 6px 0 -16px; }
.fl-ou-result { margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,181,71,.45); color: #ffcf6e; font-weight: 650; font-size: 15px; }
.fl-ou-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 30px 0 0; }
.fl-ou-go .fl-build { margin: 0; font-size: 16px; padding: 13px 22px; }
.fl-ou-free { color: var(--muted); font-size: 14.5px; }
.fl-ou-unit { margin: 24px 0 0; padding: 16px 18px; max-width: 34em; border-radius: 14px; background: rgba(5,5,7,.42); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fl-ou-unit p { margin: 0 0 12px; color: rgba(255,255,255,.88); font-size: 15.5px; line-height: 1.5; }
.fl-ou-unit p b { color: #fff; }
.fl-ou-unit .fl-build { margin: 0; }
.fl-ou-cta { display: inline-block; text-align: center; line-height: 1.35; }
.fl-ou-unit small { display: block; margin-top: 10px; color: rgba(255,255,255,.62); font-size: 13.5px; }
@media (max-width: 760px) {
  .fl-ou-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fl-ou-unit { margin-left: auto; margin-right: auto; text-align: left; }
  .fl-ou-go .fl-build { width: 100%; justify-content: center; text-align: center; }
}
