/* Cook Book as a book: slim 64px title bar, chapter pages, front matter, Index A–Z.
   Live 28 Nov 2026 (Bill go-live OK 23:14 UK), from the signed-off mock r15 (home) and Soups r9 (chapters).
   Site fonts and colours only (Rule 63): --eo-display / --eo-label / 'CO Title', ink #16141f, yellow #ffd400, cream. */

/* 1. Title bar: thinner than the 61px Know How bar (r3). */
.cf-head{margin:0}

/* 2. Home: front matter */
.cb-sec{margin:18px 0 22px}
.cb-h2{display:flex;align-items:baseline;gap:10px;margin:0 0 8px;padding-bottom:2px;border-bottom:2px solid var(--eo-ink,#16141f);font:400 1.45rem/1 var(--eo-display,Georgia,serif)}
.cb-h2 small{font:600 .72rem/1 var(--eo-label,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:#5c5748}
.cb-pref{margin:0 0 4px;max-width:62ch;font-size:1.05rem;line-height:1.6}
.cb-sign{margin:0;font:400 1.15rem/1.3 var(--eo-hand,var(--eo-display,Georgia,serif));color:var(--eo-ink,#16141f)}
.cb-sign::before{content:"\2014\00a0"}
.cb-how{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px;max-width:60rem}
.cb-how li{font-size:.95rem;line-height:1.45}
.cb-how b{font-family:var(--eo-label,system-ui,sans-serif);letter-spacing:.02em}
.cb-how a{color:inherit}
/* Contents */
.cb-toc{list-style:none;margin:0;padding:0;columns:2;column-gap:36px;max-width:60rem}
.cb-toc li{break-inside:avoid}
.cb-toc a{display:flex;align-items:baseline;gap:8px;padding:5px 0;text-decoration:none;color:var(--eo-ink,#16141f)}
.cb-toc-no{flex:0 0 1.6em;font:700 .8rem/1 var(--eo-label,system-ui,sans-serif);color:#5c5748;text-align:right}
.cb-toc-nm{font:700 1rem/1.2 var(--eo-label,system-ui,sans-serif);letter-spacing:.01em}
.cb-toc-dots{flex:1 1 auto;min-width:12px;border-bottom:2px dotted #b4b1ba;transform:translateY(-3px)}
.cb-toc-n{font:600 .85rem/1 var(--eo-label,system-ui,sans-serif);color:#5c5748}
.cb-toc a:hover .cb-toc-nm,.cb-toc a:focus-visible .cb-toc-nm{background:#ffd400}
.cb-toc a:focus-visible{outline:none}
.cb-toc-extra{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px;font:600 .85rem/1.3 var(--eo-label,system-ui,sans-serif)}
.cb-toc-extra a{color:var(--eo-ink,#16141f)}
.cb-index-h{margin-top:26px}
body.cf-is-searching .cb-front,body.cf-is-searching .cb-index-h{display:none}

/* 3. Chapter pages */
.cb-chh1{font:800 clamp(2rem,5vw,3.2rem)/1.05 'CO Title','Arial Black',sans-serif;margin:8px 0 8px}
.cb-chno{font-size:.42em;letter-spacing:.06em;text-transform:uppercase;font-family:var(--eo-label,system-ui,sans-serif);font-weight:700;vertical-align:.55em;padding:2px 8px;background:#ffd400;color:var(--eo-ink,#16141f)}
.cb-chdot{display:none}
.cb-chno{margin-right:.45em}
.cb-ch .cf-lead{max-width:62ch}
.cb-ch .cf-chips--grp{margin-bottom:4px}
.cb-ch .cf-chips--grp .cf-chip{font-size:.82rem}
.cf-view-cards .cf-letter.cb-gh{display:flex}
.cb-ch .cf-letter.cb-gh{font:800 1.3rem/1.1 'CO Title','Arial Black',sans-serif}
.cb-pager{display:flex;justify-content:space-between;gap:16px;margin:30px 0 0;padding-top:14px;border-top:2px solid var(--eo-ink,#16141f)}
.cb-pager a{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--eo-ink,#16141f);font:700 1.05rem/1.2 var(--eo-label,system-ui,sans-serif)}
.cb-pager small{font:600 .72rem/1 var(--eo-label,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:#5c5748}
.cb-pager .cb-next{text-align:right;align-items:flex-end}
.cb-pager a:hover,.cb-pager a:focus-visible{outline:none}
.cb-pager a:hover b,.cb-pager a:focus-visible{background:#ffd400}

@media (max-width:700px){
  .cb-how{grid-template-columns:1fr}
  .cb-toc{columns:1}
  .cb-h2{font-size:1.3rem}
}


/* ---- r2 (28 Nov 2026, Bill 16:22 UK).  ---- */

/* Lighter cream paper, same grain as the Test Kitchen cookbook-style page.
   Phone: rgb(247,241,226). Desktop: rgb(249,243,228). Hairline border on desktop; edge to edge on phone. */
body.cf-body{
  --cb-paper:rgb(249,243,228);
  --cb-paper-image:
    linear-gradient(180deg, rgba(255,252,244,.30), rgba(214,192,150,.025)),
    repeating-linear-gradient(90deg, rgba(90,60,20,.016) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(80,50,20,.012) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.25  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
body.cf-body .cf-page{
  background-color:var(--cb-paper);
  background-image:var(--cb-paper-image);
}
@media (min-width:701px){
  body.cf-body .cf-page{
    margin:16px 24px 40px;
    border:1px solid rgba(22,20,31,.16);
    box-sizing:border-box;
    box-shadow:
      0 1px 0 rgba(255,248,230,.4) inset,
      0 6px 16px rgba(22,20,31,.12),
      0 18px 48px rgba(22,20,31,.16),
      0 36px 80px rgba(22,20,31,.10);
  }
  body.cf-body:not(.cb-chapter) .cf-bc{margin-top:12px}
}
/* Repeated page heading is in the title bar; keep h1 in the DOM for screen readers (home and chapters, all sizes). */
body.cf-body h1.cf-h1{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}
body.cf-body .cf-bc{margin-top:12px}
body.cf-body .cf-lead:empty,[hidden].cf-lead{display:none}
@media (max-width:700px){
  body.cf-body{--cb-paper:rgb(247,241,226)}
  body.cf-body .cf-page{margin:0;border:0}
}

/* Home: Preface left, How to use right, on desktop; stacked on phone. Contents follows below. */
.cb-front-cols{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px 40px;
  align-items:start;
  margin:18px 0 8px;
}
.cb-front-cols .cb-sec{margin:0 0 12px}
.cb-front-cols .cb-how{grid-template-columns:1fr;max-width:none;gap:6px 0}
.cb-front-cols .cb-pref{max-width:none}
@media (max-width:700px){
  .cb-front-cols{grid-template-columns:1fr;gap:0;margin:12px 0 0}
}

/* Cuisine filter hidden on chapter pages. Restore by deleting this rule (markup and JS stay in place). */
.cb-chapter .cb-cuisine{display:none}

/* Chapter Type, principal-ingredient and A–Z: one sideways-scrolling line, touch-friendly, fade when there's more. */
.cb-chapter .cb-scroll-wrap{position:relative}
.cb-chapter .cb-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  touch-action:pan-x;
  padding-bottom:4px;
}
.cb-chapter .cb-scroll::-webkit-scrollbar{height:6px}
.cb-chapter .cb-scroll::-webkit-scrollbar-thumb{background:rgba(22,20,31,.28)}
.cb-chapter .cb-scroll .cf-chips,
.cb-chapter .cb-scroll .cf-azbar-inner,
.cb-chapter .cb-scroll .cf-az ul{
  display:flex;
  flex-wrap:nowrap;
  width:max-content;
  max-width:none;
  margin:0;
  padding-right:2rem;
  gap:4px 12px;
  align-items:baseline;
}
.cb-chapter .cb-scroll .cf-az ul{gap:0 2px;padding-right:0}
.cb-chapter .cb-scroll .cf-azbar-inner{gap:2px 4px;align-items:center}
.cb-chapter .cb-scroll .cf-chip,
.cb-chapter .cb-scroll .cf-az a,
.cb-chapter .cb-scroll .cf-az span,
.cb-chapter .cb-scroll .cf-az-all{
  padding-top:8px;
  padding-bottom:8px;
}
.cb-chapter .cb-scroll-wrap.has-more::after{
  content:"";
  position:absolute;
  top:0;right:0;bottom:4px;
  width:2.25rem;
  pointer-events:none;
  background:linear-gradient(to right, transparent, var(--cb-paper, rgb(249,243,228)));
}
.cb-chapter .cf-filters{margin:0 0 4px}
.cb-chapter .cf-filters-label{margin:10px 0 4px}
.cb-chapter .cf-azbar{margin:4px 0 12px}


/* ---- r3 (28 Nov 2026, Bill 16:45 UK).  ---- */
/* A bit thinner than the current 78px Know How bar (FT-B uses !important). Phone and desktop. */
@media (min-width:621px){
  body.kh-thin .eo-mast{
    height:64px !important;
    min-height:64px !important;
    border-top-width:3px;
    border-bottom-width:3px;
  }
  body.kh-thin .eo-mast .eo-wrap{
    height:58px !important;
    min-height:58px !important;
    padding:0 16px !important;
  }
  body.kh-thin .eo-mast .eo-brand img,
  body.kh-thin .eo-mast:has(.eo-brand) .eo-brand img{
    height:40px !important;
    max-width:46px !important;
  }
}
@media (max-width:620px){
  body.kh-thin .eo-mast{
    height:auto !important;
    min-height:64px !important;
    border-top-width:3px;
    border-bottom-width:3px;
  }
  body.kh-thin .eo-mast .eo-wrap{
    height:auto !important;
    min-height:58px !important;
    padding:4px 14px !important;
  }
  body.kh-thin .eo-mast .eo-brand img,
  body.kh-thin .eo-mast:has(.eo-brand) .eo-brand img{
    height:38px !important;
    max-width:44px !important;
  }
}
body.kh-thin .eo-mast .eo-brand b{
  font-size:clamp(1.05rem, 2.4vw, 1.28rem) !important;
}
body.kh-thin .eo-mast .eo-brand i{
  font-size:.75rem !important;
  padding:1px 7px;
}


/* ---- r4 (28 Nov 2026, Bill 18:47 UK).  ---- */
/* Type groups as a slimmer second-level nav, directly under the chapter bar. */
/* typenav removed in r5; chapter bar keeps its normal shadow */
body.cb-nav .cb-typenav ul{
  padding:2px 12px 4px;
}
body.cb-nav .cb-typenav a{
  padding:5px 10px 4px;
  font-size:.78rem;
  letter-spacing:.05em;
  line-height:1.15;
}
@media (max-width:700px){
  body.cb-nav .cb-typenav ul{padding:2px 10px 4px}
  body.cb-nav .cb-typenav a{padding:6px 10px 5px}
}


/* ---- r5–r8 (28 Nov 2026).  ---- */
/* Desktop: compact 4-across type tiles to the RIGHT of the intro (r6/r7),
   no taller than the intro, right edge flush with the page content.
   Phone: tiles hidden; slim type sub-menu under the chapter bar (r6). */
.cb-ch-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 24px;
  align-items:start;
  margin:0 0 18px;
  width:100%;
}
.cb-ch-intro .cf-lead{order:0;margin:0;max-width:62ch}
.cb-vtiles{
  order:1;
  display:grid;
  grid-template-columns:repeat(4, 80px);
  gap:4px 8px;
  margin:0;
  justify-self:end;
  align-self:start;
}
.cb-vtile{
  display:flex;
  flex-direction:column;
  min-width:0;
  text-decoration:none;
  color:var(--eo-ink,#16141f);
}
.cb-vtile img{
  display:block;
  width:80px;
  height:80px;
  aspect-ratio:1;
  object-fit:cover;
  background:#eee;
}
.cb-vtile-lab{
  margin-top:3px;
  font:700 .68rem/1.15 var(--eo-label,system-ui,sans-serif);
  letter-spacing:.04em;
  text-transform:uppercase;
  text-align:center;
}
.cb-vtile:hover .cb-vtile-lab,
.cb-vtile:focus-visible .cb-vtile-lab{background:#ffd400}
.cb-vtile:focus-visible{outline:none}
.cb-vtile[aria-current] .cb-vtile-lab{
  border-bottom:2px solid var(--eo-ink,#16141f);
}
.cb-vtiles-cap{
  grid-column:1 / 3;
  margin:2px 0 0;
  font-size:10px;
  line-height:1.2;
  color:#5b5866;
}
.cb-vall{
  grid-column:3 / 5;
  margin:2px 0 0;
  font:600 .75rem/1.2 var(--eo-label,system-ui,sans-serif);
  text-align:right;
  justify-self:end;
}
.cb-vall a{color:#5b5866;text-decoration:none}
.cb-vall a:hover,
.cb-vall a:focus-visible{background:#ffd400;color:var(--eo-ink,#16141f);outline:none}
.cb-vall.is-needed a{color:var(--eo-ink,#16141f);text-decoration:underline}

/* ---- r6 (28 Nov 2026, Bill 19:06 UK).  ---- */
.cb-typenav{display:none}
@media (max-width:700px){
  .cb-vtiles{display:none !important}
  .cb-ch-intro{grid-template-columns:1fr;gap:0}
  .cb-typenav{display:block}
  .cb-stick .eo-subnav:not(.cb-typenav):not(.cb-aznav){box-shadow:none}
  .cb-stick .cb-typenav,
  .cb-stick .cb-aznav{
    box-shadow:0 5px 10px rgba(60,60,60,.4);
    border-top:1px solid rgba(22,20,31,.14);
  }
}

/* ---- r7 (28 Nov 2026, Bill 19:13 UK).  ---- */
/* Home Index A–Z, after Contents. Hidden with .cb-front while searching. */
.cb-azindex{margin:22px 0 8px}
.cb-azindex .cb-h2 small{font:600 .72rem/1 var(--eo-label,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:#5c5748}
.cb-azindex-strip{
  display:flex;
  flex-wrap:wrap;
  gap:0 2px;
  margin:0 0 14px;
  max-width:60rem;
}
.cb-azindex-strip a,
.cb-azindex-strip span{
  display:inline-block;
  min-width:1.4em;
  padding:4px 5px;
  text-align:center;
  font:700 .82rem/1.2 var(--eo-label,system-ui,sans-serif);
  text-decoration:none;
  color:var(--eo-ink,#16141f);
  border-bottom:2px solid transparent;
}
.cb-azindex-strip a:hover,
.cb-azindex-strip a:focus-visible{background:#ffd400;outline:none}
.cb-azindex-strip span{opacity:.35;cursor:default}
.cb-azindex-list{columns:2;column-gap:36px;max-width:60rem}
.cb-azindex-list h3{
  margin:12px 0 4px;
  font:800 1.15rem/1 "CO Title","Arial Black",sans-serif;
  scroll-margin-top:10px;
}
.cb-azindex-list ul{list-style:none;margin:0 0 8px;padding:0}
.cb-azindex-list li{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 10px;
  padding:2px 0;
  font-size:.95rem;
  line-height:1.35;
  break-inside:avoid;
}
.cb-azindex-list a{color:var(--eo-ink,#16141f);text-decoration:none}
.cb-azindex-list a:hover,
.cb-azindex-list a:focus-visible{background:#ffd400;outline:none}
.cb-azindex-ch{font:600 .75rem/1.2 var(--eo-label,system-ui,sans-serif);color:#5b5866}
@media (max-width:700px){
  .cb-azindex-strip{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    max-width:none;
    width:100%;
    padding-right:2rem;
    box-sizing:border-box;
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 1.75rem),transparent 100%);
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 1.75rem),transparent 100%);
  }
  .cb-azindex-list{columns:1}
}

/* Home: the old Recipe index finder (filters, toolbar, results) stays in the DOM for search, but is hidden until a search is typed. */
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cb-index-h,
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cf-filters,
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cf-toolbar,
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cf-status,
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cf-results,
body.cf-body:not(.cb-chapter):not(.cf-is-searching) .cf-none{display:none !important}


/* ---- r9 (28 Nov 2026, Bill 19:44 UK).  ---- */
/* Chapter title bar: large chapter name, small “Chapter n” kicker above it. Keep the 64px bar. */
body.cb-chapter.kh-thin .eo-mast{
  height:64px !important;
  min-height:64px !important;
  box-sizing:border-box;
}
body.cb-chapter.kh-thin .eo-mast .eo-wrap{
  height:58px !important;
  min-height:58px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  align-items:center;
}
body.cb-chapter.kh-thin .eo-mast .eo-brand > span{
  flex-direction:row;
  align-items:center;
  padding-right:6.75rem;
}
body.cb-chapter.kh-thin .eo-mast .eo-count{
  position:absolute !important;
  right:16px !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
  margin:0 !important;
  display:block;
  white-space:nowrap;
}
body.cb-chapter.kh-thin .eo-mast .cb-mast-h{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  margin:0;
  font-size:inherit !important;
  font-weight:inherit !important;
  line-height:1;
  -webkit-text-stroke:0;
  text-shadow:none;
}
body.cb-chapter.kh-thin .eo-mast .cb-mast-kicker{
  display:block;
  font:700 .62rem/1 var(--eo-label, "CO Oswald", Oswald, "Arial Narrow", sans-serif) !important;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--eo-ink,#16141f);
  -webkit-text-stroke:0;
  text-shadow:none;
}
body.cb-chapter.kh-thin .eo-mast .cb-mast-name{
  display:block;
  font:800 clamp(1.55rem, 4.2vw, 1.9rem)/.92 "CO Title","Arial Black",sans-serif !important;
  letter-spacing:-.015em;
  color:var(--eo-ink,#16141f);
  -webkit-text-stroke:0;
  text-shadow:3px 3px 0 rgba(22,20,31,.28);
}
@media (max-width:620px){
  body.cb-chapter.kh-thin .eo-mast .eo-count{right:14px !important}
  body.cb-chapter.kh-thin .eo-mast .cb-mast-kicker{font-size:.58rem !important}
  body.cb-chapter.kh-thin .eo-mast .cb-mast-name{font-size:1.55rem !important}
}

/* ---- r10 (28 Nov 2026, Bill 20:15 UK).  ---- */
/* Home A–Z as a slim sub-menu under the chapters bar, like the Soups type nav.
   Hidden while searching. The index list stays; the strip on the index is gone. */
.cb-aznav a,
.cb-aznav span{
  display:block;
  padding:5px 9px 4px;
  font:700 .78rem/1.15 var(--eo-label,system-ui,sans-serif);
  letter-spacing:.05em;
  text-decoration:none;
  color:var(--eo-ink,#16141f);
}
.cb-aznav a:hover,
.cb-aznav a:focus-visible{background:#ffd400;outline:none}
.cb-aznav span[aria-disabled]{opacity:.35;cursor:default}
@media (max-width:700px){
  .cb-aznav a,
  .cb-aznav span{padding:6px 10px 5px}
}
/* Desktop: second row of the sticky chapter stack, shadow under the A–Z bar. */
.cb-stick:has(.cb-aznav) > .eo-subnav:not(.cb-aznav){box-shadow:none}
.cb-stick .cb-aznav{
  border-top:1px solid rgba(22,20,31,.14);
  box-shadow:0 5px 10px rgba(60,60,60,.4);
}
body.cf-is-searching .cb-aznav{display:none !important}
/* Letter targets: html scroll-padding-top is already the sticky chapter+A–Z height (--cbl-bar). */
@media (min-width:701px){
  .cb-azindex-list h3{scroll-margin-top:8px}
}

/* ---- r15 (28 Nov 2026, Bill 21:33 UK).  ---- */
/* Contents chapter one-liners: overlay tooltip (no extra page height by default). */
.cb-toc li{position:relative;display:flex;align-items:baseline;gap:6px}
.cb-toc a{flex:1 1 auto;min-width:0}
.cb-toc-i{
  flex:0 0 auto;
  width:1.2em;height:1.2em;
  margin:0;
  padding:0;
  border:1px solid #b4b1ba;
  border-radius:50%;
  background:transparent;
  color:#5b5866;
  font:700 .68rem/1.2em var(--eo-label,system-ui,sans-serif);
  letter-spacing:0;
  text-transform:none;
  cursor:pointer;
}
.cb-toc-i:hover,
.cb-toc-i:focus-visible{background:#ffd400;color:#16141f;border-color:#16141f;outline:none}
.cb-toc-tip{
  display:none;
  position:absolute;
  left:1.6em;
  top:calc(100% - 2px);
  z-index:8;
  max-width:min(36ch, calc(100% - 1.6em));
  padding:7px 10px;
  background:#fff;
  color:#16141f;
  border:1px solid #16141f;
  box-shadow:2px 2px 0 #ffd400;
  font:400 .85rem/1.35 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  pointer-events:none;
}
.cb-toc-tip.is-above{top:auto;bottom:calc(100% - 2px)}
@media (hover:hover) and (pointer:fine){
  .cb-toc li:hover .cb-toc-tip,
  .cb-toc li:focus-within .cb-toc-tip{display:block}
}
.cb-toc li.is-open .cb-toc-tip{display:block}

/* Tidy the three loose Contents links into one line. */
.cb-also{
  margin:10px 0 0;
  font:600 .85rem/1.45 var(--eo-label,system-ui,sans-serif);
  color:#5b5866;
}
.cb-also a{color:var(--eo-ink,#16141f);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cb-also a:hover,
.cb-also a:focus-visible{background:#ffd400;outline:none;text-decoration:none}
.cb-also span{margin:0 .4em;color:#5b5866;font-weight:700}

/* In season / New at the end of the A–Z row, visually set apart. */
.cb-aznav li.cb-aznav-extra{
  margin-left:6px;
  padding-left:8px;
  border-left:1px solid rgba(22,20,31,.28);
}
.cb-aznav li.cb-aznav-extra + li.cb-aznav-extra{
  margin-left:0;
  padding-left:0;
  border-left:0;
}
.cb-aznav .cb-aznav-extra a{
  text-transform:none;
  letter-spacing:.02em;
  white-space:nowrap;
}
.cb-aznav a[aria-current]{background:#ffd400}

/* Collapsed Index A–Z: letters closed by default; one list at a time. */
.cb-azindex-hint{
  margin:0 0 4px;
  font:400 .9rem/1.35 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:#5b5866;
  max-width:46ch;
}
.cb-azindex-h{
  display:block;
  width:100%;
  margin:0;padding:0;border:0;background:none;
  font:inherit;color:inherit;letter-spacing:inherit;text-align:left;
  cursor:pointer;
}
.cb-azindex-h:hover,
.cb-azindex-h:focus-visible{background:#ffd400;outline:none}
.cb-azindex-note{
  margin:0 0 8px;
  font:400 .85rem/1.35 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:#5b5866;
  max-width:46ch;
}
.cb-azindex-panel{max-width:60rem;margin:0}
.cb-azindex-panel h3{
  margin:12px 0 4px;
  font:800 1.15rem/1 "CO Title","Arial Black",sans-serif;
}
.cb-azindex-panel ul{list-style:none;margin:0 0 8px;padding:0}
.cb-azindex-panel li{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 10px;
  padding:2px 0;
  font-size:.95rem;
  line-height:1.35;
}
.cb-azindex-panel a{color:var(--eo-ink,#16141f);text-decoration:none}
.cb-azindex-panel a:hover,
.cb-azindex-panel a:focus-visible{background:#ffd400;outline:none}

/* Back to top: existing .cb-topbtn, site label font. */
.cb-topbtn{font-family:var(--eo-label,system-ui,sans-serif)}

/* r15 tooltip placement: same-row on desktop (over the dots); in-flow one-liner on phone. */
.cb-toc-tip{
  left:auto;
  right:2.1em;
  top:50%;
  transform:translateY(-50%);
  max-width:min(38ch, calc(100% - 8em));
  padding:3px 8px;
  white-space:nowrap;
}
.cb-toc-tip.is-above{top:auto;bottom:calc(100% + 2px);transform:none}
@media (max-width:700px){
  .cb-toc-tip{
    position:static;
    transform:none;
    right:auto;
    top:auto;
    flex:1 0 100%;
    margin:2px 0 6px 1.6em;
    max-width:calc(100% - 1.6em);
    white-space:normal;
    padding:6px 10px;
    box-sizing:border-box;
  }
  .cb-toc li.is-open{flex-wrap:wrap}
}
.cb-topbtn{z-index:50}
.cb-toc li.is-open .cb-toc-i{background:#ffd400;color:#16141f;border-color:#16141f}

/* ---- Rollout 28 Nov 2026: all 17 chapters ---- */
/* Chapters with no Colim for every type: the slim type sub-menu shows on desktop too. */
body.cb-nav .cb-typenav.cb-typenav--all{display:block}
.cb-ch-see{grid-column:1 / -1;margin:4px 0 0;max-width:62ch;font-size:.92rem;color:#5b5866}
.cb-noscript{columns:2;column-gap:28px;margin:8px 0 16px;padding-left:1.1em}

/* Long chapter names (Southern Indian Recipes etc.) keep to one line in the 64px bar */
body.cb-chapter.kh-thin .eo-mast .cb-mast-h{min-width:0;max-width:100%}
body.cb-chapter.kh-thin .eo-mast .cb-mast-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding-bottom:3px}
@media (max-width:620px){body.cb-chapter.kh-thin .eo-mast .cb-mast-name.cb-mast-name--long{font-size:1.12rem !important}}
@media (max-width:360px){body.cb-chapter.kh-thin .eo-mast .cb-mast-name.cb-mast-name--long{font-size:.98rem !important}}
