/* Shared palette: soft white, stone and charcoal; lilac is reserved for interactions. */
:root {
  color-scheme: light;
  --paper: #fcfbf9;
  --ink: #29252d;
  --muted: #787179;
  --line: #e2ded8;
  --green: #3c3541;
  --clay: #716779;
  --surface: #ffffff;
  --wash: #f1efeb;
  --tint: #e9e4dd;
  --sans: var(--site-sans, "Noto Sans JP", sans-serif);
  --serif: var(--site-serif, "Noto Serif JP", "Yu Mincho", serif);
}
.feature-page { --serif: var(--site-serif, "Noto Serif JP", "Yu Mincho", serif); }
.section-heading h2, .detail-hero h1 { text-wrap: balance; }
.brand > span { background: var(--tint); color: var(--green); }
.site-header nav > .my-note-link:hover { background: var(--wash); }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: #17151c; border-color: #17151c; }
.entry-row button[aria-pressed="true"],
.mode-tabs button[aria-pressed="true"], .group-tabs button[aria-pressed="true"] {
  background: var(--tint); color: var(--green); border-color: #cec4cf;
}
.explorer-shell { border-radius: 18px; }
.graph-column, .node-note { background: var(--wash); }
.graph-node { --node-accent: #62586c; --node-tint: #ede7f0; }
.graph-node.ingredient { --node-accent: #476882; --node-tint: #e3ebf0; }
.graph-node.contrast { --node-accent: #79657d; --node-tint: #eee6ef; }
.graph-node.pairing { --node-accent: #6d6381; --node-tint: #eae6f0; }
.graph-center:not(.has-photo) { background: var(--tint); color: var(--ink); }
.edge-tip { fill: var(--wash); }
.graph-next:not([hidden]) { border-color: var(--line); }
.graph-next:hover { background: var(--wash); border-color: #b9aebf; }
.graph-next-page { border-color: var(--line); }
.graph-next-icon { background: var(--tint); color: var(--green); }
.fact-tags span, .taste-note, .detail-comparison, .group-note { background: var(--wash); }
.group-note { border-color: #b9aebf; }
.card-heading > span { color: var(--muted); }
.save-banner { background: var(--wash); border-radius: 20px; }
.taste-guide .taste-rating, .taste-choice span { color: var(--green); }
.taste-rating [aria-hidden] { color: var(--muted); }
.taste-choice input:checked + span { background: var(--tint); color: var(--green); border-color: #9d8da5; }
.catalog-thumb { background: var(--wash); }
.compact-save:hover, .dining-intro, .dish-dining, .note-form, .note-drink-type { background: var(--wash); }
.note-card summary:hover .note-open-label, .note-card details[open] .note-open-label { background: var(--tint); }
.note-form :is(textarea, select) { border-color: #cdc3ce; }
.note-estimate { color: var(--green); }
.note-delete, #note-delete-error:not(:empty) { color: #934b57; }
.note-delete-actions .note-delete-confirm { background: #934b57; border-color: #934b57; }
.dish-keyword-explorer { --branch-ink: #a096a5; background: var(--wash); border-color: var(--line); }
.dish-keyword-center { background: var(--tint); }
.dish-keyword-term { background: var(--surface); color: var(--ink); border-color: #cdc3ce; }
.dish-keyword-term[data-kind="taste"] { background: #e3ebf0; color: #476882; border-color: #b6c8d4; }
.dish-keyword-term[data-kind="ingredient"] { background: var(--tint); color: var(--green); border-color: #cdc3ce; }
.dish-keyword-dishes a, .dish-keyword-actions [data-keyword-refine] { border-color: #cdc3ce; }
.dish-keyword-actions [aria-pressed="true"] { background: var(--tint); }
.browse-feature { border-color: var(--line); background: var(--wash); }
.scene-kicker, .feature-eyebrow, .scene-advertising, .scene-source, .scene-traits { color: var(--green); }
.scene-watch { background: var(--green); border-color: var(--green); }
.scene-watch:hover { background: #17151c; }
.scene-player { background: var(--wash); }
.scene-video { min-height: 200px; }
.scene-save { border-color: #b9aebf; }
.scene-save:hover, .scene-save[aria-pressed="true"] { background: var(--tint); }
.scene-traits li::before { color: #aa9aaf; }
.feature-page a:hover { color: var(--green); }
.feature-page :focus-visible, .feature-language select:focus-visible { outline-color: var(--green); }
:focus-visible { outline-color: var(--green); }
.catalog-pagination { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 12px; border-top: 1px solid var(--line); }
.catalog-pagination[hidden] { display: none; }
.catalog-pagination button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: min(100%, 260px); min-height: 52px; padding: 12px 22px; border: 1px solid #b9aebf; border-radius: 5px; color: var(--green); background: var(--surface); font-size: 13px; font-weight: 600; }
.catalog-pagination button:hover { background: var(--tint); border-color: var(--green); }
.catalog-pagination button > [aria-hidden] { font-size: 20px; line-height: 1; }
.catalog-pagination p { color: var(--muted); font-size: 11px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .catalog-pagination button { transition: background-color 180ms ease, transform 180ms ease; } .catalog-pagination button:hover { transform: translateY(-1px); } }
@media (max-width: 600px) { .explorer-shell, .save-banner { border-radius: 16px; } }
html[lang=en] .door-preview-title>span{display:none}
html[lang=en] .cover-copy h1{font-size:clamp(20px,4.5vw,68px);letter-spacing:-.045em}
html[lang=en] .cover-title-main{font-size:1.35em;white-space:nowrap}
html[lang=en] .note-chart-switch{flex-wrap:wrap}
.graph-node .node-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html[lang=en] .graph-node .node-kind{font-size:9px;line-height:1.35}
html[lang=en] .graph-node .node-title strong{font-size:15px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html[lang=en] .graph-node .node-note{font-size:10px;line-height:1.4}
html[lang=en] .graph-node small{font-size:10px;line-height:1.4}

/* Shared photo motion. Individual scale preserves the cover's transform animation. */
.privacy-footer-link{display:inline-block;margin:12px 18px 12px 0;font:12px var(--site-sans);text-underline-offset:5px}
.scene-video.scene-video-pending{aspect-ratio:auto;min-height:0;background:transparent}
.scene-consent{max-width:680px;margin:24px auto;padding:20px;border:1px solid var(--line);border-radius:8px;line-height:1.9;background:var(--surface,#fff);color:var(--ink,#302b36)}
.scene-consent p{font-size:13px;margin:0 0 16px}
.scene-consent button{min-height:46px;padding:12px 20px;border:1px solid #342e3d;border-radius:6px;background:#342e3d;color:white;font:500 13px var(--site-sans);cursor:pointer}
.scene-consent a{display:block;margin-top:15px;font-size:12px;text-underline-offset:4px}
.photo-frame{display:block;overflow:hidden}
.photo-frame>img{display:block}
.cover-stage{--photo-hover-scale:1.025}
.scene-photo>.photo-frame{border-radius:8px}
.scene-related-photo img{display:block;width:100%;height:100%;object-fit:cover}
.trip-export-page{overflow:hidden}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  :root img:not([data-no-photo-zoom]){transition:scale 420ms cubic-bezier(.22,1,.36,1),filter 250ms ease}
  :root img:not([data-no-photo-zoom]):hover,
  :root :is(.photo-frame,.graph-center,.cover-stage,.scene-entry-photo,.spot-card-visual,.spot-door-photo,.note-rec-image,.note-favorite-photo,.trip-card-photo):hover img:not([data-no-photo-zoom]),
  :root :is(a,button,summary):focus-visible img:not([data-no-photo-zoom]){scale:var(--photo-hover-scale,1.05)}
}

/* Thai shaping and dictionary line breaks; Mongolian uses the existing Cyrillic coverage. */
html[lang=th] :is(h1,h2,h3,p,a,button,label){word-break:normal;line-break:auto}
html[lang=th] :is(h1,h2,h3){line-height:1.5}

/* Hover is a mouse preview, not persistent filter selection on touch screens. */
@media (hover:hover) and (pointer:fine){
 .entry-row button:hover:not([aria-pressed="true"]){background:var(--wash);color:var(--green);border-color:#cec4cf}
}
