@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Noto+Sans+Thai:wght@400;500;600;700&family=Noto+Serif+Thai:wght@600;700&display=swap');
.card,.card h3,.schema-table,.schema-table td,.numbered article,.numbered h3{color:#14231e}.card p,.numbered p{color:#68716d}.section:not(.dark) h1,.section:not(.dark) h2,.section:not(.dark) h3,.section:not(.dark) p{color:#14231e}.section.dark>div>p,.section.dark .wrap>p{color:#f8f4e9}.section.dark .card p{color:#68716d}.section.dark .schema-table td{color:#14231e}.section.dark .callout,.section.dark .callout strong{color:#14231e}
.eda-loop{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 25px}.eda-loop span{background:#fff;border:1px solid #d9d3c6;border-radius:999px;padding:9px 14px;font:600 11px "IBM Plex Mono"}.eda-loop i{color:#0e5f4e}.eda-family-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.eda-card{background:#fffdf8;border:1px solid #d9d3c6;border-radius:18px;padding:24px}.eda-card>b{font:600 10px "IBM Plex Mono";color:#0e5f4e;letter-spacing:.08em}.eda-card h3{font-size:22px;margin:12px 0}.eda-card p{color:#68716d}.model-line{background:#e8f0eb;border-radius:10px;padding:10px 12px;margin:17px 0}.model-line code{font:600 12px "IBM Plex Mono"}.gap-example{display:grid;grid-template-columns:.8fr 1.2fr;gap:7%;align-items:center}.dark .gap-example .token{color:#14231e}.rose-answer{display:grid;grid-template-columns:.28fr 1fr;gap:25px;align-items:center;margin-top:35px;padding:28px;border:1px solid #385047;border-radius:18px}.rose-answer>span{font:700 42px "Noto Serif Thai";color:#7ed0b5}.rose-answer code{font:600 18px "IBM Plex Mono";color:#f4d596}.rose-answer p{color:#bdc9c4}@media(max-width:900px){.eda-family-grid{grid-template-columns:1fr 1fr}.gap-example{grid-template-columns:1fr}}@media(max-width:600px){.eda-family-grid{grid-template-columns:1fr}.rose-answer{grid-template-columns:1fr}}
#sampling-block{display:contents}
#rose-context-block,#rose-reference-block,#schema-context-block,#schema-reference-block{display:contents}.section:not(.dark) .story-grid p{color:var(--ink)}.section:not(.dark) .story-lead{color:var(--ink)!important}.dark .callout{color:var(--ink)}.dark .section-head{border-color:#385047}.detail-grid>div>p:first-child{margin-top:0}.detail-grid pre{box-shadow:inset 0 0 0 1px #294039}.numbered{border-radius:16px;overflow:hidden}.schema-table th:first-child,.schema-table td:first-child{padding-left:22px}
.research-list{padding-left:20px}.research-list li{margin-bottom:13px}.research-list code{font:500 12px "IBM Plex Mono"}.references-list{padding-left:24px}.references-list li{padding:14px 8px;border-bottom:1px solid #d9d3c6}.references-list a{color:#0e5f4e;font-weight:700}
.detail-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:6%;align-items:start}.detail-grid pre,.wide-code{margin:0;background:#10201b;color:#d9eee5;border-radius:16px;padding:22px;overflow:auto;font:500 12px/1.8 "IBM Plex Mono"}.wide-code{margin-top:24px}.numbered{display:grid;gap:1px;background:#d9d3c6;border:1px solid #d9d3c6}.numbered article{display:grid;grid-template-columns:54px 1fr;gap:18px;background:#fffdf8;padding:22px}.numbered article>b{color:#0e5f4e;font:600 18px "IBM Plex Mono"}.numbered h3{margin:0 0 6px}.numbered p{margin:0;color:#68716d}.dark .schema-table,.dark .card{color:#14231e}@media(max-width:850px){.detail-grid{grid-template-columns:1fr}}
.story-grid,.origin-example{display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:start}.story-grid p{color:#bdc9c4}.story-lead{font-family:"Noto Serif Thai";font-size:clamp(20px,2.2vw,30px);line-height:1.65!important;color:#fff!important}.story-quote{border-left:3px solid #d9952d;padding-left:22px;font-family:"Noto Serif Thai";font-size:22px;color:#f4d596!important}.origin-example{align-items:center}.origin-example code{display:block;font:600 13px "IBM Plex Mono";color:#0e5f4e;margin-top:12px}@media(max-width:850px){.story-grid,.origin-example{grid-template-columns:1fr}}
:root{--ink:#14231e;--green:#0e5f4e;--green2:#16725d;--mint:#dcece4;--paper:#f3f0e8;--card:#fffdf8;--line:#d9d3c6;--muted:#68716d;--amber:#d9952d;--rose:#a72f42;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans Thai",sans-serif;line-height:1.7}a{color:inherit}.wrap{width:min(var(--max),calc(100% - 36px));margin:auto}.top{position:sticky;top:0;z-index:5;background:rgba(243,240,232,.95);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.top-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brands{display:flex;align-items:center;gap:12px;text-decoration:none}.brands img{height:38px;max-width:118px;object-fit:contain;border-radius:8px}.brands b{font-family:"Noto Serif Thai";font-size:18px}.nav{display:flex;align-items:center;gap:20px;font-size:13px;font-weight:700}.nav a{text-decoration:none}.nav a:hover,.nav a.active{color:var(--green)}.lang{border:1px solid var(--line);border-radius:999px;padding:6px 11px}.hero{padding:82px 0 68px;display:grid;grid-template-columns:1.35fr .65fr;gap:8%;align-items:end}.eyebrow{font:600 11px/1.4 "IBM Plex Mono";letter-spacing:.13em;text-transform:uppercase;color:var(--green)}h1,h2,h3{font-family:"Noto Serif Thai";line-height:1.12;margin-top:0}h1{font-size:clamp(52px,8vw,104px);letter-spacing:-.055em;margin:22px 0}.lead{font-size:clamp(18px,2vw,25px);max-width:780px}.hero-aside{border-left:3px solid var(--amber);padding-left:24px}.hero-aside strong{display:block;font-family:"Noto Serif Thai";font-size:26px}.hero-aside p{color:var(--muted)}.section{padding:76px 0}.section.alt{background:#e8e3d8}.section.dark{background:var(--ink);color:#f8f4e9}.section-head{display:grid;grid-template-columns:.35fr 1fr;gap:5%;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:34px}.section-head h2{font-size:clamp(34px,5vw,60px);margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:26px}.card h3{font-size:25px;margin:10px 0}.card p{color:var(--muted)}.card code,.formula{font-family:"IBM Plex Mono";font-size:12px}.badge{display:inline-block;border-radius:99px;background:var(--mint);color:var(--green);padding:5px 10px;font:600 10px "IBM Plex Mono";letter-spacing:.05em}.pipeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;counter-reset:step}.pipeline article{background:#20342d;border:1px solid #385047;border-radius:14px;padding:20px;min-height:175px}.pipeline article:before{counter-increment:step;content:"0" counter(step);display:block;color:#7ed0b5;font:600 11px "IBM Plex Mono";margin-bottom:20px}.pipeline h3{font-size:18px}.pipeline p{color:#bdc9c4;font-size:13px}.schema-table{width:100%;border-collapse:collapse;background:var(--card);border-radius:18px;overflow:hidden}.schema-table th,.schema-table td{text-align:left;padding:16px;border-bottom:1px solid var(--line);vertical-align:top}.schema-table th{font:600 11px "IBM Plex Mono";letter-spacing:.08em;text-transform:uppercase;color:var(--green)}.schema-table code{font:500 12px "IBM Plex Mono"}.example{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0}.token{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--green);border-radius:10px;background:var(--card);font-weight:700}.callout{background:#fff4d9;border-left:4px solid var(--amber);padding:20px 24px;border-radius:0 14px 14px 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.button{display:inline-block;text-decoration:none;background:var(--green);color:white;border-radius:999px;padding:11px 18px;font-weight:700}.button.secondary{background:transparent;color:var(--green);border:1px solid var(--green)}footer{padding:40px 0;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}@media(max-width:850px){.hero,.section-head{grid-template-columns:1fr}.hero{gap:28px;padding-top:55px}.cards{grid-template-columns:1fr}.pipeline{grid-template-columns:1fr 1fr}.nav a:not(.lang){display:none}.schema-table{display:block;overflow-x:auto}}@media(max-width:520px){.wrap{width:min(var(--max),calc(100% - 24px))}.brands img{height:30px;max-width:92px}.brands b{display:none}.pipeline{grid-template-columns:1fr}h1{font-size:50px}.section{padding:55px 0}}

/* Architecture tutorial */
.architecture-hero{padding-bottom:42px}.chapter-nav{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:34px}.chapter-nav a{padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fffdf8;color:var(--green);text-decoration:none;font:600 10px "IBM Plex Mono"}.chapter-nav a:hover{background:var(--green);color:#fff}.rose-pipeline{margin-bottom:24px}.snapshot-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.snapshot-grid article{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fffdf8}.snapshot-grid article span{color:var(--muted);font:600 10px "IBM Plex Mono"}.snapshot-grid article code{font:600 13px "IBM Plex Mono";white-space:nowrap}.snapshot-grid article.selected{background:#dcece4;border:2px solid var(--green)}.two-notes,.fit-columns,.source-rules,.complexity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}.two-notes article,.fit-card,.source-rules article,.complexity-grid article{padding:22px;border:1px solid var(--line);border-radius:16px;background:#fffdf8}.two-notes h3,.fit-card h3,.source-rules h3,.complexity-grid h3{margin-bottom:8px}.two-notes p,.fit-card p{margin:0;color:var(--muted)}.fit-columns{margin:34px 0}.fit-card pre,.estimator-cards pre{overflow:auto;padding:15px;border-radius:12px;background:#edf1ed;color:#17362c;font:500 11px/1.65 "IBM Plex Mono"}.schema-table.mini{margin-top:18px}.subheading{margin-top:36px}.metric-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.metric-strip>div{display:grid;gap:4px;padding:18px 12px;border-radius:14px;background:#fffdf8;border:1px solid var(--line);text-align:center}.metric-strip small{color:var(--muted);font:600 9px "IBM Plex Mono";text-transform:uppercase}.metric-strip b{font:700 20px "IBM Plex Mono";color:var(--green)}.fineprint{max-width:95ch;color:var(--muted);font-size:13px}.estimator-cards .card{display:flex;flex-direction:column}.estimator-cards pre{margin-top:auto}.comparison-table{margin-top:24px}.sampling-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:28px 0}.sampling-steps article{min-height:180px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fffdf8}.sampling-steps article>b{display:grid;place-items:center;width:30px;height:30px;margin-bottom:25px;border-radius:50%;background:var(--green);color:#fff;font:600 12px "IBM Plex Mono"}.sampling-steps h3{font-size:19px;margin-bottom:8px}.sampling-steps p{color:var(--muted);font-size:13px}.numeric-snapshot{overflow:hidden;margin:30px 0;border:1px solid #315047;border-radius:20px;background:#11251e;color:#eef8f3}.numeric-head{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #315047}.numeric-head>div{display:grid}.numeric-head span{color:#81cdb3;font:600 10px "IBM Plex Mono";text-transform:uppercase}.numeric-head strong{font-family:"Noto Serif Thai";font-size:21px}.numeric-head code{color:#f0cf8f}.numeric-snapshot table{width:100%;border-collapse:collapse}.numeric-snapshot th,.numeric-snapshot td{padding:13px 18px;border-bottom:1px solid #28433a;text-align:right}.numeric-snapshot th:first-child,.numeric-snapshot td:first-child{text-align:left}.numeric-snapshot th{color:#9cc5b7;font:600 10px "IBM Plex Mono"}.numeric-snapshot tr.winner{background:#214b3d;color:#fff}.numeric-snapshot>p{margin:0;padding:18px 24px;color:#b7c9c3;font-size:12px}.sampling-detail{margin-top:30px}.template-demo{padding:28px;border:1px solid var(--line);border-radius:20px;background:#fffdf8}.template-demo small{font:600 10px "IBM Plex Mono";color:var(--green)}.template-demo .example{margin:10px 0}.template-arrow{display:flex;align-items:center;gap:14px;margin:8px 0;color:var(--amber);font-size:22px}.template-arrow span{color:var(--muted);font-size:13px}.token.hole{border-style:dashed;color:var(--muted);background:#eee9de}.token.fixed{box-shadow:inset 0 -4px #76a992}.token.changed{background:#fff0c9;border-color:var(--amber)}.generation-snapshots{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.generation-snapshots article{padding:22px;border:1px solid #385047;border-radius:16px;background:#20342d}.generation-snapshots span{color:#7ed0b5;font:600 10px "IBM Plex Mono"}.generation-snapshots h3{margin:14px 0 8px;font-size:20px}.generation-snapshots p{color:#bdc9c4;font-size:13px}.light-heading{margin-top:36px;color:#fff}.diagnostic-grid{display:flex;flex-wrap:wrap;gap:8px}.diagnostic-grid span{padding:7px 11px;border:1px solid #48645a;border-radius:999px;color:#d9e9e3;font:500 10px "IBM Plex Mono"}.complexity-grid{grid-template-columns:repeat(3,1fr)}.complexity-grid b{color:var(--green);font:700 20px "IBM Plex Mono"}.complexity-grid p{color:var(--muted)}.source-rules ul{padding-left:20px}.source-rules li{margin:8px 0}.section:not(.dark) .eyebrow{color:var(--green)}
@media(max-width:950px){.snapshot-grid{grid-template-columns:repeat(2,1fr)}.sampling-steps,.generation-snapshots{grid-template-columns:repeat(2,1fr)}.metric-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.snapshot-grid,.two-notes,.fit-columns,.source-rules,.complexity-grid,.sampling-steps,.generation-snapshots{grid-template-columns:1fr}.metric-strip{grid-template-columns:repeat(2,1fr)}.numeric-snapshot{overflow:auto}.numeric-head{min-width:720px}.numeric-snapshot table{min-width:720px}.population-snapshot article code{white-space:normal}}
