/* HostScout.ca - Is My Business Email Stored in Canada?
   Loaded after hosting-checker.css and uses its colour tokens (--hc-*), card,
   table and status styles, so this page matches the "Is This Site Hosted in
   Canada?" tool. Only the pieces that tool doesn't have live here. */

/* ----------------------------------------------------------------------
   RESULT CARDS
---------------------------------------------------------------------- */

/* Numbered steps, numbered like the MX priority boxes */
.email-tool-page .email-steps {
  margin: 0;
  padding: 0 18px;
  list-style: none;
  counter-reset: email-step;
}

.email-tool-page .email-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  color: #3b4046;
  border-bottom: 1px solid #eceef0;
  font-size: 13px;
  line-height: 1.6;
  counter-increment: email-step;
}

.email-tool-page .email-steps li:last-child {
  border-bottom: 0;
}

.email-tool-page .email-steps li::before {
  content: counter(email-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 6px;
  color: #34383e;
  background: #f8f8f9;
  border: 1px solid #dde0e4;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.email-tool-page .email-steps li > span {
  padding-top: 2px;
}

.email-tool-page .email-steps strong {
  color: #202328;
  font-weight: 600;
}

.email-tool-page .email-steps code {
  padding: 1px 5px;
  color: #24272c;
  background: #f5f6f7;
  border: 1px solid #e3e5e8;
  border-radius: 4px;
  font: 500 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* MX record labels, styled like the community check statuses */
.email-tool-page .email-mx-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 6px;
  padding: 3px 8px;
  color: #5e636a;
  background: #f1f2f3;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.email-tool-page .email-mx-tag--canada {
  color: #176b3a;
  background: #eaf8ef;
}

.email-tool-page .email-mx-tag--filter {
  color: #1656b7;
  background: #eef6ff;
}

.email-tool-page .email-mx-tag + small {
  margin-top: 6px;
}

.email-tool-page .email-muted {
  color: #8a8f96;
  font-style: italic;
}

.email-tool-page .footprint-table td code {
  overflow-wrap: anywhere;
}

.email-tool-page .email-evidence-table th:first-child,
.email-tool-page .email-evidence-table td:first-child {
  width: 120px;
}

.email-tool-page .email-evidence-table th:last-child,
.email-tool-page .email-evidence-table td:last-child {
  width: 170px;
}

/* The explanation box spans the full results width, lining up with the
   summary card above it. */
.email-tool-page .result-meaning {
  max-width: none;
}

/* ----------------------------------------------------------------------
   PROVIDER DATA REGIONS
   Uses the Recent Community Checks section and table from hosting-checker.css.
---------------------------------------------------------------------- */

.email-tool-page .email-regions .community-checks-head h2 {
  text-wrap: balance;
}

.email-tool-page .email-regions-date {
  margin: 0 0 2px;
  color: #747980;
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.email-tool-page .email-regions-table {
  min-width: 720px;
}

.email-tool-page .email-regions-table td:first-child {
  width: 24%;
}

.email-tool-page .email-regions-table th:nth-child(2),
.email-tool-page .email-regions-table td:nth-child(2) {
  width: 160px;
  white-space: nowrap;
}

.email-tool-page .email-regions-table th:last-child,
.email-tool-page .email-regions-table td:last-child {
  width: 140px;
}

.email-tool-page .email-regions-table td:first-child a {
  color: var(--hc-red-dark);
}

/* ----------------------------------------------------------------------
   EDUCATION SECTION
   Same design as the "Canadian Data Residency vs. Data Sovereignty"
   section on the homepage (home.css isn't loaded on tool pages, so the
   values are repeated here).
---------------------------------------------------------------------- */

.email-tool-page .email-learn {
  padding: 72px 0;
  background: #fff;
  border-bottom: 1px solid var(--hc-line);
}

.email-tool-page .email-learn-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: 64px;
  align-items: center;
}

.email-tool-page .email-learn-copy {
  max-width: 520px;
}

.email-tool-page .email-learn-copy h2 {
  margin: 0 0 18px;
  color: var(--hc-ink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.email-tool-page .email-learn-copy p {
  margin: 0;
  color: #555c66;
  font-size: 14px;
  line-height: 1.72;
}

.email-tool-page .email-learn-copy p + p {
  margin-top: 14px;
}

.email-tool-page .email-learn-copy strong {
  color: #16191e;
}

.email-tool-page .email-learn-cards {
  display: grid;
  gap: 16px;
}

.email-tool-page .email-learn-card {
  padding: 24px 26px;
  background: #f8f9fa;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
}

.email-tool-page .email-learn-card.is-canadian {
  background: #f5faf7;
  border-color: #c9dfd2;
}

.email-tool-page .email-learn-card h3 {
  margin: 0 0 15px;
  color: #232833;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.email-tool-page .email-learn-card.is-canadian h3 {
  color: #12663c;
}

.email-tool-page .email-learn-list {
  display: grid;
  gap: 11px;
}

.email-tool-page .email-learn-point {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #313741;
  font-size: 13.5px;
  line-height: 1.48;
}

.email-tool-page .email-learn-check {
  color: var(--hc-red);
  font-weight: 800;
  line-height: 1.35;
}

.email-tool-page .email-learn-card.is-canadian .email-learn-check {
  color: #16824f;
}

/* The FAQ flows straight into the attribution line, as the hosting
   checker's last section does. */
.email-tool-page .checker-faq {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .email-tool-page .email-regions-date {
    margin-bottom: 0;
  }

  /* Stack each provider row so nothing scrolls sideways on phones. */
  .email-tool-page .email-regions-table {
    min-width: 0;
  }

  .email-tool-page .email-regions-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .email-tool-page .email-regions-table,
  .email-tool-page .email-regions-table tbody {
    display: block;
  }

  .email-tool-page .email-regions-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eceef0;
  }

  .email-tool-page .email-regions-table tbody tr:last-child {
    border-bottom: 0;
  }

  .email-tool-page .email-regions-table td,
  .email-tool-page .email-regions-table td:first-child,
  .email-tool-page .email-regions-table td:nth-child(2),
  .email-tool-page .email-regions-table td:last-child {
    width: auto;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .email-tool-page .email-regions-table td:first-child {
    align-self: center;
  }

  .email-tool-page .email-regions-table td:nth-child(2) {
    align-self: center;
    justify-self: end;
  }

  .email-tool-page .email-regions-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .email-tool-page .email-regions-table td:last-child {
    grid-column: 1 / -1;
    color: #747980;
    font-size: 11.5px;
    white-space: normal;
  }

  .email-tool-page .email-regions-table td:last-child::before {
    content: "Based in ";
  }
}

@media (max-width: 980px) {
  .email-tool-page .email-learn-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .email-tool-page .email-learn-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .email-tool-page .email-learn-layout {
    gap: 24px;
  }

  .email-tool-page .email-learn-copy h2 {
    margin-bottom: 14px;
  }

  .email-tool-page .email-learn-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .email-tool-page .email-learn-copy p + p {
    margin-top: 11px;
  }

  .email-tool-page .email-learn-card {
    padding: 19px 18px;
    border-radius: 10px;
  }

  .email-tool-page .email-learn-card h3 {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .email-tool-page .email-learn-point {
    gap: 8px;
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .email-tool-page .email-learn {
    padding: 52px 0;
  }

  .email-tool-page .email-learn-copy h2 {
    font-size: 34px;
  }

  .email-tool-page .email-steps {
    padding: 0 15px;
  }
}
