#discovery-start-status{display:none}
body.discovery-open>#discovery-start-status{display:block;max-width:1280px;margin:0 auto;padding:36px 40px;color:var(--ink);font:15px/1.9 var(--font-sans)}
#discovery-workspace{max-width:1280px;margin:0 auto;padding:36px 40px 70px;color:var(--ink);font:15px/1.9 var(--font-sans)}
#discovery-workspace[hidden]{display:none!important}
#discovery-workspace h1,#discovery-workspace h2{font-family:var(--font-mincho);font-weight:500;letter-spacing:0;line-height:1.65}
#discovery-workspace h1{font-size:clamp(32px,3.5vw,50px);margin:0 0 20px}#discovery-workspace h2{font-size:27px;margin:0 0 24px}
#discovery-workspace p{margin:12px 0;line-height:1.95}#discovery-workspace a{color:var(--action);text-underline-offset:5px}#discovery-workspace button{min-height:44px;padding:10px 16px;border:1px solid var(--control-border);background:transparent;border-radius:4px;color:var(--action);font:inherit;letter-spacing:0;cursor:pointer}#discovery-workspace button:disabled{opacity:.55;cursor:wait}#discovery-workspace :is(button,a):focus-visible{outline:2px solid var(--action);outline-offset:4px}#discovery-workspace :is(h1,section):focus{outline:none}
#discovery-workspace .discovery-primary{background:var(--action);color:white;border-color:var(--action)}
.discovery-hero{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:20px 0 60px}.discovery-hero figure{margin:0}.discovery-hero img{display:block;width:100%;height:auto;aspect-ratio:1/1.12;object-fit:cover;object-position:center 54%}.discovery-hero figcaption{font-size:12px;color:var(--ink-mute);margin-top:12px}.discovery-hero figcaption small{display:block}.discovery-home>div{padding:30px 0}.discovery-home>div>p{color:var(--ink-mute);margin:26px 0!important}.discovery-feature-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px}.discovery-region,.discovery-review{font-size:13px;color:var(--ink-mute)}.discovery-lead{font:25px/1.8 var(--font-mincho)}.discovery-actions{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0 18px}.discovery-bookmark{display:inline-flex;align-items:center;gap:8px}.discovery-bookmark svg{width:19px;height:23px}.discovery-bookmark[aria-pressed=true] svg{fill:var(--action)}.discovery-back{display:inline-block;min-height:44px;margin:0 0 18px}
.discovery-next{border-top:1px solid var(--line);padding:42px 0}.discovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}.discovery-grid article{min-width:0}.discovery-grid article>a{display:block;text-decoration:none}.discovery-grid img{width:100%;height:auto;aspect-ratio:1/1.05;object-fit:cover;object-position:center 54%}.discovery-grid h2{font-size:22px!important;margin:12px 0 3px!important}.discovery-grid p{font-size:13px;color:var(--ink-mute);margin:3px 0 12px!important}.discovery-grid .discovery-bookmark{border:0!important;padding-left:0!important;font-size:13px!important}.discovery-page-heading{margin:16px 0 40px}.discovery-empty{padding:30px 0 90px}.discovery-unavailable{padding:24px 0;border-bottom:1px solid var(--line)}
.discovery-reading{display:grid;grid-template-columns:240px minmax(0,1fr);gap:50px;border-top:1px solid var(--line);padding:42px 0}.discovery-reading h3{font:500 17px var(--font-sans);margin:26px 0 12px}.discovery-reading details{margin:26px 0}.discovery-reading summary{cursor:pointer;min-height:44px;color:var(--action)}.discovery-reading li{line-height:1.95;margin-bottom:12px}.discovery-ingredients,.discovery-steps{list-style:none;padding:0;margin:0}.discovery-ingredients li{display:grid;grid-template-columns:1.3fr 1fr 44px;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.discovery-steps li{display:grid;grid-template-columns:24px 1fr 44px;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.discovery-steps li>p{margin:0!important}.discovery-step-no{font-family:var(--font-mincho);color:var(--action)}#discovery-workspace .discovery-question{border-radius:50%;padding:0;width:44px;height:44px;font:20px Georgia,serif}.discovery-question-body{grid-column:1/-1;background:var(--accent-soft,#e9ede3);padding:20px}.discovery-question-body[hidden]{display:none!important}.discovery-question-body p{font:20px/1.9 var(--font-mincho)}.discovery-question-body button{margin:10px 12px 0 0}.discovery-status{position:sticky;bottom:12px;background:var(--paper);color:var(--action);padding:8px 12px}.discovery-status:empty{display:none}.discovery-image-missing{min-height:260px;display:grid;place-content:center;background:var(--paper);padding:20px}
@media(max-width:700px){#discovery-workspace{padding:24px 22px 50px}.discovery-hero{display:flex;flex-direction:column;gap:26px;padding:0 0 34px;align-items:stretch}.discovery-hero figure{order:0}.discovery-home>div{padding:0}.discovery-hero img{aspect-ratio:1.05/1;object-position:center 54%}#discovery-workspace h1{font-size:32px}.discovery-lead{font-size:22px}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}.discovery-grid h2{font-size:19px!important}.discovery-grid .discovery-bookmark{font-size:12px!important}.discovery-reading{display:block;padding:28px 0}.discovery-ingredients li{grid-template-columns:minmax(0,1fr) 44px}.discovery-ingredients li>span:nth-child(2){grid-row:2;grid-column:1;color:var(--ink-mute)}.discovery-ingredients .discovery-question{grid-row:1/3;grid-column:2}.discovery-steps li{grid-template-columns:20px minmax(0,1fr) 44px;gap:9px}.discovery-reading h2{font-size:25px!important}.discovery-actions{gap:10px}.discovery-next{padding:30px 0}.discovery-question-body{padding:16px}.discovery-question-body p{font-size:18px}}
/* Compact browsing: details live on the recipe, not on every list item. */
#discovery-workspace .discovery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px}
#discovery-workspace .discovery-grid img{display:block;aspect-ratio:1;object-fit:cover}
.discovery-card-heading{display:flex;align-items:flex-start;gap:4px;margin-top:8px}
#discovery-workspace .discovery-card-heading h2{flex:1;min-width:0;font-size:20px!important;line-height:1.5;margin:5px 0 0!important;overflow-wrap:anywhere}
#discovery-workspace .discovery-card-heading a{display:-webkit-box;min-height:44px;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-decoration:none}
#discovery-workspace .discovery-card-heading a:hover{text-decoration:underline}
#discovery-workspace .discovery-card-heading .discovery-bookmark{flex:0 0 44px;width:44px;height:44px;padding:10px!important;justify-content:center}
.discovery-card-heading .discovery-bookmark span{display:none}
#discovery-workspace .discovery-grid p{font-size:14px;line-height:1.6;margin:4px 0!important}
#discovery-workspace .discovery-grid .discovery-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--ink-soft);margin:8px 0!important}
#discovery-workspace .discovery-grid .discovery-card-time{color:var(--ink-soft)}
@media(max-width:999px) and (min-width:701px){#discovery-workspace .discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#discovery-workspace .discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}#discovery-workspace .discovery-card-heading h2{font-size:17px!important}#discovery-workspace .discovery-grid p{font-size:13px}}
/* Discovery home: one featured dish, connected recipes, then a searchable shelf. */
#discovery-workspace .discovery-home{grid-template-columns:1fr 1fr;gap:48px;padding:0 0 32px;min-height:380px}
#discovery-workspace .discovery-home-copy{padding:0}
#discovery-workspace .discovery-home h1{font-size:clamp(30px,3vw,40px);line-height:1.6;margin:0 0 24px;text-wrap:balance}
#discovery-workspace .discovery-feature-copy h2{font-size:23px;margin:0;line-height:1.5}
#discovery-workspace .discovery-feature-copy p{font-size:16px;margin:14px 0}
#discovery-workspace .discovery-feature-copy .discovery-feature-region{font-size:14px;color:var(--ink-soft);margin:3px 0 12px}
#discovery-workspace .discovery-home figure{width:min(100%,340px);justify-self:center}
#discovery-workspace .discovery-home figcaption{font-size:12px;color:var(--ink-soft);margin-top:8px}
#discovery-workspace .discovery-feature-link{gap:12px;min-height:44px;margin:0;font-size:16px;text-decoration:underline}
#discovery-workspace a>svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}
.discovery-themes{border-top:1px solid var(--line);padding:28px 0 40px}
.discovery-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
#discovery-workspace .discovery-section-heading :is(h1,h2){margin:0;font-size:27px}
.discovery-section-heading>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.discovery-section-heading>span{font-size:14px;color:var(--ink-soft)}
.discovery-theme-list{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.discovery-theme{min-width:0}
/* Themes side by side share their rows, so a two-line intro does not push one pair of photos below the other. */
@supports (grid-template-rows:subgrid){.discovery-theme{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-content:start}.discovery-theme>*{min-width:0}}
.discovery-theme-heading{display:flex;align-items:center;gap:10px;justify-content:space-between}
#discovery-workspace .discovery-theme h3{font:500 21px/1.6 var(--font-mincho);margin:0;letter-spacing:0}
#discovery-workspace .discovery-theme-intro{font-size:14px;color:var(--ink-soft);margin:6px 0 18px}
.discovery-theme-question{position:relative;flex-shrink:0}
#discovery-workspace .discovery-theme-question .discovery-question{font-size:18px;width:44px;height:44px;border-color:var(--rule)}
.discovery-theme-question .discovery-question-body{position:absolute;top:50px;right:0;width:min(360px,calc(100vw - 44px));z-index:5;border:1px solid var(--control-border);background:var(--paper)}
#discovery-workspace .discovery-theme-question .discovery-question-body p{font:18px/1.9 var(--font-mincho);margin:0}
.discovery-theme-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.discovery-theme details{margin-top:18px;border-top:1px solid var(--line)}
.discovery-theme summary{padding:12px 0;min-height:44px;cursor:pointer;font-size:15px;color:var(--action);text-underline-offset:4px}
.discovery-theme summary:hover{text-decoration:underline}
.discovery-theme-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:8px 0}
.discovery-theme-notes h4{font:500 16px/1.6 var(--font-sans)}
#discovery-workspace .discovery-theme-notes p{font-size:15px;margin:8px 0}
.discovery-theme-notes a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
#discovery-workspace .discovery-theme-evidence{font-size:13px;color:var(--ink-soft)}
.discovery-library{border-top:1px solid var(--line);padding:34px 0 0}
.discovery-search-methods{display:grid;grid-template-columns:repeat(var(--methods,3),minmax(0,1fr));gap:12px;margin:0 0 24px}
#discovery-workspace .discovery-search-method{box-sizing:border-box;display:grid;gap:3px;min-height:76px;padding:13px 16px;border:1px solid var(--control-border);border-radius:4px;background:var(--paper);color:var(--ink);text-decoration:none}
#discovery-workspace .discovery-search-method>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;line-height:1.6}
#discovery-workspace .discovery-search-method>span svg{width:20px;height:20px;flex:0 0 20px}
#discovery-workspace .discovery-search-method small{font-size:13px;line-height:1.6;color:var(--ink-soft)}
#discovery-workspace .discovery-search-method.is-current{border-color:var(--action);background:var(--accent-soft)}
#discovery-workspace a.discovery-search-method:hover{border-color:var(--action);background:var(--accent-soft)}
#discovery-workspace a.discovery-search-method:focus-visible{outline:2px solid var(--action);outline-offset:4px}
.discovery-filters{display:flex;align-items:end;gap:18px;flex-wrap:wrap}
.discovery-filters label{display:grid;gap:8px;font-size:14px}
.discovery-filters label:first-child{flex:1;min-width:200px}
#discovery-workspace .discovery-filters :is(input,select){box-sizing:border-box;min-height:48px;width:100%;max-width:100%;border:1px solid var(--control-border);border-radius:4px;background:var(--paper);color:var(--ink);padding:10px 14px;font:16px/1.5 var(--font-sans);caret-color:var(--action)}
#discovery-workspace .discovery-filters input::placeholder{color:var(--ink-soft);opacity:1}
#discovery-workspace :is(input,select,summary):focus-visible{outline:2px solid var(--action);outline-offset:4px}
#discovery-workspace .discovery-filters button{border:0;padding-inline:0;font-size:14px;text-decoration:underline;text-underline-offset:4px}
#discovery-workspace .discovery-result-count{font-size:14px;color:var(--ink-soft);margin:20px 0 16px}
#discovery-workspace .discovery-library-note{font-size:13px;color:var(--ink-soft);margin:32px 0 0}
#discovery-workspace .discovery-library .discovery-empty{padding:20px 0 45px}
/* Ingredient filter: KB-dictionary ingredients, combined with AND. */
.discovery-filters .discovery-ingredient-filter{flex-basis:100%;min-width:0;display:grid;gap:8px}
.discovery-ingredient-selected,.discovery-ingredient-options{display:flex;flex-wrap:wrap;gap:8px}
.discovery-ingredient-selected:empty{display:none}
#discovery-workspace .discovery-filters :is(.discovery-ingredient-selected,.discovery-ingredient-options) button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 14px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);font-size:14px;text-decoration:none}
#discovery-workspace .discovery-filters .discovery-ingredient-selected button{background:var(--accent-soft);border-color:var(--action)}
#discovery-workspace .discovery-filters .discovery-ingredient-options button:hover{border-color:var(--action)}
#discovery-workspace .discovery-ingredient-options small{font-size:12px;color:var(--ink-soft)}
#discovery-workspace .discovery-filters .discovery-ingredient-hint{font-size:13px;color:var(--ink-soft);margin:4px 0 0}
#discovery-workspace .discovery-filters .discovery-ingredient-hint:empty{display:none}
@media(max-width:700px){
 #discovery-workspace .discovery-home{display:grid;grid-template-columns:minmax(0,1fr) 42%;gap:18px;min-height:0;align-items:start;padding-bottom:28px}
 #discovery-workspace .discovery-home-copy{display:contents}
 #discovery-workspace .discovery-home h1{grid-column:1/-1;font-size:30px;margin:0 0 2px;line-height:1.65}
 #discovery-workspace .discovery-feature-copy{grid-column:1;grid-row:2}
 #discovery-workspace .discovery-feature-copy h2{font-size:22px}
 #discovery-workspace .discovery-feature-copy p{font-size:15px;line-height:1.75;margin:10px 0}
 #discovery-workspace .discovery-feature-copy .discovery-feature-region{font-size:13px}
 #discovery-workspace .discovery-home figure{grid-column:2;grid-row:2;width:100%;margin:0}
 #discovery-workspace .discovery-home img{aspect-ratio:1/1.12}
 #discovery-workspace .discovery-home figcaption{font-size:12px;line-height:1.6}
 #discovery-workspace .discovery-feature-link{font-size:14px;gap:6px}
 .discovery-theme-list{grid-template-columns:1fr;gap:30px}
 #discovery-workspace .discovery-section-heading :is(h1,h2){font-size:25px}
 .discovery-section-heading{gap:4px;margin-bottom:18px}
 .discovery-search-methods{grid-template-columns:1fr;gap:8px;margin-bottom:20px}
 #discovery-workspace .discovery-search-method{min-height:68px;padding:11px 13px}
 #discovery-workspace .discovery-theme h3{font-size:20px}
 .discovery-theme-pair{gap:14px}
 .discovery-filters{gap:12px}
 .discovery-filters label:first-child{flex-basis:100%}
 .discovery-filters label:nth-child(2){flex:1;min-width:0}
 .discovery-theme-notes{gap:14px}
}
/* Keep a hover-open question reachable across its visual separation. */
.discovery-theme-question .discovery-question-body::before{content:"";position:absolute;left:0;right:0;top:-7px;height:7px}
/* One-time regional onboarding and the same editor inside Settings. */
.discovery-onboarding{max-width:1080px;margin:0 auto;padding:8px 0 40px}
#discovery-workspace .discovery-onboarding>h1{font-size:clamp(30px,3vw,40px);margin-bottom:14px}
#discovery-workspace .discovery-onboarding>p{color:var(--ink-soft);margin:0 0 28px}
.discovery-interests [hidden]{display:none!important}
.discovery-interests fieldset{border:0;margin:0;padding:0;min-width:0}
.discovery-interests legend{font:500 21px/1.65 var(--font-mincho);padding:0}
.discovery-onboarding legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:is(#discovery-workspace,#discovery-interest-settings) .discovery-interest-help{font-size:13px;color:var(--ink-soft);max-width:70ch;margin:10px 0 18px}
.discovery-interest-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:is(#discovery-workspace,#discovery-interest-settings) .discovery-interest-actions button:not(.discovery-primary){border:0;text-decoration:underline;text-underline-offset:4px}
.discovery-interest-status:empty{display:none}
:is(#discovery-workspace,#discovery-interest-settings) .discovery-interest-status{font-size:14px}
#discovery-interest-settings[hidden]{display:none!important}
#discovery-interest-settings button{min-height:44px;padding:10px 14px;border:1px solid var(--control-border);border-radius:4px;background:transparent;color:var(--action);font:inherit;cursor:pointer}
#discovery-interest-settings button:disabled{opacity:.55;cursor:wait}
#discovery-interest-settings .discovery-primary{background:var(--action);border-color:var(--action);color:var(--paper)}
#discovery-interest-settings :is(button,input):focus-visible{outline:2px solid var(--action);outline-offset:4px}

.discovery-interest-search{display:block;max-width:640px;margin-bottom:16px;color:var(--ink-soft);font-size:14px}
.discovery-interest-search input{display:block;width:100%;min-height:46px;margin-top:8px;padding:10px 12px;border:1px solid var(--control-border);border-radius:4px;background:var(--paper);color:var(--ink);font:inherit}
.discovery-interest-selected{margin:12px 0 20px}
.discovery-interest-selected p{font-size:13px!important;color:var(--ink-soft);margin:0 0 8px!important}
.discovery-interest-selected>div{display:flex;flex-wrap:wrap;gap:8px}
:is(#discovery-workspace,#discovery-interest-settings) .discovery-interest-selected button{min-height:44px;padding:7px 12px;background:var(--accent-soft);border:1px solid var(--line);font-size:14px}
.discovery-interest-group{border-top:1px solid var(--line);padding:4px 0}
.discovery-interest-group:last-child{border-bottom:1px solid var(--line)}
.discovery-interest-group>summary{padding:14px 0;cursor:pointer;color:var(--ink);font-size:17px}
.discovery-interest-group>summary span{font-size:13px;color:var(--ink-soft);margin-left:20px}
.discovery-interest-countries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;padding-bottom:16px}
.discovery-interest-country{border-top:1px solid var(--line);padding:8px 0;min-width:0}
.discovery-interest-choice{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:10px 0;cursor:pointer;font-size:15px}
.discovery-interest-choice input{appearance:auto;flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:var(--action)}
.discovery-interest-choice small{display:block;color:var(--ink-soft);font-size:12px;line-height:1.7}
.discovery-interest-regions>summary{color:var(--action);padding:8px 0 8px 28px;cursor:pointer;font-size:13px;min-height:44px}
.discovery-interest-regions>div{padding-left:20px}
.discovery-interest-regions .discovery-interest-choice{border-top:1px solid var(--line)}
.discovery-interest-search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}
.discovery-interest-search-row>small{font-size:12px;color:var(--ink-soft);flex-shrink:0}
.discovery-interest-search-row .discovery-interest-choice{flex:1}
:is(#discovery-workspace,#discovery-interest-settings) [data-interest-search-status]{font-size:13px;color:var(--ink-soft);margin:8px 0}
#discovery-interest-settings .discovery-interest-countries{grid-template-columns:repeat(2,minmax(0,1fr))}
.discovery-interests summary:focus-visible{outline:2px solid var(--action);outline-offset:2px}
@media(max-width:700px){
 .discovery-interest-group>summary span{display:block;margin:4px 0 0 20px}
 .discovery-interest-countries,#discovery-interest-settings .discovery-interest-countries{grid-template-columns:1fr}
 .discovery-interest-search-row>small{max-width:30%;flex-shrink:1}
}

/* KB-backed entries remain readable before a photograph has been adopted. */
.discovery-hero.discovery-without-photo{display:block;max-width:72ch}
.discovery-grid .discovery-text-dish{border-top:1px solid var(--line);padding-top:18px}
.discovery-grid .discovery-text-dish p{font-size:14px;line-height:1.9;overflow-wrap:anywhere}
.discovery-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:36px;flex-wrap:wrap}
.discovery-pagination span{font-variant-numeric:tabular-nums;font-size:14px}

/* First-run preferences begin with dishes, then reveal finer geography on demand. */
#discovery-workspace .discovery-onboarding{max-width:1080px;padding-top:0}
#discovery-workspace .discovery-onboarding>h1{font-size:clamp(28px,3vw,38px);line-height:1.5;margin:0 0 10px}
#discovery-workspace .discovery-onboarding>p{font-size:15px;line-height:1.8;margin:0 0 18px}
.discovery-interest-toolbar{position:sticky;top:0;z-index:2;background:var(--bg);padding:8px 0;margin-bottom:18px}
.discovery-visual-interests .discovery-interest-actions{margin:0 0 8px;gap:18px}
.discovery-visual-interests .discovery-interest-toolbar .discovery-interest-selected:not(:empty){display:flex;align-items:start;gap:12px;margin:0}
#discovery-workspace .discovery-interest-toolbar .discovery-interest-selected>p{flex:none;margin:5px 0;font-size:13px}
.discovery-interest-toolbar .discovery-interest-selected>div{max-height:76px;overflow:auto;flex:1;min-width:0}
#discovery-workspace .discovery-interest-toolbar [data-remove-interest]{min-height:36px;padding:4px 8px;font-size:13px}
.discovery-visual-interests .discovery-interest-selected:empty{display:none}
.discovery-visual-interests .discovery-interest-selected{margin:0 0 18px}
.discovery-interest-tools{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;align-items:end;margin:0 0 24px}
.discovery-interest-tools .discovery-interest-search{max-width:none;margin:0}
.discovery-interest-area{display:block;font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-interest-tools :is(input,select){display:block;width:100%;min-height:46px;margin-top:6px;padding:9px 12px;border:1px solid var(--control-border);border-radius:4px;background:var(--paper);color:var(--ink);font:16px/1.5 var(--font-sans)}
.discovery-country-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}
.discovery-country-picture{min-width:0;align-self:start}
.discovery-country-picture>label{display:block;position:relative;cursor:pointer}
.discovery-country-picture>label>input{position:absolute;width:1px;height:1px;opacity:0}
.discovery-country-art{display:block;position:relative;aspect-ratio:1.18;overflow:hidden;margin-bottom:12px}
.discovery-country-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 54%;transition:transform 180ms ease-out}
.discovery-country-picture label:hover img{transform:scale(1.025)}
.discovery-country-picture label:has(input:checked) .discovery-country-art{outline:3px solid var(--action);outline-offset:3px}
.discovery-country-picture label:has(input:focus-visible){outline:2px solid var(--action);outline-offset:7px}
.discovery-country-check{display:grid;place-items:center;position:absolute;top:10px;right:10px;width:28px;height:28px;border:1px solid var(--control-border);border-radius:3px;background:var(--paper);color:var(--action)}
.discovery-country-check svg{width:22px;height:22px;visibility:hidden}
input:checked~.discovery-country-art .discovery-country-check{background:var(--action);border-color:var(--action);color:var(--paper)}
input:checked~.discovery-country-art .discovery-country-check svg{visibility:visible}
.discovery-country-name{display:block;font:500 22px/1.5 var(--font-mincho);color:var(--ink)}
.discovery-country-dish{display:block;font-size:13px;line-height:1.6;color:var(--ink-soft);margin-top:4px}
#discovery-workspace .discovery-country-picture>button{display:inline-flex;gap:6px;align-items:center;border:0;padding:4px 0;margin-top:4px;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.discovery-country-picture>button svg{width:18px;height:18px}
.discovery-country-plain{border-top:1px solid var(--line);padding-top:14px}
.discovery-country-plain>label{display:flex;align-items:center;gap:10px;min-height:44px}
.discovery-country-plain>label>input{position:static;opacity:1;width:20px;height:20px;accent-color:var(--action);flex:none}
.discovery-country-plain .discovery-country-art{display:none}
.discovery-country-plain .discovery-country-name{font:16px/1.6 var(--font-sans)}
#discovery-workspace .discovery-interest-photo-note{font-size:12px;color:var(--ink-soft);margin:24px 0 0}
#discovery-workspace [data-interest-region-panel]>h2{font:28px/1.5 var(--font-mincho);margin:20px 0 8px}
#discovery-workspace [data-interest-region-panel]>p{font-size:14px;color:var(--ink-soft);margin:8px 0 20px}
.discovery-region-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
.discovery-region-options .discovery-interest-choice{border-top:1px solid var(--line);min-height:54px;align-items:center}
.discovery-visual-interests [data-interest-search-status]:empty{display:none}
@media(max-width:700px){
 .discovery-interest-tools{grid-template-columns:minmax(0,1fr) 145px;gap:12px;margin-bottom:20px}
 .discovery-country-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
 .discovery-country-name{font-size:21px}
 .discovery-country-art{aspect-ratio:1/1.1;margin-bottom:10px}
 .discovery-region-options{grid-template-columns:1fr 1fr;gap:0 16px}
 #discovery-workspace .discovery-onboarding>h1{font-size:28px}
 #discovery-workspace .discovery-onboarding>p{font-size:14px}
 .discovery-country-check{top:8px;right:8px;width:25px;height:25px}
}
@media(prefers-reduced-motion:reduce){.discovery-country-art img{transition:none}.discovery-country-picture label:hover img{transform:none}}

.discovery-onboarding>h1>span{display:inline-block}
.discovery-onboarding h2:focus{outline:none}
.discovery-visual-interests :is(input,button,label,h2){scroll-margin-top:160px}
@media(max-width:700px){.discovery-visual-interests :is(input,button,label,h2){scroll-margin-top:240px}}

/* Every country remains available, whether or not its photograph is ready. */
.discovery-visual-interests .discovery-interest-tools{display:block;max-width:640px;margin-bottom:16px}
.discovery-area-nav{display:flex;flex-wrap:wrap;gap:4px 8px;margin-bottom:28px}
#discovery-workspace .discovery-area-nav button{border:0;border-radius:0;min-height:44px;padding:8px 12px;font-size:14px;border-bottom:2px solid transparent;color:var(--ink-soft)}
#discovery-workspace .discovery-area-nav button[aria-pressed=true]{border-bottom-color:var(--action);color:var(--action);font-weight:600;background:var(--accent-soft)}
#discovery-workspace .discovery-area-nav button:hover{color:var(--action);background:var(--accent-soft)}
.discovery-area-section{margin:0 0 40px}
#discovery-workspace .discovery-area-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;margin:0 0 18px;padding-top:12px;border-top:1px solid var(--line)}
.discovery-area-identity{display:flex;align-items:center;gap:18px;min-width:0}
#discovery-workspace .discovery-area-heading h2{font:24px/1.5 var(--font-mincho);margin:0}
#discovery-workspace .discovery-area-heading button{display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.discovery-area-heading button svg{width:18px;height:18px}
.discovery-area-map-defs{position:absolute;width:0;height:0;overflow:hidden}
.discovery-area-map{display:block;width:126px;height:64px;padding:5px 6px;cursor:pointer;flex:none}
.discovery-area-map svg{display:block;width:100%;height:100%}
.discovery-area-map-world{fill:var(--line)}
.discovery-area-map-region{fill:var(--action)}
.discovery-area-identity:has(input:checked) .discovery-area-map{background:var(--accent-soft)}
.discovery-area-identity:has(input:focus-visible) .discovery-area-map{outline:2px solid var(--action);outline-offset:2px}
.discovery-country-overview{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 16px}
.discovery-country-compact{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 6px;font:14px/1.6 var(--font-sans);cursor:pointer;overflow-wrap:anywhere}
.discovery-country-compact input{width:20px;height:20px;accent-color:var(--action);flex:none}
.discovery-country-compact:has(input:checked){background:var(--accent-soft)}
.discovery-country-compact:has(input:focus-visible){outline:2px solid var(--action);outline-offset:2px}
.discovery-area-overview{margin-bottom:24px}
#discovery-workspace .discovery-area-overview .discovery-area-heading{margin-bottom:8px}
@media(max-width:700px){.discovery-country-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}#discovery-workspace .discovery-area-heading h2{font-size:22px}.discovery-country-compact{font-size:13px;padding-inline:0}#discovery-workspace .discovery-area-overview .discovery-area-heading{flex-wrap:nowrap;gap:8px}.discovery-area-overview .discovery-area-heading h2{min-width:0}.discovery-area-identity{gap:8px}.discovery-area-map{width:88px;height:48px;padding:3px}.discovery-area-overview .discovery-area-map{display:none}#discovery-workspace .discovery-area-overview .discovery-interest-count{display:block;margin-left:0;font-size:11px}.discovery-area-overview .discovery-area-heading button{flex:none}}
.discovery-area-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:32px;align-items:start}
.discovery-area-content .discovery-country-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
.discovery-country-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px;align-items:start}
.discovery-country-names .discovery-country-plain{border:0;padding:0}
.discovery-country-names .discovery-country-name{overflow-wrap:anywhere}
#discovery-workspace .discovery-country-names .discovery-country-picture>button{margin:0 0 6px 30px}
.discovery-area-text-only{display:block}
.discovery-area-text-only .discovery-country-names{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){
 .discovery-area-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 4px;margin-bottom:20px}
 .discovery-visual-interests .discovery-interest-actions{gap:8px}
 #discovery-workspace .discovery-interest-toolbar .discovery-interest-actions button{font-size:13px;padding:8px 10px}
 #discovery-workspace .discovery-visual-interests .discovery-interest-skip{padding:8px 4px;min-width:0}
 #discovery-workspace .discovery-area-nav button{padding:6px 4px;font-size:12px;line-height:1.5;white-space:normal}
 .discovery-area-content{display:block}
 .discovery-country-names{margin-top:18px;gap:4px 16px}
 .discovery-area-text-only .discovery-country-names{grid-template-columns:repeat(2,minmax(0,1fr))}
 .discovery-area-section{margin-bottom:28px}
}

/* Concrete dishes explain regional choices without leaving onboarding. */
.discovery-region-choice{min-width:0;border-top:1px solid var(--line);padding:12px 0 20px}
.discovery-region-choice .discovery-interest-choice{border:0;min-height:44px;margin:0;font-weight:600}
.discovery-region-dishes{list-style:none;padding:0;margin:8px 0 0}
.discovery-region-dishes li{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px}
.discovery-region-dishes li:last-child{margin-bottom:0}
.discovery-region-dishes img{width:68px;height:78px;object-fit:cover;flex:none;border-radius:2px}
.discovery-region-dishes strong{display:block;font-size:15px;line-height:1.7;font-weight:500;color:var(--ink)}
#discovery-workspace .discovery-region-dishes p{font-size:13px;line-height:1.8;color:var(--ink-soft);margin:4px 0 0;overflow-wrap:anywhere}
#discovery-workspace .discovery-region-no-example{font-size:13px;line-height:1.8;color:var(--ink-soft);margin:8px 0}
.discovery-interest-search-row .discovery-region-choice{flex:1;border:0}
@media(max-width:700px){.discovery-region-options{grid-template-columns:1fr}.discovery-region-choice{padding-bottom:20px}.discovery-region-dishes{margin-left:30px}}

/* Country names lead; a photograph illustrates a choice without changing its rank. */
#discovery-workspace:has(.discovery-onboarding){max-width:1920px}
#discovery-workspace .discovery-onboarding{max-width:none}
.discovery-country-directory{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px 20px;align-items:start}
.discovery-country-entry{display:grid;grid-template-columns:20px 76px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:10px;row-gap:3px;align-content:start;min-width:0}
.discovery-country-entry>input{grid-column:1;grid-row:1;width:20px;height:20px;accent-color:var(--action);margin:7px 0 0}
.discovery-country-entry .discovery-country-art{grid-column:2;grid-row:1 / 4;width:76px;height:100px;aspect-ratio:auto;margin:0;cursor:pointer}
.discovery-country-entry .discovery-country-heading{grid-column:3;grid-row:1;min-width:0;cursor:pointer;min-height:34px;display:flex;align-items:center}
.discovery-country-entry .discovery-country-name{font-size:20px;overflow-wrap:anywhere}
.discovery-country-entry .discovery-country-examples{grid-column:3;grid-row:2;min-width:0}
.discovery-country-entry .discovery-country-dish{display:block;margin:0;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
#discovery-workspace .discovery-country-entry>button{grid-column:3;grid-row:3;justify-self:start;display:inline-flex;gap:6px;align-items:center;border:0;padding:2px 0;margin:0;min-height:36px;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.discovery-country-entry>button svg{width:18px;height:18px}
.discovery-country-entry:has(>input:checked){background:var(--accent-soft)}
.discovery-country-entry:has(>input:focus-visible){outline:2px solid var(--action);outline-offset:4px}
.discovery-country-without-photo{grid-template-columns:20px minmax(0,1fr)}
.discovery-country-without-photo .discovery-country-heading,.discovery-country-without-photo .discovery-country-examples,#discovery-workspace .discovery-country-without-photo>button{grid-column:2}
@media(max-width:700px){.discovery-country-directory{grid-template-columns:1fr;gap:16px}.discovery-country-entry .discovery-country-art{width:76px;height:100px}#discovery-workspace .discovery-country-entry>button{min-height:44px}}

#discovery-workspace .discovery-interest-actions button[data-all-interests]{border:1px solid var(--control-border);text-decoration:none;padding:12px 16px}

#discovery-workspace .discovery-interest-count{display:inline-block;margin-left:8px;font:400 12px/1.6 var(--font-sans);color:var(--ink-soft);white-space:nowrap;vertical-align:baseline}

/* Chosen-region feature without a photo, and the default interest narrowing of the library. */
#discovery-workspace .discovery-home.discovery-without-photo{grid-template-columns:1fr}
#discovery-workspace .discovery-feature-interest{font-size:13px;color:var(--ink-soft);margin:0 0 6px}
#discovery-workspace .discovery-filters label.discovery-interest-toggle{display:flex;align-items:center;gap:10px;min-height:48px;flex:0 0 auto}
#discovery-workspace .discovery-filters .discovery-interest-toggle input{width:auto;min-height:0;margin:0;accent-color:var(--action)}
#discovery-workspace .discovery-empty [data-discovery-all-regions]{margin-right:12px}

.discovery-area-choice{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;vertical-align:middle}
.discovery-area-choice input{width:20px;height:20px;flex:none;accent-color:var(--action)}
.discovery-area-choice:has(input:focus-visible){outline:2px solid var(--action);outline-offset:3px}
.discovery-country-overview{padding-left:30px}
#discovery-workspace .discovery-area-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px}
@media(max-width:700px){#discovery-workspace .discovery-area-overview .discovery-interest-count{margin-left:30px}.discovery-area-choice{gap:10px}.discovery-area-choice span{overflow-wrap:anywhere}}
/* Persona study 2026-10-15: decide from cooking facts, read and act in place. */
#discovery-workspace .discovery-cooking-facts{margin:12px 0;color:var(--ink);font-size:13px;line-height:1.65}
#discovery-workspace .discovery-cooking-facts p{margin:4px 0;font-size:inherit;overflow-wrap:anywhere}
.discovery-followup{margin:30px 0 0;padding:20px 0 0;border-top:1px solid var(--rule)}
#discovery-workspace .discovery-followup h2{font:600 14px/1.6 var(--font-sans);letter-spacing:.04em;margin:0 0 8px;color:var(--ink-soft)}
.discovery-followup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
#discovery-workspace .discovery-followup-action{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label arrow" "note arrow";align-items:center;gap:0 12px;min-height:68px;width:100%;padding:10px 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;text-decoration:none}
#discovery-workspace .discovery-followup-action::after{content:"→";grid-area:arrow;color:var(--action);font-size:18px}
#discovery-workspace .discovery-followup-action>span{grid-area:label;font-size:15px;font-weight:600;line-height:1.5;color:var(--action)}
#discovery-workspace .discovery-followup-action small{grid-area:note;font-size:12px;line-height:1.55;color:var(--ink-soft)}
#discovery-workspace .discovery-followup-action:hover{background:var(--accent-soft)}
#discovery-workspace .discovery-action-note{font-size:12px;line-height:1.75;color:var(--ink-soft);margin:12px 0 0}
.discovery-lab-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:22px 0 0;padding:18px 20px;background:var(--accent-soft);border-block:1px solid var(--line)}
.discovery-lab-entry div{display:grid;gap:3px}
.discovery-lab-entry strong{font-size:15px;line-height:1.55;color:var(--ink)}
.discovery-lab-entry div span{font-size:12px;line-height:1.7;color:var(--ink-soft)}
#discovery-workspace .discovery-lab-entry button{white-space:nowrap;background:var(--paper);border-color:var(--action);font-size:14px;font-weight:600}
#discovery-workspace .discovery-lab-entry button span{display:inline-block;margin-left:6px;transition:transform .16s ease}
#discovery-workspace .discovery-lab-entry button:hover span{transform:translateX(3px)}
#discovery-workspace .discovery-review{margin-top:16px}
@media(prefers-reduced-motion:reduce){#discovery-workspace .discovery-lab-entry button span{transition:none}}
.discovery-filter-details{border-block:1px solid var(--rule);padding:12px 0;margin-bottom:16px}
.discovery-filter-details>summary{cursor:pointer;min-height:44px;align-content:center}
#discovery-workspace .discovery-reading-nav{position:sticky;top:0;z-index:12;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:8px 12px;background:var(--paper);border-block:1px solid var(--rule);margin:20px 0}
#discovery-workspace .discovery-reading-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
#discovery-workspace .discovery-reading-nav button{font-size:13px;min-height:44px;padding:6px 8px}
#discovery-workspace :is(.discovery-reading,.discovery-consult-entry,#discovery-confirmation){scroll-margin-top:132px}
#discovery-workspace .discovery-ingredients>li{padding-block:8px;min-height:44px}
.discovery-consult-entry{border-top:1px solid var(--rule);padding:28px 0;max-width:760px}
.discovery-consult-entry label{display:block;margin:16px 0 8px}
.discovery-consult-entry textarea{display:block;width:100%;box-sizing:border-box;min-height:100px;font:inherit;line-height:1.7;padding:12px;resize:vertical}
.discovery-consult-examples{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.discovery-consult-examples button{font-size:13px;min-height:44px}
.discovery-consult-entry p{font-size:14px;line-height:1.8}
#discovery-workspace [data-discovery-status] a{display:inline-block;margin-left:12px;min-height:44px;align-content:center;text-decoration:underline}
.discovery-end-actions{padding:16px 0;border-block:1px solid var(--rule)}
@media(max-width:600px){#discovery-workspace .discovery-reading-nav{gap:0 12px;padding:4px 8px}#discovery-workspace .discovery-reading-nav a{font-size:13px}}
@media(max-width:700px){
 .discovery-followup-actions{grid-template-columns:1fr}
 #discovery-workspace .discovery-followup-action{min-height:62px}
 .discovery-lab-entry{grid-template-columns:1fr;padding:16px}
 #discovery-workspace .discovery-lab-entry button{width:100%}
}

/* An editorial opening, followed by a geographic browsing index. */
#discovery-workspace .discovery-home{grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:24px 0 56px;min-height:0}
#discovery-workspace .discovery-home figure{width:100%;max-width:520px;justify-self:end}
#discovery-workspace .discovery-home h1{font-size:clamp(32px,3.4vw,50px);line-height:1.65;margin:0 0 40px}
#discovery-workspace .discovery-feature-copy h2{font-size:clamp(25px,2.4vw,34px);margin:16px 0 8px}
#discovery-workspace .discovery-feature-intro{font-size:17px;line-height:1.9;max-width:28em;margin:24px 0}
#discovery-workspace .discovery-preference-description{font:14px/1.5 var(--font-sans);color:var(--ink-soft);margin:0 0 16px}
#discovery-workspace .discovery-region-browser{margin:24px 0 22px}
.discovery-region-level{display:flex;flex-wrap:wrap;gap:4px 22px}
#discovery-workspace .discovery-region-level button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 0;min-height:44px;font:15px/1.6 var(--font-sans);color:var(--ink-soft);display:inline-flex;gap:7px;align-items:baseline}
#discovery-workspace .discovery-region-level button small{font-size:11px;font-variant-numeric:tabular-nums}
#discovery-workspace .discovery-region-level button[aria-pressed=true]{color:var(--action);border-bottom-color:var(--action);font-weight:600}
#discovery-workspace .discovery-region-level button:hover{color:var(--action);background:var(--paper)}
.discovery-region-sublevel{border-top:1px solid var(--rule);padding-top:10px;margin-top:10px}
@media(max-width:700px){
 #discovery-workspace .discovery-home{display:flex;flex-direction:column;gap:24px;padding:8px 0 36px}
 #discovery-workspace .discovery-home-copy{display:contents}
 #discovery-workspace .discovery-home h1{order:0;font-size:31px;line-height:1.6;margin:0;width:100%}
 #discovery-workspace .discovery-home figure{order:1;max-width:none;width:100%}
 #discovery-workspace .discovery-home img{aspect-ratio:1.15/1}
 #discovery-workspace .discovery-feature-copy{order:2;width:100%}
 #discovery-workspace .discovery-feature-copy h2{font-size:27px;margin-top:8px}
 #discovery-workspace .discovery-feature-intro{font-size:16px;margin:16px 0}
 .discovery-region-level{gap:2px 18px}
}

/* Opening pick: act on it in place, or move on to the rest of the library. */
#discovery-workspace .discovery-feature-heading{display:flex;align-items:center;gap:12px;margin:16px 0 8px}
#discovery-workspace .discovery-feature-heading h2{min-width:0;margin:0;overflow-wrap:anywhere}
#discovery-workspace .discovery-feature-heading .discovery-bookmark{flex:0 0 44px;width:44px;height:44px;justify-content:center;padding:10px;border:0}
.discovery-feature-heading .discovery-bookmark span{display:none}
#discovery-workspace .discovery-feature-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:20px}
#discovery-workspace .discovery-feature-actions .discovery-feature-link{display:inline-flex;justify-content:center;min-height:44px;box-sizing:border-box;padding:10px 18px;border-radius:4px;background:var(--action);color:var(--paper);text-decoration:none;font-size:15px}
#discovery-workspace .discovery-feature-actions .discovery-feature-link:hover{background:var(--ink)}
#discovery-workspace .discovery-feature-actions .discovery-text-action{font-size:14px;min-height:44px}
#discovery-workspace .discovery-home{row-gap:24px;padding-bottom:28px}
#discovery-workspace .discovery-home-browse{grid-column:1/-1;order:3;justify-self:start;width:100%;padding:0}
#discovery-workspace .discovery-library-cue{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;text-underline-offset:4px}
#discovery-workspace .discovery-library-cue svg{width:18px;height:18px}
#discovery-workspace .discovery-filters .discovery-filter-details{flex-basis:100%;margin:0}
#discovery-workspace .discovery-active-conditions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-active-conditions:empty{display:none}
#discovery-workspace .discovery-active-conditions button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 14px;border:1px solid var(--action);border-radius:4px;background:var(--accent-soft);color:var(--ink);font-size:14px}
@media(max-width:700px){
 #discovery-workspace .discovery-home{gap:14px;padding-bottom:20px}
 #discovery-workspace .discovery-home h1{font-size:23px;line-height:1.5}
 #discovery-workspace .discovery-home img{aspect-ratio:16/9}
 #discovery-workspace .discovery-home figcaption{margin-top:4px}
 #discovery-workspace .discovery-feature-copy h2{font-size:23px;margin-top:0}
 #discovery-workspace .discovery-feature-intro{font-size:15px;margin:8px 0}
 /* Long region lists scroll sideways instead of pushing the results down. */
 #discovery-workspace .discovery-region-level{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 #discovery-workspace .discovery-region-level button{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:700px){
 #discovery-workspace .discovery-home h1{font-size:20px}
 #discovery-workspace .discovery-home .discovery-cooking-facts p{margin:2px 0;font-size:14px}
}

/* Let the dish's supplied story lead; practical planning stays one step away. */
#discovery-workspace .discovery-feature-copy .discovery-feature-intro{font:500 clamp(20px,2vw,25px)/1.75 var(--font-mincho);text-wrap:pretty;margin:16px 0 12px}
#discovery-workspace .discovery-feature-copy .discovery-feature-story{max-width:44ch;line-height:1.9;margin:12px 0;color:var(--ink)}
#discovery-workspace .discovery-feature-copy .discovery-feature-curiosity{font-family:var(--font-mincho);color:var(--action);margin:16px 0 8px}
#discovery-workspace .discovery-feature-practical{margin-top:16px;border-top:1px solid var(--line)}
#discovery-workspace .discovery-feature-practical summary{display:list-item;min-height:44px;padding:10px 0;cursor:pointer;font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-feature-practical[open]{padding-bottom:8px}
@media(max-width:700px){#discovery-workspace .discovery-feature-copy .discovery-feature-intro{font-size:21px;line-height:1.75}#discovery-workspace .discovery-feature-copy .discovery-feature-story{font-size:15px}}

/* Section shortcuts are ordinary links, not a sticky action toolbar. */
#discovery-workspace .discovery-section-links{display:none;flex-wrap:wrap;gap:8px 24px;margin:0 0 16px;grid-column:1 / -1}
#discovery-workspace .discovery-section-links a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:5px}
#discovery-workspace #discovery-tools{scroll-margin-top:132px}

@media(max-width:700px){#discovery-workspace .discovery-section-links{display:flex}}

/* 2026-10-29 photo tiles (docs/discovery-tiles-2026-10-29.md): the picture fills the cell; the dish name and its
   country/region sit on it, so each result also says where it comes from. Two columns on a phone; above that the
   columns follow the width (a tile is at least 190px, so 768px shows three, 1280px five and a 1900px window eight). */
#discovery-workspace .discovery-tiles{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.discovery-tile{position:relative;min-width:0}
.discovery-tiles .discovery-text-dish{border-top:0;padding-top:0}
#discovery-workspace .discovery-tile-link{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:6px;background:var(--accent-soft);color:var(--ink);text-decoration:none}
#discovery-workspace :is(.discovery-tiles,.discovery-theme-pair) img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 54%;margin:0}
.discovery-tile-caption{position:absolute;inset:auto 0 0 0;display:grid;gap:2px;padding:46px 12px 12px;background:linear-gradient(to top,rgba(20,24,18,.84),rgba(20,24,18,.48) 55%,transparent);color:#fff;text-align:left}
.discovery-tile-caption strong{font:500 16px/1.45 var(--font-sans);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.discovery-tile-caption small{font-size:12px;line-height:1.5;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Without a photo the cell keeps its shape: the same two lines in ink on a tinted ground (discovery-without-photo). */
:is(.discovery-tiles,.discovery-theme-pair) .discovery-text-dish .discovery-tile-caption{inset:0;align-content:end;background:none;color:var(--ink)}
:is(.discovery-tiles,.discovery-theme-pair) .discovery-text-dish .discovery-tile-caption small{color:var(--ink-soft);opacity:1}
#discovery-workspace .discovery-tile .discovery-bookmark{position:absolute;top:6px;right:6px;width:44px;height:44px;padding:10px!important;justify-content:center;border:0!important;border-radius:50%;background:rgba(20,24,18,.38);color:#fff;font-size:0!important}
.discovery-tile .discovery-bookmark span{display:none}
.discovery-tile .discovery-bookmark[aria-pressed=true] svg{fill:#fff}
#discovery-workspace :is(.discovery-tiles,.discovery-theme-pair) .discovery-text-dish .discovery-bookmark{background:none;color:var(--action)}
:is(.discovery-tiles,.discovery-theme-pair) .discovery-text-dish .discovery-bookmark[aria-pressed=true] svg{fill:var(--action)}
#discovery-workspace .discovery-tiles .discovery-card-reason{font-size:13px;line-height:1.6;color:var(--ink-soft);margin:8px 0 0!important}
.discovery-tiles .discovery-image-missing{position:absolute;inset:0;margin:0;padding:12px;font-size:12px;color:var(--ink-soft)}
@media(max-width:700px){#discovery-workspace .discovery-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.discovery-tile-caption{padding:40px 10px 10px}.discovery-tile-caption strong{font-size:15px}}

/* 材料から、世界の料理へ: one row of ingredient tiles above the search form. Wide screens show all eight; narrower ones
   scroll sideways inside the row, so the band never grows downward or widens the page. */
.discovery-ingredient-band{margin:0 0 26px}
.discovery-ingredient-band .discovery-section-heading{margin-bottom:12px}
#discovery-workspace .discovery-ingredient-band h3{margin:0;font:500 20px/1.5 var(--font-mincho)}
.discovery-ingredient-tiles{display:flex;flex-wrap:wrap;gap:6px}
#discovery-workspace .discovery-ingredient-tile{display:inline-flex;align-items:center;gap:5px;min-height:var(--control-height-compact);padding:var(--control-padding-compact) 10px var(--control-padding-compact) 8px;border:1px solid var(--line);border-radius:var(--search-control-radius,9px);background:var(--paper);color:var(--ink);font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
#discovery-workspace .discovery-ingredient-tile small{font-size:11px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
#discovery-workspace .discovery-ingredient-tile[aria-pressed=true]{background:var(--accent-soft);border-color:var(--action);font-weight:500}
#discovery-workspace .discovery-ingredient-more{flex:none;min-height:var(--control-height-compact);padding:var(--control-padding-compact) 12px;border:1px dashed var(--line);border-radius:var(--search-control-radius,9px);background:var(--paper);color:var(--action);font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
#discovery-workspace .discovery-ingredient-tile .ingredient-chip-icon{display:block;flex:none;width:20px;height:20px;margin-left:-2px;object-fit:contain}
/* A phone keeps the buttons on one line that scrolls sideways, so the band stays one row high. */
@media(max-width:700px){.discovery-ingredient-tiles{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-inline:-18px;padding:2px 18px}#discovery-workspace .discovery-ingredient-tile{flex:none}.discovery-ingredient-band{margin-bottom:22px}#discovery-workspace .discovery-ingredient-band h3{font-size:19px}}

/* 今日／探す (2026-10-30, docs/discovery-tiles-2026-10-29.md): the two screens of 料理に出会う, switched inside the page;
   the header's places stay as they are. */
#discovery-workspace .discovery-more{margin:36px 0 0}

/* 今日の一皿／料理を探す use the notebook's route tabs (design_system.css, workspace_shell.css) in the same place. */
.discovery-navigation[hidden]{display:none}

/* White dashboard adaptation: photo-led discovery within the shared shell. */
body.discovery-open{width:auto!important;background:#fff}
body.discovery-open .app{padding:0 30px 36px!important;max-width:none;min-height:0}
body.discovery-open .center{background:#fff;border:0}
#discovery-workspace{max-width:1320px;padding:26px 0 36px;margin:0 auto;background:#fff}
#discovery-workspace :is(h1,h2,h3,h4,.discovery-lead,.discovery-question-body p){font-family:var(--font-sans);letter-spacing:-.02em}
#discovery-workspace h1{font-size:30px;font-weight:500}
#discovery-workspace :is(.discovery-section-heading h2,.discovery-page-heading h2){font-size:24px;font-weight:500}
#discovery-workspace :is(.discovery-grid img,.discovery-theme-pair img,.discovery-hero img,.discovery-tile){border-radius:14px}
#discovery-workspace .discovery-grid{gap:24px 20px}
#discovery-workspace .discovery-card-heading h2{font-size:17px!important;font-weight:500}
#discovery-workspace .discovery-card-heading a{min-height:36px}
#discovery-workspace .discovery-card-description{font-size:13px}
#discovery-workspace .discovery-search-method{border:1px solid var(--rule);border-radius:14px;padding:17px 20px;background:var(--surface-soft)}
#discovery-workspace .discovery-search-method.is-current{border-color:#b2c2a6;background:var(--accent-soft)}
#discovery-workspace .discovery-filters{padding:20px;border-radius:16px;background:var(--surface-soft);gap:14px}
#discovery-workspace .discovery-filters :is(input,select){border-color:#d6dbd0;border-radius:9px;background:white}
#discovery-workspace .discovery-reading{grid-template-columns:230px minmax(0,1fr);gap:32px;padding-top:26px}
#discovery-workspace .discovery-reading>aside{background:var(--accent-soft);padding:20px;border-radius:14px;align-self:start}
#discovery-workspace .discovery-ingredients li{background:var(--surface-soft);border:0;border-radius:9px;padding:13px 15px;margin:8px 0}
#discovery-workspace .discovery-steps li{border-color:var(--rule);padding:18px 0}
#discovery-workspace .discovery-question-body{border:0;border-radius:12px;background:var(--accent-soft)}
#discovery-workspace .discovery-bookmark{border-radius:24px}
#discovery-workspace .discovery-home{gap:32px}
@media(max-width:850px){body.discovery-open .app{padding:0 18px 24px!important}#discovery-workspace{padding-top:22px}#discovery-workspace .discovery-filters{padding:16px}}
@media(max-width:700px){#discovery-workspace h1{font-size:24px}#discovery-workspace .discovery-reading{display:block}#discovery-workspace .discovery-reading>aside{margin-bottom:24px}#discovery-workspace .discovery-grid{gap:22px 12px}#discovery-workspace .discovery-card-heading h2{font-size:16px!important}#discovery-workspace .discovery-home{gap:20px}}

/* Retain the shell gutter when discovery replaces the editor grid. */
body.discovery-open #discovery-workspace{width:auto!important;max-width:none;margin:0 30px;padding:26px 0 40px}
@media(max-width:850px){body.discovery-open #discovery-workspace{margin:0 18px;padding:18px 0 30px}}

/* Type hierarchy: page → section → dish card. Keep Japanese text uncompressed. */
#discovery-workspace :is(h1,h2,h3,h4,.discovery-lead,.discovery-question-body p){letter-spacing:0}
#discovery-workspace h1,
#discovery-workspace :is(.discovery-home,.discovery-onboarding,.discovery-page-heading,.discovery-section-heading) h1{font-size:30px;font-weight:400;line-height:1.6}
#discovery-workspace h2,
#discovery-workspace :is(.discovery-section-heading,.discovery-page-heading) h2{font-size:24px;font-weight:400}
#discovery-workspace .discovery-feature-copy h2{font-size:23px;font-weight:400}
#discovery-workspace .discovery-card-heading h2{font-weight:400}
@media(max-width:700px){
 #discovery-workspace h1,
 #discovery-workspace :is(.discovery-home,.discovery-onboarding,.discovery-page-heading,.discovery-section-heading) h1{font-size:24px}
 #discovery-workspace h2,
 #discovery-workspace :is(.discovery-section-heading,.discovery-page-heading) h2{font-size:21px}
 #discovery-workspace .discovery-feature-copy h2{font-size:21px}
}

/* Discovery's reading surface recalls the warm, editorial recipe view. */
body.notebook-page.discovery-open,body.discovery-open .app,body.discovery-open .center{background:var(--bg)}
#discovery-workspace{
 --font-editorial:"Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Noto Serif JP","Source Han Serif JP","MS Mincho",serif;
 background:var(--bg);
}
#discovery-workspace :is(.discovery-pick-heading,.discovery-home>h1,.discovery-feature-intro,.discovery-feature-curiosity,.discovery-lead),
#discovery-workspace .discovery-feature-copy :is(.discovery-feature-intro,.discovery-feature-curiosity),
#discovery-workspace .discovery-section-heading h2{font-family:var(--font-editorial);font-weight:400;letter-spacing:0}

/* Discovery entry and its separate catalogue view. */
#discovery-workspace .discovery-entry-search{display:grid;grid-template-columns:minmax(0,600px);gap:12px;max-width:100%;padding:0 0 28px;border-bottom:1px solid var(--line)}
#discovery-workspace .discovery-entry-search label{flex-basis:100%;font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-entry-search div{display:flex;flex:0 1 600px;min-width:0;gap:8px}
#discovery-workspace .discovery-entry-search input{flex:1;min-width:0;min-height:48px;padding:10px 14px;background:var(--paper);border:1px solid var(--control-border);border-radius:8px;font:16px var(--font-sans)}
#discovery-workspace .discovery-entry-search button{min-height:48px;padding:0 22px;border:0;border-radius:8px;background:var(--action);color:white}
#discovery-workspace .discovery-entry-search .discovery-entry-browse{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;flex:0 1 600px;min-width:0;min-height:72px;padding:14px 18px;border-radius:10px;background:var(--accent-soft);color:var(--action);text-decoration:none}
#discovery-workspace .discovery-entry-browse span{display:grid;gap:3px;min-width:0}
#discovery-workspace .discovery-entry-browse strong{font-size:16px;font-weight:600}
#discovery-workspace .discovery-entry-browse small{font-size:13px;line-height:1.5}
#discovery-workspace .discovery-entry-browse svg{width:20px;height:20px;flex:none}
#discovery-workspace .discovery-entry-browse:hover{background:#dce6d8}
#discovery-workspace .discovery-entry-browse:focus-visible{outline:3px solid var(--action);outline-offset:3px}
#discovery-workspace .discovery-more-themes{min-height:44px;margin-top:20px;padding:0;border:0;background:none;color:var(--action);text-decoration:underline;text-underline-offset:4px}
#discovery-workspace .discovery-theme-list>div[hidden]{display:none}
#discovery-workspace .discovery-library{border-top:0;padding-top:20px}
@media(max-width:600px){#discovery-workspace .discovery-entry-search div{flex-basis:100%}}
/* Entry box suggestions (2026-11-12): one list under the box, grouped by the way of searching. */
#discovery-workspace .discovery-entry-search{position:relative}
#discovery-workspace .discovery-entry-search .discovery-entry-suggest{display:block;flex:none;position:absolute;z-index:20;top:calc(var(--entry-suggest-top,82px));left:0;width:min(600px,100%);max-height:min(60vh,520px);overflow:auto;box-sizing:border-box;padding:6px 0;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.12)}
#discovery-workspace .discovery-entry-search .discovery-entry-suggest[hidden]{display:none}
#discovery-workspace .discovery-entry-search .discovery-entry-group{display:block;flex:none;min-width:0;padding:6px 0;border-top:1px solid var(--line)}
#discovery-workspace .discovery-entry-search .discovery-entry-group:first-child{border-top:0}
#discovery-workspace .discovery-entry-search .discovery-entry-group-title{margin:0;padding:4px 16px 2px;font-size:12px;color:var(--ink-soft)}
#discovery-workspace .discovery-entry-search .discovery-entry-pending{margin:0;padding:6px 16px;font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-entry-search .discovery-entry-option{display:flex;flex:none;width:100%;align-items:baseline;justify-content:space-between;gap:12px;min-height:44px;box-sizing:border-box;padding:10px 16px;cursor:pointer;font-size:15px;color:var(--ink)}
#discovery-workspace .discovery-entry-search .discovery-entry-option small{flex:none;font-size:13px;color:var(--ink-soft)}
#discovery-workspace .discovery-entry-search .discovery-entry-option:hover,#discovery-workspace .discovery-entry-search .discovery-entry-option[aria-selected=true]{background:var(--accent-soft)}
#discovery-workspace .discovery-entry-search .discovery-entry-all .discovery-entry-option{color:var(--action)}
@media(max-width:600px){#discovery-workspace .discovery-entry-search .discovery-entry-option{flex-wrap:wrap;gap:2px 12px}#discovery-workspace .discovery-entry-search .discovery-entry-option small{flex:1 1 auto;text-align:right}}

/* Separate search from the editorial pick, and keep its reading hierarchy calm. */
#discovery-workspace .discovery-entry-search .discovery-entry-browse{min-height:64px;padding:10px 18px}
#discovery-workspace form.discovery-entry-search + section.discovery-home{padding-top:36px;align-items:start}
#discovery-workspace .discovery-feature-copy h2{font-size:clamp(23px,2vw,26px)}
#discovery-workspace .discovery-feature-copy .discovery-feature-intro{font-size:clamp(18px,1.5vw,21px);line-height:1.8}
@media(max-width:700px){
 #discovery-workspace form.discovery-entry-search + section.discovery-home{padding-top:26px}
 #discovery-workspace .discovery-feature-copy h2{font-size:21px}
 #discovery-workspace .discovery-feature-copy .discovery-feature-intro{font-size:18px}
}

/* A compact, persistent confirmation that does not span the reading surface. */
#discovery-workspace .discovery-status:not(:empty){position:fixed;z-index:100;inset:auto 24px calc(24px + env(safe-area-inset-bottom)) auto;box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;gap:0 16px;width:min(420px,calc(100vw - 36px));margin:0;padding:14px 16px;border:1px solid #d9e1d4;border-radius:12px;background:#f5f8f2;color:var(--ink);box-shadow:0 8px 24px rgba(36,48,32,.14);font:14px/1.6 var(--font-sans)}
#discovery-workspace .discovery-status-copy{flex:1 1 100%;min-width:0}
#discovery-workspace .discovery-status:not(:empty) a,#discovery-workspace .discovery-status:not(:empty) button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--action);font:600 14px/1.5 var(--font-sans);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#discovery-workspace .discovery-status [data-dismiss-discovery-status]{order:2;font-weight:400!important;color:var(--ink-soft)!important}
#discovery-workspace .discovery-status [data-retry-bookmark]{order:1}
#discovery-workspace .discovery-status[data-notice-kind=pending]{background:#fbf8ef;border-color:#e7d9b8}
#discovery-workspace .discovery-status :is(a,button):focus-visible{outline:2px solid var(--action);outline-offset:3px}
@media(max-width:700px){#discovery-workspace .discovery-status:not(:empty){right:18px;bottom:calc(18px + env(safe-area-inset-bottom))}}

/* Motion, phase 1 (docs/ui/motion-adoption-20261102.md). The bookmark fills over 240ms and springs back from the press;
   the status notice rises from below once per message. Reduced motion keeps the plain state changes. */
@media(prefers-reduced-motion:no-preference){
 #discovery-workspace .discovery-bookmark svg{transition:fill 240ms ease,transform 180ms cubic-bezier(.16,1,.3,1)}
 #discovery-workspace .discovery-bookmark:active svg{transform:scale(.84)}
 /* The button is rebuilt after the save (toggle), so the fill transition above never saw the change; the rebuilt
    button carries fa-mark-new (fill in, small pulse) or fa-fill-off (fill out) once. 11/03 */
 #discovery-workspace .discovery-bookmark.fa-mark-new svg{animation:fa-mark-fill 240ms ease both,fa-mark-pulse 240ms ease}
 #discovery-workspace .discovery-bookmark.fa-fill-off svg{animation:fa-mark-unfill 160ms ease-in both}
 #discovery-workspace .discovery-status{translate:0 10px;opacity:0;transition:translate 220ms cubic-bezier(.16,1,.3,1),opacity 200ms ease}
 #discovery-workspace .discovery-status:not(:empty){translate:none;opacity:1;@starting-style{translate:0 10px;opacity:0}}
}

/* Loading placeholders (motion phase 2): the shape of the photo tiles or of the weekly rows, pulsing until content arrives. */
#discovery-workspace .fa-skeleton-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin:12px 0}
#discovery-workspace .fa-skeleton-tiles .fa-skeleton{aspect-ratio:1;border-radius:14px}
#discovery-workspace .fa-skeleton-rows{display:grid;gap:22px;margin:12px 0}
#discovery-workspace .fa-skeleton-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start}
#discovery-workspace .fa-skeleton-row>.fa-skeleton{aspect-ratio:4/3;border-radius:4px}
#discovery-workspace .fa-skeleton-row>span:last-child{display:grid;gap:10px;padding-top:6px}
#discovery-workspace .fa-skeleton-row>span:last-child .fa-skeleton{height:14px;width:70%}
#discovery-workspace .fa-skeleton-row>span:last-child .fa-skeleton+.fa-skeleton{width:92%}
@media(max-width:700px){#discovery-workspace .fa-skeleton-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#discovery-workspace .fa-skeleton-row{grid-template-columns:80px minmax(0,1fr)}}
@keyframes fa-mark-fill{from{fill:transparent}}
@keyframes fa-mark-unfill{from{fill:currentColor}to{fill:transparent}}
@keyframes fa-mark-pulse{50%{transform:scale(1.1)}}

/* The failure page's two ways out sit apart on one line; the retry keeps the ordinary control height. */
#discovery-workspace .discovery-error-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:20px}
#discovery-workspace .discovery-error-actions button{min-height:44px;padding:8px 14px;border:1px solid var(--control-border);border-radius:var(--control-radius);background:transparent;color:var(--action);font:500 14px/1.5 var(--font-sans);cursor:pointer}
#discovery-workspace .discovery-error-actions a{display:inline-flex;align-items:center;min-height:44px;color:var(--action);font-size:14px}
/* Coarse drink-first search inherits Discovery's controls and palette. */
#discovery-workspace .discovery-drink-shortcut{display:inline-flex;align-items:center;gap:12px;min-height:44px;margin-top:12px}
.discovery-drink-shortcut svg{width:20px;height:20px}
.drink-kinds,.drink-groups{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
#discovery-workspace :is(.drink-kinds,.drink-groups) button[aria-pressed=true]{background:var(--action);color:var(--paper);border-color:var(--action)}
.drink-profile{padding:18px 0;border-block:1px solid var(--rule);margin-bottom:16px}
.drink-profile label,.drink-filters label{display:grid;gap:6px;min-width:0}
#discovery-workspace :is(.drink-profile,.drink-filters) :is(input,select){box-sizing:border-box;max-width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--control-border);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}
#discovery-workspace :is(.drink-profile,.drink-filters) :is(input,select):focus-visible{outline:2px solid var(--action);outline-offset:3px}
.drink-profile select{width:min(100%,350px)}
#discovery-workspace .drink-scope,#discovery-workspace .drink-source{font-size:13px;color:var(--ink-soft)}
.drink-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:24px 0}
.drink-filters label:first-child{flex:1 1 240px}
.drink-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.drink-result{min-width:0;border-top:1px solid var(--rule);padding-top:18px}
.drink-result img{display:block;width:100%;height:180px;object-fit:cover;border-radius:8px}
#discovery-workspace .drink-result h2{font-size:20px;line-height:1.6;margin:14px 0 8px}
.drink-result h2 a{text-decoration:none}
.drink-reasons{padding-left:20px;margin:12px 0}
.drink-result details{font-size:13px;margin-top:12px;overflow-wrap:anywhere}
.drink-result summary,.drink-profile summary{min-height:44px;cursor:pointer;color:var(--action);display:list-item;align-content:center}
.drink-evidence{padding-left:18px}.drink-evidence li{margin:12px 0}.drink-evidence blockquote{margin:6px 0;padding:0;font-size:12px;color:var(--ink-soft)}
#discovery-workspace .drink-concern{font-size:13px}
.drink-recipe-link{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1000px) and (min-width:701px){.discovery-search-methods{grid-template-columns:1fr}.drink-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.drink-results{grid-template-columns:1fr}.drink-result img{height:200px}.drink-kinds button{flex:1 1 40%}.drink-filters label:first-child{flex-basis:100%}}

.drink-mobile-kind{display:none}
#discovery-workspace .drink-jump{display:none}
@media(max-width:700px){
 .drink-kinds{display:none}
 .drink-mobile-kind{display:grid;gap:6px;margin:18px 0}
 #discovery-workspace .drink-mobile-kind select{box-sizing:border-box;width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--control-border);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}
 #discovery-workspace .drink-mobile-kind select:focus-visible{outline:2px solid var(--action);outline-offset:3px}
 #discovery-workspace .drink-jump{display:inline-flex;align-items:center;margin:0 0 8px;background:var(--action);color:var(--paper)}
 .drink-profile{padding:14px 0;margin-bottom:12px}
 .drink-filters{margin:16px 0;gap:10px}
}

/* The three search routes share one heading and navigation frame. */
.discovery-search-heading{padding-top:8px}

/* Search body contract: shared gutters, type, controls and state feedback on the three routes. */
#discovery-workspace .discovery-search-page{
 --search-section-gap:32px;
 --search-control-height:48px;
 --search-control-radius:9px;
 box-sizing:border-box;width:100%;max-width:none;margin:0;padding:4px 0 0;border-top:0;
 font:16px/1.8 var(--font-sans);
}
#discovery-workspace .discovery-search-page .search-page-title{
 font:500 24px/1.6 var(--font-sans);letter-spacing:0;margin:0 0 8px;
}
#discovery-workspace .discovery-search-page .search-page-intro{
 max-width:70ch;font:400 16px/1.8 var(--font-sans);margin:0 0 16px;
}
#discovery-workspace .discovery-search-page>p{max-width:70ch}
#discovery-workspace .discovery-search-page :is(.taste-scope,.taste-scale,.drink-scope,.taste-entry-help){font-size:14px;line-height:1.8;max-width:70ch}
#discovery-workspace .discovery-search-page :is(.taste-entry,.taste-form,.taste-natural,.taste-anchor-panel){margin-block:var(--search-section-gap)}
#discovery-workspace .discovery-search-page :is(.taste-entry,.taste-presets-block,.taste-anchor-panel) h2,
#discovery-workspace .discovery-search-page .taste-natural>label{font:500 22px/1.6 var(--font-sans);margin:0 0 12px}
#discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters){padding:0;border-radius:0;background:transparent;gap:16px;margin:0 0 var(--search-section-gap)}
#discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>label{font:400 14px/1.6 var(--font-sans);gap:8px;min-width:150px}
#discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>label:first-child{flex:1 1 280px;min-width:0}
#discovery-workspace .discovery-search-page :is(.drink-profile,.drink-mobile-kind)>label,
#discovery-workspace .discovery-search-page .drink-mobile-kind{font:400 14px/1.6 var(--font-sans);gap:8px}
#discovery-workspace .discovery-search-page :is(input[type=search],textarea,select){
 box-sizing:border-box;min-height:var(--search-control-height);max-width:100%;padding:10px 12px;
 border:1px solid var(--control-border);border-radius:var(--search-control-radius);background:var(--paper);color:var(--ink);
 font:400 16px/1.5 var(--font-sans);caret-color:var(--action);
}
#discovery-workspace .discovery-search-page textarea{min-height:96px;line-height:1.8}
#discovery-workspace .discovery-search-page :is(input,textarea)::placeholder{color:var(--ink-soft);opacity:1}
#discovery-workspace .discovery-search-page:is(.taste-search,.drink-search) button,
#discovery-workspace .discovery-search-page .discovery-filters button{
 min-height:var(--control-height);height:auto;padding-block:var(--control-padding-block);border-radius:var(--search-control-radius);font-size:14px;line-height:1.5;
}
#discovery-workspace .discovery-search-page :is(.taste-modes,.taste-entry-options,.taste-groups,.taste-complement-options,.drink-kinds,.drink-groups) button[aria-pressed=true]{
 background:var(--action);color:var(--paper);border-color:var(--action);box-shadow:none;font-weight:500;
}
#discovery-workspace .discovery-search-page :is(.taste-modes,.taste-entry-options,.taste-groups,.taste-complement-options,.drink-kinds,.drink-groups){gap:8px}
#discovery-workspace .discovery-search-page :is(button,input,select,textarea):disabled{cursor:not-allowed;opacity:.55}
#discovery-workspace .discovery-search-page :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--action);outline-offset:3px}
#discovery-workspace .discovery-search-page summary{min-height:44px;cursor:pointer;align-content:center;text-underline-offset:4px}
#discovery-workspace .discovery-search-page summary:hover{text-decoration:underline}
#discovery-workspace .discovery-search-page ::selection{background:var(--accent-soft);color:var(--ink)}
@media(hover:hover){
 #discovery-workspace .discovery-search-page:is(.taste-search,.drink-search) button:not(:disabled):hover,
 #discovery-workspace .discovery-search-page .discovery-filters button:not(:disabled):hover{border-color:var(--action);filter:brightness(.94)}
 #discovery-workspace .discovery-search-page :is(input[type=search],textarea,select):not(:disabled):hover{border-color:var(--action)}
}
#discovery-workspace .discovery-search-page button:not(:disabled):active{filter:brightness(.88)}
@media(prefers-reduced-motion:no-preference){
 #discovery-workspace .discovery-search-page :is(button,input,select,textarea),
 #discovery-workspace .discovery-search-method{transition:background-color 180ms ease-out,border-color 180ms ease-out,color 180ms ease-out,filter 180ms ease-out}
}
@media(prefers-reduced-motion:reduce){
 #discovery-workspace .discovery-search-page :is(button,input,select,textarea),
 #discovery-workspace .discovery-search-method{transition:none}
}
@media(max-width:700px){
 #discovery-workspace .discovery-search-page{--search-section-gap:24px;padding-top:4px}
 #discovery-workspace .discovery-search-page .search-page-title{font-size:22px}
 #discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>label{min-width:0}
 #discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>label:first-child,
 #discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>:is(button,details){grid-column:1/-1}
 #discovery-workspace .discovery-search-page :is(.discovery-filters,.drink-filters)>button{justify-self:start}
 #discovery-workspace .discovery-search-page .taste-aroma-adder label{white-space:normal;flex-wrap:wrap}
}

/* Drink pictograms share the navigation's restrained line weight; names stay visible. */
#discovery-workspace .drink-kinds button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.drink-kind-icon{display:block;flex:0 0 24px;width:24px;height:24px;color:inherit}
.drink-kind-icon .drink-liquid{fill:var(--drink-liquid,currentColor)}
.drink-kind-icon-red{--drink-liquid:#a55269}
.drink-kind-icon-white{--drink-liquid:#d6bd70}
.drink-kind-icon-orange{--drink-liquid:#ce8a44}
.drink-kind-icon-rose{--drink-liquid:#d48da1}
.drink-kind-icon-sparkling,.drink-kind-icon-beer{--drink-liquid:#d6ad50}
[aria-pressed=true] .drink-kind-icon-red{--drink-liquid:#edb4c3}
[aria-pressed=true] .drink-kind-icon-white{--drink-liquid:#f4e2a9}
[aria-pressed=true] .drink-kind-icon-orange{--drink-liquid:#efb876}
[aria-pressed=true] .drink-kind-icon-rose{--drink-liquid:#f1bdcf}
[aria-pressed=true] :is(.drink-kind-icon-sparkling,.drink-kind-icon-beer){--drink-liquid:#f4d383}
.drink-mobile-select{position:relative;display:block}
.drink-mobile-select>[data-drink-kind-icon]{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--action)}
#discovery-workspace .drink-mobile-select:has(.drink-kind-icon) select{padding-left:44px}

/* Compact icon navigation follows the notebook route selectors. */
/* Title and catalogue count sit together at the start (the ブックマーク link that used to push the count left is gone). */
.discovery-search-heading .discovery-section-heading{justify-content:flex-start;margin-bottom:12px}
.discovery-search-heading .discovery-search-methods{display:flex;gap:8px;margin:0 0 16px;border:0}
#discovery-workspace .discovery-search-heading .discovery-search-method{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;padding:8px 15px;gap:8px;border:0;border-radius:8px;background:transparent;color:var(--ink-soft)}
#discovery-workspace .discovery-search-heading .discovery-search-method>span{display:block;font-size:15px;line-height:1.5;text-align:center}
#discovery-workspace .discovery-search-heading .discovery-search-method.is-current{background:var(--accent-soft);color:var(--action);font-weight:600}
#discovery-workspace .discovery-search-heading .discovery-search-method:not(.is-current):hover{background:var(--accent-soft);color:var(--action)}
#discovery-workspace .discovery-search-heading .discovery-search-method.is-current:hover{background:color-mix(in srgb,var(--accent-soft) 85%,var(--action))}
#discovery-workspace .drink-search .drink-kinds{margin:12px 0 16px}
#discovery-workspace .drink-search .drink-kinds button{min-height:var(--control-height-compact);padding:var(--control-padding-compact) 10px;gap:6px;font-size:13px;line-height:1.5}
.drink-kinds .drink-kind-icon{width:20px;height:20px;flex-basis:20px}
#discovery-workspace .drink-search .drink-mobile-kind{margin:12px 0 16px}
@media(max-width:700px){
 .discovery-search-heading .discovery-search-methods{display:grid;grid-template-columns:repeat(var(--methods,3),minmax(0,1fr));gap:2px}
 #discovery-workspace .discovery-search-heading .discovery-search-method{padding:4px;gap:4px}
 #discovery-workspace .discovery-search-heading .discovery-search-method>span{font-size:13px}
}

#discovery-workspace .discovery-search-heading .workspace-route-icon{display:block;flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.search-method-word{display:inline-block;white-space:nowrap}
@media(max-width:700px){#discovery-workspace .discovery-search-heading .workspace-route-icon{width:16px;height:16px;flex-basis:16px}}
/* The search heading follows its own column, not the window (user, 2026-11-11: with the sidebar open at tablet widths
   the count squeezed beside the title). Under 640px of column: the title on its own row, the count below it, and the
   methods as compact equal columns (three, or four with 調理の原理 since 2026-11-11). The ブックマーク link left this heading the same day. */
.discovery-search-heading{container-type:inline-size}
@container (max-width:640px){
 .discovery-search-heading .discovery-section-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
 .discovery-search-heading .discovery-search-methods{display:grid;grid-template-columns:repeat(var(--methods,3),minmax(0,1fr));gap:2px}
 #discovery-workspace .discovery-search-heading .discovery-search-method{padding:4px;gap:4px}
 #discovery-workspace .discovery-search-heading .discovery-search-method>span{font-size:13px}
 #discovery-workspace .discovery-search-heading .workspace-route-icon{width:16px;height:16px;flex-basis:16px}
}

#discovery-workspace .discovery-search-page :is(.taste-modes,.taste-entry-options,.taste-presets,.taste-groups,.drink-groups) button{
 min-height:var(--control-height-compact);padding-block:var(--control-padding-compact);line-height:1.5;
}
/* Ingredient buttons with counts (2026-11-10, user: 「小さくして数が出せるように」): the compact choice size, so the
   main search shows 24 and お酒に合わせる can be narrowed by clicks alone. Selected ones lead, with ×. */
#discovery-workspace .discovery-search-page :is(.discovery-ingredient-selected,.discovery-ingredient-options,.drink-ingredient-chips){display:flex;flex-wrap:wrap;gap:6px}
#discovery-workspace .discovery-search-page :is(.discovery-filters .discovery-ingredient-selected,.discovery-filters .discovery-ingredient-options,.drink-ingredients .drink-ingredient-chips) button{display:inline-flex;align-items:center;gap:5px;min-height:var(--control-height-compact);padding:var(--control-padding-compact) 10px var(--control-padding-compact) 8px;border:1px solid var(--line);border-radius:var(--search-control-radius);background:var(--paper);color:var(--ink);font-size:13px;line-height:1.4;text-decoration:none}
#discovery-workspace .discovery-search-page :is(.discovery-filters .discovery-ingredient-selected button,.drink-ingredients .drink-ingredient-chips button[aria-pressed=true]){background:var(--accent-soft);border-color:var(--action);color:var(--ink);font-weight:500}
#discovery-workspace .discovery-search-page :is(.discovery-ingredient-options,.drink-ingredient-chips) small{font-size:11px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
#discovery-workspace .discovery-search-page .drink-ingredients .drink-ingredient-chips .drink-ingredient-more{border-style:dashed;color:var(--action)}
.drink-ingredients{margin:0 0 16px}
#discovery-workspace .drink-ingredients .drink-ingredients-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 8px;font-size:14px;font-weight:500}
#discovery-workspace .drink-ingredients .drink-ingredients-title small{font-size:12px;font-weight:400;color:var(--ink-soft)}
#discovery-workspace .discovery-search-page .ingredient-chip-icon{display:block;flex:none;width:20px;height:20px;margin-left:-2px;object-fit:contain}
/* お酒に合わせる draws its results as the search page's tiles (2026-11-10). A tile keeps its reason line; what to
   check and the evidence sit under it. Recipes without a page open in a dialog. */
#discovery-workspace .drink-tiles{margin-top:8px}
.drink-tile{min-width:0}
#discovery-workspace .drink-tile .drink-concern{margin:4px 0 0;font-size:12px;line-height:1.6;color:var(--ink-soft)}
#discovery-workspace .drink-tile .drink-source{margin:4px 0 0;font-size:12px;line-height:1.6}
#discovery-workspace .drink-tile details{margin-top:2px;font-size:13px}
#discovery-workspace .drink-tile summary{min-height:36px;font-size:13px;color:var(--action);display:list-item;align-content:center}
#discovery-workspace .drink-tiles button.discovery-tile-link{width:100%;min-height:0;padding:0;border:0;text-align:left;font:inherit;cursor:pointer}
#discovery-workspace .drink-recipe-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:24px;border:0;border-radius:12px;background:var(--paper);color:var(--ink);overflow:auto}
.drink-recipe-dialog::backdrop{background:rgba(20,24,18,.45)}
#discovery-workspace .drink-recipe-dialog h2{margin:0 0 8px;font-size:20px}
#discovery-workspace .drink-recipe-dialog form{margin-top:16px}
/* 味・食感・香りから探す uses the same tiles (2026-11-10): the reason line is the matched values; 基準にする and
   the evidence sit under the tile. */
#discovery-workspace .taste-tiles{margin-top:8px}
.taste-tile{min-width:0}
#discovery-workspace .taste-tile details{margin-top:0;font-size:13px}
#discovery-workspace .taste-tile summary{min-height:36px;font-size:13px;color:var(--action);display:list-item;align-content:center;padding-block:0}
#discovery-workspace .taste-tiles button.discovery-tile-link{width:100%;min-height:0;padding:0;border:0;text-align:left;font:inherit;cursor:pointer}
#discovery-workspace .taste-tile-anchor{display:inline-flex;align-items:center;min-height:36px;margin:2px 0 0;padding:0;border:0;background:transparent;color:var(--action);font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#discovery-workspace .taste-tile .taste-evidence{font-size:13px;line-height:1.7}
#discovery-workspace .taste-tile .taste-values{gap:6px 16px;margin:8px 0}
#discovery-workspace .taste-tile .taste-reasons p{font-size:13px}
#discovery-workspace .taste-tile h4{font-size:14px;margin:12px 0 4px}
#discovery-workspace .taste-recipe-dialog .taste-recipe h4{font-size:16px;margin:20px 0 8px}
/* お酒に合わせる: before a drink is chosen, one card a drink with its types, counts and two example dishes (2026-11-12). */
.drink-chooser{container-type:inline-size;margin:20px 0 8px}
.drink-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.drink-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);overflow:hidden}
.drink-card-photo{position:relative;display:grid;place-items:center;aspect-ratio:16/10;background:var(--accent-soft);color:var(--action);overflow:hidden}
#discovery-workspace .drink-card-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;margin:0;object-fit:cover;object-position:center 52%}
.drink-card-photo .drink-kind-icon{width:40px;height:40px;opacity:.6}
#discovery-workspace .drink-card-title{margin:0;padding:10px 12px 2px;font:500 16px/1.5 var(--font-sans)}
#discovery-workspace .drink-search .drink-card-title button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 6px 4px 0;border:0;background:none;color:var(--ink);font:inherit}
#discovery-workspace .drink-search .drink-card-title button:hover{color:var(--action)}
.drink-card-title .drink-kind-icon{width:22px;height:22px;flex:0 0 22px;color:var(--action)}
.drink-card-types{list-style:none;margin:0;padding:0 8px 10px;display:grid;gap:4px}
#discovery-workspace .drink-search .drink-card-types button{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);text-align:left;font:400 14px/1.5 var(--font-sans)}
#discovery-workspace .drink-search .drink-card-types button:hover{background:var(--accent-soft);border-color:var(--action)}
.drink-type-name{font-weight:500;color:var(--action)}
.drink-type-count{font-size:12px;color:var(--ink);white-space:nowrap;align-self:center}
.drink-type-examples{grid-column:1/-1;font-size:12px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#discovery-workspace .drink-search .drink-kinds .drink-kinds-all{border-color:transparent;color:var(--ink-soft);text-decoration:underline;text-underline-offset:4px}
#discovery-workspace .drink-about{margin:18px 0 0;font-size:13px;color:var(--ink-soft)}
#discovery-workspace .drink-about summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--action)}
#discovery-workspace .drink-about p{margin:6px 0;line-height:1.8}
/* Phones: the cards stack and the photo becomes a strip, so all eight fit in a few screens. */
@container (max-width:520px){
 .drink-cards{grid-template-columns:1fr;gap:10px}
 .drink-card-photo{aspect-ratio:auto;height:72px}
}
