/* The Pastry School — public V1 visual polish */
:root{--eh-ink:#171717;--eh-muted:#6f7279;--eh-line:#e7e7e7;--eh-paper:#fff}

/* Welcome screen */
#eh-welcome{display:none;background:#fff;color:var(--eh-ink);min-height:100dvh;padding-bottom:88px}
body.eh-welcome-active{background:#fff;overflow-x:hidden}
body.eh-welcome-active>#eh-welcome{display:block}
body.eh-welcome-active>:not(#eh-welcome):not(script):not(#lang-switch){display:none!important}
#eh-welcome .eh-shell{width:min(100%,720px);margin:0 auto;padding:28px 24px 24px}
#eh-welcome .eh-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
#eh-welcome .eh-logo{width:255px;max-width:66vw;height:auto;display:block;object-fit:contain}
#eh-welcome .eh-langs{display:flex;gap:8px;align-items:center;padding-top:10px;font-size:17px;color:#666;white-space:nowrap}
#eh-welcome .eh-langs button{appearance:none;border:0;background:none;padding:0 0 3px;font:inherit;color:inherit;cursor:pointer}
#eh-welcome .eh-langs button.active{color:#171717;border-bottom:1.5px solid #171717}
#eh-welcome .eh-title{margin:40px 0 0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(28px,6vw,36px);line-height:.95;font-style:italic;font-weight:400;letter-spacing:-.035em}
#eh-welcome .eh-sub{margin:12px 0 0;font-size:clamp(14px,3.2vw,17px);line-height:1.25;color:#6d7179;max-width:580px}
#eh-welcome .eh-cards{display:grid;gap:14px;margin-top:32px}
#eh-welcome .eh-card{display:grid;grid-template-columns:64px 1fr 24px;gap:16px;align-items:center;min-height:120px;padding:18px 18px;border:1px solid var(--eh-line);border-radius:7px;background:#fff;text-decoration:none;color:#171717;box-shadow:0 1px 0 rgba(0,0,0,.015)}
#eh-welcome .eh-card:active{background:#fafafa}
#eh-welcome .eh-card svg{width:48px;height:48px;fill:none;stroke:#111;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#eh-welcome .eh-card strong{display:block;font-size:22px;line-height:1.05;font-weight:700}
#eh-welcome .eh-card .desc{display:block;margin-top:7px;color:#747780;font-size:16px;line-height:1.25}
#eh-welcome .eh-card .arrow{font-size:34px;line-height:1;color:#6f7279;font-weight:200;transform:translateY(-1px)}
#eh-welcome .eh-bottom{position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.97);border-top:1px solid #e9e9e9;display:grid;grid-template-columns:repeat(5,1fr);padding:9px 8px max(10px,env(safe-area-inset-bottom))}
#eh-welcome .eh-bottom a,#eh-welcome .eh-bottom button{appearance:none;border:0;background:none;text-decoration:none;color:#2b2b2b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;padding:0;min-width:0}
#eh-welcome .eh-bottom svg{width:27px;height:27px;fill:none;stroke:#111;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:420px){#eh-welcome .eh-shell{padding:22px 18px 20px}#eh-welcome .eh-logo{width:225px}#eh-welcome .eh-title{margin-top:22px;font-size:32px}#eh-welcome .eh-sub{font-size:16px}#eh-welcome .eh-card{min-height:104px;grid-template-columns:54px 1fr 20px;padding:15px}#eh-welcome .eh-card svg{width:42px;height:42px}#eh-welcome .eh-card strong{font-size:20px}#eh-welcome .eh-card .desc{font-size:15px}}

/* Tools hub — icon on the LEFT, text in the middle, actions on the right */
body[data-tool="hub"] #tool-root{padding-top:26px!important;padding-bottom:96px!important}
body[data-tool="hub"] .tool-grid{display:grid!important;gap:10px!important}
body[data-tool="hub"] .tool-card{display:grid!important;grid-template-columns:52px minmax(0,1fr) 24px 44px!important;align-items:center!important;gap:12px!important;min-height:102px!important;padding:13px 12px!important;border:1px solid var(--eh-line)!important;border-radius:6px!important;background:#fff!important}
body[data-tool="hub"] .tool-card .eh-tool-icon{width:46px;height:46px;display:grid;place-items:center;grid-column:1}
body[data-tool="hub"] .tool-card .eh-tool-icon svg{width:40px;height:40px;fill:none;stroke:#111;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body[data-tool="hub"] .tool-card>a{grid-column:2!important;display:block!important;min-width:0!important}
body[data-tool="hub"] .tool-card>a strong{font-size:22px!important;line-height:1.03!important;font-style:normal!important;font-family:Georgia,'Times New Roman',serif!important}
body[data-tool="hub"] .tool-card>a span{font-size:14px!important;line-height:1.32!important;color:#6f7279!important;margin-top:5px!important}
body[data-tool="hub"] .tool-card .eh-tool-arrow{grid-column:3;font-size:30px;color:#6e7278;font-weight:200;text-align:center}
body[data-tool="hub"] .tool-card>button{grid-column:4!important;justify-self:end!important;width:42px!important;height:42px!important;padding:0!important}
body[data-tool="hub"] header img[alt="Emmanuel Hamon The Pastry School"]{max-width:190px!important;height:auto!important}
@media(max-width:520px){body[data-tool="hub"] .tool-card{grid-template-columns:48px minmax(0,1fr) 18px 40px!important;gap:9px!important;min-height:96px!important;padding:12px 10px!important}body[data-tool="hub"] .tool-card .eh-tool-icon{width:42px;height:42px}body[data-tool="hub"] .tool-card .eh-tool-icon svg{width:36px;height:36px}body[data-tool="hub"] .tool-card>a strong{font-size:20px!important}body[data-tool="hub"] .tool-card>a span{font-size:13px!important}body[data-tool="hub"] header img[alt="Emmanuel Hamon The Pastry School"]{max-width:165px!important}}

/* Recipe result emphasis */
#recipe-results .eh-result-focus{scroll-margin-top:96px}

/* RC3.5 recipe interaction feedback */
.eh-scale-button{transition:transform .08s ease,opacity .08s ease,box-shadow .12s ease;box-shadow:0 1px 0 rgba(0,0,0,.2)}
.eh-scale-button:active{transform:translateY(1px) scale(.992);opacity:.86}
.eh-scale-feedback{position:sticky;top:8px;z-index:40;margin:8px 0;padding:12px 14px;border:1px solid #d8d5cf;background:#fff;font-weight:600}
#recipe-results .eh-result-focus{border-width:2px!important;scroll-margin-top:92px}

.eh-scale-feedback[data-ok="1"]{background:#f5f7f2;border-color:#cbd4c3}

body.eh-welcome-active #lang-switch{display:none!important}
