/* ============================================================
   No Errors Replacement Plan page (/no-errors.html)

   Two parts:
     1. the few page pieces /styles.css does not have, in the site
        tokens (so they follow light and dark mode);
     2. the enroll / claim / renew sheet, scoped under #ne-sheet.

   Tokens, fonts, header, footer, .btn, .page-hero (and its
   .hero-ctas row), .rule-line, .sheet-section, .sheet-fine, .lines,
   .flow and .faq all come from /styles.css.
   ============================================================ */

/* ---------- 1. Page pieces ---------- */

.ne-noscript { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }
.ne-noscript a { color: var(--ink); border-bottom: 1px dotted var(--line-strong); }

.ne-pitch { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* price rows: the shared ruled rows without the photo column, hung from the
   page's left edge like the head above them */
.lines.plan-lines { position: relative; z-index: 1; max-width: 860px; margin: 0; }
.lines.plan-lines .line { grid-template-columns: minmax(0, 1fr) auto; }
.lines.plan-lines .line-price { grid-column: 2; text-align: right; }
/* the closing fine line sits under the list, not centered across the whole page */
.lines.plan-lines + .sheet-fine { max-width: 860px; }

/* fine print: ruled rows, the term on the left and plain words on the right */
.ne-fine-title { margin-bottom: 26px; }
.terms { margin: 0; border-top: 2px solid var(--line-strong); }
.terms > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 6px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.terms dt {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
}
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .terms > div { grid-template-columns: 1fr; }
}

/* ---------- 2. The sheet ----------
   Copied from the inline block in /order/index.html, which is left as it
   is, and scoped under #ne-sheet so nothing here can reach another page.
   It is a LIGHT sheet by design: the Square card field is built for white.
   Everything inside gets explicit light-context colors; never use the dark
   page tokens in here, and do not restyle the card area.
   Stacking: the sheet is a modal, on the 1000+ layer above the sticky
   header (100) and the scroll bar (300). */
#ne-sheet.sqwrap {
  position: fixed;
  inset: 0;
  z-index: 1020;
  background: rgba(2, 6, 14, .72);
  display: none;
  overflow: auto;
  padding: 24px 14px;
}
#ne-sheet.sqwrap.open { display: flex; align-items: flex-start; justify-content: center; }
#ne-sheet .sq {
  background: #fff;
  color: #1f2430;
  width: min(460px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  margin: auto;
}
/* The shared h1,h2,h3 rule paints headings near-white, and the shared table
   and text rules assume the dark page: on this white sheet they need dark
   colors spelled out, or the titles and the receipt rows cannot be read. */
#ne-sheet .sq h2,
#ne-sheet .sq h3 { color: #0f1e3a; }
#ne-sheet .email-items td { color: #1f2430; }
#ne-sheet .email-items td strong { color: #0f1e3a; }
#ne-sheet .center { text-align: center; }
#ne-sheet .muted { color: #5b6477; }
#ne-sheet .muted strong { color: #1f2430; }
#ne-sheet a:not(.btn) { color: #1b356c; text-decoration: underline; }

#ne-sheet .sq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f3;
}
#ne-sheet .sq-head strong { font-family: var(--ff-display); color: #2d2d2d; }
#ne-sheet .sq-lock { display: flex; align-items: center; gap: 7px; color: #3d4150; font-size: .82rem; font-weight: 600; }
#ne-sheet .x { background: none; border: none; font-size: 1.4rem; line-height: 1; color: #5b6477; padding: 0 0 0 12px; }
#ne-sheet .x:hover { color: #0f1e3a; }
#ne-sheet .sq-body { padding: 18px; }

#ne-sheet .sq-summary { background: #f7f8fa; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
#ne-sheet .sq-summary b { color: #0f1e3a; }
#ne-sheet .totrow { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; color: #3d4150; }
#ne-sheet .totrow.grand { font-family: var(--ff-numeric); font-weight: 700; font-size: 1.05rem; color: #0f1e3a; margin-top: 10px; }

/* a plain sentence in the sheet; a small note; the claim number; the red line */
#ne-sheet .sq-msg { margin: 0 0 14px; color: #1f2430; }
#ne-sheet .sq-msg strong { color: #0f1e3a; }
#ne-sheet .sq-note { margin: 8px 0 0; font-size: .84rem; color: #5b6477; }
#ne-sheet .sq-claim {
  font-family: var(--ff-numeric);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: #0f1e3a;
  font-variant-numeric: tabular-nums;
}
#ne-sheet .sq-err { color: #b00020; font-size: .88rem; text-align: center; margin: 4px 0 12px; }
#ne-sheet .sq-err a:not(.btn) { color: #b00020; }

#ne-sheet .fld { margin-bottom: 11px; }
#ne-sheet .fld label { display: block; font-size: .78rem; color: #5b6170; margin-bottom: 5px; font-weight: 600; }
#ne-sheet .fld input { width: 100%; padding: 11px 12px; border: 1px solid #d7dae1; border-radius: 8px; font: inherit; font-size: .95rem; background: #fff; color: #1f2430; }
#ne-sheet .fld input:focus { outline: none; border-color: #1b356c; box-shadow: 0 0 0 3px rgba(27, 53, 108, .12); }
#ne-sheet .fld input[disabled] { background: #f7f8fa; color: #5b6477; }
#ne-sheet .fld .fld-err { display: block; margin-top: 5px; font-size: .8rem; color: #b00020; }
#ne-sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

#ne-sheet .btn { white-space: normal; }
#ne-sheet .btn-block { width: 100%; margin-top: 6px; }
#ne-sheet .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
/* .btn-ghost is near-white text for the dark page; dark-on-light in here */
#ne-sheet .btn-ghost { color: #1f2430; background: #fff; border-color: #d7dae1; }
#ne-sheet .btn-ghost:hover { color: #0f1e3a; background: #f7f8fa; border-color: #9aa0ad; }
#ne-sheet .powered { text-align: center; color: #5b6477; font-size: .76rem; line-height: 1.4; margin-top: 14px; }

/* confirmation */
#ne-sheet .confirm { text-align: center; padding: 8px 4px 4px; }
#ne-sheet .confirm h2 { font-size: 2.3rem; }
#ne-sheet .check { width: 64px; height: 64px; border-radius: 50%; background: #16794b; color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 6px auto 14px; }
/* the claim number and return address boxes reuse .sq-summary */
#ne-sheet .confirm .sq-summary { text-align: left; margin: 14px 0; font-size: .95rem; color: #1f2430; }
#ne-sheet .email-items { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0; }
#ne-sheet .email-items td { padding: 6px 0; border-bottom: 1px solid #e6e2d9; text-align: left; }
#ne-sheet .email-items td.r { text-align: right; }

#ne-sheet .hide { display: none !important; }

/* pieces the forms add (/no-errors.js) */
#ne-sheet [hidden] { display: none; }
#ne-sheet .x { cursor: pointer; }
#ne-sheet .x[disabled] { opacity: .4; cursor: not-allowed; }
#ne-sheet .ne-card { min-height: 52px; }
#ne-sheet .ne-only { padding: 24px 0; margin: 0; }
#ne-sheet .ne-only + .btn { margin-top: 0; }
#ne-sheet .ne-boxnote { margin: 6px 0 0; }
#ne-sheet .ne-left { text-align: left; }
#ne-sheet .ne-change { margin: -6px 0 14px; text-align: right; }
#ne-sheet .ne-link { background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; color: #1b356c; text-decoration: underline; cursor: pointer; }
#ne-sheet .ne-link[disabled] { opacity: .4; cursor: not-allowed; }
