/* Crema QA: phone type at least 14px, tap targets at least 44px. Desktop layout unchanged. */
@media (max-width: 820px) {
  html body.ck-roast .ck-credit,
  html body.ck-roast .ck-credit a,
  html body.ck-roast .ck-credit small,
  html body.ck-roast .credit,
  html body.ck-roast figcaption,
  html body.ck-roast .cap,
  html body.ck-roast .ck-note,
  html body.ck-roast .ck-disc,
  html body.ck-roast .ck-meta,
  html body.ck-roast .st-note,
  html body.ck-roast .ck-mail .ck-mail-s,
  html body.ck-roast small {
    font-size: 14px !important;
    line-height: 1.35;
  }
  html body.ck-roast .ck-kick {
    font-size: 14px !important;
  }
  html body.ck-roast a.btn,
  html body.ck-roast button,
  html body.ck-roast .ck-shop,
  html body.ck-roast .ck-alerts,
  html body.ck-roast .ck-util,
  html body.ck-roast .ck-menu summary,
  html body.ck-roast .ck-nav a,
  html body.ck-roast .ck-drop a,
  html body.ck-roast .pb-chip,
  html body.ck-roast input[type="email"],
  html body.ck-roast input[type="number"],
  html body.ck-roast input[type="text"],
  html body.ck-roast select,
  html body.ck-roast .ck-mail button,
  html body.ck-roast .st-row button,
  html body.ck-roast .dial-taste button {
    min-height: 44px;
  }
  html body.ck-roast .ck-shop.ck-sm,
  html body.ck-roast .btn-sm.ck-shop,
  html body.ck-roast td a.ck-shop {
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

/* Dial-in tool */
.dial {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 24px 40px;
  box-sizing: border-box;
}
.dial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.dial-card, .dial-out {
  background: #fff;
  border: 1px solid #ead9c4;
  border-radius: 18px;
  padding: 20px 22px 22px;
}
.dial-card h2, .dial-out h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.dial-help { margin: 0 0 16px; color: #5e4a3b; }
.dial-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dial-fields label, .dial-taste-l {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
}
.dial-fields input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7c2ab;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  min-height: 44px;
}
.dial-taste { margin: 16px 0 18px; }
.dial-taste-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dial-taste button {
  flex: 1 1 30%;
  min-height: 44px;
  border: 1px solid #d7c2ab;
  background: #fbf1e3;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
}
.dial-taste button[aria-pressed="true"] {
  background: #3d2a1c;
  color: #fbf1e3;
  border-color: #3d2a1c;
}
.dial-go {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #c2562f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.dial-out[hidden] { display: none; }
.dial-change { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
.dial-why, .dial-nums { margin: 0 0 10px; color: #5e4a3b; }
.dial-gear {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 24px;
  box-sizing: border-box;
}
.dial-gear ul { padding-left: 1.1em; }
.dial-gear li { margin: 0 0 8px; }
@media (max-width: 820px) {
  .dial { padding: 0 14px 32px; }
  .dial-grid, .dial-fields { grid-template-columns: minmax(0, 1fr); }
  .dial-gear { padding: 0 14px 32px; }
}

/* Selects sized to their longest option must not blow out the page. */
html body.ck-roast select,
html body.ck-roast .tp-row,
html body.ck-roast .tp-row select,
html body.ck-roast .ck-mail select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  html body.ck-roast a.pb-chip,
  html body.ck-roast .pb-chip,
  html body.ck-roast .ep-links a,
  html body.ck-roast .st11-hub a,
  html body.ck-roast .ep-strip a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  html body.ck-roast .ep-links,
  html body.ck-roast p.ep-links,
  html body.ck-roast .ep-strip,
  html body.ck-roast .st11-hub .ep-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  /* Beat ck-read rules that force hub chips to min-height: 0 on phones. */
  html body.ck-roast .ck-row .ep-links a.pb-chip,
  html body.ck-roast nav.st11-hub p.ep-links a.pb-chip,
  html body.ck-roast nav.st11-hub .ep-links a.pb-chip {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 820px) {
  html body.ck-roast .ck-tl a.pb-chip,
  html body.ck-roast p.ep-links.ck-tl a.pb-chip,
  html body.ck-roast .ep-strip .ck-tl a.pb-chip {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 820px) {
  html body.ck-roast .ck-pick .pick-btns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  html body.ck-roast .ck-pick .pick-btns .ck-shop,
  html body.ck-roast .ck-pick .pick-btns .btn,
  html body.ck-roast .ck-pick .pick-btns .pa-watch {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 820px) {
  html body.ck-roast .ck-pick .pick-btns {
    grid-column: 1 / -1;
  }
}

html body.ck-roast .ck-pick > .pick-btns {
  grid-column: 1 / -1;
}

html body.ck-roast .ck-pick:has(> .pick-btns) .ck-pick-img {
  grid-row: 1 / 3;
}
html body.ck-roast .ck-pick > .pick-btns {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 820px) {
  html body.ck-roast .ck-pick:has(> .pick-btns) .ck-pick-img {
    grid-row: auto;
  }
  html body.ck-roast .ck-pick > .pick-btns {
    grid-column: 1 / -1;
  }
}

/* Nov 16 2026: shop buttons wrap instead of running off the edge on phones */
@media (max-width: 820px) {
  html body.ck-roast a.ck-shop {
    white-space: normal !important;
    max-width: 100% !important;
    min-width: 0;
    flex-shrink: 0;
    line-height: 1.2 !important;
    text-align: left;
  }
  html body.ck-roast a.ck-shop .ck-s { flex: 0 0 auto; white-space: nowrap; }
  html body.ck-roast a.ck-shop .ck-at { flex: 0 1 auto; min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
  html body.ck-roast .ck-pick-txt, html body.ck-roast .ck-pick-row { min-width: 0; max-width: 100%; }
}

/* Nov 16 2026: smaller pick badges and a contained advertise table on phones */
@media (max-width: 820px) {
  html body.ck-roast .pick-top { min-width: 0; }
  html body.ck-roast p.pick-lab, html body.ck-roast .pick-lab {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: .03em !important;
    padding: 7px 11px !important;
    border-radius: 14px !important;
    min-width: 0;
    flex: 0 1 auto;
  }
  html body.ck-roast table.ck-adv-cal { width: 100%; table-layout: auto; }
  html body.ck-roast .ck-adv-cal th, html body.ck-roast .ck-adv-cal td { white-space: normal !important; overflow-wrap: normal; word-break: normal; }
}

/* Nov 16 2026: compact shop buttons on narrow phones so store names never split */
@media (max-width: 430px) {
  html body.ck-roast a.ck-shop, html body.ck-roast a.ck-shop.ck-sm, html body.ck-roast td a.ck-shop {
    gap: 6px !important;
    padding: 6px 13px 6px 7px !important;
  }
  html body.ck-roast a.ck-shop::before { flex-basis: 22px !important; height: 22px !important; }
  html body.ck-roast a.ck-shop .ck-s { letter-spacing: .07em !important; font-size: 14px !important; }
  html body.ck-roast a.ck-shop .ck-at { padding-left: 7px !important; font-size: 13px !important; }
}
@media (max-width: 360px) {
  html body.ck-roast a.ck-shop::before { display: none !important; }
  html body.ck-roast a.ck-shop, html body.ck-roast a.ck-shop.ck-sm { padding-left: 12px !important; }
}
/* where-to-buy: fixed price column so maker and retailer prices line up (Nov 18) */
@media (min-width:561px){.wb-row{grid-template-columns:minmax(0,1fr) 190px 240px}.wb-who{grid-column:1}.wb-v{grid-column:2}.wb-btn{grid-column:3;justify-self:end}}
