:root{
  --red:#e7362e;
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --border:#e5e7eb;
  --ok:#16a34a;
  --bad:#dc2626;
  --warn:#d97706;

  /* new subtle section tint */
  --section:#f9fafb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.4}
a{color:var(--red);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:980px;margin:0 auto;padding:18px}
.header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 0;border-bottom:1px solid var(--border);
}
.brand{display:flex;align-items:center;gap:10px}
.logo-dot{width:14px;height:14px;border-radius:999px;background:var(--red);flex:0 0 14px}
.brand h1{font-size:18px;margin:0}
.badge{font-size:12px;color:var(--muted)}

/* Make homepage sections more distinguishable */
.hero{
  padding:18px;
  background:var(--section);
  border:1px solid var(--border);
  border-radius:16px;
  margin:14px 0;
}

/* Cards - slightly clearer separation */
.card{
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  padding:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.grid{display:grid;gap:12px}

/* ALWAYS stack - one column only */
.grid-2{grid-template-columns:1fr}
/* remove the desktop 2-column rule entirely */
/* @media (min-width: 820px){.grid-2{grid-template-columns:1fr 1fr}} */

.big-email{
  font-weight:700;
  padding:12px;
  border:1px dashed var(--border);
  border-radius:12px;
  background:#fafafa;

  /* key bits */
  font-size: clamp(12px, 3.6vw, 18px);   /* responsive font size */
  line-height: 1.2;
  overflow-wrap: anywhere;               /* allow breaks anywhere if needed */
  word-break: break-word;
  white-space: normal;                   /* allow wrapping */
}

/* remove the nowrap behaviour completely */
.big-email--nowrap{
  white-space: normal;
  overflow: visible;
  padding-bottom: 0;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:12px;border:1px solid var(--red);
  color:#fff;background:var(--red);font-weight:700;cursor:pointer
}
.btn.secondary{background:#fff;color:var(--red)}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.kv:last-child{border-bottom:none}
.k{color:var(--muted)}
.pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-weight:700;font-size:12px}
.pill.ok{background:rgba(22,163,74,.12);color:var(--ok);border:1px solid rgba(22,163,74,.25)}
.pill.bad{background:rgba(220,38,38,.10);color:var(--bad);border:1px solid rgba(220,38,38,.25)}
.pill.warn{background:rgba(217,119,6,.12);color:var(--warn);border:1px solid rgba(217,119,6,.25)}
.footer{padding:18px 0;color:var(--muted);font-size:13px;border-top:1px solid var(--border);margin-top:22px}
.small{font-size:13px;color:var(--muted)}
pre{
  background:#0b1020;color:#e5e7eb;border-radius:14px;padding:12px;overflow:auto;
  font-size:12px;line-height:1.35
}

/* Lookup card - stop it looking mega-wide in the grid */
.lookup-card{
  width: 100%;
  max-width: 680px;
  justify-self: center;   /* THIS is the key in a CSS grid */
  margin: 0 auto;
}

/* Proper row styling */
.lookup-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Input styling (moved from inline styles) */
.lookup-input{
  flex: 1;
  min-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

/* On small screens stack input + button */
@media (max-width: 520px){
  .lookup-row{
    flex-direction: column;
    align-items: stretch;
  }
  .lookup-input{
    min-width: 0;
    width: 100%;
  }
  .lookup-btn{
    width: 100%;
  }
}

/* SEO intro block (semantic H1/H2 but not huge) */
.seo-block h1{
  font-size:22px;
  line-height:1.2;
  margin:0 0 6px 0;
  letter-spacing:-0.2px;
}
.seo-block h2{
  font-size:15px;
  line-height:1.35;
  margin:0 0 10px 0;
  font-weight:700;
  color:var(--text);
  opacity:.9;
}

/* Small toast for "Copied" etc */
.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  background:#111827;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:9999;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}

/* Make details/summary look clickable and tidy */
details > summary{
  cursor:pointer;
  user-select:none;
}
details > summary::-webkit-details-marker{
  display:none;
}
.summary-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.chev{
  width:10px;height:10px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(-45deg);
  transition:transform .15s ease;
  opacity:.9;
}
details[open] .chev{
  transform:rotate(45deg);
}

/* FAQ details styling - remove double marker + make summary look clean */
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
.chev{
  width:10px;
  height:10px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .15s ease;
  flex:0 0 10px;
}
details[open] .chev{
  transform: rotate(45deg);
}
@media (max-width: 420px){
  .container{ padding: 14px; }
}
.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;           /* keep on one line */
  white-space:nowrap;
}

/* On small screens, shrink the buttons slightly */
@media (max-width: 520px){
  .header-actions{
    gap:8px;
  }
  .header-actions .btn{
    padding:8px 10px;
    border-radius:10px;
    font-size:13px;
  }
}