/* The guide pages: /ssm-audit-exemption-pd-10-2024 (Figma 2187:955) and /export-guide (2186:801).
   Shared pieces (top bar, page header, step cards, "Try one client file", footer) live in styles.css. */

/* Sources & freshness (2211:1200) */
.guide-sources {
  padding: 24px 0 32px;
  color: var(--muted);
}
.guide-sources a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.guide-sources a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

/* A titled block: H2 then its content */
.guide-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 56px;
}
.guide-block h2,
.guide-compare h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
}
.guide-note {
  color: var(--muted);
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
}
.guide-body {
  color: var(--text-2);
  line-height: normal;
  letter-spacing: 0;
}

/* Tables: their own scroll region on narrow screens */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
}
.guide-table th,
.guide-table td {
  padding: 14px 20px;
  vertical-align: middle;
}
.guide-table thead th {
  background: var(--navy-50);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.guide-table tbody tr {
  border-top: 1px solid var(--border);
}
.guide-table tbody th {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.guide-table td {
  color: var(--text-2);
}
/* Column widths as drawn: 4 × 300; 300 + 4 × 225; 260 + the rest */
.guide-table th,
.guide-table td {
  width: 25%;
}
.guide-table-years th,
.guide-table-years td {
  width: 18.75%;
}
.guide-table-years :is(th, td):first-child {
  width: 25%;
}
.guide-table-programs :is(th, td):first-child {
  width: 260px;
}
.guide-table-programs :is(th, td):last-child {
  width: auto;
}
/* PD 10 guide · On this page (motion guide 2348:1167): a quiet numbered row under the title. It
   stays under the top bar while reading; with script a navy marker under the current chapter
   moves (only the marker moves, tables and amounts stay still). */
.toc {
  position: sticky;
  top: 88px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.toc-label {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.toc-list {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.toc-list::-webkit-scrollbar {
  display: none;
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 150ms ease;
}
.toc-list a span {
  color: var(--muted);
  font-size: 12px;
}
.toc-list a:hover,
.toc-list a[aria-current="true"] {
  color: var(--text);
}
.toc-list a[aria-current="true"] {
  font-weight: 600;
}
.toc-mark {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: transform 360ms var(--ease-move), width 360ms var(--ease-move);
}
/* Headings land below the top bar and this row. */
.guide-block h2[id],
.guide-banner-wrap {
  scroll-margin-top: 150px;
}
@media (max-width: 767px) {
  .toc {
    position: relative;
    gap: 12px;
  }
  .toc-label {
    display: none;
  }
  .guide-block h2[id],
  .guide-banner-wrap {
    scroll-margin-top: 88px;
  }
}

/* Export guide · your software, one path (motion guide 2348:1167). With script the programs are
   buttons, a slim navy marker moves to the picked row, and the box beside the table shows its line
   and columns. Swaps take about 180 ms. */
.pick {
  display: grid;
  width: 100%;
  gap: 24px;
}
.pick.is-live {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}
.pick .table-scroll {
  position: relative;
}
.pick-mark {
  display: none;
}
.pick.is-live .pick-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
  transition: transform 320ms var(--ease-move), height 320ms var(--ease-move);
}
.pick tbody th button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pick tbody th button:hover {
  color: var(--brand);
}
.pick tbody tr {
  transition: background-color 180ms ease;
}
.pick tbody tr.is-picked {
  background: var(--subtle);
}
.pick tbody tr.is-picked th {
  font-weight: 600;
}
.pick-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.pick-panel[hidden] {
  display: none;
}
.pick-panel.is-new > * {
  animation: pick-in 300ms var(--ease-out);
}
@keyframes pick-in {
  from {
    opacity: 0;
    transform: translateY(calc(8px * var(--move)));
  }
}
.pick-panel.is-new .pick-cols span {
  animation: pick-in 320ms var(--ease-out) both;
  animation-delay: calc(120ms + var(--i, 0) * 50ms);
}
.pick-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1px;
}
.pick-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}
.pick-read {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}
.pick-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
/* The columns drawn like a spreadsheet's header row. */
.pick-cols {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.pick-cols span {
  padding: 6px 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.pick-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
@media (max-width: 1023px) {
  .pick.is-live {
    grid-template-columns: minmax(0, 1fr);
  }
}
.counts {
  color: var(--brand) !important;
  font-weight: 600;
}

/* Status chips (the app's StatusChip, small): the word carries the meaning, colour only helps */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.chip-ok {
  background: #e6f4ea;
  color: #1e7b34;
}
.chip-over {
  background: #fdecea;
  color: #c0392b;
}

/* Who can't use it (2187:1085) */
.guide-bullets {
  padding-left: 24px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0;
  list-style: disc;
}

/* What you still file (2187:1088) */
.guide-checks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guide-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0;
}
.guide-checks img {
  flex: none;
}

/* Calculator banner (2187:1110) */
.guide-banner-wrap {
  padding-bottom: 24px;
}
.guide-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 32px;
  border-radius: 16px;
  background: var(--navy-50);
  line-height: normal;
  letter-spacing: 0;
  transition: background-color 150ms ease;
}
.guide-banner:hover {
  background: var(--navy-100);
}
.guide-banner-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
.guide-banner-link {
  color: var(--brand);
  font-weight: 500;
}

/* Export guide: the three step cards reuse .steps / .step from the home page */
.guide-steps {
  padding-bottom: 56px;
}

/* Before you upload (2211:1203) */
.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 32px;
}
.guide-checklist h2 {
  color: var(--brand);
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -1.7px;
}
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.checklist li {
  padding: 24px;
  border-radius: 12px;
  background: var(--subtle);
  color: var(--text-2);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.25px;
}
.checklist-no {
  margin-right: 0.6em;
}

/* "Find your accounting software" sits closer to its table (16, not 20) */
.guide-checklist + .guide-block {
  gap: 16px;
}

/* Before and after (2186:929) */
.guide-compare {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.compare-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--navy-50);
}
.compare-card-brand {
  border: 1.5px solid var(--brand);
  background: #fff;
}
.compare-card h3 {
  color: var(--brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.5px;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.flow-box {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
}
.flow-box-brand {
  border-color: var(--brand);
  color: var(--brand);
}
.flow-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
}
.compare-text {
  color: var(--text-2);
  line-height: normal;
  letter-spacing: 0;
}

/* The footer shows the page you're on as plain text, as drawn */
.footer-links span[aria-current] {
  color: var(--text-2);
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
}

/* Below 1024px: stack the split sections */
@media (max-width: 1023px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
/* Below 768px: one column; wide tables scroll inside their own box */
@media (max-width: 767px) {
  .guide-block {
    padding-bottom: 40px;
  }
  .guide-table:not(.guide-table-programs) {
    min-width: 600px;
  }
  .guide-table-programs :is(th, td):first-child {
    width: 40%;
  }
  .guide-table-programs tbody th {
    white-space: normal;
  }
  .checklist {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .checklist li {
    padding: 20px;
  }
  .compare-card {
    padding: 24px;
  }
  .guide-banner {
    padding: 20px 24px;
  }
  .guide-steps {
    padding-bottom: 40px;
  }
}
