/* Know How glossary additions, JK1 (2 Dec 2026): Japanese terms, Dishes type, cuisine filter,
   borderless mini cards, Japanese Know How hub. Loaded after glossary-index.css. */

/* Theme menu: cuisine items sit after the types, set apart by space only (no rules or borders). */
.gi-themes li.gi-theme-cuisine--first{margin-left:18px}
@media (max-width:620px){
  .gi-themes li.gi-theme-cuisine--first{margin-left:10px}
}

/* Mini cards: no borders (house rule). Hover/focus shows a soft tint instead. */
.gi-card{
  border:0;
  box-shadow:none;
  background:#fff;
}
.gi-card:hover,
.gi-card:focus-visible{
  background:#f6f4ef;
  outline:none;
}
.gi-card:focus-visible{box-shadow:0 0 0 2px var(--eo-ink,#16141f)}
.gi-card .gi-def{-webkit-line-clamp:3}

/* Empty media placeholder (no picture yet). */
.gi-media--empty{width:44px;height:44px;border-radius:8px;background:#f1efe8}
.gi-card .gi-media--empty{width:72px;height:72px}
@media (max-width:620px){
  .gi-card .gi-media--empty{width:56px;height:56px}
}

/* Term pages: names, type and also-called sit in the hero as quiet lines, no boxes. */
.gt-native{
  margin:.15rem 0 .35rem;
  font:400 1.02rem/1.4 var(--eo-sans,system-ui,sans-serif);
  color:var(--eo-muted,#5c5748);
}
.gt-meta{
  display:flex;
  flex-wrap:wrap;
  gap:2px 0;
  list-style:none;
  margin:8px 0 0;
  padding:0;
  font:500 .82rem/1.45 var(--eo-sans,system-ui,sans-serif);
  color:var(--eo-muted,#5c5748);
}
.gt-meta li:not(:last-child)::after{content:"·";margin:0 .55em;color:#b3b0a8}
.gt-meta a{color:inherit}
.gt-also{margin:6px 0 0;font-size:.95rem;color:var(--eo-muted,#5c5748)}
.gt-photo--placeholder{margin:0;min-height:0}
.gt-photo__empty{
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:4/3;width:100%;
  background:#f1efe8;border-radius:8px;color:#8a867c;
  font:500 .92rem/1.35 var(--eo-sans,system-ui,sans-serif);
  text-align:center;padding:16px;box-sizing:border-box;
}
.gt-safety p,.gt-def p{max-width:62ch}
#safety,#definition,#description,#uses,#related,#guides,#sources{scroll-margin-top:72px}
.gt-sources{
  margin:.4rem 0 0;padding:0 0 0 1.25rem;max-width:68ch;
  font-size:.88rem;line-height:1.45;color:#2a2833;
}
.gt-sources li{margin:0 0 .45em}
.gt-sources a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#related ul{
  display:flex;flex-wrap:wrap;gap:8px 16px;
  list-style:none;margin:.4rem 0 0;padding:0;max-width:70ch;
}
#related li{margin:0}
#related .gt-unlinked{color:#2a2833}
.gt-guides{margin:.4rem 0 0;padding:0 0 0 1.1rem;max-width:68ch}
.gt-guides li{margin:0 0 .35em}

/* Japanese Know How hub (Hub Page Standard): intro side by side from 700px, cards show the full summary. */
.jk-hub .kh-home-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:10px 28px;margin:0 0 14px}
@media (min-width:700px){
  .jk-hub .kh-home-intro{grid-template-columns:1fr 1fr}
}
.jk-hub .kh-home-intro-col .kh-subh{margin-top:0}
.jk-hub .kh-intro{max-width:none}
.jk-hub .gi-card .gi-def{-webkit-line-clamp:unset;display:block;overflow:visible}
.gi-card .gi-def{flex:0 0 auto}
.gi-cards > li:has(> .gi-hide){display:none}

/* COL-205 (3 Dec 2026): white page background on glossary and other pages
   that load this file. New-format standard is a white background except on
   recipes. This stylesheet is not linked from recipe pages, so recipe cream
   (.rx-body in recipe.css / --eo-paper in eatingout.css) is left alone.
   Do not move this override into recipe.css or eatingout.css. */
body.rx-body.eo-body,
body.eo-body.gd-body{
  background:#fff;
  background-image:none;
  color:#16141f;
}

/* Phone body text: term definitions used font-size:1.08rem in a page style
   block (17.28px at a 16px root). Standard is 16px on phones, 17px on desktop.
   `body .gt-def` beats the inline `.gt-def` rule. Desktop 17.28px on .gt-def
   is left as it is. */
@media (max-width:620px){
  body.rx-body.eo-body,
  body.eo-body.gd-body{font-size:16px}
  body .gt-def{font-size:16px}
}
