/* A2P error resource. Single shared stylesheet for every page under /a2p/.
   Reskin the whole section by editing this file. Pages carry no inline styles
   and must render correctly without the main site stylesheet or any JS. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f6;
  --text: #16202b;
  --text-soft: #4a5b6d;
  --line: #d7dee6;
  --accent: #0b5fa5;
  --accent-soft: #e7f0f9;
  --ok: #1c6b45;
  --ok-soft: #e3f3ea;
  --no: #9a3324;
  --no-soft: #fbe9e6;
  --warn: #7a5300;
  --warn-soft: #fdf2da;
  --radius: 8px;
  --maxw: 62rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151b;
    --surface: #171e26;
    --surface-2: #1e2731;
    --text: #e8eef4;
    --text-soft: #a9b8c6;
    --line: #2b3742;
    --accent: #6db3f2;
    --accent-soft: #16293c;
    --ok: #7fd6a6;
    --ok-soft: #142b20;
    --no: #f0a396;
    --no-soft: #331915;
    --warn: #e8c273;
    --warn-soft: #2e2413;
  }
}

:root[data-theme="dark"] {
  --bg: #10151b;
  --surface: #171e26;
  --surface-2: #1e2731;
  --text: #e8eef4;
  --text-soft: #a9b8c6;
  --line: #2b3742;
  --accent: #6db3f2;
  --accent-soft: #16293c;
  --ok: #7fd6a6;
  --ok-soft: #142b20;
  --no: #f0a396;
  --no-soft: #331915;
  --warn: #e8c273;
  --warn-soft: #2e2413;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.a2p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 .75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
  color: var(--text-soft);
  margin: 0 0 .35rem;
}

.err-head { border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; margin-bottom: .5rem; }

.badge {
  display: inline-block;
  font-size: .85rem;
  padding: .3rem .65rem;
  border-radius: var(--radius);
  margin: .4rem 0 0;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-no { background: var(--no-soft); color: var(--no); }
.badge-conflict { background: var(--warn-soft); color: var(--warn); }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 1.75rem 0;
}
.callout h2 { margin-top: 0; font-size: 1.05rem; }
.callout p { margin-bottom: 0; }

ol.ranked { padding-left: 1.3rem; }
ol.ranked li { margin-bottom: .5rem; }

.fieldlist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fieldlist li { margin: 0; }
.fieldlist code { background: var(--surface); border: 1px solid var(--line); padding: .25rem .5rem; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.path h3 { margin-top: 0; }
.path p:last-child { margin-bottom: 0; }

@media (max-width: 44rem) {
  .paths { grid-template-columns: 1fr; }
}

.ex { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.ex h3 { margin-top: 0; }
.ex-fail { background: var(--no-soft); }
.ex-pass { background: var(--ok-soft); }
.ex blockquote { margin: 0 0 .6rem; padding-left: .9rem; border-left: 2px solid var(--line); font-style: italic; }
.ex-why { margin-bottom: 0; font-size: .93rem; color: var(--text-soft); }

dl.dist { margin: 0; }
dl.dist dt { font-weight: 600; margin-top: .7rem; }
dl.dist dd { margin: .15rem 0 0 0; padding-left: 0; color: var(--text-soft); }
.note { font-size: .93rem; color: var(--text-soft); }

table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--surface-2); }
.tablewrap { overflow-x: auto; }

.timeline { font-size: .95rem; color: var(--text-soft); }

.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 2.5rem 0 1.5rem; }
.cta h2 { margin-top: 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 44rem) { .cta-grid { grid-template-columns: 1fr; } }
.cta h3 { margin-top: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); padding: .55rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.btn:hover { opacity: .9; }
.signup label { display: block; font-size: .85rem; margin-bottom: .25rem; }
.signup input { width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.signup button { margin-top: .5rem; padding: .5rem 1rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }

.related ul { padding-left: 1.2rem; }
.related li { margin-bottom: .35rem; }

.back { margin: 2rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.verified { font-size: .85rem; color: var(--text-soft); margin: 0; }

.grp-item { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.grp-item h3 { margin-top: 0; }
.src { font-size: .85rem; color: var(--text-soft); word-break: break-all; }

.idx { columns: 2; column-gap: 2rem; padding-left: 1.1rem; }
@media (max-width: 44rem) { .idx { columns: 1; } }
.idx li { break-inside: avoid; margin-bottom: .3rem; }

.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .65rem; }

.pending { background: var(--warn-soft); border-left: 3px solid var(--warn); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.5rem 0; }
.pending h3 { margin-top: 0; }
.pending p:last-child { margin-bottom: 0; }

.conflict { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.75rem 0; background: var(--surface); }
.conflict h2 { margin-top: 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .75rem 0; }
@media (max-width: 44rem) { .sides { grid-template-columns: 1fr; } }
.side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.side h3 { margin-top: 0; font-size: .95rem; }
.side blockquote { margin: 0 0 .5rem; font-style: italic; }
.side .who { font-size: .85rem; color: var(--text-soft); margin-bottom: 0; }
.unresolved { font-weight: 600; }

/* ---- A2P playbook capture form ---- */
.a2p-capture .fld { margin-bottom: .7rem; }
.a2p-capture label { display: block; font-size: .88rem; margin-bottom: .25rem; }
.a2p-capture .req { color: var(--text-soft); font-weight: 400; }
.a2p-capture .opt { color: var(--text-soft); font-weight: 400; }
.a2p-capture input[type="email"],
.a2p-capture input[type="text"],
.a2p-capture input[type="tel"] {
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit;
}
.a2p-capture .consent {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .8rem; margin: .9rem 0 .7rem;
}
.a2p-capture .consent input[type="checkbox"] { margin-top: .25rem; flex: 0 0 auto; width: 1rem; height: 1rem; }
.a2p-capture .consent label { font-size: .85rem; margin: 0; line-height: 1.5; }
.a2p-capture .policy-links { font-size: .85rem; margin: 0 0 .8rem; }
.a2p-capture button[type="submit"] {
  padding: .55rem 1.1rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer;
}
.a2p-capture button[disabled] { opacity: .6; cursor: default; }
.a2p-capture .formstatus { font-size: .88rem; margin: .6rem 0 0; min-height: 1.2em; }
.a2p-capture .formstatus.ok { color: var(--ok); }
.a2p-capture .formstatus.err { color: var(--no); }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.a2p-capture .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
