/* ============================================================
   STUDENT EMAIL FORMATS PAGE
   Updated May 2026 with corrected formats from real verified
   student email audit (229 students across 24 domains).
   ============================================================ */

/* ── BODY SECTION SHELL ────────────────────────────────────── */
.sef-block-section {
  background: white;
  padding: 90px var(--section-pad-h);
}
.sef-block-section-alt {
  background: #FAF8FF;
}
.sef-block-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.sef-block-inner-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ── SECTION HEADER ────────────────────────────────────────── */
.sef-block-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.sef-block-head-second {
  margin-top: 80px;
}
.sef-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.sef-block-head h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.sef-block-head h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--purple);
}

/* ── INTRO CALLOUT (NEW: dual-format explainer) ────────────── */
.sef-intro-callout {
  max-width: 760px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, #F4F0FC 0%, #EDE9FE 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
}
.sef-intro-callout p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
}
.sef-intro-callout p:last-child {
  margin-bottom: 0;
}
.sef-intro-callout strong {
  font-weight: 700;
}

/* ── NOTE BANNER (smaller, secondary) ──────────────────────── */
.sef-note {
  max-width: 760px;
  margin: 0 auto 48px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: left;
}
.sef-note strong {
  font-weight: 700;
  color: var(--ink);
}

/* ── UNI CARD GRID ─────────────────────────────────────────── */
.sef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.sef-card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sef-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.07);
  transform: translateY(-2px);
}
.sef-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sef-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.sef-card-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── FORMAT BLOCK ──────────────────────────────────────────── */
.sef-format-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sef-format-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.sef-format {
  font-family: 'Menlo', 'SF Mono', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--purple);
  background: var(--lavender);
  padding: 9px 12px;
  border-radius: 8px;
  word-break: break-all;
}
.sef-example {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.sef-example code {
  flex: 1 1 200px;
  font-family: 'Menlo', 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  min-width: 0;
  background: #FAF8FF;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}
.sef-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.sef-copy:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.sef-copy.is-copied {
  background: #16A34A;
  color: white;
  border-color: #16A34A;
}
.sef-copy svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.sef-format-divider {
  height: 1px;
  background: var(--hairline);
  margin: 4px 0;
}

/* ── DOMAIN NOTE (also accepted) ───────────────────────────── */
.sef-domain-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mid);
  margin: 4px 0 0;
  padding-left: 0;
}
.sef-domain-note strong {
  font-weight: 700;
  color: var(--ink);
}
.sef-domain-note code {
  font-family: 'Menlo', 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  color: var(--purple);
  background: var(--lavender);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── COMMON MISTAKES + HOW-TO COPY ─────────────────────────── */
.sef-intro-p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mid);
  margin: 0 0 20px;
}
.sef-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: sef-counter;
}
.sef-list li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  counter-increment: sef-counter;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid);
}
.sef-list li:last-child {
  margin-bottom: 0;
}
.sef-list li::before {
  content: counter(sef-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
}
.sef-list strong {
  font-weight: 700;
  color: var(--ink);
}
.sef-list code,
.sef-intro-p code {
  font-family: 'Menlo', 'SF Mono', 'Consolas', monospace;
  font-size: 13px;
  color: var(--purple);
  background: var(--lavender);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── CALLOUT BOX (uni not listed) ──────────────────────────── */
.sef-callout {
  background: white;
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--purple);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 48px;
}
.sef-callout h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.sef-callout h3 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--purple);
}
.sef-callout p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mid);
  margin: 0;
}
.sef-callout a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
  transition: border-color 0.2s ease;
}
.sef-callout a:hover {
  border-bottom-color: var(--purple);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sef-block-section {
    padding: 60px var(--section-pad-h);
  }
  .sef-block-head-second {
    margin-top: 60px;
  }
  .sef-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sef-card {
    padding: 22px;
  }
  .sef-callout {
    padding: 22px 24px;
    margin-top: 36px;
  }
  .sef-note,
  .sef-intro-callout {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .sef-example {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sef-example code {
    font-size: 12px;
    width: 100%;
    flex: 1 1 auto;
  }
  .sef-copy {
    align-self: flex-end;
  }
}
