/* Grain Brew Guide — mobile first */
.gbrg-active .brew-sec{display:none!important}
.gbrg-legacy-hidden{display:none!important}

.gbrg-guide{
  --gbrg-accent:#8B1A6B;
  --gbrg-cream:var(--cream,#F5EDD8);
  --gbrg-dark:var(--dark,#1A0F0A);
  width:min(100% - 24px, 760px);
  margin:38px auto 44px;
  font-family:'Tajawal',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--gbrg-dark);
  text-align:right;
  -webkit-text-size-adjust:100%;
}
.gbrg-head{text-align:center;margin-bottom:17px}
.gbrg-eyebrow{
  display:inline-block;color:var(--red,#D94530);font-size:.78rem;font-weight:900;
  padding-bottom:5px;border-bottom:2px solid currentColor;margin-bottom:8px
}
.gbrg-heading{
  margin:0;color:var(--grape,#8B1A6B);font-family:'Fraunces',Georgia,serif;
  font-size:clamp(2rem,10vw,3rem);font-weight:900;font-style:italic;line-height:1
}
.gbrg-tabs{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  background:rgba(139,26,107,.06);padding:5px;border-radius:16px;margin:0 auto 10px
}
.gbrg-tab{
  min-height:48px;border:0;border-radius:12px;background:transparent;color:#6d6267;
  font:inherit;font-size:.92rem;font-weight:900;cursor:pointer;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;transition:background .18s ease,color .18s ease,box-shadow .18s ease
}
.gbrg-tab.is-active{background:#fff;color:var(--gbrg-accent);box-shadow:0 3px 12px rgba(0,0,0,.07)}
.gbrg-tab:focus-visible,.gbrg-detail-toggle:focus-visible{outline:3px solid rgba(139,26,107,.25);outline-offset:2px}

.gbrg-card{
  overflow:hidden;background:#fff;border:1px solid rgba(139,26,107,.12);border-radius:22px;
  box-shadow:0 8px 28px rgba(26,15,10,.07)
}
.gbrg-card-top{
  position:relative;padding:17px 17px 13px;background:var(--gbrg-accent);
  color:#fff
}
.gbrg-recipe-kicker{font-size:.62rem;font-weight:900;letter-spacing:.14em;opacity:.78;margin-bottom:4px}
.gbrg-recipe-title{margin:0;font-size:1.18rem;line-height:1.25;font-weight:900;color:#fff}

.gbrg-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#eee6d7;border-bottom:1px solid #eee6d7}
.gbrg-metric{min-width:0;display:flex;align-items:center;gap:9px;padding:13px 12px;background:#fff}
.gbrg-metric:nth-child(odd):last-child{grid-column:1/-1}
.gbrg-metric-icon{flex:0 0 30px;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--gbrg-cream);font-size:1rem}
.gbrg-metric-copy{min-width:0;display:flex;flex-direction:column;gap:1px}
.gbrg-metric-label{font-size:.68rem;color:#999;font-weight:700;line-height:1.15}
.gbrg-metric-value{font-size:.93rem;color:var(--gbrg-dark);font-weight:900;line-height:1.2;overflow-wrap:anywhere}

.gbrg-grind{display:flex;align-items:center;gap:10px;margin:12px 12px 0;padding:11px 12px;background:var(--gbrg-cream);border-radius:13px}
.gbrg-grind-icon{width:32px;height:32px;display:grid;place-items:center;background:#fff;border-radius:10px;flex:0 0 32px}
.gbrg-grind>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.gbrg-grind-label{font-size:.68rem;color:#978c7f;font-weight:800}
.gbrg-grind strong{font-size:.85rem;line-height:1.35;overflow-wrap:anywhere}

.gbrg-detail-toggle{
  width:calc(100% - 24px);min-height:50px;margin:12px;border:0;border-radius:13px;
  display:flex;align-items:center;justify-content:center;gap:8px;background:var(--gbrg-accent);color:#fff;
  font:inherit;font-size:.88rem;font-weight:900;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  box-shadow:0 4px 0 rgba(26,15,10,.12)
}
.gbrg-toggle-chevron{font-size:1.15rem;line-height:1;transition:transform .2s ease}
.gbrg-card.is-open .gbrg-toggle-chevron{transform:rotate(180deg)}
.gbrg-details[hidden]{display:none!important}
.gbrg-details{border-top:1px solid #eee5dc;background:#fff}
.gbrg-detail-content{padding:14px 13px 16px}
.gbrg-subheading{font-size:.82rem;color:var(--gbrg-accent);font-weight:900;margin:14px 0 9px}
.gbrg-subheading:first-child{margin-top:0}
.gbrg-tip{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;background:#fff8df;border:1px solid rgba(245,200,66,.45);border-radius:12px;color:#665d51;font-size:.76rem;line-height:1.6}
.gbrg-tip-icon{flex:0 0 auto}

/* Mobile: vertical timeline = readable without tiny text. */
.gbrg-pour-timeline{position:relative;display:grid;gap:8px}
.gbrg-pour{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:stretch}
.gbrg-pour:not(:last-child)::after{content:"";position:absolute;right:16px;top:32px;bottom:-10px;width:2px;background:linear-gradient(var(--yellow,#F5C842),var(--gbrg-accent));opacity:.6}
.gbrg-pour-number,.gbrg-step-num{position:relative;z-index:1;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--gbrg-accent);color:#fff;font-size:.76rem;font-weight:900;box-shadow:0 2px 0 rgba(0,0,0,.1)}
.gbrg-pour-body{min-width:0;padding:10px 11px;background:#faf7f2;border-radius:12px;display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center}
.gbrg-pour-title{font-size:.72rem;color:#887c72;font-weight:800}
.gbrg-pour-amount{font-size:1rem;color:var(--gbrg-accent);font-weight:900}
.gbrg-pour-note{grid-column:1/-1;font-size:.72rem;color:#777;line-height:1.45}
.gbrg-time-row{display:flex;align-items:center;gap:7px;margin-top:10px;padding:10px 11px;border-radius:12px;background:#f7f2eb;font-size:.78rem;color:#74685e}
.gbrg-time-row strong{margin-inline-start:auto;color:var(--gbrg-accent);font-size:.9rem}
.gbrg-serving{margin-top:12px;padding:12px;background:var(--gbrg-cream);border-radius:13px}
.gbrg-serving .gbrg-subheading{margin:0 0 5px}
.gbrg-serving p{margin:0;color:#655c54;font-size:.76rem;line-height:1.7}

.gbrg-drip-steps{display:grid;gap:8px}
.gbrg-drip-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start;background:#faf7f2;border-radius:13px;padding:10px}
.gbrg-drip-step p{margin:2px 0 0;color:#655f5a;font-size:.78rem;line-height:1.72;overflow-wrap:anywhere}

@media (min-width:600px){
  .gbrg-guide{width:min(100% - 40px,860px);margin-top:54px}
  .gbrg-tabs{max-width:460px;margin-bottom:14px}
  .gbrg-card-top{padding:20px 22px 16px}.gbrg-recipe-title{font-size:1.42rem}
  .gbrg-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.gbrg-metric:nth-child(odd):last-child{grid-column:auto}.gbrg-metric{padding:16px}
  .gbrg-detail-content{padding:20px}
  .gbrg-pour-timeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:7px}
  .gbrg-pour{display:block;text-align:center;padding-top:22px}
  .gbrg-pour:not(:last-child)::after{right:50%;left:-24px;top:16px;bottom:auto;width:auto;height:2px}
  .gbrg-pour-number{position:absolute;top:0;right:50%;transform:translateX(50%)}
  .gbrg-pour-body{display:flex;flex-direction:column;gap:4px;padding:15px 10px 11px;min-height:88px;justify-content:center}
  .gbrg-pour-note{font-size:.75rem}
  .gbrg-drip-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){.gbrg-tab,.gbrg-toggle-chevron{transition:none!important}}

/* Drip quick navigation — intentionally quieter than Add to Cart. */
.gbrg-product-drip .gbrg-jump-wrap{
  --gbrg-accent:#8B1A6B;
  margin:-.9rem 0 1.9rem;
  width:100%;
}
.gbrg-product-drip .gbrg-jump{
  width:100%;
  min-height:68px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 34px;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border:1.5px solid rgba(139,26,107,.13);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:var(--dark,#1A0F0A);
  font:inherit;
  text-align:right;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  box-shadow:0 4px 14px rgba(26,15,10,.035);
}
.gbrg-product-drip .gbrg-jump:active{transform:scale(.985)}
.gbrg-product-drip .gbrg-jump:focus-visible{
  outline:3px solid rgba(139,26,107,.22);
  outline-offset:2px;
}
.gbrg-product-drip .gbrg-jump-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--cream,#F5EDD8);
  font-size:1.12rem;
  line-height:1;
}
.gbrg-product-drip .gbrg-jump-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.gbrg-product-drip .gbrg-jump-title{
  color:var(--gbrg-accent);
  font-size:.9rem;
  line-height:1.25;
  font-weight:900;
}
.gbrg-product-drip .gbrg-jump-sub{
  color:#92877f;
  font-size:.68rem;
  line-height:1.35;
  font-weight:700;
}
.gbrg-product-drip .gbrg-jump-arrow{
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  justify-self:end;
  background:var(--gbrg-accent);
  color:#fff;
  font-size:.95rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 2px 0 rgba(0,0,0,.1);
}
#grain-brew-guide{scroll-margin-top:108px}

@media (min-width:600px){
  .gbrg-product-drip .gbrg-jump-wrap{max-width:580px}
  .gbrg-product-drip .gbrg-jump{min-height:72px;padding:12px 13px}
  .gbrg-product-drip .gbrg-jump-title{font-size:.96rem}
  .gbrg-product-drip .gbrg-jump-sub{font-size:.72rem}
}

@media (prefers-reduced-motion:reduce){
  .gbrg-product-drip .gbrg-jump:active{transform:none}
}
