
/* Miller Gadgets Phase 0.14.2 — buying/comparison guide theme contract */
.mg-guide-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 20px 72px;
  color: var(--text, #1a1a1a);
}

.mg-guide-hero {
  margin: 28px 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line, rgba(26, 26, 26, .12));
  border-radius: 28px;
  background: var(--surface, #fbfafc);
  color: var(--text, #1a1a1a);
  box-shadow: var(--shadow, 0 18px 55px rgba(0, 0, 0, .06));
}

.mg-guide-kicker {
  margin: 0 0 12px;
  color: var(--muted, #55505f);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mg-guide-hero h1 {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--text, #1a1a1a);
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
  text-wrap: balance;
}

.mg-guide-lede {
  max-width: 900px;
  margin: 0;
  color: var(--muted, #55505f);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.75;
}

.mg-guide-updated,
.mg-guide-source {
  color: var(--muted, #55505f);
}

.mg-guide-updated { margin-top: 18px; font-size: .88rem; }

.mg-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 34px;
}

.mg-guide-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mg-guide-product,
.mg-guide-choice > div,
.mg-guide-card {
  border: 1px solid var(--line, rgba(26, 26, 26, .12));
  background: var(--surface, #fbfafc);
  color: var(--text, #1a1a1a);
}

.mg-guide-product {
  display: flex;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  flex-direction: column;
}

.mg-guide-product img {
  width: 100%;
  height: 220px;
  margin-bottom: 15px;
  border: 1px solid var(--line, rgba(26, 26, 26, .12));
  border-radius: 16px;
  background: #f5f5f7;
  object-fit: contain;
}

.mg-guide-product h2,
.mg-guide-product h3 {
  margin: 0 0 8px;
  color: var(--text, #1a1a1a);
  font-family: Sora, Manrope, sans-serif;
}

.mg-guide-product p {
  margin: 0 0 16px;
  color: var(--muted, #55505f);
  line-height: 1.6;
}

.mg-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.mg-guide-btn {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--text, #1a1a1a);
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mg-guide-btn.primary {
  border-color: var(--orange, #fc6501);
  background: var(--orange, #fc6501);
  color: var(--cta-text, #110933);
}

.mg-guide-btn.secondary { color: var(--text, #1a1a1a); }
.mg-guide-btn:hover { border-color: var(--orange, #fc6501); background: color-mix(in srgb, var(--surface, #fbfafc) 88%, var(--orange, #fc6501) 12%); }
.mg-guide-btn.primary:hover { background: color-mix(in srgb, var(--orange, #fc6501) 88%, black 12%); }
.mg-guide-btn:focus-visible,
.mg-guide-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange, #fc6501) 58%, transparent); outline-offset: 3px; }

.mg-guide-section { margin: 38px 0; }
.mg-guide-section h2 { margin: 0 0 15px; color: var(--text, #1a1a1a); font-family: Sora, Manrope, sans-serif; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.mg-guide-section p,
.mg-guide-section li { line-height: 1.75; }

.mg-guide-note {
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--orange, #fc6501) 32%, var(--line, transparent));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #fbfafc) 90%, var(--orange, #fc6501) 10%);
  color: var(--text, #1a1a1a);
  line-height: 1.7;
}

.mg-guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, rgba(26, 26, 26, .12));
  border-radius: 20px;
  background: var(--surface, #fbfafc);
  color: var(--text, #1a1a1a);
}

.mg-guide-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.mg-guide-table th,
.mg-guide-table td { padding: 14px 16px; border-bottom: 1px solid var(--line, rgba(26, 26, 26, .12)); text-align: left; vertical-align: top; line-height: 1.55; }
.mg-guide-table th { background: color-mix(in srgb, var(--surface, #fbfafc) 92%, var(--text, #1a1a1a) 8%); color: var(--text, #1a1a1a); font-family: Sora, Manrope, sans-serif; font-size: .92rem; }
.mg-guide-table tr:last-child td { border-bottom: 0; }

.mg-guide-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mg-guide-choice > div { padding: 20px; border-radius: 20px; }
.mg-guide-choice h3 { margin: 0 0 8px; color: var(--text, #1a1a1a); font-family: Sora, Manrope, sans-serif; }
.mg-guide-choice p { margin: 0; color: var(--text, #1a1a1a); }

.mg-guide-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mg-guide-card { display: flex; padding: 22px; border-radius: 20px; flex-direction: column; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mg-guide-card:hover { border-color: color-mix(in srgb, var(--orange, #fc6501) 58%, var(--line, transparent)); transform: translateY(-2px); box-shadow: var(--shadow, 0 12px 34px rgba(0, 0, 0, .08)); }
.mg-guide-card strong { color: var(--text, #1a1a1a); font-family: Sora, Manrope, sans-serif; font-size: 1.12rem; line-height: 1.35; }
.mg-guide-card span { margin-top: 8px; color: var(--muted, #55505f); line-height: 1.55; }
.mg-guide-card small { margin-top: 14px; color: #b84200; font-weight: 800; }

.mg-guide-source { padding-top: 16px; border-top: 1px solid var(--line, rgba(26, 26, 26, .12)); font-size: .88rem; }

html[data-theme="dark"] .mg-guide-card small { color: #ffa569; }

html[data-theme="light"]:not(#mg-guide-color-lock-1):not(#mg-guide-color-lock-2) body a.mg-guide-btn.primary {
  border-color: #fc6501 !important;
  background: #fc6501 !important;
  color: #110933 !important;
  -webkit-text-fill-color: #110933 !important;
}

html[data-theme="dark"]:not(#mg-guide-color-lock-1):not(#mg-guide-color-lock-2) body a.mg-guide-btn.primary {
  border-color: #6a45ef !important;
  background: #6a45ef !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme]:not(#mg-guide-color-lock-1):not(#mg-guide-color-lock-2) body a.mg-guide-btn.primary:hover {
  filter: brightness(.94);
}

@media (max-width: 760px) {
  .mg-guide-grid,
  .mg-guide-grid.three,
  .mg-guide-choice,
  .mg-guide-hub { grid-template-columns: 1fr; }
  .mg-guide-hero { padding: 26px 20px; border-radius: 22px; }
  .mg-guide-wrap { padding-right: 14px; padding-left: 14px; }
  .mg-guide-product img { height: 190px; }
}
