/* One presentation layer for mobile navigation, journal articles and media. */
:root{--site-header-offset:170px}
html{scroll-padding-top:0}
main[id] [id],header#top{scroll-margin-top:var(--site-header-offset)!important}
.site-video-controls{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;max-width:100%;padding:8px;background:#214f59;color:#fffaf1;border-radius:0 0 12px 12px;font:13px/1.4 system-ui,sans-serif;min-width:0}
.site-video-controls button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:8px;border:1px solid #ffffff45;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.site-video-controls button:hover{background:#ffffff1a}.site-video-controls :focus-visible{outline:3px solid #f1c687;outline-offset:2px}
.site-video-controls input[type=range]{flex:1 1 65px;min-width:50px;width:65px;min-height:44px;margin:0;accent-color:#f0c68e;cursor:pointer}
.site-video-time{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}
.site-video-controls [hidden]{display:none!important}.site-video-controls .site-video-error:empty{display:none}.site-video-error{flex-basis:100%;font-size:13px}.site-video-controls .site-video-retry{flex-basis:auto;width:auto;padding-inline:12px}
video.site-video-enhanced{display:block;filter:none;opacity:1;max-width:100%;cursor:pointer}
.koji-diary-film>.site-video-controls{grid-column:2;align-self:start;margin-top:-24px}
.story-tools{margin:20px 0 30px;padding:16px 18px;border:1px solid #28576130;border-radius:14px;background:#fffbf4;color:#40585b;font:14px/1.6 system-ui,sans-serif;max-width:100%;min-width:0}
.story-tools-meta{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center}.project-status{display:inline-flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font:13px/1.5 system-ui,sans-serif;color:#40585b}.project-status strong{font-size:12px;letter-spacing:.01em;border-radius:999px;padding:4px 10px;background:#e5eee8;color:#285448}.project-status[data-phase=aging] strong{background:#f4dfbf;color:#80451f}.project-status[data-phase=observed] strong{background:#e6e9ed;color:#405266}.project-status time{white-space:normal}.project-status-label{font-size:12px}
.story-tools nav{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:10px}.story-tools nav a,.news-archive-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 14px;border:1px solid #28576140;border-radius:999px;text-decoration:none;color:#285761;background:#fffaf1;font-weight:650}.story-tools nav a:hover,.news-archive-link:hover{background:#e6eeeb}.story-tools details{margin-top:10px}.story-tools summary{cursor:pointer;min-height:44px;align-content:center}.story-tools dl{margin:4px 0;display:grid;grid-template-columns:auto 1fr;gap:6px 16px}.story-tools dt{font-weight:650}.story-tools dd{margin:0}
.news-archive-link{margin-top:24px;gap:12px;background:#285761;color:#fffaf1;min-height:48px}.news-archive-link:hover{background:#21434a;color:#fff}
.news-page .home-updates{width:100%;margin:0;padding:26px 0 48px}.news-page .home-updates-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.news-page .home-update-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;padding:18px;align-items:start;min-width:0}.news-page .home-update-image{width:96px;height:132px;position:relative;overflow:hidden;border-radius:8px}.news-page .home-update-copy p{display:block!important;font-size:15px;line-height:1.55;margin:10px 0}.news-page .home-update-copy h3{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.news-page .home-update-meta{font-size:12px;gap:6px;flex-wrap:wrap}.news-filter{padding:0;border:0;display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.news-filter button{min-height:44px;border:1px solid #28576150;border-radius:999px;padding:8px 16px;background:#fffaf1;color:#285761;font:650 14px system-ui;cursor:pointer}.news-filter button[aria-pressed=true]{background:#285761;color:white}.news-intro{max-width:800px;padding-top:30px}.news-intro h1{font:clamp(38px,6vw,64px)/1.1 Georgia,serif;margin:12px 0}.news-intro p{font-size:18px;line-height:1.65}.news-page :focus-visible,.story-tools :focus-visible{outline:3px solid #aa522d;outline-offset:4px}
.fermentation-entry-heading .project-status{margin-top:8px;display:flex}.fermentation-entry-heading h2{overflow-wrap:anywhere}.fermentation-entry-body .project-status{margin-bottom:12px}
@media(max-width:820px){
 html.site-header-compact .site-header.site-header,html.site-header-compact .recipe-page .recipe-header.recipe-header{position:sticky!important;top:6px!important;z-index:40;min-height:60px!important;padding:6px 8px!important;gap:6px!important;display:grid!important;grid-template-columns:44px minmax(66px,1fr) auto!important;align-items:center!important;border-radius:16px;box-shadow:0 4px 18px #173c4426}
 html.site-header-compact .site-header.site-header>.brand{grid-row:1!important;grid-column:2!important;justify-self:center}
 html.site-header-compact .site-header.site-header .site-brand-logo{width:44px!important;height:44px!important;border-radius:10px!important}
 html.site-header-compact .site-header.site-header>.home-mobile-menu{grid-row:1!important;grid-column:1!important;justify-self:start}
 html.site-header-compact .site-header.site-header>.home-mobile-menu summary{width:44px!important;min-width:44px!important;padding:10px!important;min-height:44px!important;font-size:0!important;gap:0!important}
 html.site-header-compact .site-header.site-header>.home-mobile-menu summary svg{width:22px;height:22px}
 html.site-header-compact .recipe-page .recipe-header.recipe-header>a{grid-row:1!important;grid-column:1!important;width:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;gap:0!important;justify-content:center}
 html.site-header-compact .recipe-page .recipe-header.recipe-header>a svg{width:36px!important;height:36px!important;flex-basis:36px!important}
 html.site-header-compact .recipe-page .recipe-header.recipe-header>.home-mobile-menu{grid-row:1!important;grid-column:2!important;justify-self:start}
 html.site-header-compact .recipe-page .recipe-header.recipe-header>.home-mobile-menu summary{min-height:44px!important;min-width:64px!important;padding:8px!important;font-size:13px!important;gap:5px!important}
 html.site-header-compact .recipe-page .recipe-header.recipe-header>.home-mobile-menu summary svg{width:18px;height:18px}
 html.site-header-compact .site-header.site-header>.language-switcher,html.site-header-compact .recipe-page .recipe-header.recipe-header>.language-switcher{grid-row:1!important;grid-column:3!important;justify-self:end!important;gap:0!important;padding:2px!important}
 html.site-header-compact .site-header.site-header .language-switcher button,html.site-header-compact .recipe-page .recipe-header.recipe-header .language-switcher button{min-width:30px!important;min-height:44px!important;padding:4px!important;font-size:11px!important}
 html.site-header-compact .home-mobile-menu .mobile-navigation-panel{max-height:calc(100dvh - 95px);overflow-y:auto;overscroll-behavior:contain}
 .news-page .home-updates-grid{grid-template-columns:minmax(0,1fr)}
 .koji-diary-film>.site-video-controls{grid-column:1/-1;margin-top:-18px}
 .story-tools{padding:12px 14px}.story-tools dl{grid-template-columns:minmax(0,1fr);gap:2px}.story-tools dd{margin-bottom:8px}
}
@media(max-width:390px){.site-video-time{order:6;flex-basis:100%;text-align:center}.site-video-controls input[type=range]{min-width:40px}.site-video-controls{gap:4px;padding:6px}.news-page .home-update-card{grid-template-columns:76px minmax(0,1fr);padding:14px;gap:12px}.news-page .home-update-image{width:76px;height:112px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.site-header,.recipe-header{transition:none!important}}
@media print{.site-video-controls,.story-tools nav,.news-filter{display:none!important}}

.belvedere-visit-page>.story-tools{width:calc(100% - 56px);max-width:1044px;margin:0 auto 20px}
@media(max-width:600px){.belvedere-visit-page>.story-tools{width:calc(100% - 40px)}}

.lacto-finish{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:32px;margin:24px 0 42px;padding:28px;border:1px solid #28576135;border-radius:18px;background:#fffbf4}.lacto-finish h2{font:400 clamp(28px,4vw,40px)/1.15 Georgia,serif;margin:10px 0 20px}.lacto-finish p{font-size:17px;line-height:1.7}.lacto-finish figure{margin:0;min-width:0}.lacto-finish img{display:block;width:100%;height:auto;border-radius:12px}.lacto-finish figcaption{font-size:14px;line-height:1.6;color:#40585b;margin-top:12px}.project-status[data-phase=paused] strong{background:#e5eee8;color:#285448}@media(max-width:720px){.lacto-finish{grid-template-columns:minmax(0,1fr);padding:18px;gap:16px}.lacto-finish figure{width:min(100%,380px);justify-self:center}}

/* The enlarged video always keeps its own visible return control. */
.site-video-dialog{box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border:0;background:#101b1e;color:#fffaf1;overflow:hidden}
.site-video-dialog[open]{display:flex;flex-direction:column;gap:12px}
.site-video-dialog::backdrop{background:#101b1e}
.site-video-back{display:inline-flex;align-items:center;align-self:flex-start;flex-shrink:0;min-height:48px;padding:10px 18px;border:1px solid #ffffff70;border-radius:999px;background:#fffaf1;color:#214f59;font:700 16px/1.4 system-ui,sans-serif;cursor:pointer}
.site-video-back:focus-visible{outline:3px solid #f1c687;outline-offset:3px}
.site-video-dialog-body{min-height:0;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
.site-video-dialog .site-video-dialog-body>video{flex:1;min-height:0;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important;border-radius:0!important;background:#101b1e}
.site-video-dialog .site-video-controls{flex:0 0 auto;width:100%!important;max-width:100%;margin:0;grid-column:auto}

/* Shared article actions wrap even in the embedded Instagram browser. */
.story-tools nav a,.news-archive-link{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;text-align:center}
.story-tools :is(dd,p,summary){overflow-wrap:anywhere}
@media(max-width:720px){.completed-visit main,.completed-visit header{width:calc(100% - 40px)}.completed-visit nav a{white-space:normal;max-width:100%;overflow-wrap:anywhere}.completed-visit .section-head>div{min-width:0}}
