/* factuur-template-downloaden: hero with the filled-in template next to
   the download button. Built from the landing tokens so light and dark
   both follow. 29-10-2026. */

.ftpl-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  text-align: left;
}
.ftpl-hero .landing-hero-content {
  text-align: left;
  order: 0;
  margin: 0;
  max-width: none;
}
.ftpl-hero .ftpl-sheet-wrap {
  order: 1;
}
.ftpl-hero .landing-hero-title {
  margin-bottom: 16px;
}
.ftpl-hero .landing-hero-subtitle {
  margin: 0 0 28px;
  max-width: 34rem;
}
.ftpl-hero .landing-hero-actions {
  justify-content: flex-start;
}
.ftpl-hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--landing-text-muted);
}

.ftpl-sheet-wrap {
  min-width: 0;
}
.ftpl-sheet-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--landing-text-muted);
}
.ftpl-sheet-scroll {
  overflow-x: auto;
  border: 1px solid var(--landing-border-hover);
  border-radius: 10px;
  background: var(--landing-bg-section);
  box-shadow: var(--landing-shadow-card-hover);
}
.ftpl-sheet {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--landing-text);
  font-variant-numeric: tabular-nums;
}
.ftpl-sheet th,
.ftpl-sheet td {
  border: 1px solid var(--landing-border);
  padding: 4px 7px;
  height: 24px;
  white-space: nowrap;
  text-align: left;
  font-weight: 400;
}
.ftpl-sheet thead th,
.ftpl-sheet tbody th {
  background: var(--landing-bg-subtle-hover);
  color: var(--landing-text-muted);
  font-size: 11px;
  text-align: center;
}
.ftpl-sheet tbody th {
  width: 28px;
}
.ftpl-sheet .t {
  font-size: 15px;
  font-weight: 700;
}
.ftpl-sheet .l {
  font-weight: 600;
}
.ftpl-sheet .h {
  font-weight: 600;
  background: var(--landing-bg-subtle);
}
.ftpl-sheet .n {
  text-align: right;
}
.ftpl-sheet .tot {
  font-weight: 700;
}
.ftpl-sheet .f {
  color: var(--landing-accent);
}
.ftpl-sheet .gap th,
.ftpl-sheet .gap td {
  height: 14px;
  padding: 0 7px;
  color: var(--landing-text-faint);
  font-size: 11px;
}

@media (max-width: 960px) {
  .ftpl-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* On a phone the whole sheet stays in view as a picture instead of a
   cropped table you have to swipe through. */
@media (max-width: 640px) {
  .ftpl-sheet-scroll {
    overflow: hidden;
  }
  .ftpl-sheet {
    zoom: 0.5;
    width: auto;
    min-width: 0;
  }
}

/* Ronde r1 (29-10-2026): the text cards read as a centred grey wall.
   Left-aligned, darker body text, heads aligned with the cards. */
.page-factuur-template-downloaden .landing-section-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.page-factuur-template-downloaden .landing-section-header .landing-section-subtitle {
  margin-left: 0;
}
.page-factuur-template-downloaden .landing-feature-card {
  text-align: left;
  align-items: flex-start;
}
.page-factuur-template-downloaden .landing-feature-card .landing-feature-description {
  color: var(--landing-text-primary, var(--landing-text));
}

/* boekhouding-in-excel (ticket #403, 22-11-2026): same hero and cards as the
   invoice template, plus a strip of sheet tabs under the preview so it reads
   as a workbook with more than one tab. */
.page-boekhouding-in-excel .landing-section-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.page-boekhouding-in-excel .landing-section-header .landing-section-subtitle {
  margin-left: 0;
}
.page-boekhouding-in-excel .landing-feature-card {
  text-align: left;
  align-items: flex-start;
}
.page-boekhouding-in-excel .landing-feature-card .landing-feature-description {
  color: var(--landing-text-primary, var(--landing-text));
}
/* Eight columns instead of six: a little less padding so the last column
   (Te betalen) stays in view at 1440 without scrolling. */
.page-boekhouding-in-excel .ftpl-sheet th,
.page-boekhouding-in-excel .ftpl-sheet td {
  padding-left: 5px;
  padding-right: 5px;
}
.ftpl-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  border-top: 1px solid var(--landing-border);
  background: var(--landing-bg-subtle-hover);
  font-size: 11px;
  color: var(--landing-text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.ftpl-tabs span {
  padding: 5px 10px;
}
.ftpl-tabs .is-active {
  background: var(--landing-bg-section);
  color: var(--landing-text);
  font-weight: 600;
  border-bottom: 2px solid var(--landing-accent);
}
/* The sheet itself is zoomed to 0.5 on a phone; zooming the strip as well
   would shrink its background to half the width, so only the type shrinks. */
@media (max-width: 640px) {
  .ftpl-tabs {
    font-size: 9px;
    padding: 0 4px;
  }
  .ftpl-tabs span {
    padding: 3px 5px;
  }
}
