/* World kitchens (marketing/website/kitchens.py), loaded after website.css on kitchen pages only.
   Local scripts use the reader's system fonts: no web fonts are downloaded. Latin text keeps the site's mono face;
   each script gets its own fallback list, line height and line-breaking rules. */
:root{--mono-core:ui-monospace,"SF Mono",SFMono-Regular,Menlo,"Cascadia Mono",Consolas,"Roboto Mono"}

/* Dish names in their own script, under the English (or translated) name */
.recipe-head h1 .dish-name{display:block}
.local-name{display:block;margin-top:6px;font-size:.62em;font-weight:400;color:var(--ink2);letter-spacing:0}
.card-local{display:block;font-size:15px;color:var(--ink2);font-weight:400}
.recipe-headnote{margin-top:16px;max-width:62ch;color:var(--ink2);font-size:18px}
.kitchen-langs{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.kitchen-langs a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;font-size:15px}
.kitchen-langs a[aria-current]{border-color:var(--brand);color:var(--brand);font-weight:700}
.kitchen-langs a:hover{border-color:var(--brand)}
.recipe-chips .chip-nut-warning,.recipe-chips .chip-sesame-warning{border-color:var(--mid);color:#9a4a05;font-weight:700}

/* Nutrition per serving */
.prose .nutrition{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:16px 0 0;padding:0}
.prose .nutrition div{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.prose .nutrition dt{font-size:15px;color:var(--ink2);hyphens:manual;overflow-wrap:normal}
.prose .nutrition dd{margin:4px 0 0;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.nutrition-source{margin-top:12px;font-size:15px;color:var(--ink2);max-width:62ch}
.allergy-line{margin-top:20px}
.prose .gentle-why{max-width:62ch}
.kitchen-page .recipe-more{margin-top:64px}
.prose .nutrition dd[dir="ltr"],.amt[dir="ltr"]{unicode-bidi:isolate}

/* Hubs */
.kitchen-hub .recipe-hero-art{border-radius:16px;aspect-ratio:1/1;object-fit:cover}
.kitchen-meal{padding-block:40px 0}
.kitchen-how{max-width:68ch}.kitchen-world .library-hero p{max-width:62ch}.kitchen-how p{margin-top:12px;color:var(--ink2)}
.kitchen-related{padding-block:48px 0}
.kitchen-card .rcard-copy a{color:var(--ink);text-decoration:none}.kitchen-card .rcard-name a:hover{color:var(--brand)}
.kitchen-covers{font-size:15px;color:var(--ink2)}
.kitchen-card-langs{font-size:15px}.kitchen-card-langs a{color:var(--brand)!important}
.kitchen-card .rcard-art{display:block}

/* Long words (German, Finnish, Dutch) break instead of overflowing */
.kitchen-page,.kitchen-hub{overflow-wrap:break-word}
.kitchen-page h1,.kitchen-page h2,.kitchen-hub h1,.kitchen-hub h2{text-wrap:balance}
@media(max-width:700px){.kitchen-page h1,.kitchen-page h2,.kitchen-hub h1,.kitchen-hub h2,.rcard-name{hyphens:auto;-webkit-hyphens:auto}}
/* German, Finnish, Dutch and the Nordic languages build long compound words: their headings and card names
   hyphenate at every width (the browser's dictionary for the page's lang), and a word with no break point still wraps */
:lang(de) :is(h1,h2,h3,.rcard-name,.category-nav a),:lang(fi) :is(h1,h2,h3,.rcard-name,.category-nav a),:lang(nl) :is(h1,h2,h3,.rcard-name),
:lang(da) :is(h1,h2,h3,.rcard-name),:lang(nb) :is(h1,h2,h3,.rcard-name),:lang(sv) :is(h1,h2,h3,.rcard-name){hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
/* Swaps */
.prose .swaps li{margin-top:8px}

/* Language homes (/<lang>/) */
.lang-home .library-hero{padding-bottom:8px}
.lang-home .intro{max-width:62ch}
.lang-home-more{max-width:68ch;padding-block:32px 8px}.lang-home-more p+p{margin-top:12px}
.kitchen-page p,.kitchen-page li{text-wrap:pretty}

/* Japanese */
:lang(ja){font-family:var(--mono-core),"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Meiryo","Noto Sans CJK JP","Noto Sans JP",sans-serif;line-break:strict;word-break:normal;overflow-wrap:anywhere}
html:lang(ja) body{line-height:1.75}
/* Korean: words stay whole, as Korean is written with spaces */
:lang(ko){font-family:var(--mono-core),"Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR","Noto Sans KR",sans-serif;word-break:keep-all;overflow-wrap:anywhere}
html:lang(ko) body{line-height:1.7}
/* Traditional Chinese */
:lang(zh-Hant),:lang(zh-Hant-HK){font-family:var(--mono-core),"PingFang TC","PingFang HK","Microsoft JhengHei","Noto Sans CJK TC","Noto Sans TC",sans-serif;line-break:strict;overflow-wrap:anywhere}
html:lang(zh-Hant) body{line-height:1.75}
/* Thai: no spaces between words; the browser's dictionary breaks lines. Taller lines for vowel marks. */
:lang(th){font-family:var(--mono-core),"Thonburi","Sukhumvit Set","Leelawadee UI","Leelawadee","Noto Sans Thai",Tahoma,sans-serif;word-break:normal;line-break:auto;letter-spacing:0}
html:lang(th) body{line-height:1.8}
/* Arabic: right to left, joined letters (no letter spacing) */
:lang(ar){font-family:"SF Arabic","Geeza Pro","Segoe UI","Noto Naskh Arabic","Noto Sans Arabic",Tahoma,sans-serif;letter-spacing:0!important}
:lang(ar) *{letter-spacing:0!important}
html:lang(ar) body{line-height:1.8}
/* Devanagari (Hindi) and the south Indian scripts in dish names */
:lang(hi){font-family:var(--mono-core),"Kohinoor Devanagari","Devanagari Sangam MN","Nirmala UI","Noto Sans Devanagari",sans-serif;letter-spacing:0}
html:lang(hi) body{line-height:1.8}
:lang(te){font-family:"Kohinoor Telugu","Telugu Sangam MN","Nirmala UI","Noto Sans Telugu",sans-serif;letter-spacing:0}
:lang(ta){font-family:"Tamil Sangam MN","Nirmala UI","Noto Sans Tamil",sans-serif;letter-spacing:0}
:lang(ml){font-family:"Malayalam Sangam MN","Nirmala UI","Noto Sans Malayalam",sans-serif;letter-spacing:0}
/* Vietnamese: stacked diacritics need room */
html:lang(vi) body{line-height:1.7}
:lang(vi){font-family:var(--mono-core),"SF Pro Text","Segoe UI","Noto Sans",sans-serif}

/* Right-to-left pages */
[dir="rtl"] .skip:not(:focus){left:auto;right:-9999px}
[dir="rtl"] .skip:focus{left:auto;right:16px}
[dir="rtl"] .nav nav{margin-left:0;margin-right:auto}
[dir="rtl"] .language-picker[open]>:not(summary){right:auto;left:0}
[dir="rtl"] .prose ul,[dir="rtl"] .prose ol{padding-left:0;padding-right:1.4em}
[dir="rtl"] .recipe-actions,[dir="rtl"] .ingredients-head{flex-direction:row}
[dir="rtl"] .arrow-icon{transform:scaleX(-1)}
[dir="rtl"] .footer{direction:rtl}

/* Review round 1 (14 Nov 2026) */
/* Arabic: buttons and toggles take the Arabic face too (the site's mono face set the letters apart) */
:lang(ar) :is(button,.button,.rp-ghost,input,summary,.fchip){font-family:"SF Arabic","Geeza Pro","Segoe UI","Noto Naskh Arabic","Noto Sans Arabic",Tahoma,sans-serif}
/* The card's time and servings: each part keeps its words together and wraps as a whole */
.kitchen-page .rp-meta div{flex-wrap:wrap}.kitchen-page .rp-meta dt{white-space:nowrap}.kitchen-page .rp-meta dd:empty{display:none}
/* The world kitchens: one grid of plates, each kitchen led by its own dish */
.kitchen-world .rh-head{max-width:820px}
.kitchen-world .kb .mt{display:grid;gap:4px;align-content:start}.kitchen-world .kb .mt>span{white-space:normal}
.kb .eb{font-weight:400}
.kitchen-card-langs a{color:var(--brand)}
/* A kitchen hub: its seven other dishes as one grid of larger plates, four to a row */
@media(min-width:861px){.kitchen-hub:not(.kitchen-world) .shelf .row{max-width:none}}
/* visual review 2: language links on a world card are one inline row; English headings never break mid-word */
.b .kitchen-card-langs a{display:inline;grid-row:auto}
.kitchen-world h1,.kitchen-world h2{hyphens:manual;-webkit-hyphens:manual}
.kitchen-world .kitchen-how{max-width:none}.kitchen-world .kitchen-how p{max-width:68ch}
.rh-note .src-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;text-decoration:none;color:var(--brand)}
/* visual review 3, defect 2: kitchens index card: kitchen name bold, dish under it, language links on one baseline */
.kitchen-world .kb .kb-dish{display:block;font-weight:400;font-size:15px;color:var(--ink2);margin-top:2px}
.kitchen-world .kb .mt{display:block;margin-top:auto;padding-top:8px}
.kitchen-world .row{align-items:stretch}
.kitchen-world .kb .kitchen-card-langs{display:block;white-space:normal}
.kitchen-world .kitchen-how,.kitchen-world .kitchen-how p{max-width:none}  /* visual review 3: full width */
