/* Home inherits the shared paper, olive, Mincho and sans-serif system. */
#discovery-workspace .assembly-home-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin:0 0 16px}
#discovery-workspace .assembly-home-top h1{font:400 24px/1.5 var(--font-editorial);margin:0}
#discovery-workspace .assembly-home-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;min-width:0}
#discovery-workspace .assembly-home-shortcuts a,#discovery-workspace .assembly-home-shortcuts button{display:inline-flex;align-items:center;min-height:44px;color:var(--action);font:14px/1.6 var(--font-sans);text-underline-offset:4px}
#discovery-workspace .assembly-home-shortcuts button{background:none;border:0;padding:0;text-align:left;overflow-wrap:anywhere;max-width:32ch;cursor:pointer}
#discovery-workspace .assembly-home-shortcuts button:hover{text-decoration:underline}
#discovery-workspace .assembly-home-daily{padding-top:0}
#discovery-workspace .assembly-home-daily .discovery-daily-date{font-size:14px}
#discovery-workspace .assembly-home-daily .discovery-daily-photo img{aspect-ratio:1/1;max-height:440px}
#discovery-workspace .assembly-home-daily .discovery-daily-cue{font-size:14px}
#discovery-workspace .assembly-home-daily .discovery-daily-result,#discovery-workspace .assembly-home-daily .discovery-daily-hint{border-left:0}
#discovery-workspace .assembly-home-section{margin:56px 0 0}
#discovery-workspace .assembly-home-section-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-bottom:16px}
#discovery-workspace .assembly-home-section h2{font:500 clamp(22px,2.2vw,28px)/1.5 var(--font-editorial);margin:0}
#discovery-workspace .assembly-home-section-header a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--action);text-underline-offset:4px}
#discovery-workspace .assembly-home-week-title{font:500 clamp(21px,2vw,26px)/1.6 var(--font-editorial);margin:0 0 8px;text-wrap:balance}
#discovery-workspace .assembly-home-intro{margin:0 0 24px;color:var(--ink-soft);max-width:46em;font-size:15px;line-height:1.85}
#discovery-workspace .assembly-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
#discovery-workspace .assembly-home-dish{min-width:0}
#discovery-workspace .assembly-home-dish>a{display:block;color:var(--ink);text-decoration:none}
#discovery-workspace .assembly-home-dish img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--panel-warm)}
#discovery-workspace .assembly-home-dish h3,#discovery-workspace .assembly-home-dish h4{font:400 21px/1.55 var(--font-editorial);margin:14px 0 4px;overflow-wrap:anywhere}
#discovery-workspace .assembly-home-dish>a:hover h3,#discovery-workspace .assembly-home-dish>a:hover h4{text-decoration:underline;text-underline-offset:5px;color:var(--action)}
#discovery-workspace .assembly-home-place{font-size:13px;color:var(--ink-soft);margin:0 0 8px}
#discovery-workspace .assembly-home-reason{font-size:14px;line-height:1.85;margin:0;color:var(--ink-soft)}
#discovery-workspace .assembly-home-footnote{font-size:12px;color:var(--ink-soft);margin:20px 0 0;line-height:1.8}
#discovery-workspace .assembly-home-loading{padding:32px 0;color:var(--ink-soft)}
#discovery-workspace [data-home-more]:empty{display:none}
@media(max-width:700px){
 #discovery-workspace .assembly-home-top{gap:0 12px;margin-bottom:8px}
 #discovery-workspace .assembly-home-shortcuts{gap:0 16px}
 #discovery-workspace .assembly-home-daily .discovery-daily-photo img{aspect-ratio:16/9;max-height:none}
 #discovery-workspace .assembly-home-daily{gap:12px;padding-bottom:24px}
 #discovery-workspace .assembly-home-section{margin-top:36px}
 #discovery-workspace .assembly-home-grid{grid-template-columns:1fr;gap:28px}
 #discovery-workspace .assembly-home-dish img{aspect-ratio:16/9}
 #discovery-workspace .assembly-home-intro{margin-bottom:20px}
}

/* Keep the map and its key together, and let the collection remain easy to scan on a phone. */
@media(min-width:901px){
 #discovery-workspace .discovery-dish-map{display:grid;grid-template-columns:minmax(0,600px) minmax(150px,1fr);column-gap:32px;align-items:center}
 #discovery-workspace :is(.discovery-dish-map h2,.discovery-dish-map-intro){grid-column:1/-1}
 #discovery-workspace .discovery-dish-map-figure{width:100%}
 #discovery-workspace .discovery-dish-map-count{align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:10px;margin:0}
}
@media(max-width:700px){
 #discovery-workspace .assembly-home-grid{grid-template-columns:1fr;gap:20px}
 #discovery-workspace .assembly-home-dish>a{display:grid;grid-template-columns:minmax(96px,35%) minmax(0,1fr);gap:4px 14px;align-content:start}
 #discovery-workspace .assembly-home-dish img{grid-row:1/4;aspect-ratio:4/3}
 #discovery-workspace .assembly-home-dish h3,#discovery-workspace .assembly-home-dish h4{font-size:16px;line-height:1.5;margin:0}
 #discovery-workspace .assembly-home-place{font-size:12px;margin:0}
 #discovery-workspace .assembly-home-reason{font-size:13px;line-height:1.7}
}

#discovery-workspace .assembly-home-image-note{display:block;margin:5px 0 0;font:12px/1.5 var(--font-sans);color:var(--ink-soft)}
@media(max-width:700px){#discovery-workspace .assembly-home-dish img{grid-row:1/4}#discovery-workspace .assembly-home-image-note{grid-column:1;grid-row:4;margin:0}#discovery-workspace .assembly-home-dish h3,#discovery-workspace .assembly-home-dish h4{grid-column:2;grid-row:1}#discovery-workspace .assembly-home-place{grid-column:2;grid-row:2}#discovery-workspace .assembly-home-reason{grid-column:2;grid-row:3/5}}

/* Home reading order: identify the dish, understand it, then explore its context. */
#discovery-workspace .discovery-daily{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;padding:16px 0 24px}
#discovery-workspace .discovery-daily-copy{padding:0}
#discovery-workspace .discovery-daily-date{margin:0 0 12px}
#discovery-workspace :is(.discovery-daily-dish h2,.assembly-home-dish h3,.assembly-home-dish h4,.discovery-daily-pair strong){word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance;letter-spacing:0}
#discovery-workspace .discovery-daily-dish h2{font-size:clamp(26px,2.3vw,30px);font-weight:400;line-height:1.5;text-wrap:balance;margin:0 0 6px}
#discovery-workspace .discovery-daily-region{margin:0 0 16px;font-size:13px}
#discovery-workspace .discovery-daily-lead{font-size:18px;font-weight:400;line-height:1.7;margin:0 0 8px;text-wrap:pretty}
#discovery-workspace .discovery-daily-summary{font-size:15px;line-height:1.85;margin:0 0 20px}
#discovery-workspace .discovery-daily-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
/* The note of 作ってみたい sits beside its button, not under 知っていましたか (2026-11-04). */
#discovery-workspace .discovery-daily-want-note{font-size:13px;line-height:1.6;color:var(--ink-soft)}
#discovery-workspace .discovery-daily-want-note:empty{display:none}
#discovery-workspace .discovery-daily-want-note a{color:var(--action);text-underline-offset:3px}
#discovery-workspace .discovery-daily-save{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px;border:1px solid var(--control-border);border-radius:24px;background:transparent;color:var(--action);font:14px/1.6 var(--font-sans);cursor:pointer}
#discovery-workspace .discovery-daily-save:hover{background:var(--accent-soft)}
/* The saved state is a fill behind the label (so it can grow from the centre) plus the check drawn once. */
#discovery-workspace .discovery-daily-save::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--accent-soft);scale:0}
#discovery-workspace .discovery-daily-save[aria-pressed=true]{border-color:var(--action)}
#discovery-workspace .discovery-daily-save[aria-pressed=true]::before{scale:1}
#discovery-workspace .discovery-daily-save .fa-check{width:14px;height:14px;vertical-align:0}
#discovery-workspace .discovery-daily-save:disabled{opacity:.55;cursor:wait}
#discovery-workspace .discovery-daily-reactions{align-items:center;gap:8px;margin:20px 0 0}
#discovery-workspace .discovery-daily-reactions>span{flex-basis:100%;font-size:12px;color:var(--ink-soft)}
#discovery-workspace .discovery-daily-reactions button{position:relative;display:inline-flex;align-items:center;justify-content:center;text-align:center;background:transparent;border:1px solid var(--control-border);border-radius:6px;padding:6px 32px;min-height:44px;font:13px/1.6 var(--font-sans)}
#discovery-workspace .discovery-reaction-check{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:14px;height:14px;visibility:hidden}
#discovery-workspace .discovery-daily-reactions button[aria-pressed=true] .discovery-reaction-check{visibility:visible}
/* 2026-11-04: the chosen answer is a sage fill behind the label (so it can grow from the centre, like 作ってみたい) plus
   its check; hover only outlines, so a hovered answer never looks chosen. */
#discovery-workspace .discovery-daily-reactions button{isolation:isolate}
#discovery-workspace .discovery-daily-reactions button::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--accent-soft);scale:0}
#discovery-workspace .discovery-daily-reactions button[aria-pressed=true]{text-decoration:none;color:var(--action);border-color:var(--action);background:transparent}  /* the fill is ::before; daily_dish.css would paint the surface at once */
#discovery-workspace .discovery-daily-reactions button[aria-pressed=true]::before{scale:1}
@media(hover:hover) and (pointer:fine){#discovery-workspace .discovery-daily-reactions button:hover{text-decoration:none;color:var(--action);border-color:var(--action)}}
#discovery-workspace .discovery-daily-reactions .discovery-reaction-check path{stroke-dasharray:20}
#discovery-workspace .discovery-daily-context{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;border-top:1px solid var(--rule);padding-top:20px;margin-top:20px}
#discovery-workspace .discovery-daily-map{margin:0;max-width:360px}
#discovery-workspace .discovery-daily-photo>figcaption{font:12px/1.6 var(--font-sans);color:var(--ink-soft);margin-top:8px}
#discovery-workspace .discovery-daily-map figcaption{font-size:12px;line-height:1.6}
#discovery-workspace .discovery-daily-cue{margin:0;font-size:13px;line-height:1.7}
#discovery-workspace .discovery-daily-cue summary,#discovery-workspace .discovery-daily-origin summary{min-height:44px;box-sizing:border-box;padding:10px 0;color:var(--action);cursor:pointer;font-size:13px;line-height:1.7;text-underline-offset:4px}
#discovery-workspace .discovery-daily-cue summary:hover,#discovery-workspace .discovery-daily-origin summary:hover{text-decoration:underline}
#discovery-workspace .discovery-daily-cue p{font-size:12px;color:var(--ink-soft);margin:4px 0 12px}
#discovery-workspace .discovery-daily-cue dl{margin:0}
#discovery-workspace .discovery-daily-cue dl>div+div{margin-top:12px}
#discovery-workspace .discovery-daily-cue dt{font-weight:600}
#discovery-workspace .discovery-daily-cue dd{margin:2px 0 0}
#discovery-workspace .discovery-daily .discovery-daily-result{background:none;border:0;border-radius:0;padding:0;margin:0 0 16px;font-size:14px;color:var(--action)}
#discovery-workspace .discovery-daily-result span{font-size:12px}
#discovery-workspace .discovery-daily .discovery-daily-origin{padding:20px 0 0;background:transparent;border-radius:0;border-top:1px solid var(--rule);color:var(--ink)}
#discovery-workspace .discovery-daily-origin h3{font-size:16px;font-weight:500;color:var(--ink);letter-spacing:0;margin:0 0 10px}
#discovery-workspace .discovery-daily-origin p{font-size:14px;line-height:1.85}
#discovery-workspace .discovery-daily-origin-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 16px;margin-top:8px;color:var(--ink-soft);font-size:12px}
#discovery-workspace .discovery-daily-origin-source{margin:0!important;min-width:0}
#discovery-workspace .discovery-daily-origin-source[open]{flex-basis:100%}
#discovery-workspace .discovery-daily-origin-source a{display:block;padding:4px 0;line-height:1.7;overflow-wrap:anywhere;text-underline-offset:3px}
#discovery-workspace .discovery-daily-origin-source>span[aria-hidden]{display:none}
#discovery-workspace .discovery-daily-share{border:0;margin-top:8px;padding:0}
#discovery-workspace .assembly-home-week-heading{display:block;margin-bottom:12px}
#discovery-workspace .assembly-home-series{display:block;color:var(--ink-soft);font-size:13px;margin-bottom:8px}
#discovery-workspace .assembly-home-section .assembly-home-week-title{font-size:clamp(24px,2.5vw,30px);margin:0;line-height:1.5}
#discovery-workspace .assembly-home-reason{color:var(--ink);font-size:14px;line-height:1.75}
@media(max-width:1100px) and (min-width:701px){
 #discovery-workspace .discovery-daily-context{grid-template-columns:1fr}
}
@media(max-width:700px){
 #discovery-workspace .discovery-daily{padding:8px 0 24px;gap:16px}
 #discovery-workspace .discovery-daily-date{margin:0}
 #discovery-workspace .discovery-daily-dish h2{font-size:24px}
 #discovery-workspace .discovery-daily-region{margin-bottom:16px}
 #discovery-workspace .discovery-daily-lead{font-size:17px}
 #discovery-workspace .discovery-daily-context{grid-template-columns:1fr;gap:8px}
 #discovery-workspace .discovery-daily-map{max-width:260px}
 #discovery-workspace .discovery-daily-dish .discovery-daily-origin{margin:24px 0 0}
 #discovery-workspace .assembly-home-reason{font-size:13px}
}

/* Section headings retain the editorial style; the reference image sets dish names in Mincho. */
#discovery-workspace :is(.discovery-daily-quiz h2,.discovery-daily-origin h3,.discovery-daily-pair h3,.discovery-dish-map h2){font-family:var(--font-editorial);font-weight:400;letter-spacing:0}
#discovery-workspace :is(.discovery-daily-dish h2,.discovery-daily-pair strong){font-family:var(--font-editorial);font-weight:400}
#discovery-workspace :is(.discovery-daily-lead,.assembly-home-intro,.assembly-home-reason){font-family:var(--font-sans)}

/* Keep daily discovery light and the following collection within easy reach. */
#discovery-workspace .discovery-daily-quiz>p{text-wrap:pretty}
#discovery-workspace .discovery-daily-choices button{min-height:48px;padding:8px 12px}
#discovery-workspace .discovery-daily-quiz [data-daily-skip]{display:inline-flex;align-items:center;gap:8px;color:var(--action)}
#discovery-workspace .discovery-daily-quiz [data-daily-skip] svg{width:18px;height:18px;flex:none}
#discovery-workspace .discovery-dish-map{padding:16px 0 24px}
#discovery-workspace .discovery-dish-map h2{margin-bottom:6px}
#discovery-workspace .discovery-dish-map-intro{font:14px/1.7 var(--font-sans);color:var(--ink-soft);margin:0 0 16px;text-wrap:pretty}
#discovery-workspace .discovery-dish-map-figure{max-width:600px}
#discovery-workspace .discovery-dish-map-total{font-size:12px}
@media(min-width:701px){#discovery-workspace .assembly-home-section{margin-top:40px}}

/* Motion, phase 1 (docs/ui/motion-adoption-20261102.md): reaction buttons change surface in one short step. */
@media(prefers-reduced-motion:no-preference){
 #discovery-workspace .discovery-daily-reactions button{transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease,transform 160ms cubic-bezier(.16,1,.3,1)}
 #discovery-workspace .discovery-daily-reactions button:active{transform:scale(.97)}
 /* 初めて見た／知ってた: the card is redrawn after the answer is kept, so the fresh buttons carry one-shot classes — the
    chosen one fills from the centre and draws its check, the one given up (switched or taken back) empties. */
 #discovery-workspace .discovery-daily-reactions button.fa-check-new::before{animation:fa-fill-centre 240ms cubic-bezier(.16,1,.3,1) both}
 #discovery-workspace .discovery-daily-reactions button.fa-check-new .discovery-reaction-check path{animation:fa-check-draw 200ms ease-out 80ms both}
 #discovery-workspace .discovery-daily-reactions button.fa-fill-off::before{animation:fa-fill-centre 160ms ease-in reverse both}
 #discovery-workspace .discovery-daily-after.fa-note-again{animation:fa-note-again 160ms ease-out both}
 #discovery-workspace .discovery-daily-want-note.fa-note-new{animation:fa-note-rise 220ms cubic-bezier(.16,1,.3,1) both}
 #discovery-workspace .discovery-daily-want-note.fa-note-again{animation:fa-note-again 160ms ease-out both}
 /* 作ってみたい → 保存済み (docs/ui/motion-adoption-20261102.md, 追記 11/03): the card is redrawn after the save, so
    the fresh button carries fa-check-new (fill grows from the centre over 240ms, check draws) or fa-fill-off
    (fill shrinks over 160ms, no check). The note below rises once per message (fa-note-new). */
 #discovery-workspace .discovery-daily-save{transition:background-color 160ms ease,border-color 160ms ease,transform 160ms cubic-bezier(.16,1,.3,1)}
 #discovery-workspace .discovery-daily-save:active{transform:scale(.97)}
 #discovery-workspace .discovery-daily-save.fa-check-new::before{animation:fa-fill-centre 240ms cubic-bezier(.16,1,.3,1) both}
 #discovery-workspace .discovery-daily-save.fa-fill-off::before{animation:fa-fill-centre 160ms ease-in reverse both}
 #discovery-workspace .discovery-daily-after.fa-note-new{animation:fa-note-rise 220ms cubic-bezier(.16,1,.3,1) both}
}
@keyframes fa-fill-centre{from{scale:0}to{scale:1}}
@keyframes fa-note-rise{from{opacity:0;translate:0 6px}to{opacity:1;translate:none}}
@keyframes fa-note-again{from{opacity:.35}to{opacity:1}}
/* The note under the answers keeps its line even when empty, so the first 記録しました。 does not push the page down. */
#discovery-workspace .discovery-daily-reactions+.discovery-daily-after:empty{display:block}
/* 2026-11-03 wide windows: the home uses the shared content frame (workspace_shell.css, at most 1600px). Inside
   it the choices stop at 520px, the unanswered card previews what opens, and the map section sits side by side. */
body.discovery-home-open #discovery-workspace .discovery-daily-choices{max-width:520px}
/* Before the answer: what opens once you answer, so the column beside the photo does not end at the choices. */
#discovery-workspace .discovery-daily-teaser{margin:28px 0 0;padding:16px 0 0;border-top:1px solid var(--rule);max-width:520px}
#discovery-workspace .discovery-daily-teaser p{margin:0 0 8px;font-size:12px;letter-spacing:.04em;color:var(--ink-soft)}
#discovery-workspace .discovery-daily-teaser ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
#discovery-workspace .discovery-daily-teaser li{position:relative;padding-left:18px;font-size:14px;line-height:1.7;color:var(--ink)}
#discovery-workspace .discovery-daily-teaser li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--action);opacity:.55}
#discovery-workspace .discovery-daily-teaser li[hidden]{display:none}
/* The map takes most of the reading width; its counts sit beside it, not across an empty half. */
@media(min-width:901px){body.discovery-home-open #discovery-workspace .discovery-dish-map{grid-template-columns:minmax(0,760px) minmax(160px,1fr)}body.discovery-home-open #discovery-workspace .discovery-dish-map-count{align-self:end;padding-bottom:6px}body.discovery-home-open #discovery-workspace .discovery-dish-map-figure{max-width:760px}}
/* Wide frames (1280px and up): the question column keeps a reading width and the photo takes the rest, so the
   frame is filled by the picture rather than by gaps; the map grows to most of the row. */
@media(min-width:1280px){
 body.discovery-home-open #discovery-workspace .discovery-daily{grid-template-columns:minmax(0,600px) minmax(0,1fr);gap:36px 64px}
 body.discovery-home-open #discovery-workspace .discovery-daily-photo{max-width:none;justify-self:stretch}
 body.discovery-home-open #discovery-workspace .discovery-daily-photo img{width:100%;aspect-ratio:3/2;max-height:620px;object-fit:cover}
 /* The map's heading, note and counts read together in the column beside it. */
 body.discovery-home-open #discovery-workspace .discovery-dish-map{grid-template-columns:minmax(0,1040px) minmax(240px,1fr);grid-template-rows:auto auto 1fr;column-gap:48px;align-items:start}
 body.discovery-home-open #discovery-workspace .discovery-dish-map-figure{max-width:1040px;grid-column:1;grid-row:1/4}
 body.discovery-home-open #discovery-workspace .discovery-dish-map h2{grid-column:2;grid-row:1;margin-top:4px}
 body.discovery-home-open #discovery-workspace .discovery-dish-map-intro{grid-column:2;grid-row:2}
 body.discovery-home-open #discovery-workspace .discovery-dish-map-count{grid-column:2;grid-row:3;align-self:start;padding-bottom:0}
}
