/* The guides (templates/landing/guides/). Loaded only on those pages, on top
   of the site's own styles, and built only from the site's colour names so
   it follows whatever the site looks like. */

.guide .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.guide .crumbs a { color: var(--muted); }
.guide .crumbs span { margin: 0 .35rem; }

.guide h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.guide p, .guide li { line-height: 1.65; }
.guide .small { font-size: .9rem; color: var(--muted); }

.guide .answer {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4rem 0;
}
.guide .answer p { margin: 0; color: var(--ink); }

.guide table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.guide th, .guide td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { color: var(--ink); background: var(--tint); }
.guide .table-wrap { overflow-x: auto; }

.guide-app {
  margin: 2.6rem 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
.guide-app h2 { margin-top: 0; font-size: 1.15rem; }
.guide-app .btn { margin-right: 14px; }

.guide-sources { margin-top: 2.4rem; }
.guide-sources h2, .guide-related h2 { font-size: 1.1rem; }
.guide-sources li { font-size: .95rem; overflow-wrap: anywhere; }

.guide-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.guide-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.guide-list h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.guide-list p { margin: .2rem 0; }

/* The withholding calculator on the Form 2307 guide. */
.wh-calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 18px; margin: 1.2rem 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint);
}
.wh-calc label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.wh-calc input, .wh-calc select {
  font: inherit; font-weight: 400; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.wh-calc .wh-result { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) { .wh-calc { grid-template-columns: 1fr; } }

/* The buttons under "How Simple Invoice helps" wrap as whole pieces. */
.guide-app p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.guide-app .btn { margin-right: 0; }
.guide-app .link-quiet { white-space: nowrap; }
.wh-calc .wh-error { grid-column: 1 / -1; margin: 0; color: #b42318; font-weight: 500; font-size: .95rem; }
.wh-calc input[aria-invalid="true"] { border-color: #b42318; }

/* The way into the app, right after a guide's short answer. Quieter than the
   box at the end: one line of why, one button. */
.guide-nudge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin: 0 0 2rem; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint);
}
.guide-nudge p { flex: 1 1 280px; margin: 0; font-size: .97rem; color: var(--ink); }
.guide-nudge .guide-nudge-free { color: var(--muted); }
.guide-nudge .btn { flex: 0 0 auto; }
