/* Chill Mail (/email): plan picker and the two-column fit guide.
   Colours come from the shared tokens, so dark mode follows styles.css. */

/* Three price cards, centred rather than left in a wide auto-fill grid. */
.tld-grid.mail-tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 560px) { .tld-grid.mail-tiers { grid-template-columns: 1fr; } }

.mail-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  border: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 640px) { .mail-plans { grid-template-columns: 1fr; } }

.mail-plan {
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 0;
}
.mail-plan input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.mail-plan:has(input:checked) { border-color: var(--color-coral-2); box-shadow: 0 0 0 2px var(--color-coral-2) inset; }
.mail-plan:has(input:focus-visible) { outline: 2px solid var(--color-coral-2); outline-offset: 3px; }
.mail-plan__size { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--color-ink); }
.mail-plan__price { font-weight: 600; color: var(--color-ink); }
.mail-plan__sub { font-size: var(--fs-sm); color: var(--text-muted); }

.mail-address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.mail-address input { flex: 1; min-width: 0; }
.mail-address__at { color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }

.mail-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 760px) { .mail-fit { grid-template-columns: 1fr; } }
.mail-fit > div {
  background: var(--bg-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  min-width: 0;
}
.mail-fit h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

/* /email-hosting: the three option cards and the comparison table. */
.mail-option { gap: var(--space-2); }
.mail-option__price { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--color-ink) !important; margin: 0; }
.mail-option__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.mail-compare th[scope="row"] { white-space: nowrap; }
.mail-compare td { white-space: normal; min-width: 12ch; }
@media (max-width: 640px) { .mail-compare th[scope="row"] { white-space: normal; } }

/* /email-hosting: two cards side by side (Workspace and 365, and their guides). */
.feature-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
@media (max-width: 640px) { .feature-grid--two { grid-template-columns: 1fr; } }
