/*
 * Interactive blocks of the blog price guides (App\Support\BlogWidgets).
 * Loaded only on blog posts that use a block. Everything is scoped to .wm-w
 * so the post styles (.blog_box p, .single_blog ul li...) don't leak in, and
 * the mobile rules live here too, next to the blocks they adjust.
 */
.wm-w {
  --wm-ink: #191919;
  --wm-ink-2: #6a6e7a;
  --wm-rule: #e8e8e8;
  --wm-panel: #f7f7f8;
  --wm-lime: #f1ff78;
  --wm-lime-soft: #fcffe1;
  --wm-dark-2: #262626;
  --wm-dark-text: #c9cbd3;
  margin: 28px 0;
  color: var(--wm-ink);
  font-family: "avenirbook", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.wm-w *, .wm-w *::before, .wm-w *::after { box-sizing: border-box; }
.wm-w p, .single_blog .wm-w ul li, .single_blog .wm-w ol li {
  font-family: "avenirbook", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}
.wm-w h3, .blog_box .wm-w h3 {
  font-family: "avenirheavy", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  color: inherit;
}
.wm-w button { font: inherit; cursor: pointer; }
.wm-w button:focus-visible, .wm-w input:focus-visible, .wm-w a:focus-visible, .wm-w summary:focus-visible {
  outline: 3px solid var(--wm-lime);
  outline-offset: 2px;
}
.wm-w .wm-intro, .wm-head p { color: var(--wm-ink-2); font-size: 15px; margin-bottom: 14px; }
.wm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wm-head p { margin: 0; }

/* Segmented buttons */
.wm-seg { display: inline-flex; background: var(--wm-panel); border-radius: 999px; padding: 4px; }
.wm-seg.wm-wrap { flex-wrap: wrap; border-radius: 18px; }
.wm-seg button { border: 0; background: transparent; color: var(--wm-ink); font-size: 14px; padding: 6px 16px; border-radius: 999px; }
.wm-seg button[aria-pressed="true"] { background: var(--wm-ink); color: #fff; }

/* Headline figures */
.wm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wm-stat { background: var(--wm-panel); border-radius: 14px; padding: 18px; }
.wm-stat .wm-v { font-family: "avenirblack", system-ui, sans-serif; font-size: 30px; line-height: 1.1; }
.wm-stat mark { background: linear-gradient(transparent 60%, var(--wm-lime) 60%); color: inherit; padding: 0 2px; }
.wm-stat .wm-l { color: var(--wm-ink-2); font-size: 14px; margin-top: 6px; }

/* Dark calculator panel (also the quiz) */
.wm-calc { background: var(--wm-ink); color: #fff; border-radius: 18px; padding: 26px; }
.wm-calc h3, .blog_box .wm-calc h3 { font-size: 24px; margin-bottom: 4px; }
.wm-calc .wm-sub { color: var(--wm-dark-text); font-size: 14px; margin-bottom: 20px; }
.wm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wm-label { display: block; font-size: 14px; color: var(--wm-dark-text); margin-bottom: 8px; }
.wm-val { font-family: "avenirblack", system-ui, sans-serif; color: var(--wm-lime); font-size: 22px; margin-left: 4px; }
.wm-calc input[type="range"] { width: 100%; accent-color: var(--wm-lime); }
.wm-calc .wm-seg { background: #2c2c2c; }
.wm-calc .wm-seg button { color: #fff; }
.wm-calc .wm-seg button[aria-pressed="true"] { background: var(--wm-lime); color: var(--wm-ink); }
.wm-results { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.wm-res { background: var(--wm-dark-2); border-radius: 14px; padding: 14px 16px; }
.wm-k { font-size: 13px; color: var(--wm-dark-text); }
.wm-rv { font-family: "avenirblack", system-ui, sans-serif; font-size: 24px; line-height: 1.2; }
.wm-res.wm-main { background: var(--wm-lime); color: var(--wm-ink); }
.wm-res.wm-main .wm-k { color: var(--wm-ink); }
.wm-res.wm-main .wm-rv { font-size: 28px; }
.wm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.wm-toggles { display: flex; gap: 18px; flex-wrap: wrap; }
.wm-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wm-dark-text); margin: 0; }
.wm-toggle input { accent-color: var(--wm-lime); width: 16px; height: 16px; }
.wm-cta, .wm-cta:hover { background: #fff; color: var(--wm-ink); text-decoration: none; font-family: "avenirheavy", system-ui, sans-serif; padding: 10px 18px; border-radius: 999px; }
.wm-calc .wm-note { font-size: 12px; color: var(--wm-dark-text); margin-top: 10px; }

/* Quiz */
.wm-q { margin-bottom: 18px; }
.wm-q p { margin-bottom: 8px; }
.wm-verdict { background: var(--wm-lime); color: var(--wm-ink); border-radius: 14px; padding: 16px 18px; }
.wm-verdict b { font-family: "avenirblack", system-ui, sans-serif; font-weight: normal; font-size: 22px; display: block; margin-bottom: 4px; }
.wm-verdict p { font-size: 15px; }
.wm-verdict[hidden] { display: none; }

/* Room size cards */
.wm-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wm-size { border: 1px solid var(--wm-rule); border-radius: 14px; padding: 18px; }
.wm-cap, .wm-avg { color: var(--wm-ink-2); font-size: 14px; }
.wm-avg { font-size: 13px; margin-top: 8px; }
.wm-price { font-family: "avenirblack", system-ui, sans-serif; font-size: 26px; margin: 12px 0 2px; line-height: 1.1; }
.wm-price small { font-size: 15px; color: var(--wm-ink-2); }
.wm-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--wm-ink); color: #fff; border-radius: 14px; padding: 14px 18px; margin-top: 12px; }
.wm-strip b { font-family: "avenirblack", system-ui, sans-serif; font-weight: normal; color: var(--wm-lime); font-size: 22px; }

/* Column chart */
.wm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; height: 300px; padding: 0 4px; border-bottom: 2px solid var(--wm-ink); }
.wm-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.wm-tag { background: var(--wm-lime); font-family: "avenirblack", system-ui, sans-serif; font-size: 20px; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; white-space: nowrap; }
.wm-tag small { font-family: "avenirheavy", system-ui, sans-serif; font-size: 12px; }
.wm-bar { width: 100%; max-width: 110px; background: var(--wm-ink); border-radius: 12px 12px 0 0; transition: height .35s ease; }
.wm-col-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; margin-top: 10px; }
.wm-col-labels b { display: block; font-family: "avenirheavy", system-ui, sans-serif; font-weight: normal; font-size: 16px; }
.wm-col-labels span { font-size: 13px; color: var(--wm-ink-2); }

/* Takeaways */
.wm-takeaways { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; counter-reset: wm-n; }
.single_blog .wm-w .wm-takeaways li { background: var(--wm-panel); border-radius: 12px; padding: 12px 16px 12px 46px; position: relative; counter-increment: wm-n; }
.wm-takeaways li::before { content: counter(wm-n); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--wm-lime); font-family: "avenirheavy", system-ui, sans-serif; font-size: 13px; text-align: center; line-height: 22px; }

/* Ranges on a track (catering ladder, finder rates) */
.wm-ladder, .wm-rates { display: grid; gap: 12px; }
.wm-rung-wrap { border-bottom: 1px solid var(--wm-rule); padding-bottom: 12px; }
.wm-rung { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.wm-rate { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; }
.wm-for, .wm-kind { color: var(--wm-ink-2); font-size: 13px; line-height: 1.35; }
.wm-track { position: relative; height: 40px; background: var(--wm-panel); border-radius: 999px; }
.wm-rate .wm-track { height: 34px; }
.wm-pill { position: absolute; top: 4px; bottom: 4px; background: var(--wm-lime); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: "avenirblack", system-ui, sans-serif; font-size: 15px; white-space: nowrap; padding: 0 10px; min-width: 96px; }
.wm-rate .wm-pill { font-size: 14px; min-width: 64px; }
.wm-pill.wm-zero { background: transparent; border: 2px dashed var(--wm-dark-text); justify-content: flex-start; min-width: 120px; }
.wm-axis { display: grid; grid-template-columns: 200px 1fr; gap: 16px; font-size: 12px; color: var(--wm-ink-2); margin-top: 6px; }
.wm-rates-block .wm-axis { grid-template-columns: 170px 1fr; }
.wm-axis div:last-child { display: flex; justify-content: space-between; }
.wm-you { display: inline-block; margin-top: 4px; font-size: 12px; font-family: "avenirheavy", system-ui, sans-serif; padding: 1px 8px; border-radius: 999px; background: var(--wm-lime-soft); }
.wm-you.wm-fee { background: #ffe1d6; }
.wm-src-btn { font-size: 13px; background: none; border: 0; padding: 0; color: var(--wm-ink-2); text-decoration: underline; text-decoration-color: var(--wm-lime); text-decoration-thickness: 2px; margin-top: 6px; }
.wm-src-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wm-src-list[hidden] { display: none; }
.wm-chip { background: var(--wm-panel); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.wm-chip b { font-family: "avenirheavy", system-ui, sans-serif; font-weight: normal; }

/* From menu price to final bill */
.wm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wm-step { background: var(--wm-panel); border-radius: 14px; padding: 16px; position: relative; }
.wm-step .wm-k { color: var(--wm-ink-2); }
.wm-step .wm-rv { font-size: 26px; }
.wm-step.wm-last { background: var(--wm-ink); color: #fff; }
.wm-step.wm-last .wm-k { color: var(--wm-dark-text); }
.wm-step.wm-last .wm-rv { color: var(--wm-lime); }
.wm-step + .wm-step::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); font-family: "avenirblack", system-ui, sans-serif; color: var(--wm-ink-2); }

/* One large venue photo with a live caption */
.wm-venue { margin: 32px 0; }
.wm-venue a { display: block; }
.our_blog .blog_box .wm-venue img, .wm-venue img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.wm-venue figcaption { font-size: 13px; color: var(--wm-ink-2); margin-top: 8px; line-height: 1.4; }
.wm-venue figcaption a { display: inline; color: var(--wm-ink); font-family: "avenirheavy", system-ui, sans-serif; text-decoration: underline; text-decoration-color: var(--wm-lime); text-decoration-thickness: 2px; }

/* Folded figures */
.wm-figures { margin-top: 16px; }
.wm-figures summary { cursor: pointer; font-size: 14px; color: var(--wm-ink-2); }
.wm-figures table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.wm-figures th, .wm-figures td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--wm-rule); }
.wm-figures th { font-family: "avenirheavy", system-ui, sans-serif; font-weight: normal; font-size: 13px; color: var(--wm-ink-2); }
.wm-figures .wm-num { text-align: right; white-space: nowrap; }
.wm-w .wm-note { color: var(--wm-ink-2); font-size: 13px; margin-top: 8px; }
.wm-w .wm-note a { color: var(--wm-ink); text-decoration: underline; }

@media (max-width: 640px) {
  .wm-sizes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wm-stats, .wm-row, .wm-steps { grid-template-columns: 1fr; }
  .wm-calc { padding: 20px; }
  .wm-results { grid-template-columns: 1fr 1fr; }
  .wm-results .wm-main { grid-column: 1 / -1; }
  .wm-tag { font-size: 16px; padding: 3px 8px; }
  .wm-cols { height: 240px; gap: 8px; }
  .wm-col-labels { gap: 8px; }
  .wm-rung, .wm-axis { grid-template-columns: 1fr; gap: 6px; }
  .wm-axis div:first-child { display: none; }
  .wm-rate { grid-template-columns: 1fr; gap: 6px; }
  .wm-rates-block .wm-axis { display: none; }
  .wm-step + .wm-step::before { content: "↓"; left: 50%; top: -6px; }
}
