/* Recipe detail: keep the recipe readable without a separate heading column. */
#discovery-workspace .discovery-recipe-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:48px;align-items:start}
#discovery-workspace .discovery-recipe-body .discovery-reading{display:block;padding:24px 0;min-width:0}
#discovery-workspace .discovery-recipe-body h2{font-size:26px;margin:0 0 20px}
#discovery-workspace .discovery-ingredients li{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 44px;align-items:center;padding:6px 0;margin:0;min-height:44px;line-height:1.65}
#discovery-workspace .discovery-steps li{padding:14px 0;margin:0;line-height:1.85}
#discovery-workspace #discovery-equipment{padding:24px 0}
#discovery-workspace #discovery-equipment details{margin:8px 0}
/* もうひと皿 uses the list's photo tiles (2026-10-29); the old side-by-side card rules here cropped their pictures to 96px. */
@media(max-width:800px){
 #discovery-workspace .discovery-recipe-body{display:block}
 #discovery-workspace .discovery-ingredients li>span:nth-child(2){grid-row:auto;grid-column:auto}
 #discovery-workspace .discovery-ingredients .discovery-question{grid-row:auto;grid-column:3}
}

#discovery-workspace .discovery-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px}

#discovery-workspace .discovery-back + .discovery-hero{padding-top:0}
@media(min-width:701px){#discovery-workspace .discovery-back + .discovery-hero{align-items:start}}

#discovery-workspace .discovery-cooking-record{border-top:1px solid var(--rule);padding:24px 0}
#discovery-workspace .discovery-cooking-record h2{font-size:26px;margin:0 0 12px}

#discovery-workspace .discovery-text-action{border:0;background:transparent;padding:8px 0;text-decoration:underline;text-underline-offset:5px}
#discovery-workspace .discovery-record-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px}
#discovery-workspace .discovery-record-actions #discovery-consult{scroll-margin-top:24px}
#discovery-workspace #discovery-equipment{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:48px}
#discovery-workspace .discovery-back + .discovery-hero{padding-bottom:32px}

/* Servings: scaled amounts with the original kept in the title. */
/* Reading density changes the wording, never the shared recipe or step anchors. */
#discovery-workspace .discovery-step-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-bottom:20px}
#discovery-workspace .discovery-step-heading h2{margin:0}
#discovery-workspace .discovery-step-mode{display:flex;gap:4px}
#discovery-workspace .discovery-step-mode button{min-height:44px;padding:7px 14px;border-color:var(--line);background:var(--paper);color:var(--ink);font-size:14px}
#discovery-workspace .discovery-step-mode button[aria-pressed=true]{border-color:var(--action);background:var(--accent-soft);font-weight:600}
#discovery-workspace .discovery-step-mode button:hover{border-color:var(--action)}
#discovery-workspace .discovery-servings{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px;font-size:14px}
#discovery-workspace .discovery-servings span{color:var(--ink-soft);margin-right:4px}
#discovery-workspace .discovery-servings button{min-height:44px;padding:7px 14px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);font-size:14px}
#discovery-workspace .discovery-servings button[aria-pressed=true]{border-color:var(--action);background:var(--accent-soft);font-weight:600}
#discovery-workspace .discovery-servings-note{font-size:13px;color:var(--ink-soft);margin:0 0 12px}
#discovery-workspace .discovery-caution-link{font-size:14px;margin:-8px 0 12px}
#discovery-workspace #discovery-cautions{scroll-margin-top:24px;margin-top:0}

/* Keep the four personal actions understandable without merging their stored records. */
#discovery-workspace .discovery-secondary-actions{margin-top:0}
#discovery-workspace .discovery-action-note{max-width:68ch;margin:0 0 18px;color:var(--ink-soft);font-size:13px;line-height:1.75}

/* Household gaps stay explicit. */
#discovery-workspace .discovery-home-support{margin:24px 0;padding:20px 0;border-block:1px solid var(--rule)}
#discovery-workspace .discovery-home-support h3{margin:0 0 8px;font-size:20px}
#discovery-workspace .discovery-home-support>p{max-width:68ch;margin:8px 0;line-height:1.8}
#discovery-workspace .discovery-support-questions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
#discovery-workspace .discovery-support-questions button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);font:inherit;text-align:start}
#discovery-workspace .discovery-support-questions button:hover{border-color:var(--action)}
#discovery-workspace .discovery-ai-connection{font-size:14px;color:var(--ink-soft)}
#discovery-workspace .discovery-ai-usage{max-width:68ch;margin:10px 0}
#discovery-workspace .discovery-ai-usage summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
#discovery-workspace .discovery-ai-usage p{margin:4px 0 0;font-size:14px;line-height:1.8}
@media(max-width:700px){
 #discovery-workspace .discovery-support-questions{display:grid;grid-template-columns:1fr}
 #discovery-workspace .discovery-support-questions button{width:100%;font-size:16px}
}

/* Read the dish first; contextual actions stay beside their relevant content. */
#discovery-workspace .discovery-ingredient-edit{margin-top:20px;padding-top:8px;border-top:1px solid var(--rule)}
#discovery-workspace .discovery-ingredient-edit .discovery-action-note{margin:0;font-size:13px}
#discovery-workspace .discovery-related-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-bottom:20px}
#discovery-workspace .discovery-related-heading h2{margin:0}
#discovery-workspace .discovery-detail-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 24px}
#discovery-workspace .discovery-lab-link{font-size:14px}
.ingredient-editor:focus{outline:2px solid var(--action);outline-offset:6px}
.ingredient-editor{scroll-margin-top:24px}
.analysis-source-edit{min-height:44px;white-space:normal}

/* Reference typography: the dish name leads in Mincho; explanatory copy stays sans-serif. */
#discovery-workspace .discovery-detail-heading h1{font-family:var(--font-editorial);font-weight:400}
#discovery-workspace .discovery-detail-copy .discovery-lead{font-family:var(--font-sans)}
/* この料理らしさ (2026-11-15): the saved taste/aroma estimate in words, shown only for a dish that has one. */
#discovery-workspace .discovery-character[hidden]{display:none}
.discovery-character-lead{margin:0 0 10px}
.discovery-sense-list{list-style:none;margin:0 0 12px;padding:0}
.discovery-sense-list>li{display:grid;grid-template-columns:8em 7em auto;align-items:center;gap:6px 14px;padding:8px 0;border-top:1px solid var(--line,#ddd8cb)}
.discovery-sense-list>li:last-child{border-bottom:1px solid var(--line,#ddd8cb)}
.discovery-sense-word{color:var(--accent,#4f6233)}
.discovery-sense-word small{color:var(--ink-soft,#6d6a60);font-size:12px;margin-left:2px}
.discovery-sense-cells{display:inline-flex;gap:3px}
.discovery-sense-cells i{display:block;width:12px;height:12px;border-radius:2px;background:var(--line,#ddd8cb)}
.discovery-sense-cells i.on{background:var(--accent,#4f6233)}
.discovery-sense-faint,.discovery-character-note{color:var(--ink-soft,#6d6a60);font-size:14px}
.discovery-sense-aromas{margin:6px 0 12px;padding-left:1.2em;line-height:1.7}
@media(max-width:520px){.discovery-sense-list>li{grid-template-columns:minmax(0,1fr) auto}.discovery-sense-list>li .discovery-sense-cells{grid-column:1/-1}}
