/* Japanese hub redesign, preview 2 Dec 2026 (nothing uploaded).
   Slim title bar, one-row menu bar, sticky menu + breadcrumb (breadcrumb below the menu), two-part intro, borderless mini cards.
   Loaded after kh-thin-bars.css on /Japanese/ pages and on the Japanese term pages.
   Search-bar tweaks are scoped to body.jh-body only and do not change the shared header CSS. */

/* ---- site search: a fraction shorter, on these pages only (does not edit cookery-header.css). */
body.jh-body .rx-searchbar,
body.jh-body.rx-body .rx-searchbar{
  padding-top:3px !important;
  padding-bottom:3px !important;
}
body.jh-body .rx-searchbar .cookery-search--1btn input[type=search],
body.jh-body:not(.cn-framebar) .rx-searchbar .cookery-search--1btn input[type=search]{
  height:24px;
  padding-top:3px;
  padding-bottom:3px;
}
body.jh-body .rx-searchbar .cookery-search--1btn .cs-seg,
body.jh-body:not(.cn-framebar) .rx-searchbar .cookery-search--1btn .cs-seg{
  min-height:24px;
  height:24px;
}
@media (max-width:540px){
  body.jh-body .rx-searchbar .cookery-search--1btn input[type=search],
  body.jh-body:not(.cn-framebar) .rx-searchbar .cookery-search--1btn input[type=search]{
    height:32px; /* was 36px in the shared header; 16px type kept so iOS does not zoom */
    font-size:16px;
  }
  body.jh-body .rx-searchbar .cookery-search--1btn .cs-seg,
  body.jh-body:not(.cn-framebar) .rx-searchbar .cookery-search--1btn .cs-seg{
    min-height:32px;
    height:32px;
  }
}

/* ---- body stack (Rule 63 / Hub Page Standard): Segoe UI, Roboto, Helvetica Neue, Arial 400.
   eatingout.css --eo-sans omits Helvetica Neue; scope the agreed stack to Japan guide pages only. */
body.jh-body,
body.jh-body.eo-body,
body.jh-body.rx-body{
  font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-weight:400;
}

/* ---- title bar: one line, no description, a bit slimmer than the 61px Know How bar.
   Type and shadow match the live/stage standard (eatingout.css new-look + kh-thin-bars.css):
   short name in CO Oswald 700, ink black, text-shadow 4px 4px 0 rgba(22,20,31,.35);
   Know How tag in CO Kalam 700; count in CO Oswald 700 with 2px 2px 0 rgba(22,20,31,.3). */
.jh-body .jh-t{display:contents;margin:0;font:inherit}
.jh-sr{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)
}
/* Count sits at the right end of the title bar (Bill, 3 Dec 2026). */
body.jh-body.kh-thin .eo-mast .eo-wrap{position:relative}
body.jh-body.kh-thin .eo-mast .eo-count{
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  margin:0;white-space:nowrap;z-index:2;pointer-events:none;
  color:#16141f;
  font:700 .78rem/1.2 "CO Oswald",Oswald,"Arial Narrow",sans-serif;
  letter-spacing:.05em;
  text-shadow:2px 2px 0 rgba(22,20,31,.3);
}
body.jh-body.kh-thin .eo-mast .eo-brand > span{padding-right:6rem}
body.jh-body.kh-thin .eo-mast{
  height:52px;
  min-height:52px;
  border-top-width:3px;
  border-bottom-width:3px;
  overflow:visible; /* so the title text-shadow is not clipped */
}
body.jh-body.kh-thin .eo-mast .eo-wrap{
  height:46px;
  min-height:46px;
  padding:0 12px;
  overflow:visible;
}
body.jh-body.kh-thin .eo-mast .eo-brand b,
body.jh-body .jh-short{
  font-family:"CO Oswald",Oswald,"Arial Narrow",sans-serif !important;
  font-weight:700 !important;
  font-size:clamp(1.02rem,2.4vw,1.22rem);
  line-height:1 !important;
  letter-spacing:.02em;
  color:var(--eo-ink,#16141f);
  -webkit-text-stroke:0 !important;
  paint-order:normal;
  text-shadow:4px 4px 0 rgba(22,20,31,.35);
  white-space:nowrap;
}
body.jh-body.kh-thin .eo-mast .eo-brand > span{display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
body.jh-body.kh-thin .eo-mast .eo-brand i{
  margin-top:0;flex:0 0 auto;white-space:nowrap;
  background:#fff;font-size:.72rem;line-height:1.15;padding:1px 7px;
  font-family:"CO Kalam",Kalam,"Comic Sans MS",cursive !important;
  font-style:normal !important;
  font-weight:700 !important;
}
body.jh-body.kh-thin .eo-mast .eo-brand img,
body.jh-body.kh-thin .eo-mast:has(.eo-brand) .eo-brand img{height:30px;max-width:34px}
@media (max-width:620px){
  /* Shorter still on a phone (Bill, 2 Dec 23:43). Tap target at least 36px. */
  body.jh-body.kh-thin .eo-mast{height:40px !important;min-height:40px !important;border-top-width:2px !important;border-bottom-width:2px !important;overflow:visible !important}
  body.jh-body.kh-thin .eo-mast .eo-wrap{height:36px !important;min-height:36px !important;padding:0 10px !important;position:relative;overflow:visible}
  body.jh-body.kh-thin .eo-mast .eo-brand{min-height:36px;align-items:center}
  body.jh-body.kh-thin .eo-mast .eo-brand > span{flex-wrap:nowrap !important;padding-right:5.75rem}
  body.jh-body.kh-thin .eo-mast .eo-count{
    position:absolute !important;right:10px !important;top:50% !important;
    transform:translateY(-50%) !important;margin:0 !important;font-size:.72rem
  }
  body.jh-body.kh-thin .eo-mast .eo-brand > span{gap:6px;padding-right:5.75rem}
  body.jh-body.kh-thin .eo-mast .eo-brand b,
  body.jh-body .jh-short{font-size:1rem}
  body.jh-body.kh-thin .eo-mast .eo-brand i{font-size:.62rem;padding:1px 5px;white-space:nowrap}
  body.jh-body.kh-thin .eo-mast .eo-brand img,
  body.jh-body.kh-thin .eo-mast:has(.eo-brand) .eo-brand img{height:24px !important;max-width:28px !important}
}

/* ---- menu bar: one row, scrolls sideways. Sticky with the breadcrumb underneath (.jh-stick).
   Variant: add ?bar=trail to any page URL (kept for the session) and only the trail line sticks. */
body.jh-body .eo-subnav{position:static}
.jh-stick{position:sticky;top:0;z-index:40;background:#fff;box-shadow:0 5px 10px rgba(60,60,60,.3)}
body.jh-trail-only .jh-stick{display:contents}
body.jh-trail-only .jh-trail{position:sticky;top:0;z-index:40;box-shadow:0 5px 10px rgba(60,60,60,.25)}
body.jh-body .jh-stick .eo-subnav{border-bottom-width:0}
body.jh-body .jh-stick .eo-subnav a,
body.jh-body .eo-subnav.jh-menu a{
  padding:6px 10px 5px;
  font-size:.8rem;
  letter-spacing:.06em;
}
@media (max-width:620px){
  /* Shorter menu bar, 36px minimum tap (Bill, 2 Dec 23:43). */
  body.jh-body .jh-stick .eo-subnav ul,
  body.jh-body .eo-subnav.jh-menu ul{padding:0 !important}
  body.jh-body .jh-stick .eo-subnav a,
  body.jh-body .eo-subnav.jh-menu a{
    padding:0 5px;
    font-size:.7rem;
    letter-spacing:.02em;
    min-height:36px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
  }
}
body.jh-body .eo-subnav ul{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
.jh-search-mini{display:none}

/* ---- breadcrumb trail: sits below the menu; every level tappable.
   Phone: wrap onto a second line; never hide levels (BC-A, 3 Dec 2026). */
.jh-trail{background:#fff}
.jh-trail ol{
  list-style:none;margin:0 auto;padding:0 6px;max-width:1180px;
  display:flex;flex-wrap:wrap;align-items:center;overflow:visible;
  font:500 .8rem/1.2 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  min-height:30px;
}
.jh-trail li{flex:0 0 auto;display:flex;align-items:center;white-space:nowrap}
.jh-trail li + li::before{content:"\203A";color:#8a867c;margin:0 .12em}
.jh-trail a{display:block;padding:6px 7px;color:#16141f;text-decoration:none}
.jh-trail a:hover,.jh-trail a:focus-visible{text-decoration:underline;text-underline-offset:3px;outline:none}
.jh-trail .jh-cur{flex:0 1 auto;min-width:0}
.jh-trail .jh-cur span{display:block;padding:6px 7px;font-weight:700;overflow:visible;white-space:normal}
.jh-trail .jh-home{display:none}
.jh-trail .jh-home a{display:flex;align-items:center;padding:6px 8px 6px 6px}
.jh-trail .jh-home svg{display:block;width:15px;height:15px}
@media (max-width:620px){
  .jh-trail ol{padding:0 4px;font-size:.78rem;min-height:28px}
  .jh-trail a,.jh-trail .jh-cur span{padding:5px 6px}
}

/* ---- intro: two parts, side by side on desktop; bold first line + Read more on a phone */
.jh-greet{
  margin:14px 0 0;
  font:800 1.5rem/1.2 "CO Title","Arial Black",sans-serif;
  color:var(--eo-ink,#16141f);
}
.jh-greet + .jh-intro{margin-top:2px}
.jh-signoff{
  margin:28px 0 10px;
  font:400 1em/1.5 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--eo-ink,#16141f);
}
.jh-intro{display:grid;grid-template-columns:1fr 1fr;gap:6px 36px;margin:14px 0 10px}
.jh-part h2{margin:0 0 4px;font:800 1.25rem/1.15 "CO Title","Arial Black",sans-serif;color:var(--eo-ink,#16141f)}
.jh-part p{margin:0;font:400 1em/1.6 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;max-width:60ch;color:var(--eo-ink,#16141f)}
.jh-lead{font-weight:400;color:inherit}
.jh-more{display:none}
.jh-count[hidden]{display:none}
/* Solid black rule after the intro, before the section/mini cards (Bill, 3 Dec). */
.jh-rule{display:block;border:0;border-top:2px solid #000;margin:0 0 16px;width:100%;height:0;padding:0}
@media (max-width:759px){
  /* ~10px more space under the sticky breadcrumb (Bill, 3 Dec). Headings stay bold; body is normal weight. */
  .jh-intro{grid-template-columns:1fr;gap:6px;margin:16px 0 8px}
  .jh-greet{font-size:1.3rem;margin:14px 0 0}
  .jh-greet + .jh-intro{margin-top:2px}
  .jh-signoff{margin:20px 0 8px}
  .jh-part h2{font-size:1rem;margin-bottom:2px;letter-spacing:0;font-weight:800}
  .jh-part p{font-size:1em;line-height:1.5;font-weight:400;color:var(--eo-ink,#16141f)}
  .jh-lead{font-weight:400;color:inherit}
  .jh-js .jh-part:not(.is-open) .jh-rest{display:none}
  .jh-js .jh-more{display:inline;margin:0;padding:0;border:0;background:none;
    font:600 .82rem/1.2 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#0b5cad;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
  .jh-rule{margin:0 0 12px}
}

/* ---- page title for list pages (the h1 lives in the title bar; this is a quiet count line) */
.jh-count{margin:4px 0 10px;font:500 .85rem/1.3 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--eo-muted,#5c5748)}
.jh-none{margin:10px 0;color:var(--eo-muted,#5c5748)}

/* ---- tools row: search, filter chips, A-Z */
.jh-tools{margin:4px 0 4px}
.jh-search{display:block;width:100%;max-width:30rem;box-sizing:border-box;margin:0 0 6px;padding:7px 12px;
  font:400 1rem/1.3 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;border:0;border-radius:999px;background:#fff;box-shadow:0 1px 6px rgba(60,60,60,.28);outline:0}
.jh-search:focus-visible{box-shadow:0 0 0 2px var(--eo-ink,#16141f)}
.jh-chips,.jh-az{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.jh-chips::-webkit-scrollbar,.jh-az::-webkit-scrollbar{display:none}
.jh-chips li,.jh-az li{flex:0 0 auto}
.jh-chips button{border:0;border-radius:999px;background:#ece8dd;color:#16141f;padding:7px 14px;cursor:pointer;
  font:600 .85rem/1.1 var(--eo-sans,system-ui,sans-serif)}
.jh-chips button[aria-pressed="true"]{background:#16141f;color:#fff}
.jh-az{gap:0}
.jh-az a,.jh-az span{display:block;padding:7px 9px;font:700 .9rem/1 var(--eo-label,system-ui,sans-serif);color:#16141f;text-decoration:none}
.jh-az span{color:#b3b0a8}
.jh-az a:hover,.jh-az a:focus-visible{box-shadow:inset 0 -3px 0 #16141f;outline:none}
.jh-az a.is-dim{color:#b3b0a8}

/* ---- mini cards: borderless, fixed compact size, square picture + name (+ short description) */
.jh-h{margin:12px 0 8px;font:800 1.05rem/1.2 "CO Title","Arial Black",sans-serif;color:var(--eo-ink,#16141f)}
@media (max-width:620px){.jh-h{margin:8px 0 6px;font-size:.95rem}}
.jh-cards{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:12px;
  grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:620px){.jh-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media (min-width:860px){.jh-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1100px){.jh-cards{grid-template-columns:repeat(5,minmax(0,1fr))}}
.jh-cards--top{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:700px){.jh-cards--top{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1000px){.jh-cards--top{grid-template-columns:repeat(6,minmax(0,1fr))}}
.jh-cards > li{margin:0;min-width:0}
.jh-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box;border:0;box-shadow:none;border-radius:10px;
  background:#fff;color:var(--eo-ink,#16141f);text-decoration:none;overflow:hidden}
body.jh-body a.jh-card,
body.jh-body a.jh-card:link,
body.jh-body a.jh-card:visited,
body.jh-body a.jh-card .jh-name,
body.jh-body a.jh-card .jh-desc{color:var(--eo-ink,#16141f)}
.jh-card:hover,.jh-card:focus-visible{background:#f6f4ef;outline:none}
.jh-card:focus-visible{box-shadow:0 0 0 2px var(--eo-ink,#16141f)}
.jh-img{display:block;aspect-ratio:1/1;width:100%;background:#fff;overflow:hidden}
.jh-img picture{display:block;width:100%;height:100%}
.jh-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border:0;box-shadow:none}
.jh-img--contain img{object-fit:contain;object-position:center}
@media (max-width:619px){
  .jh-img{aspect-ratio:8/3}
}
.jh-name{display:block;padding:8px 10px 0;font:800 .98rem/1.15 "CO Title","Arial Black",sans-serif;color:var(--eo-ink,#16141f)}
.jh-cards--top .jh-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jh-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:3px 10px 10px;
  font:400 1em/1.5 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--eo-ink,#16141f)}
.jh-card--term .jh-desc{-webkit-line-clamp:2}
@media (max-width:619px){
  .jh-name{padding:6px 8px 0;font-size:1em}
  .jh-desc{margin:2px 8px 8px;font-size:1em;line-height:1.45;-webkit-line-clamp:2}
  .jh-cards--top .jh-desc{-webkit-line-clamp:2}
}
.jh-sec{scroll-margin-top:80px}
.jh-letter{margin:8px 0 6px;font:800 1.05rem/1 "CO Title","Arial Black",sans-serif;color:var(--eo-ink,#16141f)}
@media (max-width:619px){.jh-letter{font-size:1rem;margin:6px 0 4px}}

.jh-sec.jh-hide,.jh-cards > li.jh-hide{display:none}

/* ---- letterbox cap for hero pictures and videos on a phone (about 25% of the screen height) */
@media (max-width:619px){
  body.jh-body .gd-hero img,
  body.jh-body .tool-illustration img,
  body.jh-body .gt-photo img,
  body.jh-body .jh-banner img,
  body.jh-body video{
    max-height:25vh;max-height:25svh;width:auto;max-width:100%;height:auto;object-fit:contain;margin-left:auto;margin-right:auto;
  }
  body.jh-body .gt-photo picture{display:block;text-align:center}
  body.jh-body .tool-illustration{margin:8px auto !important}
}

/* ---- Japanese term pages: the hero follows the page's width, hero text first on a phone */
body.jh-body .gd-hero{margin-top:6px}

/* ---- footer links row on list pages */
.jh-body .eo-foot{margin-top:18px}


/* Japan guide pages only (body.jh-body): plain white page background.
   Recipe pages are not given jh-body, so they keep their own background.
   To roll this out sitewide, the dotted paper on .eo-body in eatingout.css
   and the phone cream on .rx-body in recipe.css would need changing;
   do not edit those files for this preview. */
body.jh-body,
body.jh-body.eo-body,
body.jh-body.rx-body,
body.jh-body.gd-body,
html:has(body.jh-body){
  background-color:#fff !important;
  background-image:none !important;
}

