/* Rice section mid-banner and borderless cards.
   Loaded after eatingout.css on rice pages only, so the more-specific
   :has(.eo-brand[href^="/know-how/rice"]) rule wins over Know How sage. */
body .eo-mast.rice-mast-short:has(.eo-brand[href^="/know-how/rice"]){
  --pb:#f0dc9a;
  height:61px;
  box-sizing:border-box;
  overflow:hidden;
  position:relative;
  background-color:#f0dc9a;
  background-image:url("/know-how/img/rice-mast-grains-colim.jpg");
  background-size:cover;
  background-position:center;
  border-top:4px solid #16141f;
  border-bottom:4px solid #16141f;
}
body .eo-mast.rice-mast-short:has(.eo-brand[href^="/know-how/rice"])::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,
    rgba(240,220,154,.50) 0%,
    rgba(240,220,154,.28) 45%,
    rgba(240,220,154,.40) 100%);
  opacity:.85;
  mix-blend-mode:normal;
  pointer-events:none;
}
body .eo-mast.rice-mast-short:has(.eo-brand[href^="/know-how/rice"]) .eo-wrap{
  position:relative;
  z-index:2;
  height:53px;
  padding:0 16px;
  box-sizing:border-box;
  align-items:center;
}
body .eo-mast.rice-mast-short .eo-brand{
  gap:10px;
  width:100%;
  min-width:0;
  align-items:center;
}
body .eo-mast.rice-mast-short .eo-brand > span{
  display:flex;
  flex-direction:row;
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
  padding-right:7.5rem;
  min-width:0;
}
body .eo-mast.rice-mast-short .eo-brand b{
  font-size:clamp(1.15rem,2.8vw,1.4rem);
  line-height:1;
  flex:0 0 auto;
  color:var(--eo-ink,#16141f);
  text-shadow:1px 1px 0 #fff, 2px 2px 0 rgba(22,20,31,.28);
  -webkit-text-stroke:0;
}
body .eo-mast.rice-mast-short .eo-brand i{
  margin-top:0;
  transform:rotate(-1deg);
  flex:0 1 auto;
  white-space:nowrap;
  font-size:.82rem;
  line-height:1.15;
  padding:2px 8px;
}
body .eo-mast.rice-mast-short .eo-count{
  position:absolute;
  right:16px;
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
  margin:0;
  z-index:2;
  text-shadow:1px 1px 0 rgba(255,255,255,.7), 2px 2px 0 rgba(22,20,31,.25);
}
body .eo-mast.rice-mast-short .eo-brand img.rice-mast-pic{
  width:32px;height:38px;
  object-fit:cover;object-position:50% 40%;
  border-radius:5px;border:2px solid #16141f;background:#f0dc9a;
  flex:0 0 auto;
}
@media (max-width:620px){
  body .eo-mast.rice-mast-short .eo-brand > span{padding-right:0}
  body .eo-mast.rice-mast-short .eo-count{
    position:static !important;
    transform:none;
    margin:0 0 0 auto;
    white-space:nowrap;
  }
}
@media (max-width:420px){
  body .eo-mast.rice-mast-short.rice-mast--bowl .rice-mast-pic{display:none}
  body .eo-mast.rice-mast-short .eo-brand i{font-size:.72rem;padding:1px 6px}
  body .eo-mast.rice-mast-short .eo-brand{gap:8px}
  body .eo-mast.rice-mast-short .eo-brand > span{gap:8px}
  body .eo-mast.rice-mast-short .eo-count{font-size:.68rem}
}
@media (max-width:370px){
  body .eo-mast.rice-mast-short:has(.eo-brand[href^="/know-how/rice"]){
    height:auto;
    min-height:61px;
  }
  body .eo-mast.rice-mast-short:has(.eo-brand[href^="/know-how/rice"]) .eo-wrap{
    height:auto;min-height:53px;padding:6px 12px;
  }
  body .eo-mast.rice-mast-short .eo-brand > span{flex-wrap:wrap;row-gap:4px}
  body .eo-mast.rice-mast-short .eo-count{flex:0 0 auto;margin-left:auto}
}

/* Frameless hero on rice pages */
body.rice-section .gd-hero img,
body.rice-section .gd-hero .kh-hero-fig img,
body.rice-section .kh-hero-fig img{
  border:0 !important;
  box-shadow:none !important;
  outline:0;
}
body.rice-section .kh-hero-fig{margin:0}
body.rice-section .kh-hero-fig img,
body.rice-section .gd-hero .kh-hero-fig img{
  display:block;width:100%;max-width:420px;height:auto;background:#fff;
}
body.rice-section .co-cap{font-size:10px;line-height:1.4;color:#666;margin:6px 0 0}
@media (max-width:620px){
  body.rice-section .kh-hero-fig img,
  body.rice-section .gd-hero .kh-hero-fig img{max-width:100%}
}

/* Borderless card blocks (In this section, Cook it, See also) */
body.rice-section .rx-list,
body.rice-section .see-also,
body.rice-section .section-list{
  display:grid;
  gap:15px;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  list-style:none;margin:14px 0 0;padding:0;
  border:0;background:transparent;
  align-items:stretch;
}
body.rice-section .rx-list > li,
body.rice-section .see-also > li,
body.rice-section .section-list > li{
  margin:0;padding:0;min-width:0;
  border:0;background:transparent;box-shadow:none;
}
body.rice-section .rx-list a,
body.rice-section .see-also a,
body.rice-section .section-list a{
  display:block;height:100%;box-sizing:border-box;
  padding:15px;
  background:transparent;border:0;box-shadow:none;
  text-decoration:none;color:inherit;
}
body.rice-section .rx-list a:hover strong,
body.rice-section .see-also a:hover strong,
body.rice-section .section-list a:hover strong,
body.rice-section .rx-list a:focus-visible strong,
body.rice-section .see-also a:focus-visible strong,
body.rice-section .section-list a:focus-visible strong{text-decoration:underline}
body.rice-section .rx-list a:focus-visible,
body.rice-section .see-also a:focus-visible,
body.rice-section .section-list a:focus-visible{outline:2px solid #2b5a9a;outline-offset:3px}
body.rice-section .rx-list small{
  display:block;font:600 .75rem/1.2 var(--eo-label,sans-serif);
  text-transform:uppercase;letter-spacing:.08em;color:#8a3b12;margin:0 0 2px
}
body.rice-section .rx-list strong,
body.rice-section .see-also strong,
body.rice-section .section-list strong{display:block;font:700 1rem/1.25 var(--eo-sans,sans-serif)}
body.rice-section .rx-list span,
body.rice-section .see-also span,
body.rice-section .section-list span{display:block;font:.88rem/1.35 sans-serif;color:#444;margin-top:2px}
body.rice-section .safety-note{margin:18px 0 8px;padding:0;border:0;background:transparent}
body.rice-section .gd-hero{margin-top:8px}

/* Keep illustrated Cook it cards frameless if the live picture list is used */
body.rice-section .rg-rx a,
body.rice-section .rg-rx img,
body.rice-section .rg-rx li{
  border:0 !important;
  box-shadow:none !important;
}
body.rice-section .child-links{
  margin:12px 0 0;padding:0;
  font:.95rem/1.45 sans-serif;
}
body.rice-section .child-links a{color:inherit}
body.rice-section .rt-anchor{scroll-margin-top:70px}
