/* Shared styles: /tools/nexus-letter-checker and /tools/dbq-finder (mobile-first). */
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 0; }
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.sub { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 14px; }
.guard { font-size: .9rem; color: var(--ink-2); background: var(--surface-2); border-left: 4px solid var(--amber);
  border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; }
.tool { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: 16px; margin: 8px 0 14px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-weight: 600; font-size: .98rem; padding: 11px 18px; border-radius: var(--radius-sm);
  cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--line-2); }
.note { font-size: .86rem; color: var(--ink-3); margin: 10px 0 18px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 10px; }
.qa summary { font-weight: 600; cursor: pointer; }
.qa p { font-size: .93rem; color: var(--ink-3); margin: 6px 0 0; }
.cta-box { background: var(--navy); border-radius: var(--radius); color: var(--navy-ink); padding: 22px 20px; margin: 1.6em 0; text-align: center; }
.cta-box h3 { color: #fff; margin: 0 0 .4em; }
.cta-box p { color: var(--navy-muted); }
.cta-btn { display: inline-block; background: var(--blue); color: #fff !important; font-weight: 600; padding: 12px 22px;
  border-radius: var(--radius-sm); margin-top: 8px; }
.related { font-size: .93rem; }
.related li { margin: .3rem 0; }

/* form */
.ec-cond { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px 6px; margin: 0 0 14px; min-width: 0; }
.ec-cond legend { font-weight: 700; padding: 0 6px; }
.ec-remove { margin-left: 8px; font-size: .8rem; background: none; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 2px 8px; cursor: pointer; color: var(--ink-3); }
.ec-f { margin: 0 0 12px; }
.ec-f > label, .ec-ql { display: block; font-weight: 600; font-size: .93rem; margin: 0 0 4px; }
.ec-f input[type=text], .ec-f select { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
  padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; }
.ec-radio { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .6rem; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: .4rem; cursor: pointer; font-size: .93rem; line-height: 1.4; }
.ec-radio input { margin-top: .2rem; flex: none; }
.ec-radio:hover { border-color: var(--blue); }
.ec-more { margin: 4px 0 10px; }
.ec-more > summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.ec-error { color: #9b1c1c; font-weight: 600; margin: 8px 0 0; }
@media (min-width: 640px) {
  .wrap { padding: 40px 22px 0; }
  .tool { padding: 24px; }
  .ec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* results */
#ec-result { margin-top: 18px; }
.ec-lead { font-size: 1.02rem; color: var(--ink-2); }
.ec-rcard { border: 1px solid var(--line-2); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 14px 6px;
  margin: 14px 0; background: #fff; overflow-wrap: anywhere; }
.ec-rhead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.ec-rhead h3 { margin: 0; font-size: 1.12rem; }
.ec-theory { font-size: .85rem; color: var(--ink-3); }
.ec-chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px;
  white-space: nowrap; vertical-align: middle; }
.ec-chip.ok { background: #e3f3e8; color: #1e6b3c; }
.ec-chip.bad { background: #fbe4e4; color: #9b1c1c; }
.ec-chip.warn { background: #fdf1e0; color: #8a5a10; }
.ec-chip.nn { background: #e8f0fb; color: #1a56b0; }
.ec-sec { margin: 12px 0; }
.ec-sec h4 { margin: 0 0 6px; font-size: .98rem; }
.ec-els { list-style: none; padding: 0; margin: 0; }
.ec-el { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.ec-el:first-child { border-top: 0; }
.ec-el .ec-chip { flex: none; min-width: 82px; text-align: center; margin-top: 2px; }
.ec-el p { margin: 2px 0 0; font-size: .92rem; }
.ec-cite { font-size: .8rem; color: var(--ink-3); }
.ec-list { margin: 4px 0 0; padding-left: 1.2rem; font-size: .93rem; }
.ec-list li { margin: .25rem 0; }
.ec-muted { color: var(--ink-3); font-size: .9rem; }
.ec-block { background: #fbe4e4; border-radius: 8px; padding: 10px 12px; margin: 8px 0; color: #5c1111; }
.ec-guard { font-size: .85rem; color: var(--ink-3); font-style: italic; }
.ec-handoff { border: 2px solid var(--blue); border-radius: var(--radius); padding: 16px; margin: 18px 0; background: #fff; }
.ec-handoff h3 { margin: 0 0 6px; }
.ec-next { padding-left: 1.2rem; margin: 12px 0 6px; }
.ec-next li { margin: .35rem 0; }
#ec-sheet { display: none; }

/* print: only the one-page VSO summary (same look as the VetAid representative brief) */
@media print {
  @page { size: letter; margin: 0.6in; }
  body > *:not(#ec-sheet) { display: none !important; }
  body { background: #fff !important; }
  #ec-sheet { display: block !important; font-family: Georgia, 'Times New Roman', serif; color: #16233a; line-height: 1.45;
    font-size: 10.5pt; }
  #ec-sheet h1 { font-size: 16pt; margin: 0 0 2pt; }
  #ec-sheet .kicker { font-family: Arial, sans-serif; font-size: 8.5pt; letter-spacing: .09em; text-transform: uppercase; color: #556070; }
  #ec-sheet h2 { font-size: 11.5pt; margin: 16pt 0 5pt; border-bottom: 1px solid #c8ccc4; padding-bottom: 3pt; }
  #ec-sheet table { border-collapse: collapse; width: 100%; font-family: Arial, sans-serif; font-size: 9pt; }
  #ec-sheet th, #ec-sheet td { border: 1px solid #c8ccc4; padding: 4pt 5pt; text-align: left; vertical-align: top; }
  #ec-sheet th { background: #f0f0ec; }
  #ec-sheet ul { margin: 4pt 0 0; padding-left: 16pt; font-family: Arial, sans-serif; font-size: 9.5pt; }
  #ec-sheet .meta { font-family: Arial, sans-serif; font-size: 9.5pt; background: #f7f7f4; padding: 5pt 7pt; }
  #ec-sheet .foot { font-family: Arial, sans-serif; font-size: 8pt; color: #556070; line-height: 1.4; margin-top: 14pt; }
}
