/* Noodle page layout. Tokens and components live in assets/toodls.css; body.t-noodle sets the gold family. */

#preview-panel, #split-panel { margin-bottom:0; }
#split-panel, #builder:has(#split-view:checked) #preview-panel { display:none; }
#builder:has(#split-view:checked) #split-panel { display:block; }
.features { margin-top:2.5rem; }

/* Output styles: nine theme swatches beside the theme menu */
.styles-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.styles-layout h2 { margin-bottom:1rem; }
.styles-layout > div > p { font-size:1.06rem; color:var(--ink-2); max-width:50ch; }
.themes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; margin-top:1.6rem; list-style:none; }
.themes li { display:grid; grid-template-columns:auto 1fr; column-gap:.55rem; align-items:center; padding:.55rem .7rem;
  background:var(--card); border:1px solid var(--line); border-radius:12px; font-weight:600; font-size:.9rem; line-height:1.25; }
/* Swatch colours are Noodle's own output themes, not Toodls brand colours. */
.themes i { grid-row:span 2; width:1.5rem; height:1.5rem; border-radius:50%; border:var(--rule); background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%); }
.themes small { font-weight:400; font-size:.78rem; color:var(--ink-3); }

/* Try a page layout */
.assembly { display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:center; margin-top:2rem; padding:clamp(1.2rem,3vw,2.4rem);
  background:var(--tool-tint); border:var(--rule); border-radius:var(--radius); box-shadow:var(--drop); }
.assembly p { margin-block:.5rem; max-width:45ch; }
.sample-sheet { min-height:10rem; padding:1.5rem; background:var(--card); border:var(--rule); border-top:8px solid var(--ink); border-radius:6px;
  box-shadow:5px 5px 0 var(--tool), 6px 6px 0 var(--ink); }
.sample-sheet ul, .sample-sheet ol { padding-left:1.4rem; }
.sample-sheet small { font:600 .72rem var(--mono); letter-spacing:.07em; text-transform:uppercase; color:var(--tool-deep); }

.outputs { margin-top:1.25rem; }
#roadmap .steps { margin-bottom:1.5rem; }
.suggest { max-width:46rem; }

@media (max-width:66rem) { .styles-layout { grid-template-columns:minmax(0,1fr); } }
@media (max-width:52rem) {
  .themes { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .assembly { grid-template-columns:1fr; }
}
.features-title { margin:2.5rem 0 1rem; font-size:1.35rem; }

/* The six blocks read as a page outline in the builder: drag handles, block names, and rows that slide when you reach for them */
.block-rows { list-style:none; counter-reset:block; background:var(--card); border:var(--rule); border-top:10px solid var(--ink); border-radius:12px; box-shadow:5px 5px 0 var(--tool), 6px 6px 0 var(--ink); overflow:hidden; }
.block-rows > li { counter-increment:block; display:grid; grid-template-columns:2rem minmax(8rem,12rem) 1fr; align-items:center; gap:1rem; padding:.9rem 1.3rem;
  border-bottom:1px dashed var(--line); transition:transform 360ms var(--spring), background-color 200ms linear; }
.block-rows > li:last-child { border-bottom:0; }
.block-rows > li::before { content:""; width:.9rem; height:1.3rem; background:radial-gradient(circle,var(--ink-3) 1.4px,transparent 1.6px) 0 0/.45rem .45rem; opacity:.7; }
.block-rows h3 { justify-self:start; padding:.25rem .75rem; background:var(--tool-tint); border:var(--rule); border-radius:999px; font-size:1rem; }
.block-rows p { color:var(--ink-2); }
.block-rows > li:hover { transform:translateX(8px); background:var(--paper-2); }
.block-rows > li:hover h3 { background:var(--tool); }
@media (max-width:52rem) { .block-rows > li { grid-template-columns:1.2rem 1fr; } .block-rows p { grid-column:2; } }

/* Swatches turn when you point at a theme */

/* Switching the sample block flips the sheet like a card */

/* ---------- Themes: pick one and the sample page restyles ---------- */
.themes { border:0; padding:0; }
.themes label { position:relative; display:block; cursor:pointer; }
.themes input { position:absolute; opacity:0; width:1px; height:1px; }
.themes label > span { display:grid; grid-template-columns:auto 1fr; column-gap:.55rem; align-items:center; padding:.55rem .7rem; height:100%;
  background:var(--card); border:1.5px solid var(--line); border-radius:12px; font-weight:600; font-size:.9rem; line-height:1.25;
  transition:border-color 160ms linear, transform 300ms var(--spring), box-shadow 300ms var(--spring), background-color 160ms linear; }
.themes label:hover > span { border-color:var(--ink); transform:translateY(-2px); }
.themes input:checked + span { border:2px solid var(--ink); background:var(--tool-tint); box-shadow:0 3px 0 var(--ink); }
.themes input:checked + span i { transform:rotate(180deg); }
.themes input:focus-visible + span { outline:3px solid var(--ink); outline-offset:2px; }
.themes label > span i { grid-row:span 2; width:1.5rem; height:1.5rem; border-radius:50%; border:var(--rule); background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%); transition:transform 600ms var(--spring); }
.themes small { font-weight:400; font-size:.78rem; color:var(--ink-3); }
.theme-stage { display:grid; gap:1rem; }
.theme-stage figcaption { font-size:.92rem; color:var(--ink-2); }
.sample-tabs { display:inline-flex; margin-top:1rem; }

/* The sample page. Each theme is Noodle's own output style, not a Toodls brand colour. */
.theme-sample { --bg:#fff; --fg:#1d2330; --accent:#3a5bd9; --soft:#eef1fb; --rad:10px; --font:Georgia, 'Times New Roman', serif; --line:#d6dbea; --shadow:0 2px 0 var(--line);
  display:grid; gap:12px; padding:18px; background:var(--bg); color:var(--fg); border:2px solid var(--ink); border-radius:18px; box-shadow:0 8px 0 var(--gold); min-height:22rem;
  transition:background-color 300ms linear; }
.theme-sample > * { border-radius:var(--rad); }
.ts-hero { display:grid; gap:4px; padding:18px; background:var(--accent); color:#fff; }
.ts-hero small { font:600 .7rem var(--mono); letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.ts-hero strong { font:700 1.5rem/1.1 var(--font); }
.ts-hero span { font-size:.9rem; opacity:.9; }
.ts-objectives { padding:12px 16px; background:var(--soft); border-left:4px solid var(--accent); }
.ts-objectives b, .ts-card b { font-family:var(--font); }
.ts-objectives ul { margin-top:4px; padding-left:1.1rem; font-size:.9rem; }
.ts-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ts-card { display:grid; gap:2px; padding:12px 14px; border:1px solid var(--line); box-shadow:var(--shadow); font-size:.88rem; }
.theme-sample[data-theme="workshop"] { --bg:#101418; --fg:#d7e3e0; --accent:#1aa39a; --soft:#18211f; --line:#2a3634; --font:'Geist Mono', monospace; --rad:6px; }
.theme-sample[data-theme="press"] { --bg:#fff; --fg:#111; --accent:#111; --soft:#f2f2f2; --line:#111; --rad:0; --shadow:5px 5px 0 #111; --font:'Inter Tight', sans-serif; }
.theme-sample[data-theme="press"] .ts-objectives, .theme-sample[data-theme="press"] .ts-hero { box-shadow:6px 6px 0 #111; border:2px solid #111; }
.theme-sample[data-theme="soft"] { --bg:#f6f5ff; --fg:#2b2d5c; --accent:#7b6cf0; --soft:#ffffff; --line:#e3e0fb; --rad:18px; --font:'Inter Tight', sans-serif; --shadow:0 6px 18px rgba(80,70,180,.12); }
.theme-sample[data-theme="blueprint"] { --bg:#0f2d4a; --fg:#d8ecf7; --accent:#1b8fb0; --soft:rgba(255,255,255,.06); --line:rgba(216,236,247,.35); --rad:2px; --font:'Geist Mono', monospace;
  background-image:linear-gradient(rgba(216,236,247,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(216,236,247,.08) 1px,transparent 1px); background-size:18px 18px; }
.theme-sample[data-theme="poster"] { --bg:#f3e7d3; --fg:#3a1f14; --accent:#c4502a; --soft:#ead8bb; --line:#3a1f14; --rad:0; --font:'Inter Tight', sans-serif; }
.theme-sample[data-theme="poster"] .ts-hero strong { font-size:2rem; letter-spacing:-.04em; text-transform:uppercase; }
.theme-sample[data-theme="streamline"] { --bg:#121218; --fg:#e6e4f2; --accent:#8a5cf0; --soft:#1c1b26; --line:#2b2a3a; --rad:12px; --font:'Inter Tight', sans-serif; }
.theme-sample[data-theme="canvas"] { --bg:#fbfaf7; --fg:#2b2b2b; --accent:#e0503b; --soft:#f3f1ec; --line:#e7e3da; --rad:6px; --font:Georgia, serif; }
.theme-sample[data-theme="canvas"] .ts-hero { background:transparent; color:var(--fg); border-bottom:3px solid var(--accent); }
.theme-sample[data-theme="aurora"] { --bg:linear-gradient(135deg,#2a2366,#5b3fbf 60%,#8b7bff); --fg:#f3f0ff; --accent:rgba(255,255,255,.16); --soft:rgba(255,255,255,.1); --line:rgba(255,255,255,.25); --rad:16px; --font:'Inter Tight', sans-serif; background:var(--bg); }
.theme-sample[data-theme="aurora"] .ts-hero { backdrop-filter:blur(6px); border:1px solid var(--line); }
